Comments (4)
Noticed the same. Since Zod is used to define the json schema it would be also nice if the parameters would be parsed by Zod. This way one would be certain that the parameters are actually what have been defined in the schema.
from ai.
In case of validation errors the Zod error messages could be passed back to the language model which usually handles them quite nicely and fixes the function call parameters. I used this method when I built internal UI rendering and it seemed to be pretty good solution.
Another option is that typing of the args is changed to string and args validation would happen on user land 🤷 ?
from ai.
Was stuck diagnosing this for an hour as the parameters were returning undefined. Manually parsing args to an object fixed the issue.
from ai.
Seems to be fixed here, not yet released, as I still experience it in 3.0.5
UPDATE: never mind, was reverted
from ai.
Related Issues (20)
- Selecting a Date Range in the stock action UI crashes the application HOT 3
- Docs have multiple failing 404 links
- 404 page infinite redirect
- Extend ai/rsc render function to handle additional parameters
- Support for validation libraries other than zod (or no validation) HOT 11
- Following the steps in https://sdk.vercel.ai/docs/concepts/ai-rsc results in multiple build errors HOT 1
- Azure OpenAI streaming is slow and chunky HOT 27
- `dev` script infinititely recompiles HOT 3
- ai/rsc: Deploy with Vercel button broken HOT 7
- Parameters are returned as string when `tools` is used HOT 2
- experimental_AssistantResponse link in docs is unreachable HOT 4
- Task timed out after 300.01 seconds using the experimental_useAssistant HOT 3
- Supporting Deepgram AI Integrations HOT 1
- Function calling support for Anthropic models HOT 4
- useChat setMessages Assertion HOT 1
- New model GigAI
- hugging-face provider document not accessed HOT 2
- 404 Error for Hugging Face Provider Documentation URL HOT 1
- Unable to cancel or abort streaming UI server actions HOT 8
- AnthropicStream - example copy/paste errors HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai.