Skip to content

An AI-powered search engine with a generative UI

fix: update related questions agent tool definition

Yoshiki Miura2d2595802e3f
diff --git a/lib/agents/generate-related-questions.ts b/lib/agents/generate-related-questions.ts
index 59940920..e5a6fce5 100644
--- a/lib/agents/generate-related-questions.ts
+++ b/lib/agents/generate-related-questions.ts
@@ -35,7 +35,7 @@ export function generateRelatedQuestions(
tools: {
related_questions: tool({
description: 'Generate related questions',
- parameters: z.object({}),
+ inputSchema: z.object({}),
execute: async () => {
const questions = await generateObject({
model: getModel(model),