-
Notifications
You must be signed in to change notification settings - Fork 194
Description
It would be nice if we could annotate the @RegisterAiService class methods with something like @StoreHistory annotation.
I ended building something like that in: https://github.com/chirino/memory-service?tab=readme-ov-file#5-conversation-history-recording using the @RecordConversation, but I think you guys could do an even better job.
Now the tricky part might be designing a good pluggable SPI. A simple approach might be to just call some store interface with the user message and then again with the final agent response. But my store also wants to make in flight streaming responses resumable/cancelable so it needs to wrap the stream response too. Oh and we need a way to make sure the user identity is propagated to those store interfaces.