I have a question in regards to the max steps. I have multiple functions, and some functions I want to run after one step, and some functions I want to run after two steps or three steps. How do I dynamically enable that? Is there a way of doing so? When I currently do a function call, it generates the generative UI and then the text as well, which I don't want to happen.
@kirso2 ай бұрын
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?
@JakeHaugen3 ай бұрын
Why abstracted to max steps rather than just say “complete tool calls”? Are there any other things that would result in multiple calls?
@rogercgarcia3 ай бұрын
It seems they did it to “avoid infinite loops if misconfigured,” but effectively it does complete tool calls.
@nicoalbanese103 ай бұрын
@@rogercgarcia this is exactly right!
@rogercgarcia3 ай бұрын
@@nicoalbanese10thanks for confirming! And the great video.
@jonathankurtis2 ай бұрын
@@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?
@nathanbrodin29483 ай бұрын
Great video! Is the code editor used in the video VSCode ? How did you make it so minimal ? Because it looks so good
@alvarorc28Ай бұрын
I think he is using Zed!
@hshioijp223 ай бұрын
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).
@nicoalbanese103 ай бұрын
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) 😊
@aleksd2863 ай бұрын
so maxSteps should at least be equal to amount of tools you have + 1?
@nicoalbanese103 ай бұрын
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).
@aleksd2863 ай бұрын
@@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?
@RAHUL-w8k8y2 ай бұрын
Hey please upload the videos of conference 2024
@nerd31313 ай бұрын
I don't really understand what does it do. Probably my fault though.
@nicoalbanese103 ай бұрын
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?
@nerd31313 ай бұрын
@@nicoalbanese10 Oh, now that makes sense. Thanks a lot. TLDRs are life savers :)
@TheStallion13193 ай бұрын
make a Vercel university
@PraiseYeezus3 ай бұрын
Wait aren't you the Kiramase guy? Cool
@nicoalbanese103 ай бұрын
👋 haha yes I am!
@vinaymelavanki58143 ай бұрын
👌👏
@rishiraj25483 ай бұрын
🙂👍🏻
@evereye_el3 ай бұрын
1st!
@lu2000luk3 ай бұрын
too broke to use AI... The SDK seems well made tho
@lu2000luk3 ай бұрын
like any other Vercel product tho
@PraiseYeezus3 ай бұрын
@@lu2000luk it's not a 'product' that you buy, and there's also LLMs that cost pennies for hundreds of pages worth of output
@mallickpriyanshu3 ай бұрын
Well you can try Gemini... It's free for development