Replies: 1 comment 1 reply
-
@th4ruka I run into the similar issue when try to follow the document. Did you manage to make it work? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked other resources
Commit to Help
Description
I'm currently working on how to best handle structured output in a conversational chat-bot (conversational agent).
This chat-bot works as a text-to-image generator, it get details of the image that user wants to generate. Then it calls a tool to generate the image according to the developed prompt, which returns the URL of the generated image.
url
should be null during a normal conversation. It should have a value only after an image is generated.I would really appreciate any support or insights anyone have on this!
Example Code
I have implemented the following code to get structured output. But it does not always follow the structured output declared in
Response
BaseModel class.Beta Was this translation helpful? Give feedback.
All reactions