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

Tools could be more encapsulated #23

Open
trashhalo opened this issue Jan 6, 2025 · 0 comments
Open

Tools could be more encapsulated #23

trashhalo opened this issue Jan 6, 2025 · 0 comments

Comments

@trashhalo
Copy link

I started planning out an implementation to add ripgrep as an AI tool to let the agent search your codebase.

I noticed tools are kind of a leaky abstraction. They kind of have an interface defined but the tool manager is stacks of case statements with deep knowledge of how each tool works.

If you plan on adding more tools you might have a better time by defining a contract for what a tool can do and remove all knowledge of tools from tool manager other than a list of tools and the plugs for the interface.

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

No branches or pull requests

1 participant