Skip to main content

Module task_context

Module task_context 

Source
Expand description

Task-local agent context using tokio::task_local!

Provides per-agent isolation without full Runtime overhead. Each spawned agent task gets its own state overlay and event log while reading through to the parent’s shared state.

Structs§

AgentContext
Lightweight per-agent context stored in tokio task-local storage. Provides an isolated state overlay and event log for each agent.
TaskScope
Scoped execution with task-local agent context.