What is RunContext part of ? Session or Agent ?
# ask-ai
f
What is RunContext part of ? Session or Agent ?
t
Thanks for reaching out, Roshan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The RunContext is actually part of the AgentSession, rather than the Agent itself. Think of it as a helpful companion that provides runtime information and tools while things are running. It’s created with a link to an AgentSession and serves as a bridge between the tool in action and the current session state. This way, tools can easily access session-level data and user-specific details right through the context. I hope this helps clarify things for you! Sources: Tool definition and use | LiveKit Docs | agents/src/voice/index.ts | livekit-agents/livekit/agents/voice/agent_session.py | telephony/survey_caller/survey_calling_agent.py