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

python
async def execute(prompt: str) -> str

Parameters

ParamField str

The user message to send to the managed agent. **kwargs: Provider-specific options (e.g., timeout, metadata).

Returns

ResponseField str

The agent’s complete text response.

Used By

Source

View on GitHub

praisonaiagents/agent/protocols.py at line 368