Skip to content

eagleeyethinker/ai-guardrails-three-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# AI Guardrails — 3 Enterprise Examples

This repo contains **three progressively advanced examples** to accompany the newsletter:

1. **LLM Guardrails** — policy layer around a single LLM
2. **Agent + Tool Calling Guardrails** — LLM proposes tool calls, guardrails authorize execution
3. **Multi-Agent Guardrails** — planner + worker agents with centralized governance

## Quick start

```bash
python -m venv venv
# Windows
venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env
# add OPENAI_API_KEY
```

Run examples:

```bash
python examples/01_llm_guardrails.py
python examples/02_agent_tool_guardrails.py
python examples/03_multi_agent_guardrails.py
```

## Architecture (high-level)

```
LLM Example:
User -> Guardrails -> LLM

Agent Example:
User -> Agent(LLM) -> Guardrails -> Tool

Multi-agent Example:
User -> Planner Agent -> Guardrails -> Worker Agent -> Guardrails -> Tools
```

## Notes

- This is intentionally small and readable.
- Replace in-memory policies with enterprise policy services in production.

About

Three practical examples of AI guardrails: LLM guardrails, agent tool-calling authorization, and multi-agent governance patterns for enterprise AI systems.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages