Skip to main content

Type Alias: GatewayInferenceInputChatCompletionRequestToolMessage

type GatewayInferenceInputChatCompletionRequestToolMessage = {
role: "tool";
content: string;
tool_call_id: string;
};

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

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

Example​

`GatewayInferenceInputChatCompletionRequestToolMessageSchema.parse(value);`

Properties​

role​

role: "tool";

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


content​

content: string;

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


tool_call_id​

tool_call_id: string;

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