github agno-agi/agno v2.5.0

9 hours ago

Changelog

New Features

  • Team Execution Modes: Introduced TeamMode enum with four execution modes:
    • coordinate (default): Supervisor pattern where the leader picks members, crafts tasks, and synthesizes responses
    • route: Router pattern where the leader routes to a specialist and returns their response directly
    • broadcast: Broadcast pattern where the leader delegates the same task to all members simultaneously
    • tasks: Autonomous task-based execution where the leader decomposes goals into a shared task list
  • Human-in-the-Loop (HITL) for Teams: Improved RunRequirement system for paused runs with better support for:
    • Tool confirmation flows
    • User input collection with schema validation
    • External tool execution
  • Approval System: New @approval decorator for human approval workflows:
    • @approval(type="required"): Blocking approval that pauses the run until resolved via approvals API
    • @approval(type="audit"): Non-blocking audit trail for compliance/logging
    • Persistent approval records with status tracking (pending, approved, rejected, expired, cancelled)
    • Approvals API for listing, inspecting, and resolving approvals
  • Scheduler: Cron-based scheduling for agents, teams, and workflows with retry, timeout, and timezone support.
  • LearningMachine for Teams: Added support for LearningMachine for persistent learning.
  • Callable Factories for Tools, Knowledge, and Members: Tools, knowledge, and team members can now be defined as callable factories that are resolved at runtime with access to RunContext. Supports caching via cache_callables and custom cache keys for session-scoped resolution.
  • Infra: Adds support for AWS EFS
  • Knowledge Isolation: Added isolate_vector_search flag to Knowledge class. When enabled, documents are tagged with linked_to metadata during insert and searches filter by this tag, allowing multiple Knowledge instances to share the same vector database while maintaining isolated search results. Defaults to False for backwards compatibility with existing data.

Improvements

  • Agent/Team Refactor: Major internal refactor of Agent and Team classes for cleaner separation of concerns.

Bug Fixes:

  • LanceDb Cloud: Fixed search() to stop reopening the table; use .to_list() instead of .to_pandas() in vector/hybrid/keyword search.
  • Primary key constraint: Fixed sessions, component_configs and component_links table to use primary key instead of _unique_constraints.

Breaking Changes

  • store_history_messages now defaults to False: History messages are no longer stored by default. This reduces unnecessary storage overhead, improves privacy by not persisting conversation history unless explicitly needed, and gives better control over storage costs. If you rely on stored history, set store_history_messages=True explicitly.
  • Knowledge Uniqueness: Knowledge instances now require a unique combination of database, table, and knowledge name. Multiple Knowledge instances cannot share the same table without distinct names to prevent data conflicts.

What's Changed

New Contributors

Full Changelog: v2.4.8...v2.5.0

Don't miss a new agno release

NewReleases is sending notifications on new releases.