RunContext
RunContext<UserData> is passed to tool handler functions via the context
parameter’s ctx property. It provides access to the current
AgentSession and its user data, letting tools read and modify
session state.
Constructor
The RunContext is constructed internally by AgentSession when dispatching tool
calls. You do not need to create it manually.
Properties
session
The AgentSession that owns this context.
userData
Shortcut for session.userData. Returns the user data attached to the session.