UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

13 lines (12 loc) 674 B
import type { Tool } from '@langchain/core/tools'; import type { ExecutionContext, ExecutionStrategy } from './ExecutionStrategy'; import type { PendingCallsManager } from './PendingCallsManager'; export declare class QueuedExecutionStrategy implements ExecutionStrategy { private pendingCalls; private timeoutMs; constructor(pendingCalls: PendingCallsManager, timeoutMs?: number); executeTool(tool: Tool, args: Record<string, unknown>, context: ExecutionContext): Promise<unknown>; resolveToolCall(callId: string, result: unknown): boolean; rejectToolCall(callId: string, error: Error): boolean; getPendingCallsManager(): PendingCallsManager; }