Skip to content

Releases: bmdhodl/agent47

v1.2.1 — CostTracker Improvements

15 Feb 01:44

Choose a tag to compare

What's New in v1.2.1

CostTracker Improvements

  • Per-span cost events: CostTracker now includes running total in span end events (cost_usd field)
  • 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.1

Quick 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 > $5

v1.0.0 — Production GA

09 Feb 20:17
b6402e6

Choose a tag to compare

AgentGuard v1.0.0 — Production GA

Runtime guardrails for AI agents. Stop loops, enforce budgets, trace everything — zero dependencies.

pip install agentguard47

Highlights

  • 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

08 Feb 16:51

Choose a tag to compare

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 budget
pip install agentguard47

Full changelog: v0.4.0...v0.5.0

v0.4.0 — Hosted Dashboard & Billing

08 Feb 16:51

Choose a tag to compare

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 agentguard47

v0.3.0 — Evaluation, Auto-Instrumentation, Gantt Viewer

08 Feb 16:51

Choose a tag to compare

New Features

  • Evaluation as Code: EvalSuite — chainable assertion-based trace analysis for CI
  • Auto-instrumentation: @trace_agent / @trace_tool decorators, patch_openai() / patch_anthropic()
  • Gantt trace viewer: agentguard view traces.jsonl opens a timeline visualization in your browser
pip install agentguard47

v0.2.0 — Initial Release

08 Feb 16:51

Choose a tag to compare

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: LoopGuard catches repeated tool calls in a sliding window
  • Budget enforcement: BudgetGuard with token, call count, and dollar limits
  • Timeout protection: TimeoutGuard for wall-clock limits
  • Recording & replay: Deterministic replay for regression testing
  • CLI: agentguard report, agentguard summarize
  • LangChain integration: AgentGuardCallbackHandler callback handler

Install

pip install agentguard47

Pure Python stdlib. Zero dependencies. MIT licensed.