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

TypeChat integration #849

Open
pelikhan opened this issue Nov 12, 2024 · 5 comments
Open

TypeChat integration #849

pelikhan opened this issue Nov 12, 2024 · 5 comments
Assignees

Comments

@pelikhan
Copy link
Member

Integrate or replcaite TypeChat like reflection where one can define a schema from a type instead of JSON schema.

@enoch3712
Copy link

@pelikhan
Copy link
Member Author

So the issue with Zod is that we bundle all the type information in genaiscript.d.ts and I don't know how much typescript definition we would need to make it work. What we really want is a mini-Zod like library that only supports the subset of JSON schemas defined in genaiscript

(JSON schema can be more complex than what LLM can typically handle)

@pelikhan
Copy link
Member Author

But yeah a runtime api to build a schema in a fluent way would be noice

@pelikhan
Copy link
Member Author

We have a runtime file now so we could ship a zod helper/wrapper

@pelikhan
Copy link
Member Author

#963

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

No branches or pull requests

2 participants