# ExAgent v3.0.0 - Table of Contents > ExAgent 3.0.0: usage guides and public API reference. A layered agent framework for Elixir: structured output, tool-calling, streaming, stateful supervised agents, multi-agent sessions, durable persistence, compaction/cost/permissions and MCP — powered by the BEAM. ## Recommended LLM Entry Points Start with the surgical low-context path (`agents.md` + `usage-rules.md` + one matching skill or contract sheet). Use `llms-full.txt` only when you want a single-fetch bundle of the rules, skills, contracts and support limits (for exact per-function module docs, fetch `.md` from the Modules section below). - [Coding-agent manual](agents.md) - [Usage rules (LLM)](usage-rules.md) - [Tools and models contracts (LLM)](tools-and-models-contracts.md) - [Runtime and operations contracts (LLM)](runtime-and-ops-contracts.md) - [Supported features and API tiers](status.md) - [Known limits](known-limits.md) - [Single-fetch LLM reference bundle](llms-full.txt) ## Pages - Start here - [Welcome](welcome.md) - [Mental model and architecture](mental-model.md) - [Getting started](getting-started.md) - [Documentation index](documentation.md) - Core guides - [Tools and structured output](tools-and-output.md) - [Models, budgets and limits](models-and-limits.md) - [Skills](skills.md) - [Long-term memory](memory.md) - [Diagnose an integration](troubleshooting.md) - Production and operations - [Runtime and events](runtime-and-events.md) - [Durability and approvals](durability-and-approvals.md) - [Coordination](coordination.md) - [Testing and evaluations](testing.md) - [Observability](observability.md) - [MCP](mcp.md) - Integrations - [Jobs with persisted approvals](continuation-jobs.md) - [Framework integrations](framework-integrations.md) - [Durable coordination recipes](coordination-recipes.md) - [Retrieve external data through a tool](external-retrieval.md) - [MCP tools with persisted approval](mcp-continuation-binding.md) - [OTLP through an application-owned exporter VM](otlp-isolated-transport.md) - [OTLP through an application-owned Collector](otlp-collector-transport.md) - For LLMs and coding agents - [Coding-agent manual](agents.md) - [Usage rules (LLM)](usage-rules.md) - [Tools and models contracts (LLM)](tools-and-models-contracts.md) - [Runtime and operations contracts (LLM)](runtime-and-ops-contracts.md) - Reference - [Supported features and limits](status.md) - [Known limits](known-limits.md) - [Migration guide](migration.md) - [ExAgent](readme.md) - [LICENSE](license.md) - Architecture - [Architecture and ownership](architecture.md) ## Modules - Stable API - [ExAgent](ExAgent.md): - [ExAgent.AgentSupervisor](ExAgent.AgentSupervisor.md): A `DynamicSupervisor` that owns `ExAgent.Server` processes. - [ExAgent.Capability](ExAgent.Capability.md): The single extension point of an agent: a package of tools, settings and instructions plus optional hooks around each model request and tool call. - [ExAgent.Case](ExAgent.Case.md): ExUnit assertions for deterministic agent tests. - [ExAgent.Catalog](ExAgent.Catalog.md): Trusted, versioned definitions for resuming and recovering persisted runs. - [ExAgent.Chat](ExAgent.Chat.md): Pure view state for one authorized `ExAgent.Server` conversation. - [ExAgent.Chat.InputForm](ExAgent.Chat.InputForm.md): Present and answer a bounded flat MCP form on an authorized deferred call. - [ExAgent.Chat.Reader](ExAgent.Chat.Reader.md): Read and reconcile a chat view from a concrete, already authorized Server PID. - [ExAgent.CheckpointError](ExAgent.CheckpointError.md): A state transition whose checkpoint was not confirmed by the configured Store. - [ExAgent.Continuation](ExAgent.Continuation.md): Administrative queries and host-authorized decisions for atomic records. - [ExAgent.Continuation.ApprovalRequest](ExAgent.Continuation.ApprovalRequest.md): A pending tool decision read from a trusted scoped Store by `ExAgent.Continuation.pending/2`. - [ExAgent.Continuation.DeferredCall](ExAgent.Continuation.DeferredCall.md): An open deferred tool call read from a trusted scoped Store by `ExAgent.Continuation.pending/2`. - [ExAgent.Continuation.Recovery](ExAgent.Continuation.Recovery.md): Supervised recovery for trusted Store namespaces. - [ExAgent.Continuation.Recovery.Policy](ExAgent.Continuation.Recovery.Policy.md): Versioned decisions for supervised recovery of an uncertain continuation. - [ExAgent.Conversations](ExAgent.Conversations.md): Supervise temporary, lazily restored conversation Servers. Keys are `{namespace, agent_id}` using the same identity rules as Server. The `:server` factory receives the key as its first argument. - [ExAgent.Conversations.Registry](ExAgent.Conversations.Registry.md): The registry behind `ExAgent.Conversations`: where a conversation's owner is named and found. - [ExAgent.Coordination](ExAgent.Coordination.md): Orchestration patterns on top of `ExAgent.Session` and the core loop. - [ExAgent.CostGuard](ExAgent.CostGuard.md): Helpers for turning token usage into an estimated cost, used together with the `max_budget_cents` field of `ExAgent.UsageLimits`. - [ExAgent.Eval](ExAgent.Eval.md): Measure an agent on a set of cases: run each case, score the result with evaluators and summarize pass rate, latency, usage and cost. - [ExAgent.Eval.Case](ExAgent.Eval.Case.md): One evaluation case: a name, the input and what to expect. - [ExAgent.Eval.Evaluator](ExAgent.Eval.Evaluator.md): A named scoring function; build one with `ExAgent.Eval.evaluator/3`. - [ExAgent.Eval.Online](ExAgent.Eval.Online.md): Sample already confirmed terminals with an existing `ExAgent.Eval` evaluator. - [ExAgent.Eval.Report](ExAgent.Eval.Report.md): The results of `ExAgent.Eval.run/3` and their summary. - [ExAgent.Eval.Result](ExAgent.Eval.Result.md): One run of one case. `scores` holds `%{name, score, passed, reason}` per evaluator (`score` and `passed` are `nil` when it skipped). A grading error adds the optional key `error: true` and records zero and a failed check. Use `Map.get(score, :error) == true` to identify these scores. The attempt's `passed` is true when at least one evaluator issued a grade, every grade passed and neither the target nor any grader failed. Abstentions and grading errors supply no grade. A missing or ambiguous grading recording adds `:diagnostic` with type `"fixture_miss"` or `"fixture_ambiguous"` to the failing score. A failed run keeps the usage its partial result reports; usage fields are `nil` when there is none (a timeout, a raise or a target without a result). `token_coverage` qualifies input and output separately as `:complete`, `:partial` or `:unknown`. When a successful run reports one direction as available and the other as partial or unavailable, the available count keeps its complete coverage. An overall partial status still qualifies both counts when the target provides no directional accounting. `cost_cents` is the run's reported total. `known_cost_cents` retains that total or the known subtotal when only part of the run could be priced. `run_status` retains the target's reported `:succeeded`, `:paused`, `:failed`, `:cancelled` or `:running` status. Runs, Composition and Flow report success as `:succeeded`. Absent or unrecognized statuses give `nil`. An evaluator can pass a run whose status is `:paused`. - [ExAgent.Eval.Suite](ExAgent.Eval.Suite.md): Callbacks for a named suite discovered by mix exagent.eval. - [ExAgent.Event](ExAgent.Event.md): Versioned, serializable event envelope — ExAgent's UI/runtime contract. - [ExAgent.Fixture](ExAgent.Fixture.md): A per-case model cassette, recorded and replayed at the `ExAgent.Model` dispatch, never on the wire. - [ExAgent.Guardrail](ExAgent.Guardrail.md): A blocking, decision-only capability. Put guards directly in the agent's `:capabilities` list. Within each stage the first tripwire or error wins. - [ExAgent.Jobs](ExAgent.Jobs.md): Background jobs: tools and sub-agents that keep working while the agent goes on. - [ExAgent.Jobs.Durable](ExAgent.Jobs.Durable.md): PostgreSQL-backed background agents delivered by a host Oban worker. - [ExAgent.Jobs.Job](ExAgent.Jobs.Job.md): A job snapshot returned by either Jobs backend. Both report `id`, `name`, `status`, bounded `result` text and an optional `error` diagnostic. `:backend` identifies where the snapshot came from. - [ExAgent.MCP.Client](ExAgent.MCP.Client.md): A client for [Model Context Protocol](https://modelcontextprotocol.io) servers over **stdio** or opt-in **Streamable HTTP**, exposing tools as `ExAgent.Tool`s. - [ExAgent.MCP.Protocol](ExAgent.MCP.Protocol.md): Pure JSON-RPC 2.0 encoding and decoding for the Model Context Protocol. Use `ExAgent.MCP.Client` to discover and call tools. - [ExAgent.MCP.Server](ExAgent.MCP.Server.md): A host-owned MCP tools server for the Streamable HTTP Plug. - [ExAgent.MCP.Server.Plug](ExAgent.MCP.Server.Plug.md): Streamable HTTP endpoint for a supervised `ExAgent.MCP.Server`. Mount at a dedicated path before a body parser. The host supplies the HTTP listener. - [ExAgent.Memory](ExAgent.Memory.md): Long-term memory that an agent curates across runs and sessions. - [ExAgent.Memory.ETS](ExAgent.Memory.ETS.md): An in-memory `ExAgent.Memory` backend, per node. - [ExAgent.Memory.Postgres](ExAgent.Memory.Postgres.md): A durable `ExAgent.Memory` backend on PostgreSQL, through the host's `Ecto.Repo` (add `ecto_sql` and `postgrex` to your app, as for `ExAgent.Store.Postgres`). - [ExAgent.Message](ExAgent.Message.md): Message and part types exchanged between the agent and a model. - [ExAgent.Message.Part](ExAgent.Message.Part.md): Request & response part structs. - [ExAgent.Message.Part.JobNotice](ExAgent.Message.Part.JobNotice.md): Host notification of a terminal background job. The tool name is the registered name (the definition ID for durable jobs). Read the result with the query tools bound to the job's store or durable namespace. The candidate `:follow_up` field is the scheduled topic (`String.t() | nil`). Other job notices leave it `nil`. - [ExAgent.Message.Part.Retry](ExAgent.Message.Part.Retry.md): A retry prompt: validation errors (list of maps) or a plain message, sent back to the model so it can correct itself. - [ExAgent.Message.Part.System](ExAgent.Message.Part.System.md): A system / instruction prompt part. - [ExAgent.Message.Part.Text](ExAgent.Message.Part.Text.md): Assistant text with an optional provider phase. Narration has phase `:commentary`. Answer text has phase `:final_answer` or `nil`. - [ExAgent.Message.Part.Thinking](ExAgent.Message.Part.Thinking.md): A reasoning / chain-of-thought part (provider-dependent). - [ExAgent.Message.Part.ToolCall](ExAgent.Message.Part.ToolCall.md): The model asking the agent to run a tool. - [ExAgent.Message.Part.ToolReturn](ExAgent.Message.Part.ToolReturn.md): The return value of a tool call, fed back to the model. - [ExAgent.Message.Part.User](ExAgent.Message.Part.User.md): A user prompt part: a string or a non-empty list of content parts. - [ExAgent.Message.Request](ExAgent.Message.Request.md): A message sent *to* the model. - [ExAgent.Message.Response](ExAgent.Message.Response.md): A message returned *by* the model. - [ExAgent.Message.Usage](ExAgent.Message.Usage.md): Qualified metrics for a response or aggregate. `accounting` is a versioned, string-keyed JSON map, separate from additive token details. Reported means reported to the host by the Model contract, not audited provider presence. Cost is always an estimate in cents, never an invoice. - [ExAgent.Migration](ExAgent.Migration.md): Versioned PostgreSQL schema for the bundled ExAgent adapters. - [ExAgent.Model](ExAgent.Model.md): Behaviour that every provider model implements. - [ExAgent.ModelProfile](ExAgent.ModelProfile.md): The capabilities a model declares for request admission and host discovery. - [ExAgent.ModelRequest](ExAgent.ModelRequest.md): The model request that capability hooks see and transform. - [ExAgent.ModelRequestParameters](ExAgent.ModelRequestParameters.md): The per-request contract handed to a model. It bundles the tools the agent has prepared (function tools + output tools), the negotiated output mode, and the structured-output schema (if any). - [ExAgent.ModelRetry](ExAgent.ModelRetry.md): A tool or output validator can ask the model to correct its input with `raise ExAgent.ModelRetry, message: "Use the current code"`. A string argument is also accepted. Request a retry only when repeating the operation is safe. Raise it; returning the struct, alone or in `{:error, _}`, is an invalid result. A tool can also return `{:retry, message}`. - [ExAgent.ModelSettings](ExAgent.ModelSettings.md): Per-request model settings. Non-nil fields override agent defaults. Custom models can read `:extra`, which merges by top-level key with request values taking precedence. `ExAgent.Models.ReqLLM` rejects nonempty `:extra` and documents the provider options supported by each profile. - [ExAgent.Models.Fallback](ExAgent.Models.Fallback.md): Retries transient provider failures and falls back to other models. - [ExAgent.Models.ReqLLM](ExAgent.Models.ReqLLM.md): Model adapter over ReqLLM's public one-interaction APIs (`generate_text/3`, `stream_text/3` and `StreamResponse.process_stream/2`), used as published. - [ExAgent.Models.Test](ExAgent.Models.Test.md): A deterministic, in-process model for development and tests. - [ExAgent.Observability.BoundedProcessor](ExAgent.Observability.BoundedProcessor.md): An application-owned, bounded native OpenTelemetry span processor. - [ExAgent.Observability.OpenTelemetry](ExAgent.Observability.OpenTelemetry.md): Optional native OpenTelemetry instrumentation, using the application's tracer. - [ExAgent.Output](ExAgent.Output.md): Describes a structured output in an agent's output contract. - [ExAgent.OutputSchema](ExAgent.OutputSchema.md): Structured output via object JSON Schemas or Ecto schemas and changesets. - [ExAgent.Permissions](ExAgent.Permissions.md): Per-tool admission control with `:allow`, `:ask` and `:deny`. Rules match tool names. Candidate argument rules also match globs or structured comparators on validated arguments. - [ExAgent.PubSub](ExAgent.PubSub.md): Behaviour for broadcasting `ExAgent.Event`s. - [ExAgent.PubSub.Local](ExAgent.PubSub.Local.md): In-process PubSub backed by a duplicate-key `Registry` (`ExAgent.PubSub.Registry`, started by the application supervisor). - [ExAgent.PubSub.None](ExAgent.PubSub.None.md): No-op PubSub (default). Broadcasts are discarded; `subscribe/2` is unsupported. Use when you don't need to observe events (e.g. pure one-shot `ExAgent.run/3`). - [ExAgent.PubSub.Phoenix](ExAgent.PubSub.Phoenix.md): Delegates to `Phoenix.PubSub` when available, with **no hard dependency**. - [ExAgent.RateLimiter](ExAgent.RateLimiter.md): Supervised provider quota admission shared by agent definitions. - [ExAgent.RateLimiter.Adapter](ExAgent.RateLimiter.Adapter.md): Shared admission and settlement for physical model attempts. - [ExAgent.RateLimiter.Postgres](ExAgent.RateLimiter.Postgres.md): Shared provider admission on the host's PostgreSQL Ecto Repo. - [ExAgent.RequestError](ExAgent.RequestError.md): Structured error returned by providers for transport/API failures. - [ExAgent.Result](ExAgent.Result.md): Terminal result of an agent run. On success, `output_mode` records how the result was finalized. The modes are `:text`, `:tool`, `:native` and `:prompted`. A tool output identifies its selected branch in `output_name`. With `ExAgent.Plan`, `plan` contains the current run's checklist. The live model can contain credentials. A handoff sets `handoff_target` to the last destination ID and keeps the originating model in `model` for the next turn. - [ExAgent.Retention](ExAgent.Retention.md): Subject erasure and inventory in an authorized Store namespace. - [ExAgent.RunContext](ExAgent.RunContext.md): The context object threaded through dynamic instructions, tool calls and output validators during a single run. - [ExAgent.RunError](ExAgent.RunError.md): An operational run failure with the last confirmed execution state. - [ExAgent.RunPaused](ExAgent.RunPaused.md): Raised by `ExAgent.run!/3` when the run paused for a persisted approval. - [ExAgent.Runtime](ExAgent.Runtime.md): Read-only inspection for trusted operators. Authorize callers in the host application before exposing these queries. Namespace filters select rows. - [ExAgent.Schema](ExAgent.Schema.md): Convert Elixir type expressions (as written in `::` annotations / typespecs) into JSON Schema fragments — the foundation for `deftool` and structured output. - [ExAgent.Server](ExAgent.Server.md): Supervised owner of conversational history, model state and accumulated usage. - [ExAgent.Server.Snapshot](ExAgent.Server.Snapshot.md): Version 4 checkpoint of conversational data, with bounded readers for v1/v2/v3. - [ExAgent.Session](ExAgent.Session.md): Single-writer coordination of application state and a participant roster. - [ExAgent.Session.Participant](ExAgent.Session.Participant.md): A member of an `ExAgent.Session`: either an `:agent` (typically backed by an `ExAgent.Server`) or a `:human` (a real person driving via LiveView/a channel). - [ExAgent.Session.SharedState](ExAgent.Session.SharedState.md): A handle placed in `RunContext.deps` so tools running inside an agent run can read the session's shared state and **propose** changes — without ever holding a mutable reference to it. - [ExAgent.Session.Snapshot](ExAgent.Session.Snapshot.md): JSON checkpoint of coordination data. Version 3 adds bounded continuation references; unbound sessions still write v2, and valid v1/v2 data remains readable. - [ExAgent.Session.StateCodec](ExAgent.Session.StateCodec.md): Optional codec for application state at the Session checkpoint boundary. - [ExAgent.Session.TurnPolicy](ExAgent.Session.TurnPolicy.md): Decides the order in which session participants take turns. - [ExAgent.Session.TurnPolicy.Initiative](ExAgent.Session.TurnPolicy.Initiative.md): Cycles participants in an **explicitly given order**, forever. Use it when participants act in a fixed, possibly uneven sequence — D&D initiative order, priority-based triage, etc. - [ExAgent.Session.TurnPolicy.RoundRobin](ExAgent.Session.TurnPolicy.RoundRobin.md): Cycles participants in **insertion order**, forever (each full pass is a "round"). The simplest fair policy — good for chat, brainstorming, or any turn-taking where everyone gets equal time. - [ExAgent.Session.TurnPolicy.SupervisorPolicy](ExAgent.Session.TurnPolicy.SupervisorPolicy.md): A coordinator-driven turn order: a **supervisor** participant alternates with each worker in turn, forever. - [ExAgent.Skill](ExAgent.Skill.md): A skill: instructions for one kind of task, loaded by the model when needed. - [ExAgent.Skills](ExAgent.Skills.md): Skills that the model loads on demand (progressive disclosure). - [ExAgent.Skills.Gate](ExAgent.Skills.Gate.md): Capability that contributes the skills' tools and offers a skill's own tools only after the skill is loaded. - [ExAgent.Skills.Restore](ExAgent.Skills.Restore.md): Capability that restores loaded skills removed from the request projection. - [ExAgent.Store](ExAgent.Store.md): Behaviour for persisting agent/session snapshots and optional atomic records. - [ExAgent.Store.ETS](ExAgent.Store.ETS.md): In-process, ETS-backed `ExAgent.Store` implementation (dev/test default). - [ExAgent.Store.Postgres](ExAgent.Store.Postgres.md): A durable `ExAgent.Store` backed by PostgreSQL, for resume across crashes and multiple nodes. - [ExAgent.Store.Postgres.Maintenance](ExAgent.Store.Postgres.Maintenance.md): Supervised cleanup for a PostgreSQL Store. - [ExAgent.Telemetry](ExAgent.Telemetry.md): Telemetry event helpers. - [ExAgent.Testing](ExAgent.Testing.md): Per-run tool substitutes for integration tests using an `ExAgent.Fixture`. - [ExAgent.Tool](ExAgent.Tool.md): A tool the model may call. - [ExAgent.Tools](ExAgent.Tools.md): Define tools as plain Elixir functions, with their JSON Schema derived from `::` type annotations and `@doc` strings — no hand-written schemas. - [ExAgent.Toolset](ExAgent.Toolset.md): Compose ordered tool inventories at agent construction time. - [ExAgent.UsageLimits](ExAgent.UsageLimits.md): Execution-tree safety net: each run's limits also constrain its framework descendants. The runtime serializes admission across the tree and uses these functions to check limits. Token and cost thresholds are checked again just before dispatch. A request that stops at this check still counts as admitted. The thresholds are retrospective, so already dispatched requests can exceed them. - [ExAgent.UsageLimits.Budget](ExAgent.UsageLimits.Budget.md): Shared monetary admission for attempts billed to a host account. - [ExAgent.UsageLimits.Budget.Adapter](ExAgent.UsageLimits.Budget.Adapter.md): Transactional admission and settlement for a shared monetary account. - [ExAgent.UsageLimits.Budget.ETS](ExAgent.UsageLimits.Budget.ETS.md): A supervised local spend account with a read-only ETS balance. - [ExAgent.UsageLimits.Budget.Postgres](ExAgent.UsageLimits.Budget.Postgres.md): A shared spend account on the host's PostgreSQL Ecto Repo. - Candidate API - [ExAgent.Chat.AGUI](ExAgent.Chat.AGUI.md): Pure encoder for one Server attempt in [AG-UI 1.0](https://docs.ag-ui.com/spec/1.0). - [ExAgent.Chat.AGUI.Input](ExAgent.Chat.AGUI.Input.md): Decode an AG-UI 1.0 run request into a prompt or C7 commands. - [ExAgent.Chat.AISDK](ExAgent.Chat.AISDK.md): Pure encoder for the Vercel AI SDK 7 UI Message Stream Protocol v1. - [ExAgent.Chat.SSE](ExAgent.Chat.SSE.md): Optional Plug for an authorized Server chat. Mount at a conversation endpoint with the host's authentication and CSRF policy. The required `:authorize` function receives the connection on every request and returns `{:ok, owner_pid}` for the conversation or `{:error, :unauthorized | :forbidden | :not_found | :unavailable}`. - [ExAgent.Classifier](ExAgent.Classifier.md): A bounded choice among host-defined labels. Use a stock Decisions model, a host-owned Nx serving, or a custom adapter. - [ExAgent.Classifier.Error](ExAgent.Classifier.Error.md): A classification failure with a bounded reason and any qualified usage. - [ExAgent.Classifier.NxServing](ExAgent.Classifier.NxServing.md): Classify with a host-owned Nx serving. A registered name uses the serving's batching and distribution. An inline serving runs in the classifier's deadline-bound task. The host includes the optional `:nx` dependency and owns the serving's lifecycle. - [ExAgent.Classifier.ReqLLM](ExAgent.Classifier.ReqLLM.md): A classifier over stock `ReqLLM.evaluate/4`. It sends one choice question and projects the decoded answer and the public usage fields. Use `ReqLLM.evaluation_models/0` to discover available models. - [ExAgent.Classifier.Result](ExAgent.Classifier.Result.md): One declared classification label, optional confidence in `0..1`, and qualified usage. Missing confidence is `nil`. - [ExAgent.Compaction](ExAgent.Compaction.md): Behaviour for reducing the conversation context sent to a model. - [ExAgent.Compaction.ClearToolResults](ExAgent.Compaction.ClearToolResults.md): Replaces older tool return content with short markers in the model request. Run history and checkpoints retain the original returns. A marker retains the reference issued by `ExAgent.Tool.OutputLimit`, when present. - [ExAgent.Compaction.Memo](ExAgent.Compaction.Memo.md): A bounded, host-supervised store that lets `ExAgent.Compaction.Summary` reuse its last summary instead of summarizing on every request. - [ExAgent.Compaction.Summary](ExAgent.Compaction.Summary.md): A compactor that summarizes older messages and keeps a recent window verbatim. - [ExAgent.Coordination.Composition](ExAgent.Coordination.Composition.md): Trusted-host definition of a bounded agent sequence. - [ExAgent.Coordination.Flow](ExAgent.Coordination.Flow.md): A bounded, trusted host router or fan-out/fan-in. - [ExAgent.Coordination.Result](ExAgent.Coordination.Result.md): Confirmed workflow result. Per-agent messages and errors belong to the workflow's steps. A step's `output_name` is its selected output tool, as in `ExAgent.Result`. - [ExAgent.Embeddings](ExAgent.Embeddings.md): Buffered embeddings and document reranking through stock ReqLLM. - [ExAgent.Embeddings.Embedding](ExAgent.Embeddings.Embedding.md): One vector per input, in input order, and the request's qualified usage. The numeric format uses lists of numbers. A provider returning Base64 supplies its encoded strings. - [ExAgent.Embeddings.Error](ExAgent.Embeddings.Error.md): A bounded failure from an embedding or rerank operation. `:result_unconfirmed` means the request may have reached the provider. `:quota_admission_unconfirmed` means no provider operation was dispatched. `:status` holds the HTTP status when available. Usage records any evidence retained even when the operation fails or the result exceeds its bound. - [ExAgent.Embeddings.Reranking](ExAgent.Embeddings.Reranking.md): Reranked results in descending relevance and the request's qualified usage. Each index is a zero-based position in the supplied documents. - [ExAgent.Eval.Capture](ExAgent.Eval.Capture.md): Export a settled C7 agent turn as a redacted Eval case and an offline cassette. - [ExAgent.Eval.Online.Durable](ExAgent.Eval.Online.Durable.md): Resolve online evaluators for a host's `ExAgent.Jobs.Durable` worker. - [ExAgent.Eval.Scenario](ExAgent.Eval.Scenario.md): A bounded conversation attempt in `ExAgent.Eval`. - [ExAgent.Eval.Simulator](ExAgent.Eval.Simulator.md): A model that plays the user in an `ExAgent.Eval.Scenario`. - [ExAgent.Handoff](ExAgent.Handoff.md): A destination a model may ask to take over the current user turn. - [ExAgent.Jobs.Durable.FollowUps](ExAgent.Jobs.Durable.FollowUps.md): Durable jobs that open a turn in the conversation that scheduled them. - [ExAgent.Judge](ExAgent.Judge.md): A second model that reviews the agent's work: final answers before they are accepted, and tool calls before they run. - [ExAgent.Judge.Approval](ExAgent.Judge.Approval.md): Review and certify a persisted `:ask` decision. - [ExAgent.MCP.Client.Tasks](ExAgent.MCP.Client.Tasks.md): Host operations for the negotiated MCP Tasks extension. - [ExAgent.MCP.OAuth](ExAgent.MCP.OAuth.md): Pure OAuth helpers for the MCP client host. - [ExAgent.MCP.Snapshot](ExAgent.MCP.Snapshot.md): Verified declarations for a pinned MCP client. - [ExAgent.Media](ExAgent.Media.md): Buffered media operations backed by stock ReqLLM. Each result carries qualified usage. Audio and OCR inputs are tagged bytes with a MIME type. Text input is UTF-8. Host-provided media options and credentials use `:req_llm`. - [ExAgent.Media.Error](ExAgent.Media.Error.md): A media failure and the qualified usage available for the operation. - [ExAgent.Media.Images](ExAgent.Media.Images.md): Generated images and qualified usage for one provider call. - [ExAgent.Media.OCR](ExAgent.Media.OCR.md): Markdown and zero-based pages returned by stock OCR, with qualified usage. - [ExAgent.Media.Speech](ExAgent.Media.Speech.md): Generated audio bytes and qualified usage. - [ExAgent.Media.Transcription](ExAgent.Media.Transcription.md): Transcript, detected language, optional timing and qualified usage. - [ExAgent.Message.Citation](ExAgent.Message.Citation.md): A source cited by a model response. - [ExAgent.Message.Citation.Range](ExAgent.Message.Citation.Range.md): A half-open range. Answer ranges use bytes. Source ranges use the provider's coordinates and unit. Page numbers start at one. - [ExAgent.Observability.ReqLLM](ExAgent.Observability.ReqLLM.md): Application-owned ReqLLM tracing with one generation span per provider request. - [ExAgent.Observability.ReqLLM.Maintenance](ExAgent.Observability.ReqLLM.Maintenance.md): Optional application-supervised cleanup of the integrated ReqLLM bridge. - [ExAgent.Observability.ReqLLM.Metrics](ExAgent.Observability.ReqLLM.Metrics.md): Optional histogram adapter for the published OTel experimental API 0.6. - [ExAgent.Plan](ExAgent.Plan.md): A bounded, run-local checklist maintained through the `write_todos` tool. Each accepted call replaces the list. The latest list is available in `ExAgent.Result.plan` and as user data at the end of the next model request. - [ExAgent.Sandbox](ExAgent.Sandbox.md): Opt-in tools for isolated execution in a host-provided sandbox. - [ExAgent.Sandbox.Backend](ExAgent.Sandbox.Backend.md): Host implementation of an isolated execution sandbox. - [ExAgent.Sandbox.Docker](ExAgent.Sandbox.Docker.md): Reference Sandbox backend for a trusted local Linux Docker Engine. - [ExAgent.Sandbox.Memory](ExAgent.Sandbox.Memory.md): In-memory Sandbox backend for deterministic tests. It calls a trusted host function with the operation, code and policy. It never evaluates code. - [ExAgent.Steering](ExAgent.Steering.md): A handle for live user corrections to one volatile run. - [ExAgent.Store.ContractCase](ExAgent.Store.ContractCase.md): ExUnit snapshot contract tests for an `ExAgent.Store` adapter. - [ExAgent.Tool.Advisor](ExAgent.Tool.Advisor.md): A tool that lets the agent consult a stronger (or different) model mid-task. - [ExAgent.Tool.CodeMode](ExAgent.Tool.CodeMode.md): Capability that lets the model chain tool calls in one turn. - [ExAgent.Tool.Content](ExAgent.Tool.Content.md): Model-visible image output from a tool declared with `result_mode: :multimodal`. - [ExAgent.Tool.FollowUp](ExAgent.Tool.FollowUp.md): Tools for scheduling a new turn in the current durable Server conversation. - [ExAgent.Tool.OutputLimit](ExAgent.Tool.OutputLimit.md): Capability that shortens large successful and `:tool_error` results before the model sees them. - [ExAgent.Tool.RepeatGuard](ExAgent.Tool.RepeatGuard.md): Capability that tells the model when it keeps repeating an identical tool call. - [ExAgent.Tool.ResultStore](ExAgent.Tool.ResultStore.md): Storage for the UTF-8 representation of a large tool return. - [ExAgent.Tool.ResultStore.ETS](ExAgent.Tool.ResultStore.ETS.md): A host-supervised, private ETS result store. Limits apply across all runs using this instance. Oldest writes are evicted first. Reads do not extend the TTL. An entry larger than the byte budget is rejected without eviction. - [ExAgent.Tool.ResultStore.Postgres](ExAgent.Tool.ResultStore.Postgres.md): PostgreSQL storage for offloaded tool results, using the host's Ecto Repo. - [ExAgent.Tool.Search](ExAgent.Tool.Search.md): Capability that hides a large tool catalogue behind a `search_tools` tool. - [ExAgent.UsageLimits.WrapUp](ExAgent.UsageLimits.WrapUp.md): Use the next admissible request for a final answer when a run approaches a configured limit. - [ExAgent.Verdict](ExAgent.Verdict.md): A policy decision shared by permissions, judges, classifier-backed guards and evaluators. - [ExAgent.Workspace](ExAgent.Workspace.md): Mount bounded text storage as ordinary, permission-controlled agent tools. By default only `/scratch` is mounted, with run-local ETS storage. Supply `:mounts` to choose the exposed top-level paths. Each entry is `{"/name", backend, :read_only | :read_write}`. A custom backend is `{module, handle}` implementing `ExAgent.Workspace.Backend`. - [ExAgent.Workspace.Backend](ExAgent.Workspace.Backend.md): Backend of an `ExAgent.Workspace` mount. Paths are validated relative paths with no leading slash. The mount root is the empty string. Text is UTF-8. - [ExAgent.Workspace.Directory](ExAgent.Workspace.Directory.md): A text workspace rooted in an existing POSIX directory. Configure it with `ExAgent.Workspace.directory/1`. The backend pins the root's device and inode, checks path components with `File.lstat/2`, and reads singly linked regular files. The host controls the directory tree and its parent directories. - [ExAgent.Workspace.Memory](ExAgent.Workspace.Memory.md): Mount an existing `ExAgent.Memory` scope. Both interfaces see the same files. Configure it with `ExAgent.Workspace.memory/2`. - [ExAgent.Workspace.Results](ExAgent.Workspace.Results.md): Read-only mount for `ExAgent.Tool.ResultStore`. Open a known reference by its name. The ResultStore contract grants no enumeration authority. - [ExAgent.Workspace.Scratch](ExAgent.Workspace.Scratch.md): Per-node scratch files for runs and streams. The execution scope owns its ETS table and deletes it when the node closes. A durable attempt reconstructs the files from confirmed tool data when the node resumes. ## Mix Tasks - Stable API - [mix exagent.catalog.lock](Mix.Tasks.Exagent.Catalog.Lock.md): Record the active durable agent definition in `priv/exagent/catalog.lock`. - [mix exagent.doctor](Mix.Tasks.Exagent.Doctor.md): Inspect the local model catalogue, transport, optional dependencies and host runtime. - [mix exagent.eval](Mix.Tasks.Exagent.Eval.md): Discovers evals/**/*_eval.exs. Replay is the default. Use --record or --record-missing explicitly to write cassettes. See the testing guide. - [mix exagent.gen.agent](Mix.Tasks.Exagent.Gen.Agent.md): Generate a host-owned agent, tools, tests and a replayable Eval. - [mix exagent.gen.approvals](Mix.Tasks.Exagent.Gen.Approvals.md): Generate a reviewer inbox with an authenticated Phoenix chat installation. - [mix exagent.gen.live](Mix.Tasks.Exagent.Gen.Live.md): Generate the host-owned Phoenix chat after running `mix exagent.install`. The LiveView reads conversation events in bounded batches from its Server. - [mix exagent.install](Mix.Tasks.Exagent.Install.md): Install ExAgent conversation infrastructure in a Phoenix application. - Candidate API - [mix exagent.eval.capture](Mix.Tasks.Exagent.Eval.Capture.md): Run `mix exagent.eval.capture --run ID --suite NAME` to add a redacted case and cassette to an existing suite. The suite's `c:ExAgent.Eval.Suite.capture/1` callback authorizes and reads the source and supplies a redactor. Use `--fixtures DIR` to select the same fixture directory as replay. - [mix exagent.mcp.lock](Mix.Tasks.Exagent.Mcp.Lock.md): Capture a live MCP catalogue in `priv/exagent/mcp/.lock.json`. - [mix exagent.qualify](Mix.Tasks.Exagent.Qualify.md): Run seven small checks with stock ReqLLM and the model's automatic ExAgent profile. - [mix exagent.upgrade](Mix.Tasks.Exagent.Upgrade.md): Generate the pinned `ExAgent.Migration` for this ExAgent release.