# Rei - Docs > Build with Adapt-1 and REI Chat. Structured learning and reasoning, retained state, and conversational interfaces. - [Build with Adapt-1 and REI Chat](https://docs.reilabs.org/docs/welcome.md): Use Adapt-1 for structured learning and reasoning, or REI Chat for a conversational interface. - [Adapt-1 foundations](https://docs.reilabs.org/docs/adapt-1/overview.md): How Adapt-1 forms and revises learned state during use, and applies it to reasoning, prediction, decisions, and control. - [Building with Adapt-1](https://docs.reilabs.org/docs/application-usecases/index.md): Connect Adapt-1 to products, tools, and applications. - [Discovery](https://docs.reilabs.org/docs/adapt-1/discovery.md): How Adapt-1 forms task-specific structure from admitted evidence. - [Rei Chat agent setup](https://docs.reilabs.org/docs/factory/index.md): Create and configure a Core-backed conversational agent, then extend it with built-in or custom capabilities. - [REI Chat](https://docs.reilabs.org/docs/rei-chat/overview.md): Explore the conversational demo, configure an agent, or integrate the REI Chat API. - [Getting Started with Rei Chat](https://docs.reilabs.org/docs/factory/reigent-factory/reigent-factory.md): Create and configure a Core-backed conversational agent in the Rei Chat interface. - [Additional Capability (Provided & Custom)](https://docs.reilabs.org/docs/factory/capabilities/index.md) - [Research](https://docs.reilabs.org/docs/factory/capabilities/research.md): Ask a Rei Unit to research a topic, analyze the results, and return findings with traceable sources. - [Custom tools](https://docs.reilabs.org/docs/factory/capabilities/custom-tools.md): Expose application functions to a Rei Unit through function calling, with JavaScript and Python examples. - [Adapt-1 API](https://docs.reilabs.org/docs/neuroadapt/overview.md): Structured access to Core with online learning and retained state. - [Quickstart](https://docs.reilabs.org/docs/neuroadapt/quickstart.md): Make your first Adapt-1 request with cURL, Python, or JavaScript, then start a learning loop. - [First learned result](https://docs.reilabs.org/docs/neuroadapt/first-learned-result.md): Create a Domain, submit observations, and inspect a prediction from retained state. - [Use cases](https://docs.reilabs.org/docs/neuroadapt/goals.md): Connect Adapt-1 to application workflows through concrete inputs, results, feedback, and retained state. - [Choose a workflow](https://docs.reilabs.org/docs/adapt-1/getting-started.md): Choose an integration by the result you need, the evidence you have, and what should persist. - [Build with an AI agent](https://docs.reilabs.org/docs/neuroadapt/build-with-ai.md): Provide a coding agent with the contracts and checks needed for an Adapt-1 integration. - [Core concepts](https://docs.reilabs.org/docs/neuroadapt/core-concepts.md): Understand Domains, events, results, feedback, and the state that connects them. - [Mechanisms](https://docs.reilabs.org/docs/neuroadapt/architecture.md): How Adapt-1 learns task structure and updates retained state during operation. - [Learning from evidence and outcomes](https://docs.reilabs.org/docs/neuroadapt/learning-patterns-for-domains.md): Match an observable target, decision outcome, or delayed reward to its learning contract. - [Learning schedules](https://docs.reilabs.org/docs/neuroadapt/choose-a-learning-setup.md): Choose the starting state and whether learning continues during a run. - [Further reading](https://docs.reilabs.org/docs/neuroadapt/articles.md): Explore Adapt-1 technical write-ups, evaluation reports, and earlier background material. - [Author a Domain contract](https://docs.reilabs.org/docs/neuroadapt/build-a-domain-aware-assistant.md): Define explicit task structure, result meanings, and state boundaries. - [Learn from feedback and outcomes](https://docs.reilabs.org/docs/neuroadapt/make-behavior-improve-from-feedback.md): Bind observed outcomes to the decisions that produced them so later Adapt-1 results can improve. - [Build continuity across calls](https://docs.reilabs.org/docs/neuroadapt/build-an-assistant-with-persistent-context.md): Preserve useful evidence and constraints so later Adapt-1 calls can reason with them. - [Explain a result](https://docs.reilabs.org/docs/neuroadapt/explain-and-audit-responses.md): Inspect evidence, support, conflicts, abstention, and learner state without changing Domain state. - [Spatial Vision](https://docs.reilabs.org/docs/neuroadapt/spatial-vision.md): Return spatial yes/no answers and grounded points from images, with optional depth and no language model. Inspect confidence and grounding. - [Machina](https://docs.reilabs.org/docs/machina/index.md): Use Adapt-1 to learn continuous-control sequences from measured execution outcomes. - [Choose an execution pattern](https://docs.reilabs.org/docs/machina/execution-patterns.md): Choose numeric control interfaces, observation boundaries, and execution timing for a task-specific integration. - [Configure a Machina Domain](https://docs.reilabs.org/docs/machina/configuration.md): Define state, goal, action, and timing contracts, then configure a numeric trajectory learner on the production API. - [Acquire a numeric action sequence](https://docs.reilabs.org/docs/machina/acquisition.md): Return measured trajectories and outcomes to update a numeric sequence learner. - [Select, reduce, and order executions](https://docs.reilabs.org/docs/machina/structural-stages.md): Use measured candidate comparisons to select or restructure acquired executions. - [Refine a sequence for its context](https://docs.reilabs.org/docs/machina/refinement.md): Learn context-dependent offsets around an acquired base and apply the retained correction to current observations. - [Use retained state and recover interrupted work](https://docs.reilabs.org/docs/machina/retained-use.md): Execute retained behavior with learning stopped and recover interrupted trajectory requests. - [Learn and refine state values](https://docs.reilabs.org/docs/neuroadapt/value-learning.md): Fit values from observed outcomes, reconsider legal alternatives, continue from retained parameters, and verify candidate adoption for planning. - [Run the value-learning API workflow](https://docs.reilabs.org/docs/neuroadapt/value-client-workflow.md): Configure a value learner, upload recorded outcomes, fit and inspect models, compare candidate predictions, and promote using measured application results. - [Value observations and continuation targets](https://docs.reilabs.org/docs/neuroadapt/value-observations.md): Prepare value observations with one supervision source, generate continuation targets from legal successors, and declare groups of alternatives. - [Train and inspect value candidates](https://docs.reilabs.org/docs/neuroadapt/value-training.md): Choose observation snapshots, cold or warm initialization, comparison training, and checkpoint selection; verify each stage through the fit report. - [Evaluate and promote a value candidate](https://docs.reilabs.org/docs/neuroadapt/value-promotion.md): Separate value checkpoint selection from installation, compare paired application utility, and use model identity guards when promoting a candidate. - [Learning and planning](https://docs.reilabs.org/docs/planning/overview.md): Understand how learning, search, and execution work together, and choose the guide for your planning task. - [Planning integration](https://docs.reilabs.org/docs/planning/integration.md): Connect actions, successor states, and value estimates to native search and inspect its decisions. - [Native planning options and evaluator selection](https://docs.reilabs.org/docs/planning/options.md): Select the native planner's evaluator, depth, work budgets, extensions, and exploration settings, and inspect the limits reported by each search. - [Native graph planning API](https://docs.reilabs.org/docs/planning/api.md): Submit a root state and a finite graph of legal action transitions to native planning, with explicit evaluator selection, identity guards, and work limits. - [Inspect the planning stream protocol](https://docs.reilabs.org/docs/planning/stream-protocol.md): Read the native planning stream protocol description and connect it to the WebSocket expansion workflow, its request identities, and evaluator binding. - [Use Discovery](https://docs.reilabs.org/docs/neuroadapt/discovery.md): Form learner-facing structure from evidence admitted by a Domain. - [Discovery examples](https://docs.reilabs.org/docs/neuroadapt/discovery-examples.md): Create, inspect, and query Transition, Structure, Sequential, and mixed Discovery Domains through the production API. - [Discover transition inputs](https://docs.reilabs.org/docs/neuroadapt/discovery-transition-projection.md): Discover transition inputs, inspect admission, and query with the target withheld. - [Discover predictive structure](https://docs.reilabs.org/docs/neuroadapt/discovery-structure.md): Discover predictive fields, combinations, and temporal relationships from eligible evidence. - [Discover sequential policy structure](https://docs.reilabs.org/docs/neuroadapt/discovery-sequential.md): Learn action values and delayed credit from ordered states, actions, and measured outcomes. - [Run an inspectable stateful workflow](https://docs.reilabs.org/docs/neuroadapt/run-a-reproducible-goal-workflow.md): Define the state lifecycle and preserve an ordered record of Adapt-1 results and observable consequences. - [Verify feedback-driven adaptation](https://docs.reilabs.org/docs/neuroadapt/evaluate-adaptation.md): Confirm that scoped feedback changes the intended learned signal and later application behavior. - [Monitor adaptation in production](https://docs.reilabs.org/docs/neuroadapt/measure-online-adaptation.md): Track Adapt-1 inputs, results, application actions, outcomes, feedback, and learner-state changes over time. - [Errors and reliability](https://docs.reilabs.org/docs/neuroadapt/errors-and-reliability.md): Handle authentication, permanent client errors, transient gateway failures, and ambiguous stateful writes. - [Operate stateful and adaptive workflows](https://docs.reilabs.org/docs/neuroadapt/operational-behavior-and-retries.md): Keep ordered, stateful Adapt-1 workflows isolated, retryable, and auditable. - [HTTP and request contracts](https://docs.reilabs.org/docs/neuroadapt/request-contracts.md): Authenticate, address state, choose a route, and check request and response contracts. - [Create domain](https://docs.reilabs.org/api-reference/domains/create-domain.md) - [List domains](https://docs.reilabs.org/api-reference/domains/list-domains.md) - [Get a domain](https://docs.reilabs.org/api-reference/domains/get-a-domain.md) - [Update domain schema](https://docs.reilabs.org/api-reference/domains/update-domain-schema.md) - [Update domain rules](https://docs.reilabs.org/api-reference/domains/update-domain-rules.md) - [Ingest domain event](https://docs.reilabs.org/api-reference/domains/ingest-domain-event.md) - [Query domain](https://docs.reilabs.org/api-reference/domains/query-domain.md) - [Explain domain query](https://docs.reilabs.org/api-reference/domains/explain-domain-query.md): Returns schema, ranked hypotheses, supporting memories, missing evidence, predicted observations, and core Neuroadapt reasoning support. - [Domain feedback](https://docs.reilabs.org/api-reference/domains/domain-feedback.md) - [Clear domain](https://docs.reilabs.org/api-reference/domains/clear-domain.md) - [Domain Policy Reset](https://docs.reilabs.org/api-reference/domains/domain-policy-reset.md) - [Domain Delete](https://docs.reilabs.org/api-reference/domains/domain-delete.md) - [Store interaction](https://docs.reilabs.org/api-reference/memory/store-interaction.md): Stores one user-facing memory item. `session_id` is overwritten by the proxy with the agent ID. - [Memory Correct](https://docs.reilabs.org/api-reference/memory/memory-correct.md) - [Memory Batch Store](https://docs.reilabs.org/api-reference/memory/memory-batch-store.md) - [Memory Query](https://docs.reilabs.org/api-reference/memory/memory-query.md) - [Search memory](https://docs.reilabs.org/api-reference/memory/search-memory.md): Returns ranked evidence without the full reasoning payload. - [Explain memory](https://docs.reilabs.org/api-reference/memory/explain-memory.md): Returns the structured non-LLM reasoning view: evidence, hypotheses, causal chain, reasoning edges, discovered connections, conflicts, and predicted/missing observations. `score` is a bounded ranking/support score for UI ordering. `confidence` is a capped mechanistic support score, not a calibrated… - [Session state](https://docs.reilabs.org/api-reference/memory/session-state.md): Returns the current session memory state without running a query. - [Memory State Summary](https://docs.reilabs.org/api-reference/memory/memory-state-summary.md) - [List memories](https://docs.reilabs.org/api-reference/memory/list-memories.md) - [Memory Prune](https://docs.reilabs.org/api-reference/memory/memory-prune.md) - [Delete a memory](https://docs.reilabs.org/api-reference/memory/delete-a-memory.md) - [Clear session](https://docs.reilabs.org/api-reference/memory/clear-session.md) - [Value learner API reference](https://docs.reilabs.org/docs/neuroadapt/value-api.md): Find all eight value routes, their request envelopes and limits, model identity controls, and the schema sources used by the integration guides. - [Configure the value learner](https://docs.reilabs.org/docs/neuroadapt/value-api/configure.md): Configure a Domain value relation, policy, representation, retained sample capacity, and promotion policy using the typed value configuration request. - [Observe value-learning evidence](https://docs.reilabs.org/docs/neuroadapt/value-api/observe.md): Submit value observations and application outcomes, inspect admission counts, and handle exact replays or conflicting record identities correctly. - [Train a value candidate](https://docs.reilabs.org/docs/neuroadapt/value-api/train.md): Start an asynchronous value fit with explicit initialization, observation selection, comparison options, validation settings, and installation controls. - [Predict state values](https://docs.reilabs.org/docs/neuroadapt/value-api/predict.md): Evaluate one or more state inputs with the installed value model or a candidate, and bind evaluation to the expected model identity when required. - [Promote a value candidate](https://docs.reilabs.org/docs/neuroadapt/value-api/promote.md): Request candidate adoption with model identity guards and a paired application canary, then inspect the promotion result and installed model identity. - [Freeze a value model](https://docs.reilabs.org/docs/neuroadapt/value-api/freeze.md): Freeze the expected value model for retained evaluation, verify its identity and frozen state, and distinguish this operation from other Domain controls. - [Inspect value learner state](https://docs.reilabs.org/docs/neuroadapt/value-api/state.md): Inspect value configuration, sample counts, dataset identities, candidates, installed models, and training diagnostics while monitoring a workflow. - [Reset value learner state](https://docs.reilabs.org/docs/neuroadapt/value-api/reset.md): Reset value state within the authenticated Domain scope, using the required session placeholder and checking deployment-specific retained state. - [Transition learning, advanced](https://docs.reilabs.org/docs/neuroadapt/design-transition-domains.md): Configure transition inputs, targets, support, grouping, and abstention. - [Sequential learning, advanced](https://docs.reilabs.org/docs/neuroadapt/sequential-learning.md): Configure policies, rewards, delayed credit, exploration, training, and frozen evaluation. - [Use temporal context projection](https://docs.reilabs.org/docs/neuroadapt/temporal-context-projection.md): Use bounded episode history when the current observation alone is insufficient. - [Use counterfactual utility plasticity](https://docs.reilabs.org/docs/neuroadapt/counterfactual-utility-plasticity.md): Configure source and coalition utility learning from attributable online feedback. - [Configure an adaptive policy contract](https://docs.reilabs.org/docs/neuroadapt/adaptive-domains-structured-predictions.md): Map ordered observations into a Domain-scoped adaptive policy and consume its structured prediction. - [Use a structured adaptive result](https://docs.reilabs.org/docs/neuroadapt/return-structured-adaptive-outputs.md): Map ordered observations into the documented adaptive interval policy and consume its result. - [Ingest an adaptive observation](https://docs.reilabs.org/docs/neuroadapt/adapt-events.md): Update a domain's adaptive policy with one structured observation and return the current prediction. - [Read the current adaptive prediction](https://docs.reilabs.org/docs/neuroadapt/adapt-predict.md): Return a domain's current structured adaptive prediction without adding another observation. - [Reset adaptive policy state](https://docs.reilabs.org/docs/neuroadapt/adapt-reset.md): Reset adaptive-policy state before starting a new observation history or replaying a known record. - [Spatial Vision endpoint](https://docs.reilabs.org/POST /api/v1/vision/spatial.md): Run non-LLM spatial VQA and grounded object-relative pointing. - [Health check (liveness)](https://docs.reilabs.org/api-reference/system/health-check-liveness.md) - [Health check (readiness)](https://docs.reilabs.org/api-reference/system/health-check-readiness.md) - [Service version](https://docs.reilabs.org/api-reference/system/service-version.md) - [Admission Stats](https://docs.reilabs.org/api-reference/system/admission-stats.md) - [Readyz](https://docs.reilabs.org/api-reference/system/readyz.md) - [REI Chat API and SDK](https://docs.reilabs.org/docs/api-and-sdk/index.md): Integrate REI Chat, manage Units, and call its conversational APIs. - [Rei Chat quickstart](https://docs.reilabs.org/docs/api-and-sdk/quickstart.md): Authenticate, choose the correct Rei Chat base URL, and make your first API call. - [SDK](https://docs.reilabs.org/docs/api-and-sdk/sdk.md): Install the Rei Core SDK, initialize a Unit client, and call common Rei Chat workflows from JavaScript or Python. - [Integrate with existing agents](https://docs.reilabs.org/docs/api-and-sdk/integration-with-existing-agents.md): Connect a Rei Unit to an existing AI agent through function calling, with JavaScript, Python, and OpenAI examples. - [Integrate with existing services](https://docs.reilabs.org/docs/api-and-sdk/integration-with-existing-services.md): Embed a Rei Unit in web services, webhooks, queues, databases, or containerized microservices. - [Rei Unit API integration guide](https://docs.reilabs.org/docs/guides/unit-api-guide.md): Connect OpenAI-compatible developer tools to Rei Unit with the shared endpoint, API key, and model configuration. - [Chat Completion](https://docs.reilabs.org/api-reference/chat/chat-completion.md): OpenAI-compatible chat completion. The request body follows the OpenAI Chat Completions API. - [Create Response](https://docs.reilabs.org/api-reference/chat/create-response.md): OpenAI-compatible response generation. The request body follows the OpenAI Responses API. - [Agent Creation](https://docs.reilabs.org/api-reference/agent-management/agent-creation.md): Create a Rei Agent using the user's secret token. - [Agent Update](https://docs.reilabs.org/api-reference/agent-management/agent-update.md): Update an existing Rei Agent using the user's secret token. - [Agent Deletion](https://docs.reilabs.org/api-reference/agent-management/agent-deletion.md): Delete a Rei Agent using the user's secret token. - [Agent Cloning](https://docs.reilabs.org/api-reference/agent-management/agent-cloning.md): Clone an existing Rei Agent using the user's secret token. - [Get Reigent](https://docs.reilabs.org/api-reference/agent/get-reigent.md): Retrieve a Reigent Unit. - [Get Reigent Unit's Tools](https://docs.reilabs.org/api-reference/agent/get-reigent-units-tools.md): Retrieve the tools available for a Reigent Unit. - [Update Reigent Unit's Tools](https://docs.reilabs.org/api-reference/agent/update-reigent-units-tools.md): Update the activation status of a tool for a Reigent Unit. - [Chat completions (OpenAI-compatible)](https://docs.reilabs.org/api-reference/chat/chat-completions-openai-compatible.md): LLM-style compatibility route. Use only when you explicitly want the chat pipeline; the /api/v1/memory/* and /memz/* routes are the non-LLM memory/reasoning path. `session_id` is overwritten by the proxy with the agent ID. - [Catalog](https://docs.reilabs.org/docs/catalog/index.md) - [//hanabi-1](https://docs.reilabs.org/docs/catalog/hanabi-1.md): Explore Hanabi-1, a compact transformer architecture for financial time-series prediction and calibrated directional signals. - [Brand assets](https://docs.reilabs.org/docs/brand-assets/index.md): Download official Rei logos, artwork, and character asset packages. - [$REI](https://docs.reilabs.org/docs/tokenomics/index.md): The planned role of $REI in ownership, access, and marketplace settlement. - [Operations and business model (Legacy)](https://docs.reilabs.org/docs/tokenomics/ecosystem-operations-and-business-model.md) ## OpenAPI Specs - [neuroadapt-openapi](/neuroadapt-openapi.json) - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.