2 ms·
The AI is calling a function (https://platform.openai.com/docs/guides/function-calling https://platform.openai.com/docs/guides/function-calling) that is mapped
by MaxLeiter 3y ago
The AI is calling a function (https://platform.openai.com/docs/guides/function-calling https://platform.openai.com/docs/guides/function-calling) that is mapped to developer-controlled logic. The easiest thing to do is render specific UIs for every function call, but you can render however you'd like.
We kept the code snippets in the blog post brief, but you can see the full code for the demo here: https://github.com/vercel/ai/tree/main/examples/next-ai-rsc https://github.com/vercel/ai/tree/main/examples/next-ai-rsc