We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01a8b20 commit 66f8759Copy full SHA for 66f8759
1 file changed
pkg/session/store.go
@@ -92,7 +92,9 @@ type Store interface {
92
AddMessage(ctx context.Context, sessionID string, msg *Message) (int64, error)
93
94
// UpdateMessage updates an existing message by its ID.
95
- // This is used to finalize streaming messages with complete content.
+ // This is called on each streaming delta to keep the persisted message
96
+ // in sync with the in-progress content, and once more with the final
97
+ // payload when the message completes.
98
UpdateMessage(ctx context.Context, messageID int64, msg *Message) error
99
100
// AddSubSession creates a sub-session and links it to the parent.
0 commit comments