Skip to content

feat: add pydanticai guard reset#249

Merged
nagasatish007 merged 2 commits into
agentguard-ai:mainfrom
wondr-wclabs:feature/pydanticai-reset
Jun 6, 2026
Merged

feat: add pydanticai guard reset#249
nagasatish007 merged 2 commits into
agentguard-ai:mainfrom
wondr-wclabs:feature/pydanticai-reset

Conversation

@wondr-wclabs
Copy link
Copy Markdown
Contributor

Fixes #233

Summary

  • Added TealTigerGuard.reset() for the PydanticAI adapter so session cleanup clears cumulative cost, call count, audit trail, per-tool summaries, and frozen state.
  • Added reset coverage for accumulated session state and for clearing a frozen guard.
  • Modernized the touched adapter files to satisfy the package ruff config while keeping the change confined to guard.py and test_guard.py.

Validation

  • uv run --extra dev pytest tests/test_guard.py -q — 62 passed
  • uv run --extra dev ruff check src tests
  • uv run --extra dev ruff format --check src tests
  • git diff --check

Copy link
Copy Markdown
Contributor

@nagasatish007 nagasatish007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@nagasatish007 nagasatish007 merged commit 01f3ce7 into agentguard-ai:main Jun 6, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: add reset() method to TealTigerGuard for session cleanup

2 participants