google_generative_ai-v0.4.0
版本发布时间: 2024-05-11 06:33:34
google-gemini/generative-ai-dart最新发布版本:google_generative_ai-v0.4.5(2024-08-28 05:03:06)
- 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
andbatchEmbedContent
. - 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.