Commit Graph
21 Commits
Author SHA1 Message Date
Andrew Heard ead1af3543 refactor(ai): revert renaming to Gemini Enterprise API (#16846)
Revert commit dd2cfa8df1 (#16685) to undo
the renaming from Gemini Enterprise Agent Platform to Gemini Enterprise
API.

- Restore Backend.agentPlatform(location:) as the primary public API
  and remove Backend.enterprise(location:).
- Revert APIConfig.Service.enterprise to .agentPlatform and restore
  agentPlatformStagingBypassProxy.
- Revert documentation comments, DocC topics, and guides back to
  Agent Platform Gemini API and Gemini Enterprise Agent Platform.
- Clean up leftover Vertex AI symbols to align with Agent Platform and
  FirebaseAILogic (isFirebaseAILogicServiceDisabledError and
  defaultAgentPlatformAPIConfig).
- Re-align tests and conflict resolutions from #16689, #16693, #16676,
  and #16756.
2026-10-05 23:54:12 +00:00
Paul Beusterien dd61534812 fix(ai): harden handling of unexpected server response parts (#16756) 2026-10-02 07:26:35 -07:00
Andrew Heard 3f9bc4e013 refactor(ai)!: rename Tool to GenerativeModel.Tool (#16700)
Nest `Tool` inside `GenerativeModel` as `GenerativeModel.Tool` to avoid
naming conflicts with Apple's `FoundationModels.Tool` protocol when both
modules are imported in the same file.

Moving `Tool` into `GenerativeModel` allows developers to adopt Apple's
Foundation Models framework without ambiguous symbol errors for
unqualified `Tool`. Call sites passing tools via leading-dot syntax
(e.g., `tools: [.googleSearch()]`) continue to work without changes.

- Nest `Tool` inside `GenerativeModel` and remove top-level `Tool`.
- Move static conveniences (`.googleSearch()`, `.googleMaps()`,
  `.functionDeclarations()`, `.urlContext()`, `.codeExecution()`) to an
  extension on `GenerativeModel.Tool`.
- Update `FirebaseAI.generativeModel`, `FirebaseAI.liveModel`,
  `LiveGenerativeModel`, and internal request types to use
  `GenerativeModel.Tool`.
- Remove leftover internal `isFoundationModeCompatible` property.
- Update DocC links and unit/integration tests across the module.

BREAKING CHANGE: The top-level `Tool` type in `FirebaseAILogic` has been
removed and nested inside `GenerativeModel` as `GenerativeModel.Tool`.
Call sites explicitly typed as `Tool` must update to
`GenerativeModel.Tool`. Calls using leading-dot syntax continue to
compile unmodified.
2026-09-24 12:17:30 -04:00
Paul Beusterien dd2cfa8df1 docs(ai): deprecate agentPlatform in favor of enterprise (#16685) 2026-09-23 08:57:25 -07:00
Paul BeusterienandAndrew Heard f98844f320 docs(FirebaseAI): rename Vertex AI to Agent Platform Gemini API in comments (#16457)
Co-authored-by: Andrew Heard <andrewheard@google.com>
2026-07-28 07:57:06 -07:00
Paul BeusterienandAndrew Heard 6b581ae875 [AI] Rename vertexAI to agentPlatform (#16372)
Co-authored-by: Andrew Heard <andrewheard@google.com>
2026-07-13 14:32:58 -07:00
Nick Cooke 71b30c0c56 fix(ailogic): stream errors should not be ignored (#16298) 2026-06-23 12:06:37 -04:00
Paul Beusterien 8571f718e5 [AI] Consolidate duplicate generateContentStream code (#16046) 2026-04-08 13:22:20 -04:00
2a57f97341 [AI] Automatic function calling (#15915)
Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-03-31 23:48:34 -04:00
Andrew Heard 150698e98a [AI] Lower minimum required deployment targets (#15928) 2026-03-12 18:33:33 -04:00
4565e79f78 [AI] Add GenerativeModelSession with structured output APIs (#15872)
Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-03-10 00:51:04 -04:00
Andrew Heard f0555c6cdb [Firebase AI] Add support for direct Vertex AI integration testing (#15498) 2025-11-14 11:18:11 -05:00
Daymon 455d291111 fix(ai): Fix broken links and update docs per cl (#15399) 2025-10-09 14:03:44 -07:00
Andrew Heard 9f4c34bbdb [Firebase AI] Handle empty or unknown Part data (#15262) 2025-09-03 19:30:02 -04:00
Daymon d1196974ea [FAL] Move useLimitedUseAppCheckTokens property into FirebaseInfo + Update docs (#15234) 2025-08-25 14:10:17 -05:00
Daymon 6706aa8fd8 [FAL] Add limited-use token support (#15099) 2025-08-19 17:50:13 -05:00
Andrew Heard 0be8ceca17 [Firebase AI] Add support for Gemma models with Developer API (#14823) 2025-05-06 18:56:04 -04:00
Andrew Heard 75999ccb8a [Firebase AI] Rename internal APIConfig enums (#14778) 2025-05-01 19:52:45 -04:00
Paul Beusterien 1687f0c1da [Firebase AI] More naming updates (#14779) 2025-04-28 09:22:03 -07:00
Paul Beusterien 5659604196 Renames for console logging (#14776) 2025-04-25 14:18:32 -07:00
Andrew Heard 8a854c732b [Firebase AI] Add initial project structure (#14737)
# Conflicts:
#	FirebaseAI/Tests/Unit/Types/GenerateContentResponseTests.swift
#	FirebaseVertexAI/Sources/VertexAI.swift
2025-04-25 10:34:11 -04:00