> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vijil.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Guardrails

> Runtime patterns and best practices for Dome Guardrails.

This guide covers common patterns for integrating Dome Guardrails into your agent, including sync/async usage, error handling, and production best practices.

You will learn how to perform:

* **Basic integration pattern**: a standard pattern that wraps your agent with input and output Guards.
* **Async integration pattern**: async/await pattern for async applications.
* **Work with scan results**: how to interpret and use scan results.
* **Use separate Guardrails**: how to use input and output Guardrails separately.
* **Custom block messages**: how to override default block messages.
* **Error handling**: how to handle Guard failures gracefully.
* **Streaming responses**: how to handle streaming responses and Guard the complete response.
* **Multi-turn conversations**: how to handle multi-turn conversations.
* **RAG applications**: how to handle RAG applications (Guard both retrieval context and responses).
* **Tool-using agents**: how to handle tool-using agents (Guard both tool inputs and outputs).

<Card title="Work in Progress" icon="pickaxe" badge="Private preview">
  The programmatic protection capabilities and Dome integrations are currently in private preview and subject to change.
</Card>

## Next Steps

<CardGroup cols={1}>
  <Card title="Configure Guardrails" icon="train-track" href="/developer-guide/protect/configuring-guardrails">
    Detailed Guard configuration
  </Card>

  <Card title="Custom Detectors" icon="wrench" href="/developer-guide/protect/custom-detectors">
    Build custom detection methods
  </Card>

  <Card title="Observability" icon="eye" href="/developer-guide/protect/observability">
    OpenTelemetry integration
  </Card>
</CardGroup>
