Why abstracted to max steps rather than just say “complete tool calls”? Are there any other things that would result in multiple calls?
@rogercgarcia2 ай бұрын
It seems they did it to “avoid infinite loops if misconfigured,” but effectively it does complete tool calls.
@nicoalbanese102 ай бұрын
@@rogercgarcia this is exactly right!
@rogercgarcia2 ай бұрын
@@nicoalbanese10thanks for confirming! And the great video.
@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?
@nathanbrodin29482 ай бұрын
Great video! Is the code editor used in the video VSCode ? How did you make it so minimal ? Because it looks so good
@alvarorc286 сағат бұрын
I think he is using Zed!
@TheStallion13192 ай бұрын
make a Vercel university
@hshioijp222 ай бұрын
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).
@nicoalbanese102 ай бұрын
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Ай бұрын
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?
@PraiseYeezus2 ай бұрын
Wait aren't you the Kiramase guy? Cool
@nicoalbanese102 ай бұрын
👋 haha yes I am!
@RAHUL-w8k8yАй бұрын
Hey please upload the videos of conference 2024
@aleksd2862 ай бұрын
so maxSteps should at least be equal to amount of tools you have + 1?
@nicoalbanese102 ай бұрын
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).
@aleksd2862 ай бұрын
@@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?
@vinaymelavanki58142 ай бұрын
👌👏
@nerd31312 ай бұрын
I don't really understand what does it do. Probably my fault though.
@nicoalbanese102 ай бұрын
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?
@nerd31312 ай бұрын
@@nicoalbanese10 Oh, now that makes sense. Thanks a lot. TLDRs are life savers :)
@rishiraj25482 ай бұрын
🙂👍🏻
@evereye_el2 ай бұрын
1st!
@lu2000luk2 ай бұрын
too broke to use AI... The SDK seems well made tho
@lu2000luk2 ай бұрын
like any other Vercel product tho
@PraiseYeezus2 ай бұрын
@@lu2000luk it's not a 'product' that you buy, and there's also LLMs that cost pennies for hundreds of pages worth of output
@mallickpriyanshu2 ай бұрын
Well you can try Gemini... It's free for development