Open
Conversation
9cc627f to
94914c0
Compare
Contributor
Author
|
@GenerQAQ @claude @gusye1234 I Would like your review on this |
94914c0 to
b57c833
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why we need this PR?
This PR adds branch-aware session message handling so Acontext can represent and read message forks correctly across the API, Core service, and SDKs. It enables storing a message with an explicit parent, retrieving a single root-to-leaf branch path, and defaulting session reads to the latest branch when a session has forked history.
Describe your solution
parent_idsupport when storing messages through the Python and TypeScript SDKs.leaf_idsupport when reading messages so clients can request a single branch path from root to a chosen leaf message.Implementation Tasks
Please ensure your pull request meets the following requirements:
parent_idsupport to message creation in the Python SDK and TypeScript SDK.leaf_idsupport to message retrieval in the Python SDK and TypeScript SDK, including validation for invalid option combinations.Impact Areas
Which part of Acontext would this feature affect?
Checklist
devbranch.