Skip to content

Conversation

andrewheard
Copy link
Contributor

Added decoding support for ModelContent.Part.functionResponse. Although FunctionResponse parts are never returned from the backend, Decodable conformance allows this type to be serialized/deserialized from disk. See #13593 for an example use case.

#no-changelog

Copy link
Member

@ncooke3 ncooke3 left a comment

Choose a reason for hiding this comment

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

Nice! Does this need a release note?

@andrewheard
Copy link
Contributor Author

Nice! Does this need a release note?

@ncooke3 I'm not certain that it's noteworthy enough for a release note but to err on the side of caution I've added one now (easier to prune it out later than remember to add it later).

@andrewheard andrewheard merged commit 3e2c79d into main Sep 9, 2024
32 checks passed
@andrewheard andrewheard deleted the ah/vertex-func-resp-decode branch September 9, 2024 19:36
@firebase firebase locked and limited conversation to collaborators Oct 10, 2024
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.

VertexAI - Decoding the Chat history fails with "No text, inline data or function call was found." when a functionResponse exists

3 participants