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

Investigate Vercel AI sdk integration #1286

Open
ssalbdivad opened this issue Feb 1, 2025 · 2 comments
Open

Investigate Vercel AI sdk integration #1286

ssalbdivad opened this issue Feb 1, 2025 · 2 comments

Comments

@ssalbdivad
Copy link
Member

Integration looks straightforward through jsonSchema helper. Perhaps worth creating a wrapper to facilitate this- want to look into the workflow:

https://sdk.vercel.ai/docs/reference/ai-sdk-core/json-schema

@github-project-automation github-project-automation bot moved this to To do in arktypeio Feb 1, 2025
@ssalbdivad ssalbdivad moved this from To do to Planned in arktypeio Feb 1, 2025
@sam-goodwin
Copy link

sam-goodwin commented Feb 1, 2025

The first thought that comes to mind is how would it look to add documentation to a field? In zod, it looks like:

z.object({
  prop: z.string().describe("Yo Mr. GPT, this is a property that should have XYZ data")
});

This is important for providing documentation in the JSON schema for the LLM to consider.

@ssalbdivad
Copy link
Member Author

ArkType also has a describe method, as well as a globally extensible type for attaching metadata:

https://arktype.io/docs/expressions#meta
https://arktype.io/docs/configuration#custom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Planned
Development

No branches or pull requests

2 participants