Module context

Module context 

Source
Expand description

InvocationContext — the session state container flowing through agent execution.

Also provides CallbackContext and ToolContext wrappers for richer access patterns in callbacks and tool execution.

Structs§

CallbackContext
Rich context for callbacks — provides access to state, artifacts, memory, and event actions for mutation.
InvocationContext
The context object that flows through agent execution. Holds everything a running agent needs.
ToolContext
Extended context for tool execution — adds function call ID and confirmation.

Enums§

AgentEvent
Events emitted by agents during live execution. Wraps SessionEvent (Layer 0) and adds agent-specific events. No duplicate variants — use AgentEvent::Session(_) for wire-level events.