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: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.
- 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).
Work in Progress
The programmatic protection capabilities and Dome integrations are currently in private preview and subject to change.
Next Steps
Configure Guardrails
Detailed Guard configuration
Custom Detectors
Build custom detection methods
Observability
OpenTelemetry integration