Replies: 2 comments
-
|
You can do that using |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This discussion was automatically locked because it has not been updated in over 30 days. If you still have questions about this topic, please ask us at community.vercel.com/ai-sdk |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Soo to my understanding each step in the ai sdk streamText is basically a "for" loop until agent decides to exit it and in each loop we append the latest messsage to the stack...
that is my simplest understading of this "agent loop" how it works...
and each time system prompt remains the same, but i'd like to make system prompt dynamic for each step based on some logic...
also maybe i'd like to have control over the messages array being sent for each step..
not sure if this is good idea, but i'd liek to expiriment a bit with some dynamic context building logic.. I can do it on my own with. maxStep1 and manually doing a loop, but i don't like it that much
Beta Was this translation helpful? Give feedback.
All reactions