From 86dd777a3d20163160358fff1dd590ffafa5e552 Mon Sep 17 00:00:00 2001 From: Alfred Nutile Date: Sun, 11 Aug 2024 21:04:26 -0400 Subject: [PATCH] Ok all QA done, the tool will work with Source to get page from url, more coming soon --- Modules/LlmDriver/app/Functions/GatherInfoTool.php | 2 +- app/Http/Controllers/ChatController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/LlmDriver/app/Functions/GatherInfoTool.php b/Modules/LlmDriver/app/Functions/GatherInfoTool.php index 712c694a..9ea441b8 100644 --- a/Modules/LlmDriver/app/Functions/GatherInfoTool.php +++ b/Modules/LlmDriver/app/Functions/GatherInfoTool.php @@ -27,7 +27,7 @@ class GatherInfoTool extends FunctionContract protected string $name = 'gather_info_tool'; - protected string $description = 'This will look at all documents using your prompt then return the results after once more using your prompt. This is great for say Find all events from my collection of data'; + protected string $description = 'This will look at all documents using your prompt then return the results after once more using your prompt. This is great for say Find all events from my collection of data and build a list of Event Dates, Titles Grouped by Month'; protected string $response = ''; diff --git a/app/Http/Controllers/ChatController.php b/app/Http/Controllers/ChatController.php index e06eb2ac..26b1727f 100644 --- a/app/Http/Controllers/ChatController.php +++ b/app/Http/Controllers/ChatController.php @@ -82,7 +82,7 @@ public function chat(Chat $chat) 'filter' => ['nullable', 'integer'], 'persona' => ['nullable', 'integer'], 'date_range' => ['nullable', 'string'], - 'reference_collection_id' => ['required_if:tool,gather_info_tool', 'integer'], + 'reference_collection_id' => ['required_if:tool,reporting_tool'], ]); try {