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.
Signature
async def execute_agent(agent_config: Dict[str, Any], prompt: str) -> Dict[str, Any]Parameters
ParamField
Dict[str, Any]Agent configuration dict
ParamField
strUser prompt to process **kwargs: Additional execution parameters
Returns
ResponseField
Dict[str, Any]Execution result dict with response, metadata, etc.
Source
View on GitHubpraisonaiagents/runtime/protocols.py at line 251