fix(acp): classify task as think (#30565)
This commit is contained in:
@@ -61,6 +61,9 @@ export function toToolKind(toolName: string): ToolKind {
|
|||||||
case "read":
|
case "read":
|
||||||
return "read"
|
return "read"
|
||||||
|
|
||||||
|
case "task":
|
||||||
|
return "think"
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "other"
|
return "other"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ describe("acp tool conversion", () => {
|
|||||||
expect(toToolKind("context7_resolve_library_id")).toBe("search")
|
expect(toToolKind("context7_resolve_library_id")).toBe("search")
|
||||||
expect(toToolKind("context7_get_library_docs")).toBe("search")
|
expect(toToolKind("context7_get_library_docs")).toBe("search")
|
||||||
expect(toToolKind("read")).toBe("read")
|
expect(toToolKind("read")).toBe("read")
|
||||||
|
expect(toToolKind("task")).toBe("think")
|
||||||
expect(toToolKind("custom_tool")).toBe("other")
|
expect(toToolKind("custom_tool")).toBe("other")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user