agents icon indicating copy to clipboard operation
agents copied to clipboard

feat: add prevState in onStateUpdate

Open uuouter opened this issue 5 months ago • 1 comments

Attempt for #277 as I would like to play with this feature as well.

@threepointone I'm bit new to agents, so let me know if you have any comments/pointers.

Not sure about:

  • (parsedMessage.prevState || {}) as State probably undefined would be better.
  • prevState? vs prevState
  • client.setState

--

image console.log('🛠️ useAgent.onStateUpdate', source, state, prevState);

--

Maybe this PR can serve as a nice building base otherwise.

uuouter avatar May 13 '25 15:05 uuouter