From 6f2660a725d4d0e601be92bdf7bcc914411d113f Mon Sep 17 00:00:00 2001 From: satoshi toyama Date: Fri, 18 Oct 2024 09:41:19 +0900 Subject: [PATCH] tweak --- app/(playground)/p/[agentId]/beta-proto/web-search/schema.ts | 4 +++- .../p/[agentId]/beta-proto/web-search/server-action.ts | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/(playground)/p/[agentId]/beta-proto/web-search/schema.ts b/app/(playground)/p/[agentId]/beta-proto/web-search/schema.ts index 6801d400..ec74c45a 100644 --- a/app/(playground)/p/[agentId]/beta-proto/web-search/schema.ts +++ b/app/(playground)/p/[agentId]/beta-proto/web-search/schema.ts @@ -14,8 +14,10 @@ export const webSearchSchema = jsonSchema<{ plan: string; keywords: string[] }>( type: "array", items: { type: "string", - description: "The keywords to search for user request", + description: + "Suggest appropriate search queries with relevant keywords at least 3-5 words long", }, + description: "The keywords to search for user request", }, }, required: ["plan", "keywords"], diff --git a/app/(playground)/p/[agentId]/beta-proto/web-search/server-action.ts b/app/(playground)/p/[agentId]/beta-proto/web-search/server-action.ts index b90e171d..05429c8c 100644 --- a/app/(playground)/p/[agentId]/beta-proto/web-search/server-action.ts +++ b/app/(playground)/p/[agentId]/beta-proto/web-search/server-action.ts @@ -52,7 +52,6 @@ export async function generateWebSearchStream( }, }); for await (const partialObject of partialObjectStream) { - console.log(partialObject); stream.update(partialObject); }