v2.6.5

agno-agi/agnov2.6.5May 6, 2026by kausmeows

AI Summary

Adds Gemini multimodal file search, Gmail and Calendar context providers, scheduler support for Mongo, and error handling for workflow condition steps.

Key Highlights

  • Gemini Multimodal File Search support
  • Gmail and Calendar context providers
  • Scheduler support for Mongo and AsyncMongo
  • Workflow Condition Step `on_error` handling

New Features

  • Gemini Multimodal File Search
  • GmailContextProvider
  • CalendarContextProvider
  • Scheduler for Mongo/AsyncMongo
  • Workflow Condition Step `on_error`

Full Release Notes

# Changelog

## New Features:

- **Gemini Multimodal File Search:** Added multimodal support in the Gemini [File Search API](http://ai.google.dev/gemini-api/docs/file-search) (for `google-genai≥1.75.0`). See [cookbook](https://github.com/agno-agi/agno/blob/main/cookbook/90_models/google/gemini/file_search_image_upload.py).
- **Context Providers:** Added `GmailContextProvider` and `CalendarContextProvider` following the same pattern as existing providers (GDrive, Slack, Database). Also updates `GDriveContextProvider` to support OAuth in addition to service account auth.
- **Scheduler:** Added scheduler support for Mongo and AsyncMongo Db to run agents, teams, and workflows on a cron in AgentOS.
- **Workflow Condition Step:** Added `on_error` handling to the `Condition` workflow step, allowing users to control how errors are handled when sub-steps within a condition fail.

## Improvements:

- **LLMsTxt Tools:** Added an `allowed_hosts` param so agents only fetch from hosts you trust.
- **SlackContextProvider:** Add `enable_media_tools` flag (default: `False`) to control file download/upload.
    - `download_file` added to read tools
    - `upload_file` added to write tools

## Bug Fixes:

- **MCP IDOR:** Fixed to bind the `user_id` on AgentOS MCP tool handlers to the authenticated JWT subject to prevent cross-tenant reads and writes.
- **Toolkit Instructions:** Fixed `@tool(instructions=...)` to take effect when used inside a Toolkit.
- **Metrics:** Fixed to accumulate parser, output, and member metrics in team run_response.
- **Workflow:** Fixed to persist mid-step workflow run cancellation.
- **SQLTools:** Updated to include column default in `describe_table`.
- **Slack Interface:** Fixed to replace Slack bot @mention with display name instead of stripping.
- **GoogleDriveTools:** Fixed binary file errors + Office extraction + Shared Drive params in `GoogleDriveTools`.
- **ChromaDb:** Fixed to offload async batch upsert/insert to worker thread.
- **Memory:** Fixed include identity fields in `update_memory` and `delete_memory` tools.

## What's Changed
* fix: accumulate parser, output, and member metrics in team run_response by @ysolanky in https://github.com/agno-agi/agno/pull/7704
* fix: workflow cancellation persistance by @kausmeows in https://github.com/agno-agi/agno/pull/7732
* fix: include column default in describe_table by @Mustafa-Esoofally in https://github.com/agno-agi/agno/pull/7703
* feat: add search_messages and media tools to SlackContextProvider by @Mustafa-Esoofally in https://github.com/agno-agi/agno/pull/7702
* cookbook: frameworks quickstart for Agno + Claude Code + LangGraph + DSPy by @ashpreetbedi in https://github.com/agno-agi/agno/pull/7743
* fix: replace Slack bot @mention with display name instead of stripping by @Mustafa-Esoofally in https://github.com/agno-agi/agno/pull/7750
* fix: add allowed_hosts allowlist to LLMsTxtTools by @harshsinha03 in https://github.com/agno-agi/agno/pull/7759
* feat: add on_error handling to Condition step by @rotem-bar-cyera in https://github.com/agno-agi/agno/pull/7214
* feat: add Gmail and Calendar context providers by @Mustafa-Esoofally in https://github.com/agno-agi/agno/pull/7747
* fix: binary file errors + Office extraction + Shared Drive params in GoogleDriveTools by @Mustafa-Esoofally in https://github.com/agno-agi/agno/pull/7764
* fix: surface per-tool instructions when registered via Toolkit by @harshsinha03 in https://github.com/agno-agi/agno/pull/7798
* fix: chromadb offload async batch upsert/insert to worker thread by @basnijholt in https://github.com/agno-agi/agno/pull/7711
* fix: include identity fields in update_memory and delete_memory tools by @Mustafa-Esoofally in https://github.com/agno-agi/agno/pull/6550
* [feat] Added scheduler support for mongo by @abhi10691 in https://github.com/agno-agi/agno/pull/6938
* fix: bind MCP tool `user_id` to JWT subject by @sannya-singal in https://github.com/agno-agi/agno/pull/7811
* feat: gemini file api multimodal by @kausmeows in https://github.com/agno-agi/agno/pull/7788
* chore: Release v2.6.5 by @kausmeows in https://github.com/agno-agi/agno/pull/7809

## New Contributors
* @rotem-bar-cyera made their first contribution in https://github.com/agno-agi/agno/pull/7214

**Full Changelog**: https://github.com/agno-agi/agno/compare/v2.6.4...v2.6.5