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

Add a zod-schema based JSON output parser ("Advanced Structured Output Parser") #1672

Conversation

KennyVaneetvelde
Copy link

@KennyVaneetvelde KennyVaneetvelde commented Feb 3, 2024

Title says it all, I added an "Advanced Structured Output Parser" that uses Zod directly.

At first I had modified the original node - but I figured it's probably much nicer to have it as a separate one, so I did just that, and added an extra template for it as well with a nice example.

Beside being an alternative way of specifying the schema, it also is more flexible due to the fact that we can use more of Zod's functionality, we can have nested objects, enums, ....

image
image
image

@HenryHengZJ
Copy link
Contributor

thanks @KennyVaneetvelde !

@HenryHengZJ HenryHengZJ merged commit ee2bd51 into FlowiseAI:main Feb 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants