Integration Guides

Nomotic integrates with any AI agent framework through the GovernedAgentBase class. All integrations follow the same pattern:

  1. govern_action() — evaluate the action before execution

  2. Execute — run the action if governance allows it

  3. validate_output() — validate the agent's output after generation

The governed_run() method combines all three steps into a single call.

Available Integrations

Framework
Guide
Pattern

Core governance wrapper

Base class for all integrations

State graph with governed nodes

Governance as graph nodes with conditional edges

Governed crew tasks

Task wrapper with veto handling

Function calling governance

Tool dispatch with governance gate

Anthropic SDK integration

Governed API calls with output validation

Prerequisites

All integrations require:

pip install nomotic

Plus the framework-specific package (e.g., langgraph, crewai, openai, anthropic).

Core Pattern

Every integration follows this structure:

Start with GovernedAgentBasearrow-up-right to understand the core API, then see the framework-specific guides.

Last updated