-
|
I am referring to https://docs.ag-ui.com/concepts/state
How can use AG-UI to update state at Front end and convey it to backend? |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 2 replies
-
|
backend -> frontend: https://docs.ag-ui.com/concepts/events#state-management-events Then you can use the state in your backend code, for example by adding it to the LLMs context. |
Beta Was this translation helpful? Give feedback.
backend -> frontend: https://docs.ag-ui.com/concepts/events#state-management-events
frontend -> backend: Send
stateviaRunAgentInputhttps://docs.ag-ui.com/sdk/js/core/types#runagentinputThen you can use the state in your backend code, for example by adding it to the LLMs context.