Skip to content

v4.22.0 - AI-Native Features Release

Choose a tag to compare

@dgunning dgunning released this 28 Oct 00:29
· 1956 commits to main since this release

🤖 EdgarTools v4.22.0 - AI-Native Features

Major release introducing comprehensive AI-native capabilities to make EdgarTools the most learner-friendly and AI-agent-friendly SEC data library.

🎯 What's New

AI-Native Object Documentation

Every major EdgarTools object now includes rich, searchable documentation via the .docs property:

  • 3,450+ lines of comprehensive API documentation
  • Built-in BM25 search for finding relevant information instantly
  • .text() methods for token-efficient AI agent context
  • Progressive disclosure with three detail levels (minimal/standard/detailed)
from edgar import Company

company = Company("AAPL")
company.docs  # Interactive rich documentation
company.docs.search("get financials")  # Search documentation
context = company.text(detail='standard', max_tokens=500)  # AI-optimized context

AI Skills Infrastructure

New extensible skill system for specialized SEC analysis:

  • BaseSkill abstract class for creating portable skill packages
  • SEC Filing Analysis skill with 2,500+ lines of curated workflows
  • Helper functions for common analysis patterns
  • Claude Desktop export functionality
  • Foundation for third-party skill development
from edgar.ai import list_skills, get_skill

skills = list_skills()
skill = get_skill("SEC Filing Analysis")
helpers = skill.get_helpers()
revenue_trend = helpers['get_revenue_trend']("AAPL", periods=3)

MCP Server Consolidation

Streamlined Model Context Protocol implementation:

  • Consolidated 3 duplicate implementations into unified edgar/ai/mcp/ subpackage
  • Removed 1,544 lines of duplicate code
  • Backward compatibility maintained via deprecation stubs
  • Single source of truth for easier maintenance

🐛 Bug Fixes

  • Issue #459: Fixed crash when stitching filings including pre-2009 (pre-XBRL) filings
  • XBRLS: Fixed filter_amendments parameter handling in XBRLS.from_filings()

📚 Documentation

🔄 Compatibility

Zero breaking changes - all existing APIs remain fully compatible. MCP imports maintain backward compatibility via deprecation warnings.

📦 Installation

pip install edgartools --upgrade

🙏 Acknowledgments

Special thanks to the community for feedback and feature requests that shaped this release!


See CHANGELOG.md for complete details.