mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-08 17:59:09 +00:00
fix: tweak websearch tool description date info to avoid cache busts (#13559)
This commit is contained in:
@@ -40,7 +40,7 @@ interface McpSearchResponse {
|
||||
export const WebSearchTool = Tool.define("websearch", async () => {
|
||||
return {
|
||||
get description() {
|
||||
return DESCRIPTION.replace("{{date}}", new Date().toISOString().slice(0, 10))
|
||||
return DESCRIPTION.replace("{{year}}", new Date().getFullYear().toString())
|
||||
},
|
||||
parameters: z.object({
|
||||
query: z.string().describe("Websearch query"),
|
||||
|
||||
Reference in New Issue
Block a user