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: tools refactor, started work on subagent #79

Merged
merged 17 commits into from
Aug 6, 2024
Merged

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 74.05858% with 62 lines in your changes missing coverage. Please review.

Project coverage is 79.30%. Comparing base (e256fc9) to head (0a97648).

Files Patch % Lines
gptme/tools/subagent.py 46.29% 29 Missing ⚠️
gptme/tools/__init__.py 77.35% 24 Missing ⚠️
gptme/prompts.py 25.00% 6 Missing ⚠️
gptme/tools/_browser_playwright.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #79      +/-   ##
==========================================
- Coverage   81.38%   79.30%   -2.08%     
==========================================
  Files          27       29       +2     
  Lines        1896     2092     +196     
==========================================
+ Hits         1543     1659     +116     
- Misses        353      433      +80     

☔ 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
@ErikBjare
Copy link
Owner Author

Hoping to finally get this merged

@ErikBjare ErikBjare changed the title feat(wip): started work on subagent and tools refactor feat: tools refactor, started work on subagent Aug 6, 2024
@ErikBjare ErikBjare merged commit 120233c into master Aug 6, 2024
7 checks passed
@ErikBjare ErikBjare deleted the dev/subagent branch August 6, 2024 12:16
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.

2 participants