motleycrew.agents.mixins
Classes
A mixin for Langchain-based agents that support output handlers. |
- class motleycrew.agents.mixins.LangchainOutputHandlingAgentMixin
Bases:
objectA mixin for Langchain-based agents that support output handlers.
- get_output_handlers: Callable[[], List[MotleyTool]] = None
- force_output_handler: bool = False
- agent_plan_decorator(func: Callable)
Decorator for Agent.plan() method that intercepts AgentFinish events
- take_next_step_decorator(func: Callable)
Decorator for
AgentExecutor._take_next_step()method that catches DirectOutput exceptions.
- run_tool_direct_decorator(func: Callable)
Decorator of the tool’s run method, for intercepting a DirectOutput exception