Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

google_generative_ai-v0.4.0: Add Content.functionResponses utility (#159)

Choose a tag to compare

@natebosch natebosch released this 10 May 22:33
· 33 commits to main since this release
a9ebd46
  • 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 for embedContent and
    batchEmbedContent.
  • Add Content.functionResponses utility to reply to multiple function calls in
    parallel.
  • Breaking The Part class is no longer sealed. Exhaustive switches over
    a Part instance will need to add a wildcard case.