Skip to content

feat: Enable native tool calling for gemini-3-pro-preview#11774

Merged
enyst merged 2 commits intomainfrom
feat/gemini-3-pro-preview-tool-calling
Nov 18, 2025
Merged

feat: Enable native tool calling for gemini-3-pro-preview#11774
enyst merged 2 commits intomainfrom
feat/gemini-3-pro-preview-tool-calling

Conversation

@enyst
Copy link
Copy Markdown
Collaborator

@enyst enyst commented Nov 18, 2025

This PR enables native tool calling for the gemini-3-pro-preview model by adding it to the FUNCTION_CALLING_PATTERNS in openhands/llm/model_features.py. It also updates the unit tests in tests/unit/llm/test_model_features.py to verify this feature.

@enyst can click here to continue refining the PR


To run this PR locally, use the following command:

GUI with Docker:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.openhands.dev/openhands/runtime:20c16d2-nikolaik   --name openhands-app-20c16d2   docker.openhands.dev/openhands/openhands:20c16d2

CLI with uvx:

uvx --python 3.12 --from git+https://github.com/OpenHands/OpenHands@feat/gemini-3-pro-preview-tool-calling#subdirectory=openhands-cli openhands

Comment thread openhands/llm/model_features.py Outdated
@enyst enyst marked this pull request as ready for review November 18, 2025 19:58
Copy link
Copy Markdown
Collaborator

@xingyaoww xingyaoww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ouch, great catch!

I didn't realize we weren't doing that 😅

I thought we by default do fn call for all models today?

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

@xingyaoww
Copy link
Copy Markdown
Collaborator

ah nvm, this is openhands v0, not v1!

@enyst enyst merged commit bede37f into main Nov 18, 2025
24 checks passed
@enyst enyst deleted the feat/gemini-3-pro-preview-tool-calling branch November 18, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants