Execute Agent • AI Agent SDK

execute_agent: Execute agent with the given configuration and prompt.

execute_agent

Async

Method

</div>

This is a method of the AgentRuntimeProtocol class in the protocols module.

Execute agent with the given configuration and prompt.

Diagram

Input Data

Agent: execute_agent

Output Result

Signature

python
async def execute_agent(agent_config: Dict[str, Any], prompt: str) -> Dict[str, Any]

Parameters

ParamField Dict[str, Any]

Agent configuration dict

ParamField str

User prompt to process **kwargs: Additional execution parameters

Returns

ResponseField Dict[str, Any]

Execution result dict with response, metadata, etc.

Source

View on GitHub

praisonaiagents/runtime/protocols.py at line 251


Related Documentation