refactor(tool): convert websearch tool internals to Effect (#21810)

This commit is contained in:
Kit Langton
2026-04-10 11:30:38 -04:00
committed by GitHub
parent aedc4e964f
commit 46b74e0873
4 changed files with 126 additions and 125 deletions
+2 -1
View File
@@ -101,6 +101,7 @@ export namespace ToolRegistry {
const lsptool = yield* LspTool
const plan = yield* PlanExitTool
const webfetch = yield* WebFetchTool
const websearch = yield* WebSearchTool
const state = yield* InstanceState.make<State>(
Effect.fn("ToolRegistry.state")(function* (ctx) {
@@ -168,7 +169,7 @@ export namespace ToolRegistry {
task: Tool.init(task),
fetch: Tool.init(webfetch),
todo: Tool.init(todo),
search: Tool.init(WebSearchTool),
search: Tool.init(websearch),
code: Tool.init(CodeSearchTool),
skill: Tool.init(SkillTool),
patch: Tool.init(ApplyPatchTool),