Enforce rules with the SDK

With the SDK, you add Guardian to each agent's code, and redeploy the agent to update its rules. Guardian runs inside your agent as part of the Collibra SDK, and works with agents built with LangChain, LangGraph, or Deep Agents, on any platform.

Both the SDK and the AI Gateway use the same policy engine and the same Agent Contracts, so you create your contracts once. For more information, go to About Guardian Agents and Agent Contracts.

Requirements

For the tested framework versions and the SDK extras, go to Guardian SDK settings and supported frameworks.

Steps

  1. Set up the SDK in your agent: The setup skill adds the SDK to your agent, and you run the agent with Guardian. The topic includes a table of the steps that the skill takes and what you do at each step.
  2. Deploy your agent and connect Collibra: Deploy your agent to your platform, and make sure that Collibra can read Guardian's activity.
  3. Check the results: Check that Guardian works, and learn how to change a rule.

What's next