Type Alias: GatewayInferenceChatCompletionRequestAssistantMessage
type GatewayInferenceChatCompletionRequestAssistantMessage = {
[key: string]: unknown;
content?: string | null;
role: "assistant";
name?: string;
tool_calls?: GatewayInferenceChatCompletionMessageToolCalls;
function_call?: | {
[key: string]: unknown;
arguments: string;
name: string;
}
| null;
};
Defined in: src/models/ai-gateway-inference.ts:1739
Portkey ChatCompletionRequestAssistantMessage; additive response fields are preserved.
Example
`GatewayInferenceChatCompletionRequestAssistantMessageSchema.parse(value);`
Indexable
[key: string]: unknown
Properties
content?
optional content?: string | null;
Defined in: src/models/ai-gateway-inference.ts:1740
role
role: "assistant";
Defined in: src/models/ai-gateway-inference.ts:1741
name?
optional name?: string;
Defined in: src/models/ai-gateway-inference.ts:1742
tool_calls?
optional tool_calls?: GatewayInferenceChatCompletionMessageToolCalls;
Defined in: src/models/ai-gateway-inference.ts:1743
function_call?
optional function_call?:
| {
[key: string]: unknown;
arguments: string;
name: string;
}
| null;
Defined in: src/models/ai-gateway-inference.ts:1744