Skip to main content

Type Alias: GatewayInferenceChatCompletionMessageToolCallChunk

type GatewayInferenceChatCompletionMessageToolCallChunk = {
[key: string]: unknown;
index: number;
id?: string;
type?: "function";
function?: {
[key: string]: unknown;
name?: string;
arguments?: string;
};
};

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

Portkey ChatCompletionMessageToolCallChunk; additive response fields are preserved.

Example​

`GatewayInferenceChatCompletionMessageToolCallChunkSchema.parse(value);`

Indexable​

[key: string]: unknown

Properties​

index​

index: number;

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


id?​

optional id?: string;

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


type?​

optional type?: "function";

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


function?​

optional function?: {
[key: string]: unknown;
name?: string;
arguments?: string;
};

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

Index Signature​

[key: string]: unknown

name?​

optional name?: string;

arguments?​

optional arguments?: string;