Add Internet Search Function #3

Open
opened 2025-06-14 15:19:01 +02:00 by AllfatherHatt · 0 comments

User Story

As a user, I want to ask Reginald to “look up” current information so I can get live web results without leaving Discord

Description

Define a ChatGPT function schema, example:

{ "name": "search_web", "description": "Search the internet for a query and return top results", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "Search terms" } }, "required": ["query"] } }

  • Implement search_web(query) using web.search_query under the hood, returning the top 3 { title, snippet, url }.
  • Trigger in prompts when the user asks “Can you look up…?”, “What’s the latest…?”, etc.

Acceptance Criteria

  1. Reginald is able to do web searches
  2. Invoking a search has Reginald deliver an in-character answer, along with a few (1-3) sources
  3. Handles search failures gracefully with a user-friendly error message.

Definition of Done

  • Code reviewed, demo'ed & accepted before merge
  • Code merged
  • Docs updated
# User Story As a user, I want to ask Reginald to “look up” current information so I can get live web results without leaving Discord ## Description Define a ChatGPT function schema, example: `{ "name": "search_web", "description": "Search the internet for a query and return top results", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "Search terms" } }, "required": ["query"] } } ` * Implement search_web(query) using web.search_query under the hood, returning the top 3 { title, snippet, url }. * Trigger in prompts when the user asks “Can you look up…?”, “What’s the latest…?”, etc. ## Acceptance Criteria 1. Reginald is able to do web searches 2. Invoking a search has Reginald deliver an in-character answer, along with a few (1-3) sources 3. Handles search failures gracefully with a user-friendly error message. ## Definition of Done - [ ] Code reviewed, demo'ed & accepted before merge - [ ] Code merged - [ ] Docs updated
AllfatherHatt changed title from Add Internet Search Function via ChatGPT Function Call to Add Internet Search Function 2025-06-14 15:33:23 +02:00
AllfatherHatt added this to the Reginald Camp project 2025-06-14 15:43:46 +02:00
T-BENZIN moved this to To Do in Reginald Camp on 2025-06-17 08:13:47 +02:00
T-BENZIN moved this to Backlog in Reginald Camp on 2025-07-14 17:18:57 +02:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Kanium-PUBLIC/KaniumCogs#3
No description provided.