Skip to main content
Dome can be wrapped around any LLM call to Guard its inputs and outputs. Simply route the input to your LLM through Dome’s input Guardrail first, and then pass Dome’s output to your LLM. Once you obtain a response from your LLM, pass it through Dome’s output Guardrail to obtain a final response. You can see an example below using a OpenAI client as the LLM of choice.
In this example, we used an OpenAI client, but it can be replaced with any LLM such as a local hugging face model, a local Ollama deployment, or a model on Bedrock or GCP.
Last modified on July 22, 2026