AgentRuntime
. It is the core orchestration layer that manages agent execution, ensuring that messages are processed efficiently while maintaining the agent’s state.
Agent Runtime
follows this execution loop:
AgentRuntime
interface is defined as follows
Agent Runtime
**can handle any number of input/output clients concurrently, making it easy to implement all kinds of agents that can handle various workflows.
AgentRuntime
AgentRuntime#run
must be called.
AgentRuntime#run
is async
function. Therefore, it has to be passed to asyncio.run
.
Agent Runtime
is the backbone of autonomous agent execution, enabling seamless integration and scalability. It’s main responsibilities are: