Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix response_schema with TypedDict #640

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Surya2k1
Copy link

Description of the change

Fix response_schema issue with TypedDicts.

Motivation

May Fix #560 .

Type of change

Bug Fix.

There seems a proposed fix already. I tried with different approach. May be reviewed once whether it works.

Copy link

google-cla bot commented Nov 28, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:python sdk Issue/PR related to Python SDK labels Nov 28, 2024
@Surya2k1
Copy link
Author

I believe the PR #643 is a better fix for schema with Class and Nested class objects. I am not sure how it goes with Function calling with "required" field mentioned. But I don't see an example of how to send "required" field in case of function call tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:python sdk Issue/PR related to Python SDK status:awaiting review PR awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

response_schema is not working when using typing.TypedDict
1 participant