You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+24-57Lines changed: 24 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,83 +4,50 @@ Instructions for AI coding assistants working on this repository.
4
4
5
5
## Project Overview
6
6
7
-
**pydantic-ai-middleware**is a simple middleware library for [pydantic-ai](https://ai.pydantic.dev/) agents. It provides clean before/after hooks at every lifecycle stage without imposing a guardrails structure - you decide what to do (logging, guardrails, metrics, transformations).
7
+
**pydantic-ai-shields**provides guardrail capabilities for [pydantic-ai](https://ai.pydantic.dev/) agents. Built on pydantic-ai's native capabilities API (v1.71+). No middleware wrappers — pure capabilities.
8
8
9
9
## Quick Reference
10
10
11
11
| Task | Command |
12
12
|------|---------|
13
-
| Install |`make install`|
14
-
| Test |`make test`|
15
-
| Test + Coverage |`uv run coverage run -m pytest && uv run coverage report`|
16
-
| Lint |`uv run ruff check .`|
17
-
| Format |`uv run ruff format .`|
18
-
| Typecheck |`uv run pyright` and `uv run mypy .`|
19
-
| All checks |`make all`|
20
-
| Build docs |`make docs-serve`|
13
+
| Test |`uv run pytest tests/ -v`|
14
+
| Test + Coverage |`uv run coverage run -m pytest tests/ && uv run coverage report --fail-under=100`|
15
+
| Lint |`uv run ruff check src/ tests/`|
16
+
| Typecheck |`uv run pyright src/`|
21
17
22
18
## Architecture
23
19
24
20
```
25
-
pydantic_ai_middleware/
26
-
├── base.py # AgentMiddleware - base class with lifecycle hooks
27
-
├── agent.py # MiddlewareAgent - wraps agents with middleware
0 commit comments