motleycrew.tools.code.aider_tool

Functions

create_aider_tool(coder)

Classes

AiderTool([model, return_direct, ...])

Tool for code generation using Aider.

AiderToolInput(*, with_message)

Input for the Aider tool.

class motleycrew.tools.code.aider_tool.AiderTool(model: str = None, return_direct: bool = False, exceptions_to_reflect: List[Exception] | None = None, **kwargs)

Bases: MotleyTool

Tool for code generation using Aider.

__init__(model: str = None, return_direct: bool = False, exceptions_to_reflect: List[Exception] | None = None, **kwargs)

Initialize the MotleyTool.

Parameters:
  • name – Name of the tool (required if tool is None).

  • description – Description of the tool (required if tool is None).

  • args_schema – Schema of the tool arguments (required if tool is None).

  • tool – Langchain BaseTool to wrap.

  • return_direct – If True, the tool’s output will be returned directly to the user.

  • exceptions_to_reflect – List of exceptions to reflect back to the agent.

  • retry_config – Configuration for retry behavior. If None, exceptions will not be retried.

class motleycrew.tools.code.aider_tool.AiderToolInput(*, with_message: str)

Bases: BaseModel

Input for the Aider tool.

with_message: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

motleycrew.tools.code.aider_tool.create_aider_tool(coder: None)