You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could not find anything that could help me here in the docs. But basically whenever I call my actio, are user messages automatically stored in the AI state or do I need to do that manually every time?
And if so, is this the right way to do it (before the sdk is called)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I could not find anything that could help me here in the docs. But basically whenever I call my actio, are user messages automatically stored in the AI state or do I need to do that manually every time?
And if so, is this the right way to do it (before the sdk is called)
const aiState = getMutableAIState();
aiState.update((messages: ServerMessage[]) => [...messages, { role: 'user', content: input }]);
Beta Was this translation helpful? Give feedback.
All reactions