Skip to content

[VertexAI] Add initial support to export covered API #6749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Mar 10, 2025
Merged

Conversation

rlazo
Copy link
Collaborator

@rlazo rlazo commented Mar 10, 2025

The server produces a discovery document with the details of the API surface.

https://aiplatform.googleapis.com/$discovery/rest?version=v1beta1

This change introduces code that can generate similar a description of the API covered by the SDK. This will enable us to track difference between both.

In a follow up PR we can implement the logic to fully export the surface.

@rlazo rlazo requested review from emilypgoogle and daymxn March 10, 2025 04:53
Copy link
Contributor

github-actions bot commented Mar 10, 2025

📝 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.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 10, 2025

Copy link
Contributor

github-actions bot commented Mar 10, 2025

Test Results

 22 files  +  8   22 suites  +8   12s ⏱️ ±0s
121 tests + 98  121 ✅ + 98  0 💤 ±0  0 ❌ ±0 
242 runs  +196  242 ✅ +196  0 💤 ±0  0 ❌ ±0 

Results for commit 39e5671. ± Comparison against base commit a232b6d.

This pull request removes 23 and adds 121 tests. Note that renamed tests count towards both.
com.google.firebase.functions.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallable should build callable with FAC settings (when false)
com.google.firebase.functions.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallable should build callable with FAC settings (when true)
com.google.firebase.functions.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallable should not use limited-use tokens by default
com.google.firebase.functions.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallableFromUrl callable with FAC settings (when false)
com.google.firebase.functions.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallableFromUrl callable with FAC settings (when true)
com.google.firebase.functions.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallableFromUrl should not use limited-use tokens by default
com.google.firebase.functions.FunctionsRegistrarTest ‑ getComponents_publishesLibVersionComponent
com.google.firebase.functions.FunctionsTests ‑ Firebase#functions should delegate to FirebaseFunctions#getInstance(FirebaseApp, region)
com.google.firebase.functions.FunctionsTests ‑ Firebase#functions should delegate to FirebaseFunctions#getInstance(region)
com.google.firebase.functions.FunctionsTests ‑ FirebaseApp#functions should delegate to FirebaseFunctions#getInstance(FirebaseApp)
…
com.google.firebase.vertexai.GenerativeModelTesting ‑ exception thrown when using invalid location
com.google.firebase.vertexai.GenerativeModelTesting ‑ system calling in request
com.google.firebase.vertexai.SchemaTests ‑ basic schema declaration
com.google.firebase.vertexai.SchemaTests ‑ full schema declaration
com.google.firebase.vertexai.SerializationTests ‑ test Candidate serialization as Json
com.google.firebase.vertexai.SerializationTests ‑ test GenerateContentResponse serialization as Json
com.google.firebase.vertexai.SerializationTests ‑ test Schema serialization as Json
com.google.firebase.vertexai.SerializationTests ‑ test countTokensResponse serialization as Json
com.google.firebase.vertexai.SerializationTests ‑ test modalityTokenCount serialization as Json
com.google.firebase.vertexai.StreamingSnapshotTests ‑ citation parsed correctly
…

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 10, 2025

Size Report 1

Affected Products

  • firebase-vertexai

    TypeBase (a232b6d)Merge (3a103b0)Diff
    aar576 kB578 kB+1.83 kB (+0.3%)
    apk (aggressive)1.40 MB1.40 MB+564 B (+0.0%)
    apk (release)9.36 MB9.36 MB+1.11 kB (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/FTxRWG4Gio.html

Copy link
Member

@daymxn daymxn left a comment

Choose a reason for hiding this comment

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

Left some comments, but otherwise LGTM

@rlazo rlazo changed the title Add initial support to export covered API [VertexAI] Add initial support to export covered API Mar 10, 2025
@rlazo rlazo merged commit 123c9d7 into main Mar 10, 2025
31 checks passed
@rlazo rlazo deleted the rl.ser.to.json branch March 10, 2025 17:33
tejasd pushed a commit that referenced this pull request Apr 1, 2025
The server produces a discovery document with the details of the API
surface.

https://aiplatform.googleapis.com/$discovery/rest?version=v1beta1

This change introduces code that can generate similar a description of
the API covered by the SDK. This will enable us to track difference
between both.

In a follow up PR we can implement the logic to fully export the
surface.

---------

Co-authored-by: Daymon <[email protected]>
@firebase firebase locked and limited conversation to collaborators Apr 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants