feat(tools): propagate timeout abort signals to tool execution
This commit is contained in:
+5
-1
@@ -10,7 +10,11 @@ export interface Tool {
|
||||
inputSchema: ToolInputSchema;
|
||||
/** Secret scopes required to execute this tool (optional). */
|
||||
requiredSecretScopes?: string[];
|
||||
execute(args: unknown): Promise<ToolResult>;
|
||||
execute(args: unknown, context?: ToolExecutionContext): Promise<ToolResult>;
|
||||
}
|
||||
|
||||
export interface ToolExecutionContext {
|
||||
signal?: AbortSignal;
|
||||
}
|
||||
|
||||
export interface ToolCall {
|
||||
|
||||
Reference in New Issue
Block a user