Multi-Step (Agentic) Generation with the AI SDK

  Рет қаралды 8,630

Vercel

Vercel

Күн бұрын

Пікірлер: 27
@JakeHaugen
@JakeHaugen 2 ай бұрын
Why abstracted to max steps rather than just say “complete tool calls”? Are there any other things that would result in multiple calls?
@rogercgarcia
@rogercgarcia 2 ай бұрын
It seems they did it to “avoid infinite loops if misconfigured,” but effectively it does complete tool calls.
@nicoalbanese10
@nicoalbanese10 2 ай бұрын
​@@rogercgarcia this is exactly right!
@rogercgarcia
@rogercgarcia 2 ай бұрын
@@nicoalbanese10thanks for confirming! And the great video.
@jonathankurtis
@jonathankurtis Ай бұрын
@@nicoalbanese10 maxSteps seems very odd to me that it is global. i want to control the number of steps on a per tool basis. is there a workaround?
@nathanbrodin2948
@nathanbrodin2948 2 ай бұрын
Great video! Is the code editor used in the video VSCode ? How did you make it so minimal ? Because it looks so good
@alvarorc28
@alvarorc28 6 сағат бұрын
I think he is using Zed!
@TheStallion1319
@TheStallion1319 2 ай бұрын
make a Vercel university
@hshioijp22
@hshioijp22 2 ай бұрын
Sorry for being specific, but if I understand it correctly, you want to start using maxSteps instead of maxToolRoundtrips? Because maxToolRoundtrips was being defined on the client side (which was bit weird now I think about).
@nicoalbanese10
@nicoalbanese10 2 ай бұрын
hey! we deprecated roundtrips in favor of steps as it was conceptually easier to understand. You can define maxSteps both on the client with useChat and on the server directly in streamText (as done in this video) 😊
@kirso
@kirso Ай бұрын
A bit confused here and somebody already asked "so maxSteps should at least be equal to amount of tools you have + 1?" But isn't the problem statement here completion and extra call for the tool, instead of # of steps? What if I have another 15 steps calling different tools with the result?
@PraiseYeezus
@PraiseYeezus 2 ай бұрын
Wait aren't you the Kiramase guy? Cool
@nicoalbanese10
@nicoalbanese10 2 ай бұрын
👋 haha yes I am!
@RAHUL-w8k8y
@RAHUL-w8k8y Ай бұрын
Hey please upload the videos of conference 2024
@aleksd286
@aleksd286 2 ай бұрын
so maxSteps should at least be equal to amount of tools you have + 1?
@nicoalbanese10
@nicoalbanese10 2 ай бұрын
not necessarily! you want to use streamText + tools when you don't know what your user is going to do. Let's say you have 10 different tools, but for any given action, they may need to use 3 together. In that case, you would want to take the expected number of tools used for any given action + 1 (for the final summarization step).
@aleksd286
@aleksd286 2 ай бұрын
@@nicoalbanese10 how do i programatically know in advance how many tools would be used? does chatgpt in this context understand what it's possible to ask for additional data from one of these tools or it comes somewhere externally, eg. checkbox to use weather data?
@vinaymelavanki5814
@vinaymelavanki5814 2 ай бұрын
👌👏
@nerd3131
@nerd3131 2 ай бұрын
I don't really understand what does it do. Probably my fault though.
@nicoalbanese10
@nicoalbanese10 2 ай бұрын
hey! the tldr is this feature sends any tool results back to the model to trigger another generation. Without this feature, you would have to manually check if a tool had been called and then send the results back. Was there anything in particular that you struggled with?
@nerd3131
@nerd3131 2 ай бұрын
@@nicoalbanese10 Oh, now that makes sense. Thanks a lot. TLDRs are life savers :)
@rishiraj2548
@rishiraj2548 2 ай бұрын
🙂👍🏻
@evereye_el
@evereye_el 2 ай бұрын
1st!
@lu2000luk
@lu2000luk 2 ай бұрын
too broke to use AI... The SDK seems well made tho
@lu2000luk
@lu2000luk 2 ай бұрын
like any other Vercel product tho
@PraiseYeezus
@PraiseYeezus 2 ай бұрын
@@lu2000luk it's not a 'product' that you buy, and there's also LLMs that cost pennies for hundreds of pages worth of output
@mallickpriyanshu
@mallickpriyanshu 2 ай бұрын
Well you can try Gemini... It's free for development
Hands on with the Vercel AI SDK 3.1
13:04
Vercel
Рет қаралды 37 М.
Expo SDK 52: Our largest release ever!
10:51
Expo
Рет қаралды 29 М.
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 6 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 20 МЛН
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 233 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 98 М.
L01. Mini Project - Real Estate (Basic Concepts)
1:19:13
IT On Demand
Рет қаралды 61
OpenAI's Swarm - a GAME CHANGER for AI Agents
20:48
Cole Medin
Рет қаралды 49 М.
Cursor Composer Agent in 20 Minutes
20:00
Developers Digest
Рет қаралды 18 М.
AI SDK 3.1 First Impressions
24:12
Ben Davis
Рет қаралды 8 М.
How I Would Learn Python FAST in 2024 (if I could start over)
12:19
Thu Vu data analytics
Рет қаралды 600 М.
Best Cursor Workflow that no one talks about...
42:52
AI Jason
Рет қаралды 87 М.
Using React 19 with Vite and Next.js
32:55
Vercel
Рет қаралды 34 М.