motleycrew.agents.crewai.agent_with_config

Classes

CrewAIAgentWithConfig(*args, **kwargs)

class motleycrew.agents.crewai.agent_with_config.CrewAIAgentWithConfig(*args, **kwargs)

Bases: object

__init__(*args, **kwargs)

Subclass for CrewAI Agent that overrides the execute_task method to include a config parameter.

Parameters:
  • *args

  • **kwargs

execute_task(task: Any, context: str | None = None, tools: List[Any] | None = None, config: RunnableConfig | None = None) str

Execute a task with the agent.

Parameters:
  • task – Task to execute.

  • context – Context to execute the task in.

  • tools – Tools to use for the task.

Returns:

Output of the agent