-
Notifications
You must be signed in to change notification settings - Fork 962
[Firebase AI] Add thought summary and signature support #9192
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 2a82810 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
cc: @dlarocque |
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
@@ -23,12 +23,15 @@ export interface EnhancedGenerateContentResponse extends GenerateContentResponse | |||
|
|||
| Property | Type | Description | | |||
| --- | --- | --- | | |||
| [functionCalls](./ai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponsefunctioncalls) | () => [FunctionCall](./ai.functioncall.md#functioncall_interface)<!-- -->\[\] \| undefined | | | |||
| [functionCalls](./ai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponsefunctioncalls) | () => [FunctionCall](./ai.functioncall.md#functioncall_interface)<!-- -->\[\] \| undefined | Aggregates and returns all [FunctionCall](./ai.functioncall.md#functioncall_interface)<!-- -->s from the [GenerateContentResponse](./ai.generatecontentresponse.md#generatecontentresponse_interface)<!-- -->'s first candidate. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOT BLOCKING
...returns all FunctionCalls from...
We shouldn't pluralize like this.
Instead, tweak the sentence so that you're not pluralizing. Something like:
"... returns every FunctionCall from the..."
(same comment for GenerateContentResponse and a couple other similar instances throughout)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a search for }s
and updated all of them.
Added support for including thought summaries and thought signatures.
Edits by @hsubox76:
thoughtSignature
is not meant to be exposed publicly but needs to be stored in chat history, so it's marked internal to keep it out of public typings and docs, but still exists in the type so it can be used in chat validation and testingaddHelpers()
functionCalls()
method