Skip to content
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

Add systemInstruction and toolConfig #8146

Merged
merged 4 commits into from Apr 10, 2024
Merged

Conversation

hsubox76
Copy link
Contributor

@hsubox76 hsubox76 commented Apr 10, 2024

See parallel GoogleAI JS implementation here: google-gemini/generative-ai-js#89

Add

  • systemInstruction
  • toolConfig (forced function calling feature)

System instruction design doc here (internal): https://docs.google.com/document/d/14HXjTbm6nJ9wy-TdnU3JdyNW2wQF8DZAmqI7eogHLTg/edit?tab=t.0#heading=h.6xzp689wzd8c

Copy link

changeset-bot bot commented Apr 10, 2024

⚠️ No Changeset found

Latest commit: 744b9f4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@hsubox76 hsubox76 marked this pull request as ready for review April 10, 2024 00:48
@hsubox76 hsubox76 requested a review from a team as a code owner April 10, 2024 00:48
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 10, 2024

Size Report 1

Affected Products

  • @firebase/analytics

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?21.8 kB? (?)
    esm5?26.9 kB? (?)
    main?28.4 kB? (?)
    module?21.8 kB? (?)
  • @firebase/analytics-compat

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?2.57 kB? (?)
    esm5?2.80 kB? (?)
    main?3.24 kB? (?)
    module?2.57 kB? (?)
  • @firebase/api-documenter

    TypeBase (f25ccbb)Merge (c79304e)Diff
    main?3.95 kB? (?)
  • @firebase/app

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?18.1 kB? (?)
    esm5?23.7 kB? (?)
    main?24.8 kB? (?)
    module?18.1 kB? (?)
  • @firebase/app-check

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?26.3 kB? (?)
    esm5?31.6 kB? (?)
    main?32.8 kB? (?)
    module?26.3 kB? (?)
  • @firebase/app-check-compat

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?2.27 kB? (?)
    esm5?2.48 kB? (?)
    main?2.94 kB? (?)
    module?2.27 kB? (?)
  • @firebase/app-compat

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?5.28 kB? (?)
    esm5?6.13 kB? (?)
    lite?4.06 kB? (?)
    main?6.73 kB? (?)
    module?5.28 kB? (?)
  • @firebase/auth

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?182 kB? (?)
    cordova?210 kB? (?)
    esm5?236 kB? (?)
    main?179 kB? (?)
    module?182 kB? (?)
    react-native?199 kB? (?)
  • @firebase/auth-compat

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?20.2 kB? (?)
    esm5?27.1 kB? (?)
    main?29.5 kB? (?)
    module?20.2 kB? (?)
  • @firebase/auth/cordova

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?210 kB? (?)
    module?210 kB? (?)
  • @firebase/auth/internal

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?193 kB? (?)
    esm5?250 kB? (?)
    main?215 kB? (?)
    module?193 kB? (?)
  • @firebase/auth/web-extension

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?137 kB? (?)
    main?152 kB? (?)
    module?137 kB? (?)
  • @firebase/component

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?6.54 kB? (?)
    esm5?8.70 kB? (?)
    main?9.08 kB? (?)
    module?6.54 kB? (?)
  • @firebase/database

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?249 kB? (?)
    esm5?277 kB? (?)
    main?282 kB? (?)
    module?249 kB? (?)
  • @firebase/database-compat

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?18.3 kB? (?)
    esm5?21.4 kB? (?)
    main?22.2 kB? (?)
    module?18.3 kB? (?)
  • @firebase/database-compat/standalone

    TypeBase (f25ccbb)Merge (c79304e)Diff
    main?372 kB? (?)
  • @firebase/firestore

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?376 kB? (?)
    esm5?362 kB? (?)
    main?580 kB? (?)
    module?376 kB? (?)
    react-native?377 kB? (?)
  • @firebase/firestore-compat

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?20.6 kB? (?)
    esm5?27.7 kB? (?)
    main?21.0 kB? (?)
    module?20.6 kB? (?)
    react-native?20.6 kB? (?)
  • @firebase/firestore-lite

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?109 kB? (?)
    esm5?106 kB? (?)
    main?150 kB? (?)
    module?109 kB? (?)
    react-native?109 kB? (?)
  • @firebase/functions

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?9.72 kB? (?)
    esm5?12.1 kB? (?)
    main?12.7 kB? (?)
    module?9.72 kB? (?)
  • @firebase/functions-compat

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?1.79 kB? (?)
    esm5?1.98 kB? (?)
    main?2.34 kB? (?)
    module?1.79 kB? (?)
  • @firebase/installations

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?17.8 kB? (?)
    esm5?23.1 kB? (?)
    main?23.9 kB? (?)
    module?17.8 kB? (?)
  • @firebase/installations-compat

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?944 B? (?)
    esm5?1.16 kB? (?)
    main?1.48 kB? (?)
    module?944 B? (?)
  • @firebase/logger

    TypeBase (f25ccbb)Merge (c79304e)Diff
    esm5?4.75 kB? (?)
    main?5.41 kB? (?)
    module?3.25 kB? (?)
  • @firebase/messaging

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?21.4 kB? (?)
    esm5?26.8 kB? (?)
    main?27.5 kB? (?)
    module?21.4 kB? (?)
  • @firebase/messaging-compat

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?2.08 kB? (?)
    esm5?2.51 kB? (?)
    main?2.90 kB? (?)
    module?2.08 kB? (?)
  • @firebase/messaging-sw

    TypeBase (f25ccbb)Merge (c79304e)Diff
    main?30.5 kB? (?)
    module?23.6 kB? (?)
  • @firebase/performance

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?29.1 kB? (?)
    esm5?31.0 kB? (?)
    main?31.4 kB? (?)
    module?29.1 kB? (?)
  • @firebase/performance-compat

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?1.10 kB? (?)
    esm5?1.37 kB? (?)
    main?1.69 kB? (?)
    module?1.10 kB? (?)
  • @firebase/remote-config

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?19.2 kB? (?)
    esm5?24.1 kB? (?)
    main?25.3 kB? (?)
    module?19.2 kB? (?)
  • @firebase/remote-config-compat

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?1.85 kB? (?)
    esm5?2.76 kB? (?)
    main?3.09 kB? (?)
    module?1.85 kB? (?)
  • @firebase/rules-unit-testing

    TypeBase (f25ccbb)Merge (c79304e)Diff
    main?17.8 kB? (?)
  • @firebase/storage

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?57.8 kB? (?)
    esm5?64.3 kB? (?)
    main?59.4 kB? (?)
    module?57.8 kB? (?)
  • @firebase/storage-compat

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?5.67 kB? (?)
    esm5?8.41 kB? (?)
    main?8.82 kB? (?)
    module?5.67 kB? (?)
  • @firebase/util

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?23.1 kB? (?)
    esm5?24.7 kB? (?)
    main?30.5 kB? (?)
    module?23.1 kB? (?)
  • @firebase/vertexai

    TypeBase (f25ccbb)Merge (c79304e)Diff
    browser?23.9 kB? (?)
    main?24.5 kB? (?)
    module?23.9 kB? (?)
  • @firebase/webchannel-wrapper

    TypeBase (f25ccbb)Merge (c79304e)Diff
    esm5?55.4 kB? (?)
    main?65.4 kB? (?)
    module?53.1 kB? (?)
  • bundle

    46 size changes

    TypeBase (f25ccbb)Merge (c79304e)Diff
    analytics (logEvent)?44.5 kB? (?)
    app-check (CustomProvider)?37.3 kB? (?)
    app-check (ReCaptchaEnterpriseProvider)?39.9 kB? (?)
    app-check (ReCaptchaV3Provider)?39.8 kB? (?)
    auth (Anonymous)?76.0 kB? (?)
    auth (EmailAndPassword)?84.3 kB? (?)
    auth (GoogleFBTwitterGitHubPopup)?103 kB? (?)
    auth (GooglePopup)?100 kB? (?)
    auth (GoogleRedirect)?101 kB? (?)
    auth (Phone)?86.7 kB? (?)
    database (Append to a list of data)?149 kB? (?)
    database (Filtering data)?148 kB? (?)
    database (Listen for child events)?164 kB? (?)
    database (Listen for value events + Detach listeners)?164 kB? (?)
    database (Listen for value events)?164 kB? (?)
    database (Read data once)?164 kB? (?)
    database (Save data as transactions)?166 kB? (?)
    database (Sort data)?149 kB? (?)
    database (Write data)?148 kB? (?)
    firestore (CSI Auto Indexing Disable and Delete)?269 kB? (?)
    firestore (CSI Auto Indexing Enable)?269 kB? (?)
    firestore (Persistence)?303 kB? (?)
    firestore (Query Cursors)?247 kB? (?)
    firestore (Query)?245 kB? (?)
    firestore (Read data once)?233 kB? (?)
    firestore (Read Write w Persistence)?323 kB? (?)
    firestore (Realtime updates)?235 kB? (?)
    firestore (Transaction)?212 kB? (?)
    firestore (Write data)?212 kB? (?)
    firestore-lite (Query Cursors)?89.8 kB? (?)
    firestore-lite (Query)?85.9 kB? (?)
    firestore-lite (Read data once)?62.1 kB? (?)
    firestore-lite (Transaction)?87.0 kB? (?)
    firestore-lite (Write data)?71.7 kB? (?)
    functions (call)?31.9 kB? (?)
    messaging (send + receive)?47.2 kB? (?)
    performance (trace)?51.7 kB? (?)
    remote-config (getAndFetch)?46.2 kB? (?)
    storage (getBytes)?42.0 kB? (?)
    storage (getDownloadURL)?44.1 kB? (?)
    storage (getMetadata)?43.5 kB? (?)
    storage (list + listAll)?42.9 kB? (?)
    storage (updateMetadata)?43.8 kB? (?)
    storage (uploadBytes)?48.6 kB? (?)
    storage (uploadBytesResumable)?58.6 kB? (?)
    storage (uploadString)?48.9 kB? (?)

  • firebase

    32 size changes

    TypeBase (f25ccbb)Merge (c79304e)Diff
    firebase-analytics-compat.js?26.5 kB? (?)
    firebase-analytics.js?29.7 kB? (?)
    firebase-app-check-compat.js?23.4 kB? (?)
    firebase-app-check.js?25.0 kB? (?)
    firebase-app-compat.js?31.4 kB? (?)
    firebase-app.js?102 kB? (?)
    firebase-auth-compat.js?140 kB? (?)
    firebase-auth-cordova.js?177 kB? (?)
    firebase-auth-web-extension.js?117 kB? (?)
    firebase-auth.js?151 kB? (?)
    firebase-compat.js?786 kB? (?)
    firebase-database-compat.js?166 kB? (?)
    firebase-database.js?186 kB? (?)
    firebase-firestore-compat.js?342 kB? (?)
    firebase-firestore-lite.js?117 kB? (?)
    firebase-firestore.js?436 kB? (?)
    firebase-functions-compat.js?8.19 kB? (?)
    firebase-functions.js?11.9 kB? (?)
    firebase-installations-compat.js?13.3 kB? (?)
    firebase-installations.js?15.1 kB? (?)
    firebase-messaging-compat.js?38.4 kB? (?)
    firebase-messaging-sw.js?30.2 kB? (?)
    firebase-messaging.js?28.8 kB? (?)
    firebase-performance-compat.js?30.8 kB? (?)
    firebase-performance-standalone-compat.es2017.js?93.3 kB? (?)
    firebase-performance-standalone-compat.js?70.4 kB? (?)
    firebase-performance.js?35.0 kB? (?)
    firebase-remote-config-compat.js?27.3 kB? (?)
    firebase-remote-config.js?29.6 kB? (?)
    firebase-storage-compat.js?40.3 kB? (?)
    firebase-storage.js?46.2 kB? (?)
    firebase-vertexai.js?18.4 kB? (?)

  • functions

    TypeBase (f25ccbb)Merge (c79304e)Diff
    main?46 B? (?)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 10, 2024

Size Analysis Report 1

Affected Products

  • @firebase/vertexai

    • BlockReason

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size3.29 kB3.41 kB+122 B (+3.7%)
      size-with-ext-deps21.0 kB21.1 kB+125 B (+0.6%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      + FunctionCallingMode

    • ChatSession

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size13.5 kB14.0 kB+460 B (+3.4%)
      size-with-ext-deps31.9 kB32.4 kB+460 B (+1.4%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      26 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_LOCATION
      ERRORS
      ERROR_FACTORY
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      name
      responseLineRE
      version

      27 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_LOCATION
      ERRORS
      ERROR_FACTORY
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      name
      responseLineRE
      version

      + FunctionCallingMode

    • FinishReason

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size3.29 kB3.41 kB+122 B (+3.7%)
      size-with-ext-deps21.0 kB21.1 kB+125 B (+0.6%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      + FunctionCallingMode

    • FunctionCallingMode

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size?3.42 kB? (?)
      size-with-ext-deps?21.1 kB? (?)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      functions?

      registerVertex

      ?
      classes?

      VertexAIService

      ?
      variables?

      15 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      ?
      enums??

      External Dependency

      ModuleBase (f25ccbb)Merge (c79304e)Diff
      @firebase/app?

      _registerComponent
      registerVersion

      ?
      @firebase/component?

      Component

      ?
      @firebase/util?

      ErrorFactory

      ?
    • FunctionDeclarationSchemaType

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size3.31 kB3.43 kB+122 B (+3.7%)
      size-with-ext-deps21.0 kB21.1 kB+125 B (+0.6%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      + FunctionCallingMode

    • GenerativeModel

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size15.1 kB15.8 kB+735 B (+4.9%)
      size-with-ext-deps33.5 kB34.2 kB+736 B (+2.2%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      26 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_LOCATION
      ERRORS
      ERROR_FACTORY
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      name
      responseLineRE
      version

      27 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_LOCATION
      ERRORS
      ERROR_FACTORY
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      name
      responseLineRE
      version

      + FunctionCallingMode

    • HarmBlockMethod

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size3.29 kB3.42 kB+122 B (+3.7%)
      size-with-ext-deps21.0 kB21.1 kB+125 B (+0.6%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      + FunctionCallingMode

    • HarmBlockThreshold

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size3.30 kB3.42 kB+122 B (+3.7%)
      size-with-ext-deps21.0 kB21.1 kB+125 B (+0.6%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      + FunctionCallingMode

    • HarmCategory

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size3.29 kB3.41 kB+122 B (+3.7%)
      size-with-ext-deps21.0 kB21.1 kB+125 B (+0.6%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      + FunctionCallingMode

    • HarmProbability

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size3.29 kB3.42 kB+122 B (+3.7%)
      size-with-ext-deps21.0 kB21.1 kB+125 B (+0.6%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      + FunctionCallingMode

    • HarmSeverity

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size3.29 kB3.41 kB+122 B (+3.7%)
      size-with-ext-deps21.0 kB21.1 kB+125 B (+0.6%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      + FunctionCallingMode

    • POSSIBLE_ROLES

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size3.33 kB3.46 kB+131 B (+3.9%)
      size-with-ext-deps21.0 kB21.1 kB+134 B (+0.6%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      15 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      POSSIBLE_ROLES
      Task
      VERTEX_TYPE
      name
      version

      16 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      POSSIBLE_ROLES
      Task
      VERTEX_TYPE
      name
      version

      + FunctionCallingMode

    • getGenerativeModel

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size15.2 kB15.9 kB+735 B (+4.8%)
      size-with-ext-deps33.6 kB34.3 kB+736 B (+2.2%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      26 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_LOCATION
      ERRORS
      ERROR_FACTORY
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      name
      responseLineRE
      version

      27 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_LOCATION
      ERRORS
      ERROR_FACTORY
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      name
      responseLineRE
      version

      + FunctionCallingMode

    • getVertexAI

      Size

      TypeBase (f25ccbb)Merge (c79304e)Diff
      size3.42 kB3.54 kB+122 B (+3.6%)
      size-with-ext-deps28.4 kB28.5 kB+125 B (+0.4%)

      Dependency

      TypeBase (f25ccbb)Merge (c79304e)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

      BlockReason
      DEFAULT_LOCATION
      ERRORS
      FinishReason
      FunctionCallingMode
      FunctionDeclarationSchemaType
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      Task
      VERTEX_TYPE
      name
      version

      + FunctionCallingMode

Test Logs

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

Copy link
Contributor

@DellaBitta DellaBitta left a comment

Choose a reason for hiding this comment

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

approved with a nit.

// or a natural language repspose.
AUTO = 'AUTO',
// Model is constrained to always predicting a function call only.
// If "allowed_function_names" are set, the predicted function call will be
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, I think this should be "If "allowed function names" is set".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@hsubox76 hsubox76 merged commit 3d11ecc into ch-vertex-feature Apr 10, 2024
38 of 41 checks passed
@hsubox76 hsubox76 deleted the ch-vertex-system branch April 10, 2024 20:02
@firebase firebase locked and limited conversation to collaborators May 11, 2024
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.

None yet

3 participants