execute • AI Agent SDK

execute: Execute a task synchronously – backward compatibility method

execute

Method

</div>

This is a method of the Agent class in the agent module.

Execute a task synchronously – backward compatibility method

Signature

python
def execute(task: Any, context: Any) -> Any

Parameters

ParamField Any

No description available.

ParamField Any

No description available.

Returns

ResponseField Any

The result of the operation.

Uses

  • chat

Used By

Source

View on GitHub

praisonaiagents/agent/agent.py at line 6739