Skip to content

[FirebaseAI] Add AgentPlatform backend#1495

Merged
a-maurice merged 6 commits into
mainfrom
am-agent_platform
Jul 21, 2026
Merged

[FirebaseAI] Add AgentPlatform backend#1495
a-maurice merged 6 commits into
mainfrom
am-agent_platform

Conversation

@a-maurice

@a-maurice a-maurice commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Description

Provide details of the change, and generalize the change in the PR title above.

Add the Agent Platform backend, which replaces the Vertex AI one. Note that the old one is deprecated, and will be removed in the future.


Testing

Describe how you've tested these changes.

Running tests locally


Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for the new AgentPlatform backend provider, deprecating the VertexAI backend configuration in favor of AgentPlatform (which defaults to the 'global' location). The changes update Citation.cs, FirebaseAI.cs, GenerativeModel.cs, and LiveGenerativeModel.cs to handle the new provider. However, a critical issue was identified: HttpHelpers.cs (specifically GetURL and GetTemplateURL) has not been updated to support AgentPlatform, which will cause a runtime NotSupportedException when using this backend.

Comment thread firebaseai/src/FirebaseAI.cs
@a-maurice

Copy link
Copy Markdown
Collaborator Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the Agent Platform backend provider to the Firebase AI SDK, deprecating the existing Vertex AI backend. It updates the SDK core logic, URL generation, citation handling, and the test application to support this new backend. The review feedback points out that the @deprecated tag used in the XML documentation for VertexAI is a Javadoc tag and is invalid in C#. It suggests replacing it with the standard tag to ensure proper rendering in C# IDEs.

Comment thread firebaseai/src/FirebaseAI.cs Outdated
@a-maurice
a-maurice requested a review from AustinBenoit July 20, 2026 21:30
@a-maurice
a-maurice merged commit f96e8c3 into main Jul 21, 2026
14 checks passed
@a-maurice
a-maurice deleted the am-agent_platform branch July 21, 2026 17:33
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