Files
Eduard van Valkenburg d08200d00e Python: Bump package versions for 1.12.0 release (#7238)
* Bump Python package versions for 1.12.0 release

Bump packages represented in the 1.12.0 changelog, promote Foundry Hosting, Azure Content Understanding, Gemini, Mistral, Monty, and Tools to beta, and apply the requested beta cohort date stamp. Root and core move to 1.12.0, released and RC packages use their selected increments, alpha packages including Hosting MCP use the 260721 stamp, and core floors are raised only for proven consumers.

Copilot-Session: 2dd9980a-b869-4c16-8642-75b7a6d6ebdf

* fix version in readme

* Add Responses conversation ID changes to release notes

Include the breaking Hosting Responses conversation ID helper changes from #7234 in the Python 1.12.0 changelog.

Copilot-Session: 2dd9980a-b869-4c16-8642-75b7a6d6ebdf
2026-07-21 15:45:00 +00:00
..

Google Gemini Examples

This folder contains examples demonstrating how to use Google Gemini models with the Agent Framework.

Examples

File Description
gemini_basic.py Basic agent with a weather tool, demonstrating both streaming and non-streaming responses.
gemini_advanced.py Extended thinking via ThinkingConfig for reasoning-heavy questions (Gemini 2.5+).
gemini_with_google_search.py Google Search grounding for up-to-date answers.
gemini_with_google_maps.py Google Maps grounding for location and mapping information.
gemini_with_code_execution.py Built-in code execution tool for computing precise answers in a sandboxed environment.

Environment Variables

  • GOOGLE_MODEL or GEMINI_MODEL: The Gemini model to use (for example, gemini-2.5-flash-lite or gemini-2.5-pro)
  • For Gemini Developer API: GEMINI_API_KEY or GOOGLE_API_KEY
  • For Vertex AI: GOOGLE_GENAI_USE_VERTEXAI=true, GOOGLE_CLOUD_PROJECT, and GOOGLE_CLOUD_LOCATION