gptme icon indicating copy to clipboard operation
gptme copied to clipboard

feat: added think tool to let agent query a reasoner

Open ErikBjare opened this issue 9 months ago • 1 comments

TODO

  • [ ] Send full conversation context (different mode/tool?)
  • [ ] Karpathy-style consortium

[!IMPORTANT] Adds think tool to enhance reasoning on complex problems using powerful LLMs, with model specification and file content integration.

  • New Feature:
    • Adds think tool in gptme/tools/think.py to enhance reasoning on complex problems using more powerful LLMs.
    • Supports specifying a model for reasoning via model parameter.
  • Functionality:
    • execute() function processes reasoning requests, reads file contents, and sends them to a specified model.
    • Logs model usage and handles file reading errors.
  • Tool Specification:
    • ToolSpec defines tool parameters and usage instructions, including the need to specify files in requests.
  • Future Enhancements:
    • TODOs for implementing a consortium approach for aggregating responses from multiple models.

This description was created by Ellipsis for 7a740b7778c0fd16f3f2cebe9b7cf9b926ba36d7. It will automatically update as commits are pushed.

ErikBjare avatar Jan 22 '25 12:01 ErikBjare