google_generative_ai-v0.4.0: Add Content.functionResponses utility (#159)
natebosch
released this
10 May 22:33
·
31 commits
to main
since this release
- Add support for parsing Vertex AI specific fields in
CountTokensResponse
. - Add named constructors on
Schema
for each value type. - Add
GenerationConfig.responseMimeType
which supports setting
'application/json'
to force the model to reply with JSON parseable output. - Add
outputDimensionality
argument support forembedContent
and
batchEmbedContent
. - Add
Content.functionResponses
utility to reply to multiple function calls in
parallel. - Breaking The
Part
class is no longersealed
. Exhaustive switches over
aPart
instance will need to add a wildcard case.