Skip to main content

Type Alias: GatewayInferenceInputChatCompletionRequestAssistantMessage

type GatewayInferenceInputChatCompletionRequestAssistantMessage = {
content?: string | null;
role: "assistant";
name?: string;
tool_calls?: GatewayInferenceInputChatCompletionMessageToolCalls;
function_call?: | {
arguments: string;
name: string;
}
| null;
};

Defined in: src/models/ai-gateway-inference.ts:568

Portkey ChatCompletionRequestAssistantMessage; strict modeled input with explicit JSON extension maps.

Example​

`GatewayInferenceInputChatCompletionRequestAssistantMessageSchema.parse(value);`

Properties​

content?​

optional content?: string | null;

Defined in: src/models/ai-gateway-inference.ts:569


role​

role: "assistant";

Defined in: src/models/ai-gateway-inference.ts:570


name?​

optional name?: string;

Defined in: src/models/ai-gateway-inference.ts:571


tool_calls?​

optional tool_calls?: GatewayInferenceInputChatCompletionMessageToolCalls;

Defined in: src/models/ai-gateway-inference.ts:572


function_call?​

optional function_call?:
| {
arguments: string;
name: string;
}
| null;

Defined in: src/models/ai-gateway-inference.ts:573