NexusLabs.Needlr.AgentFramework.Context
NexusLabs.Needlr.AgentFramework¶
NexusLabs.Needlr.AgentFramework.Context Namespace¶
| Classes | |
|---|---|
| AgentExecutionContext | Default implementation of IAgentExecutionContext. Immutable record that carries user identity, orchestration ID, an optional workspace, and an extensible property bag. |
| AgentExecutionContextExtensions | Extension methods for IAgentExecutionContextAccessor and IAgentExecutionContext. |
| Interfaces | |
|---|---|
| IAgentExecutionContext | Per-orchestration execution context established by trusted non-LLM code (API auth middleware, workflow engine, scenario harness) before invoking an agent. Tools read this via IAgentExecutionContextAccessor to obtain the user identity and orchestration correlation ID. |
| IAgentExecutionContextAccessor | Provides access to the ambient IAgentExecutionContext for the current async flow. Follows the IHttpContextAccessor pattern: registered as a singleton, backed by System.Threading.AsyncLocal<>, so concurrent orchestrations see their own contexts. |