feat(websearch): add parallel provider rollout (#26227)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user