Supported features and limits

View Source

This guide describes ExAgent 3.0.0. Its runtime targets are Elixir 1.18 / OTP 28 and Elixir 1.20 / OTP 29. The general model backend uses official ReqLLM 1.31. Applications can implement ExAgent.Model for a different adapter.

API stability

ExDoc groups modules under Stable API and Candidate API. Each public module has a stability label. A candidate API label beside a function or callback overrides its stable module's tier and applies to its default arities. The versioned inventory in priv/api-stability.exs is available in the source and package.

TierCompatibility
StableStrict SemVer. A breaking change requires a major release. This tier includes ExAgent, ExAgent.Server, ExAgent.Store and ExAgent.MCP.Client.
Candidate (experimental)Public APIs can break in a minor release with a documented migration. This tier includes ExAgent.Coordination.Composition, ExAgent.Coordination.Flow, ExAgent.Sandbox and ExAgent.Eval.Online.Durable.
InternalImplementation modules and hidden functions carry no compatibility guarantee. ExDoc omits them.

A candidate graduates after an application adoption trial and qualification of the same contract on its real backend. A candidate integration retains its tier when called through a stable module. The native OpenTelemetry adapter, versioned catalogue, chat view and reader, input-form helpers, guardrails, C7 deferred calls and recovery, shared budget adapters and subject erasure are stable. The stable Jobs.Durable.recovery/2 callback was exercised during a rolling deploy and with Oban Lifeline on a live provider request. Provider coverage follows the named profiles and the capability limits below. Upgrade guide

The stable installation path includes --chat, --model, --auth, --no-auth and --scope on mix exagent.install, all three generators and mix exagent.catalog.lock. The ExAgent calls emitted by the 3.0 generators remain compatible throughout 3.x. A breaking change to generated code requires a deprecation cycle or a rewrite provided by mix exagent.upgrade. The goldens check the generated application, host tests and Eval suite against the stable manifest, including Server.regenerate/2, Server.regeneration_target/1, Eval.Case.new/3 and Eval.equals/0.

The offline testing path covers ExAgent.Case, ExAgent.Testing, ExAgent.Fixture, core Eval cases, evaluators, results, reports and suites, and mix exagent.eval. The case, cassette and report formats are versioned. Tools.deftool/3 supports effect: with a default of :write. Use Tool.new/1 to declare a write tool's read-only reconcile: callback. An uncertain tool return can preserve reported usage. The callable receives RunContext.call_ref and the idempotency key from its first dispatch.

:catalog is stable for starting a Server, deciding an approval and defining a Jobs.Durable worker. An ExAgent.Catalog can be the first argument to ExAgent.resume/3 or resume_stream/3. The catalogue must supply the saved agent definition and bindings for the pending revision. Catalog.cast/1 recognizes a catalogue from a callback. Store.namespace/1 returns the effective namespace of a scoped Store.

ExAgent.Migration.up/1, down/1, current_version/0 and migrated_version/1 are stable. The unified PostgreSQL version sequence is append-only. Once a version is published, its DDL stays fixed in both directions. Put explicit versions in host migrations. The deprecated per-adapter helpers stay callable through 3.x and are scheduled for removal in 4.0. PostgreSQL upgrade

Stable surfaceCandidate functions, options, fields and variants
Tools and contextTool.new/1 with :reservation_cents or :max_heap_bytes and Continuation.ApprovalRequest.call_ref. Classifier guard variants in Capability and CodeMode's RunError.confirmed_program_steps.
Testing and EvalEval.judge/1, Eval.calibration/3, Eval.Case.from_run/2, Eval.Suite.capture/1, Eval.Suite.labels/0, scenarios, simulator output, workflow-specific evaluator options and the durable-child :delegate stub.
Models, messages and usageModelProfile.reasoning_binding and file_references, Message.Part.User.file_reference/4, Message.Response.citations and the citations/1 accessors on Message.Response and Result. Message.Usage.units and with_estimated_cost/2.
Limits and spendingPer-call :usage_limits, the agent's :spend_budget integration and its run errors, including {:usage_limit_exceeded, :budget_cents, {:retry_after_ms, wait}}. The shared account's threshold options, attribution labels and Telemetry events are candidate.
Permissions and steeringArgument predicates under :rules, Permissions.decide/3 and match_rule/3, and permission_rule on approvals and events. Server.steer_run/3 and :on_steering.
Catalogue and reconciliationCatalogue entries for candidate workflows and handoff policy bindings. :catalog for Judge, model reconciliation and effect retries. Read and model-preflight variants of retry_effect/4. Jobs.Durable.definition/1 and delivery_queue/2.
Continuation readsThe :timeline option on Continuation.get/3.
Chat and recoveryChild and Job :activities, the scheduled follow-up row, and the input and timer variants of a deferred call and its Chat summary. :call_ref and :wake_at on deferred calls and summaries. Frame3 :delegation_path on inbox items, Chat deferrals and events, and in the authorization target. Recovery's :follow_ups startup option and sweep field, and the :wake_timer and :deliver_follow_up authorizer actions. :cancel_follow_ups in Server.abort/2.
Erasure, Store, memory and diagnosticsErasure's :eval option and :follow_ups receipt field. Inventory entries for fork families, scheduled follow-ups, input and timer deferrals. Store.agent_key_in_namespace?/2, Store.retention_subject/3, Memory.erase_scope/2 and Store.Postgres.check_recovery_schema/1. Doctor's catalogue, model lifecycle and recovery checks.
MCP and telemetryMCP.Client with :tasks, :pinned, :on_drift or :connect_on_start, HTTP :authorization_required, MCP.Server.Plug with :protected_resource, and the :mrtr_approval server option. MCP form supply and :mcp_input_required are candidate variants of Continuation.supply_result/4. The :observability options on ExAgent and Server, native OTel :metrics and the provisional :service_tier attribute. The reasoning-prefix reset and embeddings events, catalogue diagnostic tags and GenAI attempt metadata are candidate.

Select the capability you need

CapabilityConfigurationBoundary
Tool permission by argumentPermissions.new!/1 with args: rulesText globs and candidate :command, :url and :path comparators apply to validated arguments in run, stream, MCP Server and C7. A persisted rule can resume on a compatible worker. Argument rules
Durable agent definition lockStable Catalog.fingerprint/1, mix exagent.catalog.lock and Doctor --check-catalog-lockThe generated chat parks delivery when a protected definition stays unavailable. Migration
Retry a conversation turnidempotency_key: on Server.send_message/3 or Server.steer/3 and Server.receipt/3Chat and Jobs notices share the receipt window. Admission and lookup have a configurable caller timeout. Recovery after a Server restart requires C7 and a retained atomic Store. Unified migration 1 includes Store SQL 5. Receipt example · Migration
Cancel a specific turnServer.turns/2 and Server.abort_run/3 with the reserved run_idLists queued, active, paused and blocked turns without content. C7 keeps a queued cancellation in the keyed receipt through its expiry. A confirmed finish retains its terminal. Cancellation with only model requests unconfirmed preserves accepted history. Reconciliation of a blocked cancellation emits the settled event. Cancellation
Stop a conversation ownerConversations.stop/3The acknowledgement covers the owner exit and cancellation of queued work with live keys. An unconfirmed stop can leave an admitted receipt. Check the key after reopening. Lifecycle
Drain a conversation managerConversations.drain/2Closes local admission, finishes the active turn and confirms queued cancellations before the owner exit. Drain setup
Offline capacity measurementsRun test/support/load_probe.exs in the source checkoutServer, stream, long runs, Frame3, ETS, MCP and event sinks. Load measurements
Portable public valuesModel settings, messages, snapshots, event export and Eval reportsRun admission and the history reader validate message fields and unique JSON keys. Text and map reports omit evaluator reasons by default. Migration
Image results from function toolsresult_mode: :multimodal, return {:content, parts}OpenAI Responses, Anthropic Messages and Gemini 3+ with image input. Tool example
Isolated code executionSandbox.tools/2 with a host-selected backend and scopeApproval, bounded text and optional image results. Docker provides local isolation. Queries can use the Job ID and report unavailable or timed-out lookups as tool errors. Sandbox guide
Runtime reads and chat historyServer and Session queries with timeout:, Server.history_page/2 and generated LiveViewBounded pages restore retained accepted finals from guarded Server snapshots. Plain conversations and conversations with a stream guard can show provisional drafts. The chat recovers pending admission keys stored in the current tab. Phoenix integration
Build a chat UIStable ExAgent.Chat, Chat.Reader and Chat.InputForm; candidate Chat.SSE and Chat.AISDKShared view state includes a failed turn diagnostic. SSE replays conversation state, C7 controls and activity. The AI SDK 7 encoder streams a root turn with text, reviewed summaries, tools and approvals across retained C7 attempts. HTTP and SSE
Stream AG-UI 1.0 eventsCandidate Chat.AGUIEncodes one root Server attempt with answer deltas, admitted tools, step state, C7 interrupts, observed activity and opt-in reviewed summaries. The Phoenix application handles admission, decisions and transport. AG-UI recipe
Livebook and AshCandidate path packages kino_exagent and exagent_ashNotebook rendering and chat for a trusted scope. Authorized Ash tools for selected public actions. Package setup
Process broker messages as durable agent jobsBroadway producer demand, Jobs.Durable and RateLimiterThe broker acknowledges confirmed durable admission. Provider admission happens in the worker. Broadway recipe
Bounded OTP controlsConversations.stop/3, Server attach/detach and demand ACK, Jobs.cancel/3, MCP.Server.close/4timeout: covers owner lookup and the caller's wait. Lost replies after dispatch leave the result unconfirmed. Runtime guide
Lazy conversation ownersConversations with max_activations:, max_activation_waiters: and factory_timeout:One cold activation per key, manager and node. The manager bounds retained waiters and factory work. A caller's deadline covers lookup, activation and owner retry. Initialized owners bypass the cold activation limits. Runtime guide
Generated chat on connected replicasregistry: :global on each Conversations manager and a shared PostgreSQL Store with durable C7LiveView attaches to the registered owner and restores confirmed turns from PostgreSQL after an owner stops. Replica rehearsal
Demand deliveryServer.attach/3, Server.events_since/3 and Server.ack_events/4One pending notice per attached reader, with event and byte limits per batch. Acknowledgement follows application of the batch or the recovery page. Demand reads
Correct a live runServer.steer_run/3 or :on_steering and Steering.correct/2FIFO at a fresh model step. Volatile roots and explicitly addressed children. Runtime guide
Installation diagnosticsmix exagent.doctor --model provider:model --jsonThe local catalogue supplies model retirement warnings. The running host can check PostgreSQL Store schema with --check-store, C7 headers with --check-run-headers, durable Jobs with --check-jobs and shared quota with --check-quota. Troubleshooting
Executable approval tutorialsRun examples/supervised_approval.exs or open examples/durable_approval.livemdThe offline script restores a supervised conversation and resumes its reserved run. The notebook shows an edited approval, an owner crash, one publication and the Budget balance. Durability
Tools and streaming in one lineExAgent.new(model: "anthropic:claude-sonnet-5-5", tools: tools)The provider route selects the profile. Invalid argument envelopes block the batch before execution. Buffered Responses preserves the original JSON for duplicate-key checks. Argument envelope
Additional Chat Completions profiles:chat_tools_v1 on Ollama, LM Studio, vLLM, Groq, DeepSeek, Mistral and xAIHTTP and SSE loopback qualified with stock ReqLLM 1.31.0, including plain thinking. Ollama approval and resume passed on ETS and PostgreSQL. Live P1 on Inkling-2-Mini via the :vllm route on a llama.cpp server recorded 200/200 valid envelopes and matching tool receipts, 0/200 exact final answers and 3/7 qualify cases. Cerebras stays on :text_v1 because stock rewrites the wrapped argument schema. Local setup · Profile details
Azure OpenAI toolsChat Completions with :chat_tools_v1 and Responses with :openai_responses_v1Loopback qualified, pending G3. Chat approval and resume were exercised on ETS and PostgreSQL. Azure setup
Vertex AI toolsGemini with :gemini_v1 and Claude with :anthropic_messages_v1Loopback qualified, pending G3. Stock OAuth and the project and region routes were exercised over HTTP and SSE. Vertex setup
Explicit credentials or endpointModels.ReqLLM.new/1 or Model.resolve/2 with api_key:The instance supplies the key required by its provider. Ollama's stock route uses no key.
OpenRouter tool routingprovider: :openrouter, bounded openrouter_provider:Provider routing, reasoning mode and effort are bound to the conversation.
Amazon Bedrock Claude toolsCatalogue tool-enabled Claude models select :anthropic_messages_v1 on InvokeModel.Loopback qualified, pending G3. The fixture verifies two parallel IDs, AWS EventStream, and approval and resume on ETS and PostgreSQL. Stock keeps the first occurrence of duplicate argument keys. InvokeModel evidence
Amazon Bedrock Converse text:text_v1 with buffered text.Stock Converse merges some parallel calls and loses execution ownership. Tool requests fail before transport. Converse evidence
Reasoning with toolsreasoning_mode: :enabled on Anthropic, OpenAI Responses, OpenRouter or GeminiCompatible signed or encrypted reasoning is replayed unchanged. Prefix-bound models report resets on incompatible input. With Anthropic or OpenRouter thinking, tool choice is auto. :disabled does not promise zero thinking. Prefix contract
Assistant narrationOpenAI Responses, Part.Text.phase and :commentary_deltaNative history retains the phase. G3 qualified commentary with tool calls and replay in buffered and streamed runs. A commentary-only terminal is covered by loopback and still needs live evidence. Narration
Tool timeouts, heap and exclusive toolsExAgent.Tool fields timeout, max_heap_bytes and concurrencyOwned tasks apply tool-specific thresholds. Exclusive calls run alone and results keep call order. Execution controls
Chain tools in one turnCandidate ExAgent.Tool.CodeMode capabilityLive sync and streaming runs chain directly offered JSON tools with per-step policies, limits and traces. Use ordinary tool rounds for a persisted chain. Program guide
Tool schedulingmax_concurrent_tools: on the agent, run or workflow stepThe option caps active calls per parallel group. Exclusive calls run alone. Results keep call order. A durable workflow also budgets the entire batch before dispatch. Workflow tool batches
Tool result schemasTool.new(result_schema: ...)JSV checks the effective JSON value before previews or offload, including recovery of a raw confirmation. Mismatches become confirmed tool errors. Result contract
Tools that require external completionTool.new(requires_deferral: true, ...)Frame3 routes deferred results from the root and its delegates through the root inbox. Volatile runs and Composition/Flow leaves reject required deferrals before dispatch. Deferred results
Tool output limits and repeated callsTool.OutputLimit, Tool.RepeatGuard capabilitiesResults over :max_payload_bytes (1 MiB by default) still fail; repeated-call notes never block.
Large tool results by referenceTool.OutputLimit.new(offload: {module, handle}) with Tool.ResultStore.ETS or Tool.ResultStore.PostgresThe originating run can page or search live references. ETS shares quotas per instance. PostgreSQL shares quotas per host scope and keeps results across application restarts. Setup and cleanup
Context editingCompaction.ClearToolResults, optionally followed by Compaction.SummaryRequest-only markers preserve references. Set preserve_signed_prefix: true on Summary for the same provider boundary.
Provider context overflowExAgent.new/1 option :context_overflowOne separately admitted retry per live run, preserving signed history and steering. Durable workflow admission checks all declared steps. Configuration and stream/durable limits
Background tools and sub-agentsExAgent.Jobs with background/2, agent_tool/1, tools/2Volatile jobs run outside the starting run's deadline, limits and cancellation. Both backends return Jobs.Job snapshots and can deliver metadata-only notices while readers wait for results. Scoped Jobs
Per-execution budgetusage_limits: on a direct run, stream, resume or Server turnThe lowest threshold applies alongside the agent and saved C7 limits. Strict accounting takes precedence. Usage and spend
Shared tenant spendStable UsageLimits.Budget with its ETS or PostgreSQL adapterThe candidate agent option :spend_budget reserves funds for each model attempt, Media request and separately priced tool. PostgreSQL keeps unconfirmed holds across windows and supports reconciliation. Setup
Durable background agents and toolsOptional Oban and PostgreSQL, Jobs.Durable.status/2 and wait/3 (positive milliseconds)Atomic admission and wake, per-job budget, qualified terminal usage and cost, C7 in exagent_snapshots and deduplicated Server notices. A certified quota wait has Job.retry_at. Held claims have a quota diagnostic for recovery. Setup and recovery
Large tool catalogues on demandTool.Search capability with deferred: toolsKeyword search, not semantic; hiding a tool is not a permission.
Final answer checks and reviewersoutput_validators:, ExAgent.JudgeRetries share :output_retries. A pure, versioned validator chain can certify a durable Flow branch's veto. Output validators
Blocking guardrailsExAgent.Guardrail via :capabilitiesLive runs and root agent continuations support input, stream windows, validated output and both function-tool stages. Withheld tool returns keep effect receipts. Root C7 certifies stream vetoes, tool checks and final delivery. Composition and Flow support both tool stages. Guardrails
Consulting a stronger modelExAgent.Tool.AdvisorText transcript only; the advisor has no tools.
Measuring agent qualityExAgent.Eval with Eval.Report.compare/2 and candidate Eval.calibration/3Baseline gates require comparable case pairs with evidence and exclude attempts with grading errors. grading_coverage counts attempts with emitted grades. Testing guide
Sampled production evaluationEval.Online.offer/3 with an optional Jobs.Durable grading backendOffers confirmed run, Server, Session and C7 terminals to a bounded queue. Content is off by default. C7 uses an authorized source Store. Durable grading binds the evaluator version and reuses its export reservation across deadline changes. Versioned results and OTLP dispatch share the evaluation ID. The callback acknowledges dispatch with :ok. Online evaluation
Testing application toolsExAgent.Fixture with :tool_stubs, ExAgent.Testing.with_tool_stubs/2Strict per-run substitutes for tools and named output functions, including delegated children, streams and durable workflows. Testing guide
Production regression casesCandidate Eval.Case.from_run/2 and stable ExAgent.CaseProject a settled agent terminal with an explicit redactor. Use TestModel scripts, strict tool substitutes and cassettes in CI. Assertions cover tools, output, qualified usage and cost, and events. Testing guide
Exact stream replayExAgent.Fixture or Eval :fixtures with :stream_eventsCassette v1 matches by path, fingerprint and local ordinal. Opt in to bounded normalized events before the validated terminal. Testing guide
Multi-turn conversation evalsEval.Scenario with scripted C7 review or Eval.Simulator for model-driven usersRepeats score the whole trajectory. JSON v4 keeps turn metadata and separate simulator usage. Script a conversation · Simulate the user
Repeat and tool argument scoringEval.Report, mix exagent.eval --min-pass-all and Eval.tool_arguments/1Case and suite pass@k and pass^k, replay gating and per-field credit. Eval testing
Long-term memoryExAgent.Memory.tool/2, capability/2 and preload/3 with ETS or PostgresTool reads by default. The preload byte limit covers the whole block. Use a read-only tool for operator guidance. Durable Composition and Flow support tool reads. Memory
Run checklist and mounted filesExAgent.Plan.capability/1, ExAgent.Workspace.capability/1Run-local plan and scratch, including checklists restored per Composition or Flow node. Scoped Memory, optional POSIX directory and read-only result references. Plan and workspace
Reusable compaction summariesCompaction.Summary with memo: Compaction.MemoIn-memory and bounded; a lost memo costs one extra summary.
Native JSON Schema outputoutput_mode: :native on an OpenAI Chat or Responses model, or an Anthropic model whose catalogue declares json.schemaOpenAI receives a non-strict schema. Anthropic constrains decoding with a reduced copy. JSV checks the full schema locally. OpenRouter and Gemini support tool and prompted output.
Structured output schemasPass an object schema map for a string-keyed map result. Declare {:ecto, "~> 3.14 and >= 3.14.3"} for Ecto struct resultsMap output requires object data and at most 64 KiB of schema per branch. Both support tool unions, output functions, partial previews and durable schema identity. JSON map output
Prompted JSON outputoutput_mode: :prompted on any model, including :text_v1The schema travels in a request instruction. JSV validates the answer and Ecto modules additionally apply their changeset. Durable composition steps refuse the instruction projection.
Images and documentsExAgent.run(agent, [%{type: "text", ...}, %{type: "image", ...}])PDFs need a document-capable transport. Input attachments count toward history. The host checks files before building the prompt. Attachment boundaries
Audio attachmentsModel.profile(model).supports_audio_input and a Base64 file partReqLLM enables it on :gemini_v1 with catalogue audio input. Each clip uses a supported MIME, is limited to 1 MiB decoded and spends the history budget. Buffered, streamed and C7 replay are verified offline. Audio input
Provider file referencesMessage.Part.User.file_reference/4 and Model.profile(model).file_referencesGemini accepts hosted PDFs. G3 qualified hosted PDF, plain text and PNG in buffered and streamed Anthropic Messages with C7 replay on 2026-11-26. Every Fallback leaf must support the reference. Gemini · Anthropic
Buffered media operationsMedia.transcribe/3, speak/3, generate_image/3, ocr/3 and tools/1Candidate API. G3 qualified Whisper transcription and preprocessing, TTS-1 as a run-scoped tool and GPT-Image-2 on 2026-11-26. Strict WAV decoders need finalized lengths on some TTS-1 files. Vertex OCR has loopback evidence and needs regional credentials for a live run. Media qualification
Embeddings and rerankEmbeddings.embed/3, rerank/4 and tools/1Candidate API. Quota and spend admission, qualified usage and run-scoped artifacts. One stock request per call. Embeddings and rerank
Decision classifiersExAgent.Classifier, Classifier.ReqLLM, Classifier.NxServingCandidate API. Direct decisions, live guardrails, Eval grading and Flow routing from a confirmed label. The classifier tool uses C7 effect receipts. OpenAI and Gemini loopback coverage. Decision classifiers
Response citationsMessage.Response.citations/1, Result.citations/1Bounded source references, excerpts and verifiable ranges. Citation profiles
Prompt cachingModels.ReqLLM.new(prompt_cache: ...)OpenRouter cache_control breakpoints, ReqLLM's Anthropic breakpoints or an OpenAI cache key; other providers reject it.
Retries and fallback modelsModels.Fallback.new(models: [...])The first model stream event commits the route unless it is a retryable error. Cross-model history needs foreign_history: :portable. The group can opt in to route around quota refusals.
Local provider quotasHost-supervised ExAgent.RateLimiter and agent :rate_limiterPer-node FIFO for RPM, estimated TPM, concurrency and cooldowns. Registry names allow dynamic per-tenant quotas. Configuration
Provider quotas across replicasRateLimiter.Adapter with optional RateLimiter.PostgresOne scope and policy per account across replicas. Expiring per-attempt permits, idempotent settlement, and bounded background retries after an unacknowledged report. Admission refuses immediately when quota is full. Configuration
Final answer at the step limitExAgent.new(on_max_steps: :final)The last step cannot call function tools; a call there is not executed.
Closing request near a usage limitExAgent.UsageLimits.WrapUpCandidate capability for buffered, streamed and standalone C7 runs. It offers a final answer without function tools. Closing request
Automatic review of a persisted approvalExAgent.Judge.ApprovalCandidate API. Records an authorized classifier or text judge decision through the C7 approval CAS. Automatic review
Deterministic local runsmodel: "test" or %Models.Test{script: ..., profile: ...}Usage defaults to unknown. Supply a usage fixture or script exact chunks, cumulative usage, tools and typed failures. Testing guide
Model terminalsMessage.Response.finish_reasonNew replies require an explicit success finish. Incomplete finishes are failed runs with qualified usage. Model terminals
SkillsExAgent.new(skills: ExAgent.Skills.from_dir!(dir))Agent Skills SKILL.md subset; trusted host content; scripts are never executed.
Stateful conversationsAgentSupervisor and ServerQueue admission is volatile; the application handles backpressure.
Shared-state coordinationSession, Composition, FlowTrusted host definitions, explicit ownership and bounded branches. A workflow can reconcile a lost model response with the saved leaf binding. Continuation.get/2 supplies a terminal read reference. Workflow recovery
Run a template over a listFlow.new(kind: :map, template: step, ...)A durable manifest with unique item IDs and a configurable item cap of up to 32. Manifest example
Retry a lost Flow model requestContinuation.retry_effect/4 with a recovered branch bindingThe operator accepts possible duplicate cost. The trusted leaf and codec validate the saved request. A retry needs another request slot. Confirmed branch outcomes stay in the journal. Workflow recovery
Recover a tool effectTool.effect, Continuation.retry_effect/4 and reconcile_tool/4Agent, Composition and Flow retain the effect class. An authorized host can retry a read or look up a write's receipt by the original key. Effect recovery
Model-directed handoffExAgent.Handoff, Session.chat/4A specialist answers within the same run in sync, stream, Server and volatile Session. Root C7 and durable Jobs resume a committed handoff under its bound destination policy. A per-destination grant allows bounded audio on a capable model. Handoff guide
Conversation checkpointsStore.ETS or Store.PostgresTagged snapshot inventories report backend and decoding errors. ETS is ephemeral. PostgreSQL requires the application's Repo and database lifecycle.
Upgrade a PostgreSQL installationStable ExAgent.Migration. Candidate mix exagent.upgrade and Store.finalize_format/2Apply the versioned schema. When a future release adds a format level, deploy compatible readers before finalizing it. Upgrade guide
Erase a scoped subjectStable ExAgent.Retention.erase/3 and Retention.inventory/2ETS and PostgreSQL fence Server, Session and durable workflow writes. The ordered receipt reports local deletion, retention and provider references. The host maps retained IDs to associated stores. Erasure guide
Custom Store contract testsuse ExAgent.Store.ContractCase in ExUnitChecks snapshots, namespace isolation, advertised CAS and optional Session and header callbacks. Use Store.agent_key_in_namespace?/2 in a header callback. Store guide
Segmented PostgreSQL checkpointssegments: true on the Store descriptorOpt-in incremental writes can reuse unchanged history fragments on a guarded finish. Reads assemble and validate the full record. Migration · Load measurements
Browse saved conversation snapshotsStore.list_agent_headers/2Supervised ETS and PostgreSQL schema v2 page standalone snapshots. The host inventories chats with continuations. Store guide
Browse persisted agent runsContinuation.list_runs/2 and Continuation.get/2PostgreSQL pages require unified migration 1, which includes Store SQL 4. Scoped pages read revision headers. Details include :continuation for a ready or approved run and :lease_until for a claimed run. Add diagnostics: true for the journal body. Store guide
Deploy versioned definitions and keep chat historyStable ExAgent.Catalog, Continuation.census/2 and Continuation.adopt/4Exact saved bindings and a header-only census scoped to ETS or PostgreSQL. Authorized adoption binds the next turn of a settled conversation. Doctor checks the configured catalogue. Versioned deployments
Supervise recoveryStable Continuation.Recovery, Recovery.Policy and Continuation.reconcile_tool/4 with a scoped ETS or PostgreSQL StoreOne page per interval. Built-in or custom decisions require the regular authorizer. The host resumes conversations. Recovery setup
Recover an Oban jobJobs.Durable.recovery/2 and Oban LifelineAn opted-in, version-matched static Frame3 job continues via its persisted delivery. Unconfirmed writes require evidence from their declared lookup. Jobs runbook
Inspect ExAgent in LiveDashboardCompanion package exagent_dashboard 0.1.0 in the checkoutBounded refreshes, content-free events, usage provenance and optional Store inventories with per-read namespace authorization. Runtime guide
Persisted approvalContinuation, a scoped Store, bindings and an authorizerPostgreSQL writes require unified migration 1, which includes Store SQL 4. Live writers renew claims. Server.resume/3 checks the exact approved reference. Uncertain external effects need explicit reconciliation. Continuations
MCP toolsExAgent.MCP.Client with stdio or Streamable HTTPCatalogue reuse and concurrent lookups follow the current identity and peer TTL. Continuation-bound clients discover live schemas. Calls yield text, opt-in images or validated maps. A lost acknowledgement gives :result_unconfirmed. HTTP supports a Finch HTTP/1 pool or direct HTTP/1.1 with a credential callback. W3C tracing is opt-in. Catalogue caching · MCP credentials and tracing · MCP receipts
MCP HTTP authorizationMCP.Client, :headers_provider, candidate MCP.OAuth and optional MCP.Server.Plug :protected_resourceThe client returns Bearer challenges. The Plug serves protected resource metadata and sends challenges based on the host verifier. The OAuth metadata helper requires advertised PKCE S256 support. Client · Server
MCP Tasks (candidate)MCP.Client.Tasks on a client with tasks: true and HTTP 2026-07-28Server-directed dispatch, status and result by ID, and cooperative cancellation. Frame3 reconciles the stored deferral through its root with the same endpoint and principal. MCP Tasks
Publish tools and agentsExAgent.MCP.Server, optional ExAgent.MCP.Server.PlugDefault revision 2025-06-18 with sessions, progress and opt-in client approvals. Optional stateless 2026-07-28 with routing header checks and synchronous tools. Both serve static resources and prompts, and support a deadline-bound catalogue policy per principal. MCP · Catalogue policy
TracesNative OpenTelemetry GenAI v0.1.0 and the optional ReqLLM bridgeThe host owns SDK and exporter. Content is off by default. Count Fallback attempts by the dispatch attribute.
C7 attempt linksOpenTelemetry.new(link_continuations: true) on both attemptsA confirmed pause can keep the recording span's IDs until the next claim. Traced attempts
Export UI eventsExAgent.Event.strip_content/2Clears classified content and host metadata. Keeps the selected :run_finished output branch and opaque tool invocation references. Select top-level metadata with :metadata_keys. Runtime guide
Framework metricsExAgent.Telemetry.metrics/0 with the optional :telemetry_metrics dependencyBounded counts and latency summaries for LiveDashboard and reporters, including each dispatched model leaf. Reporters
GenAI metricsOpenTelemetry.new(metrics: [...]) with the optional experimental meter SDKAgent, workflow, tool and inference durations, plus separate histograms for available input and output totals. The optional ReqLLM bridge adds stream timing. Metrics setup
Terminal observersCapability after_run/2Receives a result or run error per closed attempt, including durable pauses. Each observer has a separate process and a 250 ms budget.
Structured stream previews{:output_partial, %{step: step, output: draft}}Ecto casts partial structs. JSV checks partial maps with required disabled. Terminal validation checks the complete answer.
MetricsOpt-in ReqLLM bridge with experimental API/SDK 0.6 and a readerFixed instruments and bounded model labels; metric destination is separate from trace ingestion.

Capability declarations configure admission; they cannot prove a particular provider follows the contract. Verify your exact model, endpoint, routing and options before relying on tools, streaming or native output in production. Unrepresented reasoning, modality or provider-block combinations reject explicitly instead of silently falling back.

Persistent execution by frame

The table covers C7 admission. Each supported cell still depends on the applicable model profile, Store, host policy and journal evidence.

CapabilityAgent and Server (Frame 3)Agent delegate (Frame 3)Composition (Frame 10)Flow (Frame 11)
Static model-directed handoffYesNoNoNo
Deferred tool resultYesYesNoNo
Pure input guardrailYesNoNoNo
Pure stream guardrailYesNoNoNo
Pure final output guardrailYesNoNoNo
Pure tool-input and tool-output guardrailsYesNoYesYes
Tool guardrails alongside durable delegationNoNoYesYes
Tool guardrails with custom tool rehydrationNoNoNoNo
Inline classifier guardrailNoNoNoNo
Classifier as a journaled toolYesYesYesYes
Tool program (code mode)NoNoNoNo
Shared spend budget on an agent definitionYesYesYesYes
Provider context-overflow recoveryNoNoNoNo
Plan with its journal-backed projectionYesYesYesYes
Other rewrites of model request historyYesYesNoNo
Changes to bound tools or model settings between requestsYesYesNoNo
Prompted JSON map outputYesYesNoNo
Native JSON map or map output with free textYesYesNoNo
Live steeringNoNoNoNo
Capability-supplied model answer before dispatchNoNoNoNo
Capability-supplied answer after model failureNoNoNoNo
Operator-supplied tool outcome via reconcile/5YesYesNoNo
Declared tool lookup via reconcile_tool/4YesYesYesYes
Retry of a pending read toolYesYesYesYes
Manual retry of a write with accepted duplicate riskYesYesNoNo
Retry of a lost model requestYesYesNoYes

The host supplies the bound handoff catalog and authorizes administrative commands. A declared write lookup uses reconciliation. Retry requires an eligible uncertain effect and a new claim before dispatch. A structural workflow's read retry requires a pending dispatch in an active leaf batch. Workflow leaves inherit a declared spend budget through the execution scope. The durability guide explains these conditions.

Citation profiles

ProfileOffline citation evidenceQualification
:openai_responses_v1Buffered and streamed url_citation and file_citation retain the URL or attachment ID when the response has no identified commentary. Stock annotation flattening leaves answer ranges unset.Offline, pending live qualification
:gemini_v1Buffered and streamed grounding web sources. Stock's retained grounding segment can supply a checked range in the leading part.Offline, pending live qualification
:anthropic_messages_v1The normalized-source fixture retains document index, page, character or block coordinates, and excerpt. The native Messages fixtures demonstrate stock 1.31's loss of document citations in both modes.Offline, pending live qualification and upstream citation retention

These fixtures cover response shapes and the local codec. Read the typed citations in Read citations from a response. The source checkout has opt-in cases for all three profiles in the --suite citations runner. Live citation evidence is pending.

Accounting and effects

Host request/tool counters count admissions. Token values have declared normalized or reported quality; cost is an estimate in cents. Missing usage or price is unknown rather than zero. A limit checked after a response is not an invoice ceiling for work already in flight. Parent totals include their children. If a child owner dies during a request, the ledger keeps the observations received so far and reports partial coverage for that request.

A timeout, cancellation, lost storage acknowledgement or process death cannot prove an external effect did not happen. Checkpoint retry saves the same state; it does not rerun a model or tool. For an uncertain write, reconcile the actual result before granting another execution attempt. A declared read can receive a separate recovery attempt.

Resource boundaries

Run deadlines and request/tool limits control owned admission. Host response and history retention limits apply after stock decoding; there is no upstream hard RAM bound before materialization. Compaction reduces the next request context, not the canonical persisted history. Arbitrary application callbacks and external systems have their own resource and cancellation contracts.

Flow permits at most 32 branches/concurrent workers, separate 64 KiB branch/merge JSON bounds and an 8 MiB journal. Fail-fast cannot undo a sibling's completed effect. Collect continues eligible siblings after a confirmed pre-dispatch refusal for usage, step deadline, provider quota or maximum steps. See Coordination for construction and failure policy.

Observability transport

Langfuse and Opik receive native spans through the application's OTLP exporter. Default empty input/output previews indicate disabled content capture; inspect attributes for IDs, status and accounting. Exporter callback success and an HTTP 2xx do not prove every span was retained by the destination.

Direct native OTLP HTTP can retain exporter-owned profiles, atoms and active sockets after timeout/shutdown. For bounded transport ownership, use the disposable VM or Collector recipe. A finite processor restart budget limits recreation but does not repair cleanup. Size the queue for sampled physical attempts, including Fallback retries. See Observability for authentication, privacy and lifecycle.

Dependency diagnostics

Some stock TOML, WebSockex and gproc dependencies emit compiler diagnostics. Functional operation and a warning-free dependency graph are different properties. ExAgent uses official dependency releases; applications should review their chosen graph and avoid treating suppression as a repair.