16 Commits

Author SHA1 Message Date
bc56213d5a Refactor search functionality and remove 'think' strategy
Reorganized search logic into a dedicated `search.go` file for better modularity. Removed the 'think' functionality and related options (`MaxThinks`) to simplify the codebase. Enhanced the search function and updated tool functions to reflect the streamlined approach.
2025-03-17 23:43:44 -04:00
a5a669f9a6 Refactor answer logic to improve question handling.
Updated the `Answer` method to better handle multi-step questions and manage retries. Introduced detailed step breakdowns and streamlined the function's structure for clarity and maintainability. Enhanced the default prompt for improved instruction clarity.
2025-03-17 00:20:07 -04:00
5b338d4129 implement the wolfram function 2025-03-16 23:00:04 -04:00
bdaa3b7d96 implement the wolfram function 2025-03-16 22:59:25 -04:00
bf16b4b0cd update deps 2025-03-16 22:52:59 -04:00
568a0e99e4 update deps 2025-03-16 22:40:48 -04:00
4c106d32cb update against go-llm changes 2025-03-16 22:39:47 -04:00
1d47cf5758 Add customizable prompts for system messages in Options
Introduced `SystemPrompt` and `ExtraSystemPrompts` to allow more flexible and context-aware system message customization. Replaced static default system message with dynamic handling using these new fields, falling back to `DefaultPrompt` if needed. Updated the request construction logic to incorporate the newly added prompt options.
2025-03-16 17:08:09 -04:00
e1c10eb49e added .query 2025-02-21 22:35:47 -05:00
37c18b3b58 Update module name to match new repository URL
Renamed the Go module to align with the updated repository path for better clarity and organization. This ensures consistency across the project and prevents potential import conflicts.
2025-02-21 18:45:27 -05:00
87c68f0129 Update module name to match new repository URL
Renamed the Go module to align with the updated repository path for better clarity and organization. This ensures consistency across the project and prevents potential import conflicts.
2025-02-21 18:42:10 -05:00
6c30fdf4d8 Add DuckDuckGo support and refactor caching system
Introduced DuckDuckGo as a new search provider alongside Google. Implemented a flexible caching system with in-memory, file-based, and no-op cache options to improve modularity. Updated dependencies and revised the project structure for improved maintainability.
2025-02-21 18:40:25 -05:00
7a43e3a5c8 Fix unmarshalling issues and adjust logging for debugging
Modify `FunctionCall` struct to handle arguments as strings. Add debugging logs to facilitate error tracing and improve JSON unmarshalling in various functions.
2024-11-11 00:23:00 -05:00
a83d5f9822 sync of changes 2024-11-09 19:50:14 -05:00
cc7b03c614 initial commit 2024-11-08 20:57:22 -05:00
98fa840f87 initial commit 2024-11-08 20:51:12 -05:00