refactor(agent): normalize API naming

This commit is contained in:
2026-06-13 11:15:59 +08:00
parent 8857b18dc9
commit ead76185b7
6 changed files with 39 additions and 21 deletions
+2 -2
View File
@@ -13,9 +13,9 @@ export default tool({
.describe("Why web search is required for the current user request."),
query: tool.schema.string().describe("Search query text."),
freshness: tool.schema
.enum(["noLimit", "oneDay", "oneWeek", "oneMonth", "oneYear"])
.enum(["no_limit", "one_day", "one_week", "one_month", "one_year"])
.optional()
.describe("Optional freshness filter. Defaults to noLimit."),
.describe("Optional freshness filter. Defaults to no_limit."),
summary: tool.schema
.boolean()
.optional()