mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 20:14:44 -07:00
refactor(core): consolidate execute() arguments into ExecuteOptions (#25101)
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
Kind,
|
||||
type ToolInvocation,
|
||||
type ToolResult,
|
||||
type ExecuteOptions,
|
||||
} from './tools.js';
|
||||
import { ToolErrorType } from './tool-error.js';
|
||||
|
||||
@@ -84,7 +85,9 @@ class WebSearchToolInvocation extends BaseToolInvocation<
|
||||
return `Searching the web for: "${this.params.query}"`;
|
||||
}
|
||||
|
||||
async execute(signal: AbortSignal): Promise<WebSearchToolResult> {
|
||||
async execute({
|
||||
abortSignal: signal,
|
||||
}: ExecuteOptions): Promise<WebSearchToolResult> {
|
||||
const geminiClient = this.context.geminiClient;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user