feat(vertex-ai): Refactor Gemini for new tool calling API

- Migrate from function calling to tool calling API
- Add support for Gemini 2.0 models (flash, flash-lite)
- Implement JSON schema to OpenAPI schema conversion
- Add builder pattern for improved configuration
- Deprecate legacy function calling constructors and methods
- Update default model to GEMINI_2_0_FLASH
- Add comprehensive test coverage for tool calling
- Upgrade victools dependency to 4.37.0
- Update the Vertex Tool calling docs

Part of the #2207 epic

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
This commit is contained in:
Christian Tzolov
2025-02-13 00:46:52 +01:00
committed by Mark Pollack
parent 4d692a542b
commit 710bb05f19
28 changed files with 1850 additions and 541 deletions

View File

@@ -190,7 +190,7 @@
<ST4.version>4.3.4</ST4.version>
<azure-open-ai-client.version>1.0.0-beta.13</azure-open-ai-client.version>
<jtokkit.version>1.1.0</jtokkit.version>
<victools.version>4.31.1</victools.version>
<victools.version>4.37.0</victools.version>
<kotlin.version>1.9.25</kotlin.version>
<!-- NOTE: keep bedrockruntime and awssdk versions aligned -->