Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[0.1.3] - 2026-09-05
🚀 Added
- Raw Client Integration (OpenAI & Anthropic): Added
AgentStep.from_openai_response()andAgentStep.from_anthropic_response()class methods. Enables using LongGuard directly with standardopenaiandanthropicSDK client loops without requiring LangGraph or LangChain. - Dollar Cost Tracking: Built-in pricing engine (
PRICING_TABLE,compute_cost,list_supported_models) supporting 40+ major LLM models (OpenAI GPT-4o/o1/o3, Anthropic Claude 3.5/4, Gemini 1.5/2.0/2.5, LLaMA 3.1/3.3, Mistral, Cohere). - Budget Hard Cap (
max_cost_usd): Configure hard dollar spend limits on agent runs (max_cost_usd) to immediately trip the circuit breaker and prevent runaway API bills. - Custom Token Pricing Overrides: Added
cost_per_input_tokenandcost_per_output_tokeninGuardConfigfor private/fine-tuned or unlisted models. - Report Persistence (
save/load): Persist telemetry to disk viareport.save("run.json")and restore full state usingGuardReport.load("run.json"). Supports JSON natively and YAML (whenpyyamlis installed). - Runnable Examples & Docs: Added standalone example in
examples/openai_raw_guard.pyand documentation indocs/integrations/raw-client.md.
🔄 Changed
- GuardReport Telemetry:
GuardReport.summary()now displaysEstimated Cost: $X.XXXX USD (model)when cost tracking is configured. - Expanded Test Suite: Added 76 new test cases (255 tests total, 100% passing) covering SDK response parsing, pricing calculations, breaker cost limits, and report serialization.
- Automated GitHub Releases: Enhanced GitHub Actions workflow to parse release notes directly from
CHANGELOG.mdand exclude internal build metadata from release assets.
[0.1.2] - 2026-09-05
🎨 Changed
- Dual-Theme Branding: Added dual-theme vector logos (
logo-light.svgandlogo-dark.svg) ensuring crystal-clear visibility across GitHub Dark, GitHub Light, and PyPI. - Clean Architecture Diagram: Replaced architecture diagram with high-contrast, professional SVG asset.
- Contact Updates: Updated repository contact and security email addresses to
technology@endevsols.com. - Branding Alignment: Refactored README and documentation to match the EnDevSols Long Suite design standards.
[0.1.1] - 2026-09-05
🚀 Added
- Initial Public Release of LongGuard: Production-grade in-flight circuit breaker for autonomous AI agents.
- Circuit Breaker State Machine: 4-state lifecycle (
CLOSED,REFLECTING,HALF_OPEN,OPEN). - 4 Autonomous Loop Detectors:
ToolRepeatDetector: Identifies repetitive tool invocations with identical parameters.SemanticOscillationDetector: Detects thought cycles and semantic loops using embedding variance.DeadEndDriftDetector: Flags repeated empty, uninformative, or error-laden tool observations via Jaccard similarity.TokenVelocityDetector: Monitors token consumption spikes against dynamic baselines.- Reflect & Pivot Recovery: Dynamic prompt injection mechanism that guides stuck agents out of loops before halting.
- Framework Integrations:
- LangGraph 1.0+ drop-in (
add_guard_to_graph,LongGuard). - LangChain
GuardedAgentExecutorwrapper. - Experimental Strands agent framework support (
StrandsGuard). - Full Observability: Comprehensive telemetry and run analytics via
GuardReport. - CI/CD & Documentation: Automated GitHub Actions test matrix across Python 3.10–3.12 and Material for MkDocs documentation site.