• Preparing search index...
  • The search index is not available
@google/genai
  • @google/genai
  • gaos/funcs/agents-create
  • agentsCreate

Function agentsCreate

  • agentsCreate(
        client: GoogleGenAICore,
        body: Agent,
        api_version?: string,
        options?: RequestOptions,
    ): APIPromise<
        Result<
            Agent,
            | UnexpectedClientError
            | InvalidRequestError
            | RequestAbortedError
            | RequestTimeoutError
            | ConnectionError
            | GoogleGenAiError,
        >,
    >

    Creates a new Agent (Typed version for SDK).

    Parameters

    • client: GoogleGenAICore
    • body: Agent
    • Optionalapi_version: string
    • Optionaloptions: RequestOptions

    Returns APIPromise<
        Result<
            Agent,
            | UnexpectedClientError
            | InvalidRequestError
            | RequestAbortedError
            | RequestTimeoutError
            | ConnectionError
            | GoogleGenAiError,
        >,
    >

    • Defined in src/gaos/funcs/agents-create.ts:37

Settings

@google/genai
  • Loading...

Generated using TypeDoc