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
async def run_turn(prompt: str) -> RuntimeResultParameters
ParamField
strUser prompt/query
Returns
ResponseField
RuntimeResultRuntimeResult with response content and metadata
Source
View on GitHubpraisonaiagents/runtime/protocols.py at line 214