# StateBase ## Docs - [API Reference Introduction](https://docs.statebase.org/api-reference/introduction.md): Complete REST API documentation for StateBase - [Memory API](https://docs.statebase.org/api-reference/memory.md): Store and retrieve long-term knowledge with semantic search - [Sessions API](https://docs.statebase.org/api-reference/sessions.md): Complete REST API reference for managing agent sessions - [Traces API](https://docs.statebase.org/api-reference/traces.md): Audit trail and debugging for all agent operations - [Turns API](https://docs.statebase.org/api-reference/turns.md): Log and retrieve conversation interactions between users and agents - [Checkpoints & Rollbacks](https://docs.statebase.org/concepts/checkpoints-rollbacks.md): Time-travel debugging for AI agents: save points, rollbacks, and recovery strategies - [Agent Failure Modes](https://docs.statebase.org/concepts/failure-modes.md): Common ways AI agents fail in production and how StateBase helps you recover - [The StateBase Mental Model](https://docs.statebase.org/concepts/mental-models.md): How to think like a StateBase developer. - [Replay & Audit](https://docs.statebase.org/concepts/replay-audit.md): Debug production agents by replaying conversations and analyzing decision traces - [Sessions, Turns & Memory](https://docs.statebase.org/concepts/sessions-turns-memory.md): Understanding the three core primitives that make StateBase work - [What is State? (vs. Memory)](https://docs.statebase.org/concepts/what-is-state.md): Understanding the difference between long-term facts and active logic. - [Debugging with Replay](https://docs.statebase.org/demos/debugging-replay.md): Reproducing production failures in 1:1 fidelity. - [Agent Hallucination Recovery](https://docs.statebase.org/demos/hallucination-recovery.md): How to detect a drift and revert to a sane state. - [Multi-Tool Recovery Demo](https://docs.statebase.org/demos/multi-tool-recovery.md): Watch how StateBase recovers from cascading tool failures in a real-world booking agent - [Anthropic](https://docs.statebase.org/integrations/anthropic.md): Native integration with Claude 3 - [LangChain Integration](https://docs.statebase.org/integrations/langchain.md): Use StateBase as the memory layer for LangChain agents - [OpenAI Integration](https://docs.statebase.org/integrations/openai.md): Optimized prompt engineering with StateBase - [Welcome to StateBase](https://docs.statebase.org/introduction.md): Ship AI agents with confidence. - [Human-in-the-Loop Pattern](https://docs.statebase.org/patterns/human-in-the-loop.md): Build agents that know when to escalate to humans for critical decisions - [RAG Agents Pattern](https://docs.statebase.org/patterns/rag-agents.md): Build retrieval-augmented generation agents with StateBase for accurate, context-aware responses - [Tool Calling Pattern](https://docs.statebase.org/patterns/tool-calling.md): Best practices for building agents that reliably call external tools and APIs - [Rollback Strategies](https://docs.statebase.org/playbook/rollback-strategies.md): Techniques for recovering from agent drift. - [When to Checkpoint](https://docs.statebase.org/playbook/when-to-checkpoint.md): Optimizing for reliability vs. token costs. - [Quickstart](https://docs.statebase.org/quickstart.md): Ship with confidence in under 2 minutes. - [SDK Design Patterns](https://docs.statebase.org/sdks/patterns.md): How to structure your code for maximum reliability. - [Python SDK](https://docs.statebase.org/sdks/python.md): Async-ready, lightweight client for StateBase. - [TypeScript SDK](https://docs.statebase.org/sdks/typescript.md): Official Node.js Client - [Reliability Guarantees](https://docs.statebase.org/security/reliability-guarantees.md): What happens when things go wrong? - [Copy-Paste Agent Example](https://docs.statebase.org/start-here/copy-paste-example.md): A complete, production-ready persistent agent in one file. - [When to use StateBase](https://docs.statebase.org/start-here/when-to-use.md): Identifying the anti-patterns of stateless agents. ## OpenAPI Specs - [openapi](https://docs.statebase.org/api-reference/openapi.json) ## Optional - [GitHub](https://github.com/StateBase) - [Discord](https://discord.gg/statebase)