Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wip): started work on subagent and tools refactor #79

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ErikBjare
Copy link
Owner

@ErikBjare ErikBjare commented Mar 21, 2024

Related issues:

Questions

  • Should these subagents be ran in the background? Waking the main agent when done?
From my notes

I should add a function that serves as a wrapper to chat, making a prompt that makes the agent give a JSON return value.

  • Then give the LLM a tool to spawn subagents and check on their status.
  • Give it a sleep/await tool to wait for one or more tasks to complete
    • Feels like I could just prompt it to do this via the reply by providing examples
  • Could also give the sub-LLM a tool to update the status.
    • Low value, but would be nice UX with an indicator

@codecov-commenter
Copy link

codecov-commenter commented Mar 22, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 49 lines in your changes are missing coverage. Please review.

Project coverage is 79.71%. Comparing base (e256fc9) to head (c7121c2).

Current head c7121c2 differs from pull request most recent head cd7943b

Please upload reports for the commit cd7943b to get more accurate results.

Files Patch % Lines
gptme/tools/subagent.py 46.29% 29 Missing ⚠️
gptme/tools/__init__.py 81.33% 14 Missing ⚠️
gptme/prompts.py 25.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #79      +/-   ##
==========================================
- Coverage   81.38%   79.71%   -1.67%     
==========================================
  Files          27       29       +2     
  Lines        1896     2066     +170     
==========================================
+ Hits         1543     1647     +104     
- Misses        353      419      +66     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

gptme/tools/base.py Outdated Show resolved Hide resolved
@ErikBjare
Copy link
Owner Author

ErikBjare commented Mar 26, 2024

Ended up refactoring how tools are defined and registered, including how their prompts are constructed from their tool specs. Tools are extremely modular now.

@ErikBjare ErikBjare changed the title feat(wip): started work on subagent feat(wip): started work on subagent and tools refactor Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants