Releases: bmdhodl/agent47
Releases · bmdhodl/agent47
v1.2.1 — CostTracker Improvements
What's New in v1.2.1
CostTracker Improvements
- Per-span cost events: CostTracker now includes running total in span end events (
cost_usdfield) - Model pricing accuracy: Updated model pricing for latest OpenAI, Anthropic, and Google models
- Warning on unknown models:
estimate_cost()logs a warning when encountering unrecognized model names
Bug Fixes
- Fixed span end events not including accumulated cost data
- Improved CostTracker thread safety
Full Changelog
Full Changelog: v1.2.0...v1.2.1
Installation
pip install agentguard47==1.2.1Quick Start
from agentguard import Tracer, BudgetGuard
guard = BudgetGuard(max_budget_usd=5.00)
tracer = Tracer(service="my-agent", guards=[guard])
with tracer.span("agent-run"):
# Your agent code here
pass # BudgetExceeded raised if cost > $5v1.0.0 — Production GA
AgentGuard v1.0.0 — Production GA
Runtime guardrails for AI agents. Stop loops, enforce budgets, trace everything — zero dependencies.
pip install agentguard47Highlights
- 5 guards: LoopGuard, FuzzyLoopGuard, BudgetGuard, TimeoutGuard, RateLimitGuard
- 4 integrations: LangChain, LangGraph, CrewAI, OpenTelemetry
- Auto-instrumentation: patch_openai() / patch_anthropic() for automatic tracing
- Full async API: AsyncTracer, async decorators, async monkey-patches
- Cost tracking: Built-in pricing for OpenAI, Anthropic, Google, Mistral, Meta
- Evaluation: Assert properties of traces in tests or CI
- Production-ready: Gzip compression, retry with backoff, sampling, SSRF protection
- CLI: agentguard report, view, summarize, eval
Quality
- 317 tests, 86% coverage
- Python 3.9-3.12
- Zero dependencies (pure Python stdlib)
- Development Status: Production/Stable
Links
v0.5.0 — Cost Tracking & Dollar Budget Guards
New Features
- Cost tracking: Dollar estimates per LLM call (OpenAI, Anthropic, Gemini, Mistral)
- Dollar budget guards:
BudgetGuard(max_cost_usd=5.00)— stop at a dollar threshold - Cost in LangChain handler: Auto-estimates cost from token usage and model name
- Dashboard UI overhaul: Improved trace viewer, cost breakdowns, responsive layout
- 106 tests passing across all modules
from agentguard import BudgetGuard
guard = BudgetGuard(max_cost_usd=5.00)
guard.consume(cost_usd=0.12) # raises BudgetExceeded when over budgetpip install agentguard47Full changelog: v0.4.0...v0.5.0
v0.4.0 — Hosted Dashboard & Billing
New Features
- Hosted dashboard: Next.js 14 app with auth, Gantt viewer, usage tracking at app.agentguard47.com
- Billing: Stripe integration — Free / Pro ($39/mo) / Team ($149/mo)
- HttpSink: Send traces to the hosted dashboard
- API key management: Generate and revoke
ag_-prefixed keys - Landing page: agentguard47.com with pricing, FAQ, trust signals
- Rate limiting: 100 req/min per IP on ingest endpoint
pip install agentguard47v0.3.0 — Evaluation, Auto-Instrumentation, Gantt Viewer
New Features
- Evaluation as Code:
EvalSuite— chainable assertion-based trace analysis for CI - Auto-instrumentation:
@trace_agent/@trace_tooldecorators,patch_openai()/patch_anthropic() - Gantt trace viewer:
agentguard view traces.jsonlopens a timeline visualization in your browser
pip install agentguard47v0.2.0 — Initial Release
AgentGuard v0.2.0 — Initial Release
The first public release of AgentGuard: zero-dependency runtime guardrails for AI agents.
Features
- Tracing: Structured JSONL traces with span/event correlation
- Loop detection:
LoopGuardcatches repeated tool calls in a sliding window - Budget enforcement:
BudgetGuardwith token, call count, and dollar limits - Timeout protection:
TimeoutGuardfor wall-clock limits - Recording & replay: Deterministic replay for regression testing
- CLI:
agentguard report,agentguard summarize - LangChain integration:
AgentGuardCallbackHandlercallback handler
Install
pip install agentguard47Pure Python stdlib. Zero dependencies. MIT licensed.