run_turn
AsyncMethod
This is a method of the TurnRuntimeProtocol class in the protocols module.Execute a single turn using the prepared context. This is the main execution entry point for all runtime types. The context is immutable and contains all necessary configuration for the turn execution.
Signature
Parameters
PreparedTurnContext
required
The prepared turn context containing model, tools, transcript, delivery channels, and correlation IDs
Returns
str
The agent’s response as a string
Exceptions
RuntimeError
RuntimeError
If execution fails
ValueError
ValueError
If context is invalid or incompatible
Source
View on GitHub
praisonaiagents/runtime/protocols.py at line 54
