Skip to main content

Type Alias: GatewayInferenceChatCompletionNamedToolChoice

type GatewayInferenceChatCompletionNamedToolChoice = {
[key: string]: unknown;
type: "function";
function: {
[key: string]: unknown;
name: string;
};
};

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

Portkey ChatCompletionNamedToolChoice; additive response fields are preserved.

Example​

`GatewayInferenceChatCompletionNamedToolChoiceSchema.parse(value);`

Indexable​

[key: string]: unknown

Properties​

type​

type: "function";

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


function​

function: {
[key: string]: unknown;
name: string;
};

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

Index Signature​

[key: string]: unknown

name​

name: string;