googleapis / googleapis/python-genai

Handle more types (e.g. file / media) for automatic function calling

Open
#1,686 2 comments 0 reactions 1 assignee Assigned to @kkorpal View on GitHub
priority: p3 type: feature request
Dominant language
Python
Stars
4k
Forks
1k
Avg merge
2d 11h
Merged PRs (30d)
40

Description

**Is your feature request related to a problem? Please describe.**
Automatic function calling does not seem to allow for a function that returns a file / media. the parser will throw an error with `Failed to parse the parameter return_value`.

**Describe the solution you'd like**
It would seem reasonable to me that the parser handles `genai.types` as return_values. for instance `genai.types.FunctionResponse` or `genai.types.FunctionResponseBlob`

**Describe alternatives you've considered**
Don't know of any alternatives

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.