Skip to content

feat(ai): add generated GenerateContent API types - #16445

Open
andrewheard wants to merge 11 commits into
mainfrom
ah/ai-add-generated-types
Open

feat(ai): add generated GenerateContent API types#16445
andrewheard wants to merge 11 commits into
mainfrom
ah/ai-add-generated-types

Conversation

@andrewheard

@andrewheard andrewheard commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Added GenerateContent API types auto-generated from the OpenAPI spec. The generated files have the extension .gen.swift to work around file name overlaps with existing public types. They were directly added to the FirebaseAILogic target, rather than a separate one, in order to satisfy both CocoaPods and SPM, which emitted different warnings/errors about unused package import Foundation or missing Foundation import. The generated types are unused in this PR and wiring them up was split into #16446.

#no-changelog

@gemini-code-assist

Copy link
Copy Markdown
Contributor
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

@andrewheard
andrewheard force-pushed the ah/ai-add-generated-types branch from 6a6c20e to 0d95407 Compare July 28, 2026 19:11
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

This pull request introduces a set of auto-generated API types for the GenerateContent functionality within the FirebaseAI component. These types were generated from the OpenAPI specification to ensure consistency and are intended to be wired up in a subsequent pull request. The changes are localized to the FirebaseAILogic target to ensure compatibility across different package managers.

Highlights

  • API Type Generation: Added auto-generated GenerateContent API types from the OpenAPI specification to the FirebaseAILogic target.
  • File Naming Strategy: Utilized the .gen.swift file extension for generated types to prevent conflicts with existing public types.
  • Configuration: Updated .gitignore to include new test resources and configuration files for FirebaseAI.
New Features

🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Activity
  • Pull request created by andrewheard.
  • Gemini Code Assist bot provided guidance on usage.
  • Author requested a summary via /gemini summary.

@andrewheard
andrewheard marked this pull request as ready for review July 28, 2026 22:42
@andrewheard
andrewheard requested a review from paulb777 July 28, 2026 22:42

@paulb777 paulb777 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

One of Gemini's comments 😄

By restricting the iOS SDK's new models to the stateless generateContent paradigm, the Firebase AI Logic SDK misses out on the core features designed for agentic, multi-turn, and long-running AI workflows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants