is ctx.job.userdata scoped to just one session? Or...
# ask-ai
g
is ctx.job.userdata scoped to just one session? Or every session that runs on that agent?
t
Thanks for reaching out, Ben. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Just a quick heads-up: the
ctx.job.userdata
(or more specifically
ctx.userData
) is tied to a single session and doesn’t get shared across different sessions on an agent. Each session keeps its own separate state, including
userData
, which is connected to that particular
AgentSession
instance for the session. Sources: examples/src/restaurant_agent.ts | examples/voice_agents/multi_agent.py | complex-agents/personal_shopper/personal_shopper.py | Workflows | LiveKit Docs