-
Notifications
You must be signed in to change notification settings - Fork 565
[Go] fix go generate #243
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
[Go] fix go generate #243
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -124,9 +124,13 @@ by the model in a [ToolRequest]. | |
| . | ||
|
|
||
| Candidate pkg ai | ||
| CandidateError pkg ai | ||
| CandidateErrorCode pkg ai | ||
| CandidateFinishReason pkg ai | ||
| DataPart pkg ai | ||
| DocumentData pkg ai | ||
| GenerateResponse pkg ai | ||
| GenerateResponseChunk pkg ai | ||
| GenerateRequest pkg ai | ||
| GenerateRequestOutput pkg ai | ||
| GenerateRequestOutputFormat pkg ai | ||
|
|
@@ -144,16 +148,27 @@ ToolResponsePartToolResponse pkg ai | |
| Part pkg ai | ||
| TextPart pkg ai | ||
| TextPart name textPart | ||
| TextPart.data omit | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any idea what these new
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've asked Keith to look into this. I just got things working so I could continue my API refactoring.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the js side just split the part that we call "blob" into two, "media" and "data". I will make that same change in our code. |
||
| TextPart.media omit | ||
| TextPart.toolRequest omit | ||
| TextPart.toolResponse omit | ||
| MediaPart pkg ai | ||
| MediaPart name mediaPart | ||
| MediaPart.text omit | ||
| MediaPart.toolRequest omit | ||
| MediaPart.toolResponse omit | ||
| MediaPartMedia pkg ai | ||
| MediaPartMedia name mediaPartMedia | ||
| ModelInfo pkg ai | ||
| ModelInfoSupports pkg ai | ||
| ModelInfoSupports.output type OutputFormat | ||
| Role pkg ai | ||
| RoleUser pkg ai | ||
| RoleModel pkg ai | ||
| RoleTool pkg ai | ||
|
|
||
|
|
||
|
|
||
| GenerateRequestOutput doc | ||
| GenerateRequestOutput describes the structure that the model's output | ||
| should conform to. If Format is [OutputFormatJSON], then Schema | ||
|
|
@@ -180,3 +195,4 @@ ToolDefinition doc | |
| A ToolDefinition describes a tool. | ||
| . | ||
|
|
||
| DataPart/properties/metadata name map[string]any | ||
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.
Should this be
dataPart? The otherParttypes (textPart,mediaPart) are not exported.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.
See below.