From 0389459b1b12ecf226547f00aebf27d4b2f17e70 Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Sun, 26 Jan 2025 15:37:54 +0800 Subject: [PATCH] chore: first commit --- src/agent.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/agent.ts b/src/agent.ts index 526b5c4..e12d591 100644 --- a/src/agent.ts +++ b/src/agent.ts @@ -28,14 +28,16 @@ const schema = { items: { type: SchemaType.STRING }, - description: "Only required when choosing 'reflect' action, must be a list of of important questions that need to be answered first" + description: "Only required when choosing 'reflect' action, must be a list of of important questions that need to be answered first", + maxItems: 2 }, searchKeywords: { type: SchemaType.ARRAY, items: { type: SchemaType.STRING }, - description: "Only required when choosing 'search' action, must be an array of keywords" + description: "Only required when choosing 'search' action, must be an array of keywords", + maxItems: 3 }, URLTargets: { type: SchemaType.ARRAY, @@ -128,6 +130,7 @@ If you are not 100% confident in your answer, you should first take a reflection - Reflect on the gaps in your knowledge and ask for more questions to fill those gaps. - You use this action when you feel like you need to first answer those questions before proceeding with the current one. - This action has higher priority than all other actions. +- Should not similar to the original question or existing questionsToAnswer in the context. If you are still not confident after reflecting, you can take one of the following actions: