8000
Skip to content

[AI] Add tool-use support for Template AI models - #8004

Merged
rlazo merged 3 commits into
mainfrom
rl.funcall.impl
Apr 1, 2026
Merged

[AI] Add tool-use support for Template AI models#8004
rlazo merged 3 commits into
mainfrom
rl.funcall.impl

Conversation

@rlazo
@rlazo rlazo commented Apr 1, 2026
Copy link
Copy Markdown
Contributor

Introduced new types TemplateTool, TemplateFunctionDeclaration, TemplateAutoFunctionDeclaration, and TemplateToolConfig to enable tool use with template-based generative models.

Testing done manually, internal gpaste/4988758618406912

Introduced new types `TemplateTool`, `TemplateFunctionDeclaration`,
`TemplateAutoFunctionDeclaration`, and `TemplateToolConfig` to enable
tool use with template-based generative models.

Testing done manually, internal gpaste/4988758618406912
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions
github-actions Bot commented Apr 1, 2026
Copy link
Copy Markdown
Contributor

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

@rlazo
rlazo enabled auto-merge (squash) April 1, 2026 06:15
@rlazo
rlazo requested a review from VinayGuthal April 1, 2026 06:15
It includes changes from the deprecation change
@google-oss-bot
Copy link
Copy Markdown
Collaborator

The public api surface has changed for the subproject ai-logic_firebase-ai:
error: Added method com.google.firebase.ai.FirebaseAI.templateGenerativeModel(com.google.firebase.ai.type.RequestOptions,java.util.List<com.google.firebase.ai.type.TemplateTool>) [AddedMethod]
error: Added method com.google.firebase.ai.FirebaseAI.templateGenerativeModel(com.google.firebase.ai.type.RequestOptions,java.util.List<com.google.firebase.ai.type.TemplateTool>,com.google.firebase.ai.type.TemplateToolConfig) [AddedMethod]
error: Added class com.google.firebase.ai.type.TemplateAutoFunctionDeclaration [AddedClass]
error: Added class com.google.firebase.ai.type.TemplateFunctionDeclaration [AddedClass]
error: Added class com.google.firebase.ai.type.TemplateTool [AddedClass]
error: Added class com.google.firebase.ai.type.TemplateToolConfig [AddedClass]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

1 similar comment
@google-oss-bot
Copy link
Copy Markdown
Collaborator

The public api surface has changed for the subproject ai-logic_firebase-ai:
error: Added method com.google.firebase.ai.FirebaseAI.templateGenerativeModel(com.google.firebase.ai.type.RequestOptions,java.util.List<com.google.firebase.ai.type.TemplateTool>) [AddedMethod]
error: Added method com.google.firebase.ai.FirebaseAI.templateGenerativeModel(com.google.firebase.ai.type.RequestOptions,java.util.List<com.google.firebase.ai.type.TemplateTool>,com.google.firebase.ai.type.TemplateToolConfig) [AddedMethod]
error: Added class com.google.firebase.ai.type.TemplateAutoFunctionDeclaration [AddedClass]
error: Added class com.google.firebase.ai.type.TemplateFunctionDeclaration [AddedClass]
error: Added class com.google.firebase.ai.type.TemplateTool [AddedClass]
error: Added class com.google.firebase.ai.type.TemplateToolConfig [AddedClass]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

@rlazo
rlazo merged commit 1cb95d3 into main Apr 1, 2026
31 checks passed
@rlazo
rlazo deleted the rl.funcall.impl branch April 1, 2026 13:16
@github-actions github-actions Bot mentioned this pull request Apr 2, 2026
@firebase firebase locked and limited conversation to collaborators May 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0