OpenAI.Agents.Context (openai_agents v0.1.0)
Manages context state throughout agent execution.
Context provides a way to pass application-specific state through the entire agent execution pipeline, accessible to tools, guardrails, and lifecycle hooks.
Summary
Functions
Returns a specification to start this module under a supervisor.
Gets the current context from the server.
Gets metadata.
Gets the user context.
Creates a new context with default values.
Sets metadata.
Starts a context server for managing mutable state during execution.
Updates the context in the server.
Updates usage statistics.
Wraps user-provided context.
Types
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Gets the current context from the server.
Gets metadata.
Gets the user context.
@spec new() :: t()
Creates a new context with default values.
Sets metadata.
Starts a context server for managing mutable state during execution.
Updates the context in the server.
Updates usage statistics.
Wraps user-provided context.