Allow paginated or incremental history loading for long session/load sessions #841
Areo-Joe
started this conversation in
Protocol Suggestions
Replies: 1 comment
-
|
I think allowing session load to have an optional cursor would make a lot of sense, and might mean we could replace most session/resume cases. Happy to received an RFD on this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
session/loadcurrently requires the agent to replay the entire conversation history back to the client before completing the request.That works for short sessions, but it becomes awkward for long-lived sessions:
session/resumeis not a full answer because it restores context without returning prior messagessession/listalready uses cursor pagination for discovery, but there is no equivalent standard mechanism for retrieving large histories incrementally.Possible directions
A few options seem reasonable:
session/load(for examplecursor,beforeMessageId,afterMessageId,pageSize)session/historyorsession/messagesmethod for incremental history retrieval, while keepingsession/loadas "restore + optional full replay"A separate history-reading method might be cleaner, because it avoids changing the existing restore semantics of
session/load.Question
Is the current intent that clients should rely on
session/resumeplus some agent-specific history API for large sessions, or would ACP want a first-class paginated history mechanism?Beta Was this translation helpful? Give feedback.
All reactions