execute • AI Agent SDK
execute: Execute a prompt on managed infrastructure and return the full response.
execute
Async
Method
</div>
This is a method of the ManagedBackendProtocol class in the protocols module.
Execute a prompt on managed infrastructure and return the full response.
This is the primary entry point called by Agent._delegate_to_backend().
Signature
async def execute(prompt: str) -> strParameters
ParamField
strThe user message to send to the managed agent. **kwargs: Provider-specific options (e.g., timeout, metadata).
Returns
ResponseField
strThe agent’s complete text response.
Used By
CodeAgent.execute_codeCodeAgent.aexecuteMiddlewareManager.execute_model_callMiddlewareManager.execute_tool_callfire_hook
Source
View on GitHubpraisonaiagents/agent/protocols.py at line 368