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

Function interactionsCreate

  • interactionsCreate(
        client: GoogleGenAICore,
        body: CreateInteractionRequestBody & { stream?: false },
        api_version?: string,
        options?: RequestOptions,
    ): APIPromise<
        Result<
            CreateInteractionResponse,
            | UnexpectedClientError
            | InvalidRequestError
            | RequestAbortedError
            | RequestTimeoutError
            | ConnectionError
            | GoogleGenAiError
            | CreateInteractionServerError
            | CreateInteractionClientError,
        >,
    >

    Creating an interaction

    Parameters

    • client: GoogleGenAICore
    • body: CreateInteractionRequestBody & { stream?: false }
    • Optionalapi_version: string
    • Optionaloptions: RequestOptions

    Returns APIPromise<
        Result<
            CreateInteractionResponse,
            | UnexpectedClientError
            | InvalidRequestError
            | RequestAbortedError
            | RequestTimeoutError
            | ConnectionError
            | GoogleGenAiError
            | CreateInteractionServerError
            | CreateInteractionClientError,
        >,
    >

    Remarks

    Creates a new interaction.

    • Defined in src/gaos/funcs/interactions-create.ts:40
  • interactionsCreate(
        client: GoogleGenAICore,
        body: CreateInteractionRequestBody & { stream: true },
        api_version?: string,
        options?: RequestOptions,
    ): APIPromise<
        Result<
            CreateInteractionResponse,
            | UnexpectedClientError
            | InvalidRequestError
            | RequestAbortedError
            | RequestTimeoutError
            | ConnectionError
            | GoogleGenAiError
            | CreateInteractionServerError
            | CreateInteractionClientError,
        >,
    >

    Creating an interaction

    Parameters

    • client: GoogleGenAICore
    • body: CreateInteractionRequestBody & { stream: true }
    • Optionalapi_version: string
    • Optionaloptions: RequestOptions

    Returns APIPromise<
        Result<
            CreateInteractionResponse,
            | UnexpectedClientError
            | InvalidRequestError
            | RequestAbortedError
            | RequestTimeoutError
            | ConnectionError
            | GoogleGenAiError
            | CreateInteractionServerError
            | CreateInteractionClientError,
        >,
    >

    Remarks

    Creates a new interaction.

    • Defined in src/gaos/funcs/interactions-create.ts:58
  • interactionsCreate(
        client: GoogleGenAICore,
        body: CreateInteractionRequestBody,
        api_version?: string,
        options?: RequestOptions,
    ): APIPromise<
        Result<
            CreateInteractionResponse,
            | UnexpectedClientError
            | InvalidRequestError
            | RequestAbortedError
            | RequestTimeoutError
            | ConnectionError
            | GoogleGenAiError
            | CreateInteractionServerError
            | CreateInteractionClientError,
        >,
    >

    Creating an interaction

    Parameters

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

    Returns APIPromise<
        Result<
            CreateInteractionResponse,
            | UnexpectedClientError
            | InvalidRequestError
            | RequestAbortedError
            | RequestTimeoutError
            | ConnectionError
            | GoogleGenAiError
            | CreateInteractionServerError
            | CreateInteractionClientError,
        >,
    >

    Remarks

    Creates a new interaction.

    • Defined in src/gaos/funcs/interactions-create.ts:76

Settings

@google/genai
  • Loading...

Generated using TypeDoc