openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
18 lines (17 loc) • 688 B
TypeScript
export type PendingToolCall = {
id: string;
name?: string;
};
export type PendingToolCallState = {
size: () => number;
entries: () => IterableIterator<[string, string | undefined]>;
getToolName: (id: string) => string | undefined;
delete: (id: string) => void;
clear: () => void;
trackToolCalls: (calls: PendingToolCall[]) => void;
getPendingIds: () => string[];
shouldFlushForSanitizedDrop: () => boolean;
shouldFlushBeforeNonToolResult: (nextRole: unknown, toolCallCount: number) => boolean;
shouldFlushBeforeNewToolCalls: (toolCallCount: number) => boolean;
};
export declare function createPendingToolCallState(): PendingToolCallState;