UNPKG

@sap-ai-sdk/orchestration

Version:

SAP Cloud SDK for AI is the official Software Development Kit (SDK) for **SAP AI Core**, **SAP Generative AI Hub**, and **Orchestration Service**.

24 lines 766 B
import type { MessageToolCall, ToolCallChunk } from '../client/api/schema/index.js'; /** * @internal */ export type ToolCallAccumulator = { id?: string; type: 'function'; function: { name?: string; arguments?: string; } & Record<string, any>; } & Record<string, any>; /** * @internal * Check if the accumulator is a MessageToolCall. */ export declare function isMessageToolCall(acc: ToolCallAccumulator): acc is MessageToolCall; /** * Merge a stream of ToolCallChunk into a single MessageToolCall. * @throws If the final object is missing required fields. * @internal */ export declare function mergeToolCallChunk(chunk: ToolCallChunk, acc?: ToolCallAccumulator): ToolCallAccumulator; //# sourceMappingURL=tool-calls.d.ts.map