github agno-agi/agno v2.3.0

2 hours ago

Changelog

New Features:

  • ModelsLab SFX Support: You can now generate sound effects with ModelLabsTools.
  • Database Migrations Manager: We are introducing the MigrationManager class together with our first migrations for the sessions and memories tables.
    • If you are using PostgreSQL, SQLite, MySQL, or SingleStore together with Agno, you would benefit from migrating your tables to the latest version.
    • You can read more on how to handle your migrations in the Migration docs.

Improvements:

  • Async Mongo: Improve support for using the AsyncMongoDb class in contexts where multiple event loops exist, like some advance use cases with the AgentOS.
  • HTTPX Client Singleton: All model instances now share a httpx client for much better resource allocation and instantiation speed. Also adds http2 for better http multiplexing.
  • show_member_responses: You can now set show_member_responses on print_response, aprint_response for Team.
  • RedisCluster Support: Added support for RedisCluster when configuring a RedisDb instance for agent database.
  • Stateless Knowledge base Filters: Filters on knowledge base now correctly work with AgentOS in a stateless manner. It means using filtering on knowledge now requires the use of contents_db.

Bug Fixes:

  • OpenAIEmbedder lazy imports: Fix import errors by making OpenAIEmbedder imports lazy in SemanticChunking and CouchbaseSearch.
  • Anthropic Betas Streaming: Update the logic to stream responses while using Anthropic models with Beta features activated. Now all events are always emitted as expected.
  • Knowledge filters: Update the knowledge.get_filters() method to always return valid filter keys instead of dummy keys.
  • Gemini Unclosed Session: Correctly handle client session lifecycle for Gemini models to deal with “Unclosed client session” errors.
  • Session History Retrieval: Fixed get_previous_session_messages() to return the most recent N sessions instead of the oldest N sessions.

Breaking changes:

  • Nebius Model: Updated the default behavior to use the new api.tokenfactory.nebius.com endpoint.
    • If you are using Nebius AI Studio you can still specify that URL as the base_url, but by default the class uses the Token Factory URL as per the Nebius product release.
  • Team Delegation Flag: Renamed the delegate_task_to_all_members parameter in Team to delegate_to_all_members.
  • Google Search Toolkit: The GoogleSearchTools Toolkit has been removed, as scrapping Google results in the way it was done here is not longer possible. We recommend using DuckDuckGoTools instead for your web searching needs.
  • Streaming with Print and CLI methods: The stream_events parameter has been removed from the print_response, aprint_response, and CLI methods, for Agent, Team and Workflow. Event handling is now always done correctly when streaming a response with these methods.
  • Knowledge requires Contents DB: Using knowledge(...) now requires setting the contents_db if you want to use knowledge_filters . See the docs on filtering.
  • Functions to get Messages and Chat History: Some util functions have been renamed, updated or removed. This is the complete list of changes:
    • Removed functions:
      • get_messages_for_session from Agent and Team.
      • get_messages_from_last_n_runs from the Session, Agent, and Team classes.
    • Functions available now:
      • get_messages and get_chat_history in the Session classes.
      • get_session_messages and get_chat_history in the Agent, Team and Workflow classes.
      • get_chat_history also on the Step class.
    • The get_messages and get_session_messages functions now have all filtering capabilities. See the docs.
  • Removed AgentOS Parameters: The following parameters have been removed from the AgentOS class after being deprecated in our previous v2.2.0 version:
    • os_id: You should now use id
    • fastapi_app: You should now use base_app
    • enable_mcp: You should now use enable_mcp_server
    • replace_routes: You should now use on_route_conflict

What's Changed

New Contributors

Full Changelog: v2.2.13...v2.3.0

Don't miss a new agno release

NewReleases is sending notifications on new releases.