feat(websearch): add parallel provider rollout (#26227)

This commit is contained in:
Shoubhit Dash
2026-05-08 14:19:36 +05:30
committed by GitHub
parent ae25278eda
commit a43d3e0e1e
13 changed files with 276 additions and 44 deletions

View File

@@ -20,7 +20,7 @@ import { ReadTool } from "../../tool/read"
import { WebFetchTool } from "../../tool/webfetch"
import { EditTool } from "../../tool/edit"
import { WriteTool } from "../../tool/write"
import { WebSearchTool } from "../../tool/websearch"
import { WebSearchTool, webSearchProviderLabel } from "../../tool/websearch"
import { TaskTool } from "../../tool/task"
import { SkillTool } from "../../tool/skill"
import { ShellTool } from "../../tool/shell"
@@ -148,7 +148,7 @@ function edit(info: ToolProps<typeof EditTool>) {
function websearch(info: ToolProps<typeof WebSearchTool>) {
inline({
icon: "◈",
title: `Exa Web Search "${info.input.query}"`,
title: `${webSearchProviderLabel(info.metadata.provider)} "${info.input.query}"`,
})
}
@@ -469,7 +469,10 @@ export const RunCommand = effectCmd({
}
inline({
icon: "✗",
title: `${part.tool} failed`,
title:
part.tool === "websearch"
? `${webSearchProviderLabel(props<typeof WebSearchTool>(part).metadata.provider)} failed`
: `${part.tool} failed`,
})
UI.error(part.state.error)
}