Skip to content

Commit

Permalink
Expose a few more class and functions to vertex (#165)
Browse files Browse the repository at this point in the history
* Update vertex_hooks.dart

Expose UsageMetadata and parse functions to vertex

* Remove UsageMetadata export

This will be exported from the main library in #168.

Sort the remaining exported members.

---------

Co-authored-by: Nate Bosch <nbosch@google.com>
  • Loading branch information
cynthiajoan and natebosch committed May 21, 2024
1 parent 88ba7fb commit 81c343f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/google_generative_ai/lib/src/vertex_hooks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,12 @@
/// These APIs should not be exposed through the public libraries.
library;

export 'api.dart' show countTokensResponseFields, createCountTokensResponse;
export 'api.dart'
show
countTokensResponseFields,
createCountTokensResponse,
parseBatchEmbedContentsResponse,
parseCountTokensResponse,
parseEmbedContentResponse,
parseGenerateContentResponse;
export 'model.dart' show createModelWithBaseUri;

0 comments on commit 81c343f

Please sign in to comment.