execute • AI Agents Framework

execute: Execute the agent with given task.

execute

Method

</div>

This is a method of the PraisonAgentExecutor class in the agent_scheduler module.

Execute the agent with given task.

Signature

python
def execute(task: str) -> Any

Parameters

ParamField str

Task description for the agent

Returns

ResponseField Any

Agent execution result

Uses

  • start
  • logger.error

Used By

Source

View on GitHub

praisonai/agent_scheduler.py at line 101