refactor: Update Agents.ToolCallDelta type

This commit is contained in:
Danny Avila 2024-09-03 07:02:17 -04:00
parent e478e10c96
commit 345748a6ab
No known key found for this signature in database
GPG key ID: 2DD9CC89B9B50364

View file

@ -180,8 +180,8 @@ export namespace Agents {
tool_calls: AgentToolCall[];
};
export type ToolCallDelta = {
type: StepTypes.TOOL_CALLS;
tool_calls: ToolCallChunk[];
type: StepTypes.TOOL_CALLS | string;
tool_calls?: ToolCallChunk[];
};
export type AgentToolCall = FunctionToolCall | ToolCall;
export interface ExtendedMessageContent {