SAP AI SDK for JavaScript - v2.8.0
    Preparing search index...

    Type Alias AzureOpenAiChatCompletionRequestAssistantMessage

    AzureOpenAiChatCompletionRequestAssistantMessage: {
        content?:
            | string
            | AzureOpenAiChatCompletionRequestAssistantMessageContentPart[]
            | null;
        function_call?: | { arguments: string; name: string } & Record<string, any>
        | null;
        name?: string;
        refusal?: string | null;
        role: "assistant";
        tool_calls?: AzureOpenAiChatCompletionMessageToolCalls;
    } & Record<string, any>

    Representation of the 'AzureOpenAiChatCompletionRequestAssistantMessage' schema.

    Type Declaration

    • Optionalcontent?: string | AzureOpenAiChatCompletionRequestAssistantMessageContentPart[] | null

      The contents of the assistant message. Required unless tool_calls or function_call is specified.

    • Optionalfunction_call?: { arguments: string; name: string } & Record<string, any> | null

      Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.

    • Optionalname?: string

      An optional name for the participant. Provides the model information to differentiate between participants of the same role.

    • Optionalrefusal?: string | null

      The refusal message by the assistant.

    • role: "assistant"

      The role of the messages author, in this case assistant.

      Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

    • Optionaltool_calls?: AzureOpenAiChatCompletionMessageToolCalls