-
Notifications
You must be signed in to change notification settings - Fork 17
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
Aider code generation tool #38
Conversation
motleycrew/tools/aider_tool.py
Outdated
from aider.coders import Coder | ||
from aider.models import Model | ||
except ImportError: | ||
ensure_module_is_installed("aider-chat", "poetry run pip install aider-chat") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why poetry here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, let's put this inside AiderTool init in case we want to import this module in some init.py
motleycrew/tools/aider_tool.py
Outdated
with_message (str): | ||
""" | ||
|
||
with_message: str = Field(description="instructions for code generate") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with_message: str = Field(description="instructions for code generate") | |
with_message: str = Field(description="Instructions for code generation") |
motleycrew/tools/aider_tool.py
Outdated
|
||
|
||
class AiderToolInput(BaseModel): | ||
"""Input for the REPL tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Input for the REPL tool. | |
"""Input for the Aider tool. |
motleycrew/tools/aider_tool.py
Outdated
return Tool.from_function( | ||
func=coder.run, | ||
name="aider tool", | ||
description="Tool for generate programming code", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description="Tool for generate programming code", | |
description="Tool for code generation that has access to the provided repository. " | |
"Ask it to make changes in the code: fix bugs, add features, write tests etc. " | |
"It doesn't run the code by itself.", |
examples/aider_example.py
Outdated
|
||
|
||
def main(): | ||
crew = MotleyCrew(async_backend=AsyncBackend.THREADING) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove async backend here
No description provided.