Run Turn • AI Agent SDK

run_turn: Execute a single turn and return result.

run_turn

Async

Method

</div>

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

Execute a single turn and return result.

Signature

python
async def run_turn(prompt: str) -> RuntimeResult

Parameters

ParamField str

User prompt/query

Returns

ResponseField RuntimeResult

RuntimeResult with response content and metadata

Source

View on GitHub

praisonaiagents/runtime/protocols.py at line 214