vercel / ai

Build AI-powered applications with React, Svelte, Vue, and Solid

Home Page:https://sdk.vercel.ai/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support a simple JSON Schema Object

dosco opened this issue · comments

Feature Description

when creating a tool entry please support just a simple object that implements a json schema in addition to zod or whatever.

Use Case

Zod has limitations it is not easy to work with when dynamic schema's need to be generated such as with agents etc.

Additional context

No response

It is support by using the jsonSchema function: https://sdk.vercel.ai/docs/reference/ai-sdk-core/json-schema