agents icon indicating copy to clipboard operation
agents copied to clipboard

Agent states management improvements

Open jlia0 opened this issue 4 months ago • 0 comments

The agent states is very useful, however there are a few improvements needed.

  1. Use fast-json-patch to sync states instead of sending the entire state via websocket
  2. Add selective state sync to the client-side, to avoid sharing sensitive state data
  3. Add a persist flag to store states into the SQL table, to avoid frequent data write operations when updating states

With the above improvements, I can essentially use the state to store the chat messages on the backend, and send over selective messages to the client-side, while achieving good performance.

jlia0 avatar May 28 '25 09:05 jlia0