From 11f909e095b3c5091199d10e6eff9e74f5f0d794 Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Thu, 30 Jan 2025 11:25:57 +0800 Subject: [PATCH] chore: first commit --- src/agent.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/agent.ts b/src/agent.ts index 4df7479..69b97db 100644 --- a/src/agent.ts +++ b/src/agent.ts @@ -76,7 +76,7 @@ type ResponseSchema = { items: { type: SchemaType.OBJECT; properties: { - title: { + exactQuote: { type: SchemaType.STRING; description: string; }; @@ -152,16 +152,16 @@ function getSchema(allowReflect: boolean, allowRead: boolean): ResponseSchema { items: { type: SchemaType.OBJECT, properties: { - title: { + exactQuote: { type: SchemaType.STRING, - description: "Title of the document; must be directly from the context", + description: "Exact relevant quote from the document", }, url: { type: SchemaType.STRING, description: "URL of the document; must be directly from the context" - } + }, }, - required: ["title", "url"] + required: ["exactQuote", "url"] }, description: "Only required when choosing 'answer' action, must be an array of references" },