@coherenceplatform/sdk
Version:
Coherence SDK for embedding AI-powered chat into your applications
40 lines • 1.05 kB
TypeScript
export class ToolCallManager {
activeToolCalls: Map<any, any>;
processEvent(eventData: any): any;
handleToolStart(eventData: any): {
id: any;
function: {
name: any;
arguments: {};
};
status: string;
startTime: number;
timestamp: any;
};
handleToolEnd(eventData: any): any;
handleToolError(eventData: any): any;
createToolCall(eventData: any): {
id: any;
function: {
name: any;
arguments: {};
};
status: string;
startTime: number;
timestamp: any;
};
updateToolCallOnEnd(toolCall: any, eventData: any): any;
updateToolCallOnError(toolCall: any, eventData: any): any;
getActiveToolCalls(): any[];
getToolStatus(toolCall: any): {
type: string;
reason: string;
error: any;
} | {
type: string;
reason?: undefined;
error?: undefined;
};
reset(): void;
}
//# sourceMappingURL=tool-call-manager.d.ts.map