# 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

- ##### `Optional` content?: string | AzureOpenAiChatCompletionRequestAssistantMessageContentPart[] | null

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

- ##### `Optional` function_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.

  #### Deprecated

- ##### `Optional` name?: string

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

- ##### `Optional` refusal?: 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.

- ##### `Optional` tool_calls?: AzureOpenAiChatCompletionMessageToolCalls

- Defined in packages/foundation-models/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message.d.ts:6