# nous v0.21.1 - API Reference

## Modules

- [Nous.Eval.Scoring.Prepared](Nous.Eval.Scoring.Prepared.md): A scorer ready to run: its `Nous.Eval.Scorer.Spec`, the config its
`c:Nous.Eval.Scorer.init/1` returned, its `id` and its `kind`. Built by
`Nous.Eval.Scoring.init/1`.

- [Nous.Hook.Decision](Nous.Hook.Decision.md): Configuration for a `:decision` hook: a `Nous.DecisionModel` classifies the
hook payload, and per-question probability bands turn the answers into a
verdict.

- Core API
  - [Nous](Nous.md): AI agent framework for Elixir with multi-provider LLM support.
  - [Nous.Agent](Nous.Agent.md): Primary interface for AI agents.
  - [Nous.Agent.Behaviour](Nous.Agent.Behaviour.md): Behaviour for agent implementations.
  - [Nous.Agent.Callbacks](Nous.Agent.Callbacks.md): Callback execution for agent events.
  - [Nous.Agent.Context](Nous.Agent.Context.md): Unified context for agent execution.
  - [Nous.DSL](Nous.DSL.md): Define a named agent in a script, function or IEx session. The block returns
a regular `Nous.Agent`.
  - [Nous.LLM](Nous.LLM.md): Simple LLM API for direct model calls without agents.
  - [Nous.ReActAgent](Nous.ReActAgent.md): ReAct (Reasoning and Acting) Agent wrapper with built-in planning and todo management.
  - [Nous.RunContext](Nous.RunContext.md): Context passed to tools and dynamic prompts during agent execution.
  - [Nous.Transcript](Nous.Transcript.md): Lightweight conversation history compaction.

- Agent Implementations
  - [Nous.Agents.BasicAgent](Nous.Agents.BasicAgent.md): Default agent implementation with standard tool-calling behavior.
  - [Nous.Agents.ReActAgent](Nous.Agents.ReActAgent.md): ReAct (Reasoning and Acting) Agent behaviour implementation.

- Agent Execution
  - [Nous.AgentRunner](Nous.AgentRunner.md): Executes agent runs with tool calling loop.
  - [Nous.AgentServer](Nous.AgentServer.md): GenServer wrapper for Nous agents with PubSub integration.

- Model Configuration
  - [Nous.Fallback](Nous.Fallback.md): Fallback model chain support.
  - [Nous.Model](Nous.Model.md): Model configuration for LLM providers.
  - [Nous.ModelDispatcher](Nous.ModelDispatcher.md): Dispatches model requests to the appropriate provider implementation.
  - [Nous.Router](Nous.Router.md): Pre-dispatch model routing: pick the chat model for a request before it is
built.
  - [Nous.Router.DecisionModel](Nous.Router.DecisionModel.md): A `Nous.Router` that asks a `Nous.DecisionModel` (Clef, Clef-Flash, ...)
which model tier should answer, LiteLLM-style.

- Decision Models
  - [Nous.DecisionModel](Nous.DecisionModel.md): Non-generative **decision models**: a state plus typed questions in,
probabilities out.
  - [Nous.DecisionModel.Answer](Nous.DecisionModel.Answer.md): The answer to one `Nous.DecisionModel.Question`.
  - [Nous.DecisionModel.Backend](Nous.DecisionModel.Backend.md): Behaviour for decision-model backends, the extension point behind
`Nous.DecisionModel`.
  - [Nous.DecisionModel.Backend.LlamaCpp](Nous.DecisionModel.Backend.LlamaCpp.md): In-process decision backend on `LlamaCppEx.Decision` (llama.cpp's
`/v1/systemone`, ported into the NIF): Clef / Clef-Flash, OpenJev, Laya and
the other decision GGUFs, with no server.
  - [Nous.DecisionModel.Backend.OpenAIDecisions](Nous.DecisionModel.Backend.OpenAIDecisions.md): HTTP backend for OpenAI's **Decisions API** (`POST /v1/decisions`), served
by OpenAI (`gpt-6-luna`) and by vLLM.
  - [Nous.DecisionModel.Backend.SystemOne](Nous.DecisionModel.Backend.SystemOne.md): HTTP backend for the TypeSafe-compatible **System One** API
(`POST /v1/systemone`), plus a Cloudflare **Workers AI** preset.
  - [Nous.DecisionModel.Defang](Nous.DecisionModel.Defang.md): Neutralises chat-template special tokens in decision-model state.
  - [Nous.DecisionModel.Question](Nous.DecisionModel.Question.md): One typed question for a `Nous.DecisionModel`.
  - [Nous.DecisionModel.Result](Nous.DecisionModel.Result.md): The result of `Nous.DecisionModel.decide/4`.

- Providers
  - [Nous.Provider](Nous.Provider.md): Behaviour for LLM provider implementations.
  - [Nous.Providers.Anthropic](Nous.Providers.Anthropic.md): Anthropic Claude provider implementation.
  - [Nous.Providers.Custom](Nous.Providers.Custom.md): Custom provider for any OpenAI-compatible endpoint.
  - [Nous.Providers.Gemini](Nous.Providers.Gemini.md): Google Gemini provider implementation.
  - [Nous.Providers.HTTP](Nous.Providers.HTTP.md): Shared HTTP utilities for all LLM providers.
  - [Nous.Providers.HTTP.JSONArrayParser](Nous.Providers.HTTP.JSONArrayParser.md): Stream parser for JSON array responses.
  - [Nous.Providers.LMStudio](Nous.Providers.LMStudio.md): LM Studio local provider implementation.
  - [Nous.Providers.LlamaCpp](Nous.Providers.LlamaCpp.md): LlamaCpp NIF-based provider for local LLM inference.
  - [Nous.Providers.Mistral](Nous.Providers.Mistral.md): Mistral AI provider implementation.
  - [Nous.Providers.OpenAI](Nous.Providers.OpenAI.md): OpenAI-specific provider implementation.
  - [Nous.Providers.OpenAICompatible](Nous.Providers.OpenAICompatible.md): Generic OpenAI-compatible provider implementation.
  - [Nous.Providers.SGLang](Nous.Providers.SGLang.md): SGLang provider implementation.
  - [Nous.Providers.VLLM](Nous.Providers.VLLM.md): vLLM provider implementation.
  - [Nous.Providers.VertexAI](Nous.Providers.VertexAI.md): Google Vertex AI provider implementation.

- Messages &amp; Streaming
  - [Nous.Message](Nous.Message.md): Represents a message in a conversation with an AI model.
  - [Nous.Message.ContentPart](Nous.Message.ContentPart.md): Represents a part of message content supporting multi-modal inputs.
  - [Nous.Messages](Nous.Messages.md): Utilities for working with conversations and message lists.
  - [Nous.Messages.Anthropic](Nous.Messages.Anthropic.md): Anthropic format message conversion.
  - [Nous.Messages.Gemini](Nous.Messages.Gemini.md): Gemini format message conversion.
  - [Nous.Messages.OpenAI](Nous.Messages.OpenAI.md): OpenAI format message conversion.
  - [Nous.StreamNormalizer](Nous.StreamNormalizer.md): Behaviour for stream chunk normalization.
  - [Nous.StreamNormalizer.Anthropic](Nous.StreamNormalizer.Anthropic.md): Stream normalizer for Anthropic API.
  - [Nous.StreamNormalizer.Gemini](Nous.StreamNormalizer.Gemini.md): Stream normalizer for Google Gemini API.
  - [Nous.StreamNormalizer.LlamaCpp](Nous.StreamNormalizer.LlamaCpp.md): Stream normalizer for LlamaCppEx `%ChatCompletionChunk{}` structs.
  - [Nous.StreamNormalizer.OpenAI](Nous.StreamNormalizer.OpenAI.md): Default stream normalizer for OpenAI-compatible providers.
  - [Nous.StreamNormalizer.ToolCallAccumulator](Nous.StreamNormalizer.ToolCallAccumulator.md): Reassembles partial tool-call fragments emitted by `Nous.StreamNormalizer`
into the final list shape that `Nous.Messages.from_provider_response/2`
produces for the non-streaming path.

- HTTP Backends
  - [Nous.HTTP.Backend](Nous.HTTP.Backend.md): Behaviour for non-streaming HTTP backends.
  - [Nous.HTTP.Backend.Hackney](Nous.HTTP.Backend.Hackney.md): `Nous.HTTP.Backend` implementation backed by `:hackney`.
  - [Nous.HTTP.Backend.Req](Nous.HTTP.Backend.Req.md): `Nous.HTTP.Backend` implementation backed by `Req` (which uses `Finch`
under the hood).
  - [Nous.HTTP.Buffer](Nous.HTTP.Buffer.md): Transport-level stream buffer primitives shared by the
`Nous.HTTP.StreamBackend` implementations.
  - [Nous.HTTP.StreamBackend](Nous.HTTP.StreamBackend.md): Behaviour for SSE / chunked streaming HTTP backends.
  - [Nous.HTTP.StreamBackend.Hackney](Nous.HTTP.StreamBackend.Hackney.md): `Nous.HTTP.StreamBackend` implementation backed by `:hackney` in
`[{:async, :once}]` mode for strict pull-based backpressure.
  - [Nous.HTTP.StreamBackend.Req](Nous.HTTP.StreamBackend.Req.md): `Nous.HTTP.StreamBackend` implementation backed by `Req` (Finch
underneath).

- Tool System
  - [Nous.MCP](Nous.MCP.md): Discovers selected MCP tools under a run's current authorization.
  - [Nous.MCP.Adapter](Nous.MCP.Adapter.md): Client-library boundary for MCP discovery and invocation.
  - [Nous.MCP.Adapters.Anubis](Nous.MCP.Adapters.Anubis.md): MCP adapter for a host-supervised `Anubis.Client` from the optional
`{:anubis_mcp, "~> 2.2.0"}` package.
  - [Nous.MCP.Connection](Nous.MCP.Connection.md): Resolves an authorized MCP client for the current run.
  - [Nous.Tool](Nous.Tool.md): Tool definition for agent function calling.
  - [Nous.Tool.Behaviour](Nous.Tool.Behaviour.md): Behaviour for tool implementations.
  - [Nous.Tool.ContextUpdate](Nous.Tool.ContextUpdate.md): Structured context updates from tools.
  - [Nous.Tool.Registry](Nous.Tool.Registry.md): Stateless helpers for building and querying tool collections.
  - [Nous.Tool.Schema](Nous.Tool.Schema.md): Declarative DSL for defining tool schemas.
  - [Nous.Tool.Validator](Nous.Tool.Validator.md): Validates tool arguments against JSON schema.
  - [Nous.ToolCall](Nous.ToolCall.md): Field access for tool-call maps whose keys may be atoms or strings.
  - [Nous.ToolExecutor](Nous.ToolExecutor.md): Executes tool functions with retry logic, timeout handling, and error handling.
  - [Nous.ToolSchema](Nous.ToolSchema.md): Convert tools to different schema formats for various providers.

- Structured Output
  - [Nous.OutputSchema](Nous.OutputSchema.md): Structured output support for Nous agents.
  - [Nous.OutputSchema.Validator](Nous.OutputSchema.Validator.md): Behaviour for structured output validation.

- Research Tools
  - [Nous.Tools.BraveSearch](Nous.Tools.BraveSearch.md): Built-in tool for web search using Brave Search API.
  - [Nous.Tools.ResearchNotes](Nous.Tools.ResearchNotes.md): Structured note-taking tools for research agents.
  - [Nous.Tools.Search.Common](Nous.Tools.Search.Common.md): Shared plumbing for search tools (Brave, Tavily, ...).
  - [Nous.Tools.SearchScrape](Nous.Tools.SearchScrape.md):   Tool that fetches and summarizes content from multiple URLs in parallel.
  - [Nous.Tools.Summarize](Nous.Tools.Summarize.md): Tool for summarizing long text using an LLM call.
  - [Nous.Tools.TavilySearch](Nous.Tools.TavilySearch.md): Built-in tool for search using Tavily Search API.
  - [Nous.Tools.WebFetch](Nous.Tools.WebFetch.md): Tool for fetching and extracting readable content from web pages.

- Coding Tools
  - [Nous.Tools.Bash](Nous.Tools.Bash.md): Shell command execution tool.
  - [Nous.Tools.Env](Nous.Tools.Env.md): Scrubbed environment for tool subprocesses.
  - [Nous.Tools.FileEdit](Nous.Tools.FileEdit.md): String replacement editing tool.
  - [Nous.Tools.FileGlob](Nous.Tools.FileGlob.md): File pattern matching tool.
  - [Nous.Tools.FileGrep](Nous.Tools.FileGrep.md): Content search tool.
  - [Nous.Tools.FileRead](Nous.Tools.FileRead.md): File reading tool with line numbers.
  - [Nous.Tools.FileWrite](Nous.Tools.FileWrite.md): File writing tool.
  - [Nous.Tools.TodoTools](Nous.Tools.TodoTools.md): Built-in tools for task tracking and progress management.

- Utility Tools
  - [Nous.Tools.DateTimeTools](Nous.Tools.DateTimeTools.md): Built-in tools for date and time operations.
  - [Nous.Tools.ReActTools](Nous.Tools.ReActTools.md): Built-in tools for ReAct (Reasoning and Acting) agents.
  - [Nous.Tools.StringTools](Nous.Tools.StringTools.md): Built-in tools for string manipulation operations.

- Testing
  - [Nous.Tool.Testing](Nous.Tool.Testing.md): Test helpers for tools.

- Templates
  - [Nous.PromptTemplate](Nous.PromptTemplate.md): Safe prompt templates for building messages.

- Data Types
  - [Nous.Types](Nous.Types.md): Core type definitions for Nous AI.
  - [Nous.Usage](Nous.Usage.md): Tracks resource usage for agent runs.
  - [Nous.Usage.Pricing](Nous.Usage.Pricing.md): Per-model token prices for turning a `%Nous.Usage{}` into a dollar figure.

- Infrastructure
  - [Nous.Errors](Nous.Errors.md): Custom error types for Nous AI.
  - [Nous.Errors.Base](Nous.Errors.Base.md): Shared construction for Nous exception modules.
  - [Nous.Errors.ConfigurationError](Nous.Errors.ConfigurationError.md): Error in configuration or missing dependencies.
  - [Nous.Errors.DecisionModelError](Nous.Errors.DecisionModelError.md): Error from a decision model backend (`Nous.DecisionModel`).
  - [Nous.Errors.ExecutionCancelled](Nous.Errors.ExecutionCancelled.md): Error when agent execution is cancelled.
  - [Nous.Errors.MaxIterationsExceeded](Nous.Errors.MaxIterationsExceeded.md): Error when agent loop exceeds maximum iterations.
  - [Nous.Errors.ModelError](Nous.Errors.ModelError.md): Error from the model provider API.
  - [Nous.Errors.ProfileError](Nous.Errors.ProfileError.md): Error loading, validating or applying a `Nous.Profile`.
  - [Nous.Errors.ProviderError](Nous.Errors.ProviderError.md): Error from an LLM provider.
  - [Nous.Errors.RetryInfo](Nous.Errors.RetryInfo.md): Parse server-suggested retry delays from provider error responses.
  - [Nous.Errors.ToolError](Nous.Errors.ToolError.md): Error during tool execution.
  - [Nous.Errors.ToolTimeout](Nous.Errors.ToolTimeout.md): Error when a tool execution times out.
  - [Nous.Errors.UsageLimitExceeded](Nous.Errors.UsageLimitExceeded.md): Error when usage limits are exceeded.
  - [Nous.Errors.ValidationError](Nous.Errors.ValidationError.md): Error during output validation.
  - [Nous.PromEx.Plugin](Nous.PromEx.Plugin.md): PromEx plugin for Nous AI agent metrics.
  - [Nous.Telemetry](Nous.Telemetry.md): Telemetry integration for Nous AI: the catalog of every event Nous emits.

- Evaluation
  - [Nous.Eval](Nous.Eval.md): Evaluate agents against datasets, with repeated samples, traces and
scorers.
  - [Nous.Eval.CanonicalJSON](Nous.Eval.CanonicalJSON.md): Deterministic JSON encoding for content hashes.
  - [Nous.Eval.Case](Nous.Eval.Case.md): One evaluation case: an input for the agent, what is expected of the
answer, and the scorers that judge it.
  - [Nous.Eval.Compare](Nous.Eval.Compare.md): Compares a candidate eval run against a baseline run of the same dataset
and decides whether the candidate regressed.
  - [Nous.Eval.Compare.Metric](Nous.Eval.Compare.Metric.md): The per-case metrics `Nous.Eval.Compare` can gate on and break down by.
  - [Nous.Eval.Dataset](Nous.Eval.Dataset.md): A validated, content-hashed list of `Nous.Eval.Case`s.
  - [Nous.Eval.Examples.Basic](Nous.Eval.Examples.Basic.md): A complete eval task that runs offline, for trying the eval workflow
without an API key
  - [Nous.Eval.Fingerprint](Nous.Eval.Fingerprint.md): Identifies the configuration an eval run tested.
  - [Nous.Eval.Reporter](Nous.Eval.Reporter.md): Renders an eval run or a comparison as text.
  - [Nous.Eval.Reporter.Console](Nous.Eval.Reporter.Console.md): Plain-text report for a terminal.
  - [Nous.Eval.Reporter.JSON](Nous.Eval.Reporter.JSON.md): Machine-readable report: a run's `Nous.Eval.Summary` or a comparison's
`Nous.Eval.Compare.to_map/1`, encoded with `Nous.Eval.CanonicalJSON`
(sorted keys, no whitespace), followed by a newline.
  - [Nous.Eval.Reporter.Markdown](Nous.Eval.Reporter.Markdown.md): GitHub-flavoured Markdown report, sized for a pull-request comment.
  - [Nous.Eval.Run](Nous.Eval.Run.md): The record of one eval run: its configuration fingerprint, every sample,
and the summary statistics. This is what a `Nous.Eval.Store` persists and
what `Nous.Eval.Compare` diffs.
  - [Nous.Eval.Sample](Nous.Eval.Sample.md): One execution of one case, with its scores.
  - [Nous.Eval.Summary](Nous.Eval.Summary.md): Aggregate metrics of one eval run, computed from its samples.
  - [Nous.Eval.Task](Nous.Eval.Task.md): Loads a `use Nous.Eval` task module and calls its callbacks with checked
results.
  - [Nous.Eval.Trace](Nous.Eval.Trace.md): The telemetry events one eval sample produced, in emission order.
  - [Nous.Eval.Trace.AgentRun](Nous.Eval.Trace.AgentRun.md): One agent run in a `Nous.Eval.Trace`, from `Nous.Eval.Trace.runs/1`.
  - [Nous.Eval.Trace.Event](Nous.Eval.Trace.Event.md): One telemetry event in a `Nous.Eval.Trace`.
  - [Nous.Eval.Trace.GuardVerdict](Nous.Eval.Trace.GuardVerdict.md): One guard decision in a `Nous.Eval.Trace`, from
`Nous.Eval.Trace.guard_verdicts/2`.
  - [Nous.Eval.Trace.ModelCall](Nous.Eval.Trace.ModelCall.md): One model request reconstructed from a `Nous.Eval.Trace` by
`Nous.Eval.Trace.model_calls/1`.
  - [Nous.Eval.Trace.ToolCall](Nous.Eval.Trace.ToolCall.md): One tool call reconstructed from a `Nous.Eval.Trace` by
`Nous.Eval.Trace.tool_calls/2`.

- Evaluation: Scorers
  - [Nous.Eval.JudgeCalibration](Nous.Eval.JudgeCalibration.md): Measures an LLM judge (`Nous.Eval.Scorers.Judge`) against human labels.
  - [Nous.Eval.JudgeCalibration.Case](Nous.Eval.JudgeCalibration.Case.md): One human-labelled judge case (schema `nous.judge_case/1`); see
`Nous.Eval.JudgeCalibration`.

  - [Nous.Eval.JudgeCalibration.Result](Nous.Eval.JudgeCalibration.Result.md): The outcome of `Nous.Eval.JudgeCalibration.calibrate/3`.
  - [Nous.Eval.Score](Nous.Eval.Score.md): One named result a scorer produced for one sample.
  - [Nous.Eval.ScoreInput](Nous.Eval.ScoreInput.md): What a scorer reads for one sample.
  - [Nous.Eval.Scorer](Nous.Eval.Scorer.md): Behaviour for eval scorers.
  - [Nous.Eval.Scorer.Spec](Nous.Eval.Scorer.Spec.md): A scorer as declared on a task or case.
  - [Nous.Eval.ScorerError](Nous.Eval.ScorerError.md): A scorer failed to produce a verdict. It says nothing about the agent: a
sample with any scorer error is `:error`, never `:pass` or `:fail`, and an
eval run with errors exits non-zero in CI.
  - [Nous.Eval.Scorers.Contains](Nous.Eval.Scorers.Contains.md): Passes when the output text contains the given substrings.
  - [Nous.Eval.Scorers.Equals](Nous.Eval.Scorers.Equals.md): Passes when the agent's output equals the expected value.
  - [Nous.Eval.Scorers.Function](Nous.Eval.Scorers.Function.md): Wraps a one-argument function as a scorer, for Elixir-defined datasets
and tasks. It cannot be referenced from YAML/JSONL files.
  - [Nous.Eval.Scorers.GuardVerdict](Nous.Eval.Scorers.GuardVerdict.md): Checks what a guard decided during the sample, from the guard verdict
events in the trace (see `Nous.Eval.Trace.guard_verdicts/2`).
  - [Nous.Eval.Scorers.Judge](Nous.Eval.Scorers.Judge.md): Grades a sample with an LLM judge: a tool-less agent that reads the
evidence and answers with a verdict from a declared, closed label set.
  - [Nous.Eval.Scorers.MaxCost](Nous.Eval.Scorers.MaxCost.md): Passes when the sample's model spend is at most `:max_usd`.
  - [Nous.Eval.Scorers.MaxLatency](Nous.Eval.Scorers.MaxLatency.md): Passes when the sample's wall time is at most `:max_ms`.
  - [Nous.Eval.Scorers.MaxTokens](Nous.Eval.Scorers.MaxTokens.md): Passes when the sample's token use (summed over the whole run tree) is at
most `:max`.
  - [Nous.Eval.Scorers.NoToolErrors](Nous.Eval.Scorers.NoToolErrors.md): Passes when no tool call failed.
  - [Nous.Eval.Scorers.NotContains](Nous.Eval.Scorers.NotContains.md): Passes when the output text contains none of the given substrings.
  - [Nous.Eval.Scorers.OutputRetries](Nous.Eval.Scorers.OutputRetries.md): Bounds the structured-output retries (`[:nous, :agent,
:structured_output, :retry]` events) the sample needed.
  - [Nous.Eval.Scorers.OutputSchema](Nous.Eval.Scorers.OutputSchema.md): Passes when the output validates against an output type, using the same
validation the agent uses (`Nous.OutputSchema.parse_and_validate/2`).
  - [Nous.Eval.Scorers.Regex](Nous.Eval.Scorers.Regex.md): Passes when the output text matches regular expressions.
  - [Nous.Eval.Scorers.Similarity](Nous.Eval.Scorers.Similarity.md): Scores the output's similarity to the expected text as a Levenshtein ratio
over graphemes: `1 - distance / max(length)`, a float in `0.0..1.0`.
  - [Nous.Eval.Scorers.ToolArgs](Nous.Eval.Scorers.ToolArgs.md): Checks the arguments of one tool's calls in the trace.
  - [Nous.Eval.Scorers.ToolCount](Nous.Eval.Scorers.ToolCount.md): Bounds the number of tool calls, for one tool or in total.
  - [Nous.Eval.Scorers.Trajectory](Nous.Eval.Scorers.Trajectory.md): Compares the tool calls in a sample's trace with an expected trajectory.
  - [Nous.Eval.Scoring](Nous.Eval.Scoring.md): Runs a sample's scorers and composes their results into a verdict.

- Evaluation: Statistics &amp; Storage
  - [Nous.Eval.Codec](Nous.Eval.Codec.md): The storage format of `Nous.Eval.Run`: a JSON-safe map, and its JSON text.
  - [Nous.Eval.Stats](Nous.Eval.Stats.md): Statistics for evaluation runs, hand-rolled in pure Elixir (no Nx, no NIFs).
  - [Nous.Eval.Stats.Bootstrap](Nous.Eval.Stats.Bootstrap.md): Seeded paired cluster bootstrap (Koehn 2004, "Statistical Significance
Tests for Machine Translation Evaluation", §6; resampling unit per Miller
2024).
  - [Nous.Eval.Stats.Classifier](Nous.Eval.Stats.Classifier.md): Binary classifier metrics for guards and judges.
  - [Nous.Eval.Stats.Hypothesis](Nous.Eval.Stats.Hypothesis.md): Significance tests and multiple-comparison control for eval comparisons.
  - [Nous.Eval.Stats.Power](Nous.Eval.Stats.Power.md): Power, sample size and minimum detectable effect (MDE) for eval
comparisons, all from normal approximations.
  - [Nous.Eval.Stats.Special](Nous.Eval.Stats.Special.md): Special functions and distribution primitives behind `Nous.Eval.Stats`.
  - [Nous.Eval.Store](Nous.Eval.Store.md): Storage behaviour for eval runs, baseline labels and judge calibrations.
  - [Nous.Eval.Store.Baseline](Nous.Eval.Store.Baseline.md): One entry in a baseline label's history: `label` pointed at `run_id` from
`set_at` until the next entry for the same label.
  - [Nous.Eval.Store.Conformance](Nous.Eval.Store.Conformance.md): Contract-conformance tests for a `Nous.Eval.Store` implementation.
  - [Nous.Eval.Store.DuckDB](Nous.Eval.Store.DuckDB.md): DuckDB-backed `Nous.Eval.Store` using `duckdbex`.
  - [Nous.Eval.Store.File](Nous.Eval.Store.File.md): The default `Nous.Eval.Store`: a directory of JSON files, no dependencies.
  - [Nous.Eval.Store.ProfileLabel](Nous.Eval.Store.ProfileLabel.md): One entry in a profile label's history: under profile name `name`, `label`
pointed at the profile `profile_id` from `set_at` until the next entry for
the same name and label.
  - [Nous.Eval.Store.RunSummary](Nous.Eval.Store.RunSummary.md): The listing view of a stored `Nous.Eval.Run`: everything except the
samples and their traces, plus the sample count.
  - [Nous.Eval.Store.SQLite](Nous.Eval.Store.SQLite.md): SQLite-backed `Nous.Eval.Store` using `exqlite`.

- Profiles
  - [Nous.Eval.Optimizer](Nous.Eval.Optimizer.md): Improves an agent's text (its instructions and tool descriptions) against
an eval task, and produces a reviewed `Nous.Profile` rather than editing
code.
  - [Nous.Eval.Optimizer.Adapter](Nous.Eval.Optimizer.Adapter.md): How `Nous.Eval.Optimizer` evaluates a candidate profile and turns the
result into evidence for the reflector (the GEPA adapter shape).
  - [Nous.Eval.Optimizer.AgentAdapter](Nous.Eval.Optimizer.AgentAdapter.md): The default `Nous.Eval.Optimizer.Adapter`: evaluates a candidate profile
by running the eval task with `Nous.Eval.run/2`, the candidate applied to
every agent the task builds (`profile:`) and the batch selected by case id
(`cases:`).
  - [Nous.Eval.Optimizer.Candidate](Nous.Eval.Optimizer.Candidate.md): A profile in an optimization's pool.
  - [Nous.Eval.Optimizer.Context](Nous.Eval.Optimizer.Context.md): What a `Nous.Eval.Optimizer.Strategy` searches with: the splits, the
components it may change, and helpers that do the budget accounting and
enforce the split and safety rules.
  - [Nous.Eval.Optimizer.Evaluation](Nous.Eval.Optimizer.Evaluation.md): One candidate profile evaluated on a batch of cases: what
`c:Nous.Eval.Optimizer.Adapter.evaluate/3` returns.
  - [Nous.Eval.Optimizer.Lint](Nous.Eval.Optimizer.Lint.md): Cheap, deterministic checks on a reflector's proposed text, run before a
proposal is evaluated (and spends budget)
  - [Nous.Eval.Optimizer.Reflector](Nous.Eval.Optimizer.Reflector.md): The model that proposes new component text: a tool-less `Nous.Agent`
with structured output, run under its own trace with `role: :reflector`
(so its events never land in an eval sample's trace).
  - [Nous.Eval.Optimizer.Result](Nous.Eval.Optimizer.Result.md): The outcome of `Nous.Eval.Optimizer.run/2`.
  - [Nous.Eval.Optimizer.Strategies.GEPA](Nous.Eval.Optimizer.Strategies.GEPA.md): Reflective evolution with a Pareto pool (GEPA, Agrawal et al. 2025).
  - [Nous.Eval.Optimizer.Strategies.OPRO](Nous.Eval.Optimizer.Strategies.OPRO.md): Optimization by prompting (OPRO, Yang et al. 2023): the cheap mode.
  - [Nous.Eval.Optimizer.Strategy](Nous.Eval.Optimizer.Strategy.md): A search strategy for `Nous.Eval.Optimizer`: how candidate profiles are
proposed and which one is best.
  - [Nous.Eval.ProfileReport](Nous.Eval.ProfileReport.md): The review report for a candidate `Nous.Profile`: what text changed, what
the evidence says, and every line of text the candidate removes.
  - [Nous.Eval.Profiles](Nous.Eval.Profiles.md): Loads `Nous.Profile`s from an eval store.
  - [Nous.Profile](Nous.Profile.md): A versioned, content-addressed replacement for an agent's prompt text.
  - [Nous.Profile.Applied](Nous.Profile.Applied.md): The profile an agent runs with, as stored on `%Nous.Agent{profile: ...}`.

- Evaluation: Guards, Simulation &amp; Online
  - [Nous.Eval.Guard](Nous.Eval.Guard.md): Guard calibration and the guard non-regression gate.
  - [Nous.Eval.Guard.Case](Nous.Eval.Guard.Case.md): One guard case in the `nous.guard_case/1` schema: a labelled guard input
for calibration (`kind: "classifier"`) or a decision-table row for a
deterministic guard (`"permission"`, `"loop_guard"`, `"hook"`).
  - [Nous.Eval.Guard.Dataset](Nous.Eval.Guard.Dataset.md): A set of `nous.guard_case/1` cases (`Nous.Eval.Guard.Case`) loaded from
JSONL, with its manifest and content hash.
  - [Nous.Eval.Guard.Deterministic](Nous.Eval.Guard.Deterministic.md): Decision-table checks for the deterministic guards: `Nous.Permissions`,
`Nous.Plugins.LoopGuard` and hooks. No statistics: every row must match,
and any mismatch fails.
  - [Nous.Eval.Guard.Fetch](Nous.Eval.Guard.Fetch.md): Downloads a registered guard dataset (`Nous.Eval.Guard.Registry`), checks
it and writes it as `nous.guard_case/1` JSONL. `mix
nous.eval.datasets.fetch` is the command-line front end.
  - [Nous.Eval.Guard.Gate](Nous.Eval.Guard.Gate.md): The guard non-regression gate: may a candidate (new bands, a new profile)
replace the baseline without letting more attacks through?
  - [Nous.Eval.Guard.Generate](Nous.Eval.Guard.Generate.md): Red-team and hard-negative generators for guard datasets: tool-less agents
that write `nous.guard_case/1` cases for one surface.
  - [Nous.Eval.Guard.Hygiene](Nous.Eval.Guard.Hygiene.md): Dataset hygiene for guard cases (`Nous.Eval.Guard.Case`): exact and
near-duplicate detection, leakage-free group splits, licence policy, a PII
lint and canonical JSONL hashing.
  - [Nous.Eval.Guard.Metrics](Nous.Eval.Guard.Metrics.md): Guard metrics over replayed outcomes (`t:Nous.Eval.Guard.Recording.outcome/0`).
  - [Nous.Eval.Guard.Recording](Nous.Eval.Guard.Recording.md): A guard's recorded answers on a set of classifier cases, and the verdicts
they replay to under any band or threshold setting.
  - [Nous.Eval.Guard.Registry](Nous.Eval.Guard.Registry.md): The compiled-in registry of guard datasets `mix nous.eval.datasets.fetch`
may download: per source, the files pinned to an upstream commit with
their sha256, the licence and its status, and the adapter that turns an
upstream row into a `nous.guard_case/1` case.
  - [Nous.Eval.Guard.Report](Nous.Eval.Guard.Report.md): The result of `Nous.Eval.Guard.calibrate/2`.
  - [Nous.Eval.Guard.Subject](Nous.Eval.Guard.Subject.md): The guard under calibration: a DecisionGuard surface or an InputGuard
strategy ensemble, resolved from the same configuration the plugin reads.
  - [Nous.Eval.Online](Nous.Eval.Online.md): Online evaluation: sample production agent runs, redact them, score them
in the background and store them, without touching the request path.
  - [Nous.Eval.Online.Content](Nous.Eval.Online.Content.md): What a `Nous.Eval.Online.Redactor` sees: a captured trace split into a
read-only **skeleton** and the **content** fields the redactor may
rewrite.
  - [Nous.Eval.Online.OTel](Nous.Eval.Online.OTel.md): Maps an online-eval `Nous.Eval.Sample` to OpenTelemetry spans following the
GenAI semantic conventions (pinned to semconv `1.37.0`, see
`semconv_version/0`).
  - [Nous.Eval.Online.Redactor](Nous.Eval.Online.Redactor.md): Behaviour for the redactor `Nous.Eval.Online` requires (`redact:`).
  - [Nous.Eval.Online.Review](Nous.Eval.Online.Review.md): The review queue of promoted guard cases: a `nous.guard_case/1` JSONL file
whose unlabelled lines (`"label": null`) wait for a human.
  - [Nous.Eval.Online.Sampler](Nous.Eval.Online.Sampler.md): The deterministic sampling decision of `Nous.Eval.Online`.
  - [Nous.Eval.Simulator](Nous.Eval.Simulator.md): Multi-turn evaluation with a simulated user.
  - [Nous.Eval.Simulator.Scenario](Nous.Eval.Simulator.Scenario.md): What the simulated user of one `nous.sim_case/1` case is told: the
`input` of a simulated case (`Nous.Eval.Case`).
  - [Nous.Eval.Simulator.Scorers.Breach](Nous.Eval.Simulator.Scorers.Breach.md): Judges an adversarial episode (`kind: adversarial`): passes when the
agent was **not** breached (`"sim.breach"`).
  - [Nous.Eval.Simulator.Scorers.Rubric](Nous.Eval.Simulator.Scorers.Rubric.md): An LLM judge over the episode transcript (`"sim.rubric"`), from a
simulated case's `expected.rubric` (`judge`, `criteria`, `gate`).
  - [Nous.Eval.Simulator.Scorers.Said](Nous.Eval.Simulator.Scorers.Said.md): Passes when every string of the case's `expected.said` appears in some
agent message of the episode (`"sim.said"`): what the agent had to
communicate, such as an amount or a confirmation number (τ-bench's
output check).
  - [Nous.Eval.Simulator.Scorers.State](Nous.Eval.Simulator.Scorers.State.md): Passes when the episode's end state holds every `{path, equals}` of the
case's `expected.state` (`"sim.state"`).
  - [Nous.Eval.Simulator.Scorers.Tools](Nous.Eval.Simulator.Scorers.Tools.md): Checks the episode's tool use against the case's `expected.tools`
(`"sim.tools"`): no `forbidden` tool executed, and every `required` tool
executed at least once, anywhere in the run tree (sub-agents included),
over all turns.

- Hooks System
  - [Nous.Hook](Nous.Hook.md): Lifecycle interceptors for agent tool execution and request/response flow.
  - [Nous.Hook.Registry](Nous.Hook.Registry.md): Storage and lookup for hooks, indexed by event type.
  - [Nous.Hook.Runner](Nous.Hook.Runner.md): Executes hooks for lifecycle events with support for blocking, modification,
and external command execution.

- Skills System
  - [Nous.Plugins.Skills](Nous.Plugins.Skills.md): Plugin that integrates the Skills system into the agent lifecycle.
  - [Nous.Skill](Nous.Skill.md): Reusable instruction/capability packages for agents.
  - [Nous.Skill.Loader](Nous.Skill.Loader.md): Loads skills from markdown files with YAML frontmatter.
  - [Nous.Skill.Registry](Nous.Skill.Registry.md): Discovery, management, and activation of skills.
  - [Nous.Skills.Architect](Nous.Skills.Architect.md): Built-in skill — system architecture design.
  - [Nous.Skills.CodeReview](Nous.Skills.CodeReview.md): Built-in skill — code review.
  - [Nous.Skills.CommitMessage](Nous.Skills.CommitMessage.md): Built-in skill — conventional commit messages from diffs.
  - [Nous.Skills.Debug](Nous.Skills.Debug.md): Built-in skill — systematic debugging.
  - [Nous.Skills.DocGen](Nous.Skills.DocGen.md): Built-in skill — documentation generation.
  - [Nous.Skills.EctoPatterns](Nous.Skills.EctoPatterns.md): Built-in skill — Ecto query composition, changesets and data patterns.
  - [Nous.Skills.ElixirIdioms](Nous.Skills.ElixirIdioms.md): Built-in skill — idiomatic Elixir patterns and anti-patterns.
  - [Nous.Skills.ElixirTesting](Nous.Skills.ElixirTesting.md): Built-in skill — ExUnit, Mox and property-based testing.
  - [Nous.Skills.ExplainCode](Nous.Skills.ExplainCode.md): Built-in skill — code explanation.
  - [Nous.Skills.OtpPatterns](Nous.Skills.OtpPatterns.md): Built-in skill — OTP supervision, GenServer and concurrency design.
  - [Nous.Skills.PhoenixLiveView](Nous.Skills.PhoenixLiveView.md): Built-in skill — Phoenix LiveView lifecycle, components and anti-patterns.
  - [Nous.Skills.PythonDataScience](Nous.Skills.PythonDataScience.md): Built-in skill — pandas, NumPy and scikit-learn data pipelines.
  - [Nous.Skills.PythonFastAPI](Nous.Skills.PythonFastAPI.md): Built-in skill — FastAPI and async Python web services.
  - [Nous.Skills.PythonSecurity](Nous.Skills.PythonSecurity.md): Built-in skill — Python security review.
  - [Nous.Skills.PythonTesting](Nous.Skills.PythonTesting.md): Built-in skill — pytest patterns.
  - [Nous.Skills.PythonTyping](Nous.Skills.PythonTyping.md): Built-in skill — modern Python typing and data containers (3.10+).
  - [Nous.Skills.PythonUv](Nous.Skills.PythonUv.md): Built-in skill — the `uv` Python package and project manager.
  - [Nous.Skills.Refactor](Nous.Skills.Refactor.md): Built-in skill — behaviour-preserving refactoring.
  - [Nous.Skills.SecurityScan](Nous.Skills.SecurityScan.md): Built-in skill — OWASP-oriented security scanning.
  - [Nous.Skills.TaskBreakdown](Nous.Skills.TaskBreakdown.md): Built-in skill — task decomposition.
  - [Nous.Skills.TestGen](Nous.Skills.TestGen.md): Built-in skill — test generation from implementation code.

- Plugin System
  - [Nous.Plugin](Nous.Plugin.md): Behaviour for composable agent extensions.
  - [Nous.Plugins.DecisionGuard](Nous.Plugins.DecisionGuard.md): Security guard backed by a `Nous.DecisionModel`: per-surface question packs
classify user input, tool calls, tool results and model output, and
probability bands turn the answers into allow / escalate / deny.
  - [Nous.Plugins.DecisionGuard.Pack](Nous.Plugins.DecisionGuard.Pack.md): Behaviour for a `Nous.Plugins.DecisionGuard` question pack: the questions a
decision model answers about one surface, the probability bands that turn
the answers into a verdict, and the state the model sees.
  - [Nous.Plugins.DecisionGuard.Packs.ModelOutput](Nous.Plugins.DecisionGuard.Packs.ModelOutput.md): `Nous.Plugins.DecisionGuard.Pack` for the model-output surface
(`:post_response`, blocking): does the assistant's reply leak secrets,
its instructions or personal data, or show signs that it was hijacked?
  - [Nous.Plugins.DecisionGuard.Packs.ToolCall](Nous.Plugins.DecisionGuard.Packs.ToolCall.md): `Nous.Plugins.DecisionGuard.Pack` for the tool-call surface
(`:pre_tool_use`): is this call something the user's task did not ask for,
and could it do damage?
  - [Nous.Plugins.DecisionGuard.Packs.ToolResult](Nous.Plugins.DecisionGuard.Packs.ToolResult.md): `Nous.Plugins.DecisionGuard.Pack` for the tool-result surface
(`:post_tool_use`): indirect prompt injection in what a tool returned.
  - [Nous.Plugins.DecisionGuard.Packs.UserInput](Nous.Plugins.DecisionGuard.Packs.UserInput.md): `Nous.Plugins.DecisionGuard.Pack` for the user-input surface: one `:choice`
question, `verdict`, with options `safe` / `suspicious` / `blocked` (the
`Nous.Plugins.InputGuard.Strategies.LLMJudge` vocabulary).
  - [Nous.Plugins.Decisions](Nous.Plugins.Decisions.md): Plugin for agent decision tracking with a directed graph.
  - [Nous.Plugins.HumanInTheLoop](Nous.Plugins.HumanInTheLoop.md): Plugin for human-in-the-loop approval of tool calls.
  - [Nous.Plugins.InputGuard](Nous.Plugins.InputGuard.md): Modular malicious input classifier plugin.
  - [Nous.Plugins.InputGuard.Engine](Nous.Plugins.InputGuard.Engine.md): The strategy engine shared by `Nous.Plugins.InputGuard` and
`Nous.Plugins.DecisionGuard`: run a list of
`Nous.Plugins.InputGuard.Strategy` modules over a text, aggregate their
verdicts and fail closed on strategies that produced none.
  - [Nous.Plugins.InputGuard.Policy](Nous.Plugins.InputGuard.Policy.md): Maps severity levels to policy actions for the InputGuard plugin.
  - [Nous.Plugins.InputGuard.Result](Nous.Plugins.InputGuard.Result.md): Result of an input guard strategy check.
  - [Nous.Plugins.InputGuard.Strategies.DecisionModel](Nous.Plugins.InputGuard.Strategies.DecisionModel.md): Decision-model input classification strategy.
  - [Nous.Plugins.InputGuard.Strategies.LLMJudge](Nous.Plugins.InputGuard.Strategies.LLMJudge.md): LLM-based input classification strategy.
  - [Nous.Plugins.InputGuard.Strategies.Pattern](Nous.Plugins.InputGuard.Strategies.Pattern.md): Regex-based pattern matching strategy for detecting prompt injection and jailbreak attempts.
  - [Nous.Plugins.InputGuard.Strategies.Semantic](Nous.Plugins.InputGuard.Strategies.Semantic.md): Embedding-based semantic similarity strategy for detecting malicious input.
  - [Nous.Plugins.InputGuard.Strategy](Nous.Plugins.InputGuard.Strategy.md): Behaviour for input guard detection strategies.
  - [Nous.Plugins.LoopGuard](Nous.Plugins.LoopGuard.md): Plugin that notices an agent repeating the same tool call and injects
escalating guidance.
  - [Nous.Plugins.Memory](Nous.Plugins.Memory.md): Plugin for persistent agent memory with hybrid search.
  - [Nous.Plugins.SubAgent](Nous.Plugins.SubAgent.md): Plugin that enables agents to delegate tasks to specialized sub-agents.
  - [Nous.Plugins.Summarization](Nous.Plugins.Summarization.md): Plugin for managing context window size via pruning and summarization.
  - [Nous.Plugins.TeamTools](Nous.Plugins.TeamTools.md): Plugin that provides team communication and coordination tools for agents.

- Multi-Agent (Teams)
  - [Nous.Teams](Nous.Teams.md): Top-level API for multi-agent team orchestration.
  - [Nous.Teams.Comms](Nous.Teams.Comms.md): PubSub topic helpers and communication utilities for multi-agent teams.
  - [Nous.Teams.Coordinator](Nous.Teams.Coordinator.md): Team lifecycle GenServer that manages agent processes within a team.
  - [Nous.Teams.RateLimiter](Nous.Teams.RateLimiter.md): Token-bucket rate limiter for per-team and per-agent usage control.
  - [Nous.Teams.Role](Nous.Teams.Role.md): Role definitions for team agents.
  - [Nous.Teams.SharedState](Nous.Teams.SharedState.md): ETS-based shared state for per-team discoveries and file region claims.
  - [Nous.Teams.Supervisor](Nous.Teams.Supervisor.md): Per-team Supervisor that manages team infrastructure processes.

- Decision Graph
  - [Nous.Decisions](Nous.Decisions.md): Top-level module for the Nous Decision Graph system.
  - [Nous.Decisions.ContextBuilder](Nous.Decisions.ContextBuilder.md): Builds a text summary of the decision graph for system prompt injection.
  - [Nous.Decisions.Edge](Nous.Decisions.Edge.md): A directed edge connecting two nodes in the decision graph.
  - [Nous.Decisions.Node](Nous.Decisions.Node.md): A node in the decision graph.
  - [Nous.Decisions.Store](Nous.Decisions.Store.md): Storage behaviour for decision graph backends.
  - [Nous.Decisions.Store.DuckDB](Nous.Decisions.Store.DuckDB.md): DuckDB-backed decision graph store.
  - [Nous.Decisions.Store.ETS](Nous.Decisions.Store.ETS.md): ETS-backed decision graph store.

- Memory
  - [Nous.Memory](Nous.Memory.md): Top-level module for the Nous Memory System.
  - [Nous.Memory.Embedding](Nous.Memory.Embedding.md): Behaviour for embedding providers.
  - [Nous.Memory.Embedding.Local](Nous.Memory.Embedding.Local.md): Generic local embedding provider for OpenAI-compatible endpoints.
  - [Nous.Memory.Embedding.OpenAI](Nous.Memory.Embedding.OpenAI.md): OpenAI embedding provider.
  - [Nous.Memory.Entry](Nous.Memory.Entry.md): Memory entry struct with scoping fields for flexible isolation.

  - [Nous.Memory.Scope](Nous.Memory.Scope.md): Shared scope-building logic for memory operations.
  - [Nous.Memory.Scoring](Nous.Memory.Scoring.md): Pure scoring functions for memory retrieval ranking.

  - [Nous.Memory.Search](Nous.Memory.Search.md): Hybrid search orchestrator for the memory system.
  - [Nous.Memory.Store](Nous.Memory.Store.md): Storage behaviour for memory backends — including ones that live outside Nous.
  - [Nous.Memory.Store.Conformance](Nous.Memory.Store.Conformance.md): Contract-conformance tests for a `Nous.Memory.Store` implementation.
  - [Nous.Memory.Store.DuckDB](Nous.Memory.Store.DuckDB.md): DuckDB-backed memory store using Duckdbex.
  - [Nous.Memory.Store.ETS](Nous.Memory.Store.ETS.md): ETS-backed memory store implementation.
  - [Nous.Memory.Store.Results](Nous.Memory.Store.Results.md): Result post-processing shared by index-plus-entry-table memory stores.
  - [Nous.Memory.Store.SQLite](Nous.Memory.Store.SQLite.md): SQLite-backed memory store using Exqlite.
  - [Nous.Memory.Tools](Nous.Memory.Tools.md): Agent tools for memory operations: remember, recall, forget.

- PubSub
  - [Nous.PubSub](Nous.PubSub.md): Thin PubSub abstraction for Nous.
  - [Nous.PubSub.Approval](Nous.PubSub.Approval.md): Async HITL approval via PubSub.

- Persistence
  - [Nous.Persistence](Nous.Persistence.md): Behaviour for pluggable persistence backends.
  - [Nous.Persistence.ETS](Nous.Persistence.ETS.md): ETS-based persistence backend.

- Supervision
  - [Nous.AgentDynamicSupervisor](Nous.AgentDynamicSupervisor.md): `DynamicSupervisor` that owns the lifecycle of every `Nous.AgentServer`.
  - [Nous.AgentRegistry](Nous.AgentRegistry.md): Unique-key `Registry` mapping session IDs to running `Nous.AgentServer` processes.

- Research
  - [Nous.Research](Nous.Research.md): Deep Research Agent for nous.
  - [Nous.Research.Coordinator](Nous.Research.Coordinator.md): The main research loop coordinator.
  - [Nous.Research.Finding](Nous.Research.Finding.md): Represents a research finding from a search/analysis step.

  - [Nous.Research.Planner](Nous.Research.Planner.md): Decomposes a complex research query into a structured plan with sub-questions.
  - [Nous.Research.Report](Nous.Research.Report.md): Represents a completed research report with citations.

  - [Nous.Research.Reporter](Nous.Research.Reporter.md): Generates structured research reports with citations.

  - [Nous.Research.Searcher](Nous.Research.Searcher.md): Executes a single research sub-question using search tools.
  - [Nous.Research.Synthesizer](Nous.Research.Synthesizer.md): Consolidates findings from multiple searchers.

- Session
  - [Nous.Session](Nous.Session.md): A session: an id, its event log, and — if it was forked — where it came from.
  - [Nous.Session.Config](Nous.Session.Config.md): Configuration for managed agent sessions.
  - [Nous.Session.Event](Nous.Session.Event.md): One durable fact about a session.
  - [Nous.Session.Guardrails](Nous.Session.Guardrails.md): Session limit checking and guardrail functions.
  - [Nous.Session.Inbox](Nous.Session.Inbox.md): Two ordered queues of messages waiting to enter a run: `next_turn` and
`next_step`.
  - [Nous.Session.Invariant](Nous.Session.Invariant.md): Every model-visible request must be reconstructable from the session log.
  - [Nous.Session.Invariant.Violation](Nous.Session.Invariant.Violation.md): Raised by `Nous.Session.Invariant.verify/2` in `:strict` mode.
  - [Nous.Session.Log](Nous.Session.Log.md): An append-only event log with a model-visible surface derived by folding.
  - [Nous.Session.Recovery](Nous.Session.Recovery.md): Close what a crash left open in a session log — by appending, never by
truncating.

- Code Mode
  - [Nous.CodeMode](Nous.CodeMode.md): Mode resolution and the visible tool set for Code Mode.
  - [Nous.CodeMode.RunCodeTool](Nous.CodeMode.RunCodeTool.md): Code Mode's transport tool: runs a model-authored program that calls tools.
  - [Nous.CodeMode.Scheduler](Nous.CodeMode.Scheduler.md): Orders the tool sub-calls a Code Mode program makes.
  - [Nous.CodeMode.Sdk](Nous.CodeMode.Sdk.md): Renders the typed SDK a Code Mode program is written against.
  - [Nous.CodeRuntime](Nous.CodeRuntime.md): Runs a model-authored *program* that calls tools, instead of a chain of
individual tool calls.
  - [Nous.CodeRuntime.Binding](Nous.CodeRuntime.Binding.md): One global the program can call, and the functions hanging off it.
  - [Nous.CodeRuntime.Failure](Nous.CodeRuntime.Failure.md): Why a program did not produce a value.
  - [Nous.CodeRuntime.JS](Nous.CodeRuntime.JS.md): Code Mode's JavaScript runtime: an embedded Deno isolate, one per run.
  - [Nous.CodeRuntime.Request](Nous.CodeRuntime.Request.md): What to run, what it may call, and who gets the answer.
  - [Nous.CodeRuntime.Result](Nous.CodeRuntime.Result.md): What a program produced.

- Permissions &amp; Security
  - [Nous.PathGuard](Nous.PathGuard.md): Path-traversal & symlink-escape protection for filesystem tools.
  - [Nous.Permissions](Nous.Permissions.md): Tool-level permission policy engine.
  - [Nous.Permissions.Policy](Nous.Permissions.Policy.md): Permission policy controlling tool access.
  - [Nous.Sandbox](Nous.Sandbox.md): OS-level confinement for subprocesses spawned by tools.
  - [Nous.Sandbox.Bwrap](Nous.Sandbox.Bwrap.md): Linux confinement via `bwrap` (bubblewrap).
  - [Nous.Sandbox.Confined](Nous.Sandbox.Confined.md): The result of `Nous.Sandbox.confine/2`: an argv to spawn plus the data needed
to interpret what comes back.
  - [Nous.Sandbox.Policy](Nous.Sandbox.Policy.md): What a confined subprocess is allowed to do.
  - [Nous.Sandbox.RunnerFailureRule](Nous.Sandbox.RunnerFailureRule.md): How to recognise "the sandbox runner itself failed" in a child's output.
  - [Nous.Sandbox.Seatbelt](Nous.Sandbox.Seatbelt.md): macOS confinement via `sandbox-exec` and an inline SBPL profile.
  - [Nous.Sandbox.Unavailable](Nous.Sandbox.Unavailable.md): The fail-closed default provider: it confines nothing and admits it.
  - [Nous.UrlGuard](Nous.UrlGuard.md): SSRF protection for outbound HTTP from tools and providers.

- Tool Result Spill
  - [Nous.Spill](Nous.Spill.md): Content-addressed overflow for oversized tool results.
  - [Nous.Spill.Local](Nous.Spill.Local.md): Filesystem backend for `Nous.Spill`.
  - [Nous.Spill.Locator](Nous.Spill.Locator.md): An opaque handle to spilled content.

- Knowledge Base
  - [Nous.Agents.KnowledgeBaseAgent](Nous.Agents.KnowledgeBaseAgent.md): Knowledge Base Agent behaviour implementation.
  - [Nous.KnowledgeBase](Nous.KnowledgeBase.md): LLM-compiled personal knowledge base system.
  - [Nous.KnowledgeBase.Document](Nous.KnowledgeBase.Document.md): A raw ingested document before compilation into wiki entries.
  - [Nous.KnowledgeBase.Entry](Nous.KnowledgeBase.Entry.md): A compiled wiki entry — the core unit of the knowledge base.
  - [Nous.KnowledgeBase.HealthReport](Nous.KnowledgeBase.HealthReport.md): Result of a health check audit on the knowledge base.
  - [Nous.KnowledgeBase.Link](Nous.KnowledgeBase.Link.md): A directed edge in the wiki graph between two entries.
  - [Nous.KnowledgeBase.Prompts](Nous.KnowledgeBase.Prompts.md): LLM prompt templates for knowledge base compilation, linking, auditing,
and output generation.
  - [Nous.KnowledgeBase.Store](Nous.KnowledgeBase.Store.md): Storage behaviour for knowledge base backends.
  - [Nous.KnowledgeBase.Store.ETS](Nous.KnowledgeBase.Store.ETS.md): ETS-backed knowledge base store implementation.
  - [Nous.KnowledgeBase.Tools](Nous.KnowledgeBase.Tools.md): Agent tools for knowledge base operations.
  - [Nous.KnowledgeBase.Workflows](Nous.KnowledgeBase.Workflows.md): Pre-built workflow DAG pipelines for knowledge base operations.
  - [Nous.Plugins.KnowledgeBase](Nous.Plugins.KnowledgeBase.md): Plugin for LLM-compiled knowledge base with wiki-style entries.

- Workflow Engine
  - [Nous.Workflow](Nous.Workflow.md): DAG/graph-based workflow engine for orchestrating agents, tools, and control flow.
  - [Nous.Workflow.Checkpoint](Nous.Workflow.Checkpoint.md): Checkpoint for suspending and resuming workflow execution.
  - [Nous.Workflow.Checkpoint.ETS](Nous.Workflow.Checkpoint.ETS.md): ETS-backed checkpoint store. Suitable for development and testing.
  - [Nous.Workflow.Checkpoint.Store](Nous.Workflow.Checkpoint.Store.md): Behaviour for checkpoint storage backends.

  - [Nous.Workflow.Compiler](Nous.Workflow.Compiler.md): Validates and compiles workflow graphs for execution.
  - [Nous.Workflow.Edge](Nous.Workflow.Edge.md): A directed edge connecting two nodes in a workflow graph.
  - [Nous.Workflow.Engine](Nous.Workflow.Engine.md): Core workflow execution engine.
  - [Nous.Workflow.Graph](Nous.Workflow.Graph.md): Directed graph definition for workflow execution.
  - [Nous.Workflow.Mermaid](Nous.Workflow.Mermaid.md): Generate Mermaid flowchart diagrams from workflow graphs.
  - [Nous.Workflow.Node](Nous.Workflow.Node.md): A node in a workflow graph.
  - [Nous.Workflow.Scratch](Nous.Workflow.Scratch.md): Optional per-workflow ETS table for large/binary data exchange between steps.
  - [Nous.Workflow.State](Nous.Workflow.State.md): Typed state that flows between workflow nodes.
  - [Nous.Workflow.Telemetry](Nous.Workflow.Telemetry.md): Telemetry events for workflow execution.
  - [Nous.Workflow.Trace](Nous.Workflow.Trace.md): Records execution traces for workflow debugging and observability.

- Exceptions
  - [Nous.Errors.ResponseDenied](Nous.Errors.ResponseDenied.md): Error when a `:post_response` hook denies a model response.

## Mix Tasks

- Mix Tasks
  - [mix nous.eval](Mix.Tasks.Nous.Eval.md): Runs a `Nous.Eval` task (`Nous.Eval.run/2`), stores the run, prints its
report and, with `--baseline`, compares it with a stored baseline run
(`Nous.Eval.Compare`).
  - [mix nous.eval.baseline](Mix.Tasks.Nous.Eval.Baseline.md): Manages baseline labels in an eval store (see "Baselines" in
`Nous.Eval.Store`).
  - [mix nous.eval.compare](Mix.Tasks.Nous.Eval.Compare.md): Compares a candidate eval run with a baseline run from the store
(`Nous.Eval.Compare`) and prints the comparison.
  - [mix nous.eval.datasets.fetch](Mix.Tasks.Nous.Eval.Datasets.Fetch.md): Downloads a guard dataset from the compiled-in registry
(`Nous.Eval.Guard.Registry`), verifies its sha256 before parsing, converts
it to `nous.guard_case/1` JSONL with provenance, deduplicates, groups and
splits it, and writes it with a manifest and a NOTICE
(`Nous.Eval.Guard.Fetch`).
  - [mix nous.eval.judge.calibrate](Mix.Tasks.Nous.Eval.Judge.Calibrate.md): Calibrates a `Nous.Eval.Scorers.Judge` configuration against human labels
(see `Nous.Eval.JudgeCalibration`).
  - [mix nous.eval.promote](Mix.Tasks.Nous.Eval.Promote.md): Promotes samples captured by `Nous.Eval.Online` into a JSONL dataset
(`Nous.Eval.promote/3`), re-applying a redactor first.
  - [mix nous.eval.rescore](Mix.Tasks.Nous.Eval.Rescore.md): Scores the samples of a stored run again with the task's current scorers,
without running the agent (`Nous.Eval.rescore/3`), and stores the result
as a new run.
  - [mix nous.optimize](Mix.Tasks.Nous.Optimize.md): Runs `Nous.Eval.Optimizer` on an eval task and prints the profile report.
  - [mix nous.profile.check](Mix.Tasks.Nous.Profile.Check.md): Loads every given `Nous.Profile` and checks it against the agent with
`Nous.Profile.validate/2`, the same checks `Nous.new/2` runs at boot.
  - [mix nous.profile.diff](Mix.Tasks.Nous.Profile.Diff.md): Prints the `Nous.Eval.ProfileReport` of profile `B` against profile `A`,
without evaluation evidence: the components changed, a line diff of each
with its estimated token delta, and every removed line (the safety review
section).
  - [mix nous.profile.promote](Mix.Tasks.Nous.Profile.Promote.md): Points label `LABEL` of profile name `NAME` at a profile, by appending an
entry to the label's history in the eval store
(`c:Nous.Eval.Store.put_profile_label/4`).
  - [mix nous.profile.rebase](Mix.Tasks.Nous.Profile.Rebase.md): Refreshes a profile whose base text changed (`:stale` in
`mix nous.profile.check`): when every component still has a target in the
current agent, re-seals the manifest against the current base text and
writes a child profile whose `parent_id` is the old profile's id.
  - [mix nous.profile.seal](Mix.Tasks.Nous.Profile.Seal.md): Fills a hand-written profile's manifest and id with
`Nous.Profile.seal/2`, and writes the result as canonical JSON.

