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
Reginald is able to do web searches
Invoking a search has Reginald deliver an in-character answer, along with a few (1-3) sources
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 Function2025-06-14 15:33:23 +02:00
AllfatherHatt
added this to the Reginald Camp project 2025-06-14 15:43:46 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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"] } }Acceptance Criteria
Definition of Done
Add Internet Search Function via ChatGPT Function Callto Add Internet Search Function