Skip to content

An AI-powered search engine with a generative UI

Add language matching for response in inquire function

Yoshiki Miuradbb37eabbc31
diff --git a/lib/agents/inquire.tsx b/lib/agents/inquire.tsx
index 122acd04..a21a47b6 100644
--- a/lib/agents/inquire.tsx
+++ b/lib/agents/inquire.tsx
@@ -52,6 +52,7 @@ export async function inquire(
By providing predefined options, you guide the user towards the most relevant aspects of their query, while the free-form input allows them to provide additional context or specific details not covered by the options.
Remember, your goal is to gather the necessary information to deliver a thorough and accurate response.
+ Please match the language of the response to the user's language.
`,
messages,
schema: inquirySchema