Repository navigation
Show where an AI agent conversation's model call history changed - #14149
Merged
Merged
Conversation
The AI Sessionizer now compares each model call's history with the call before it, and where the history changed it adds a history.change node just before the call, under the same parent, at the call's first record (apache/skywalking-ai-sessionizer#77). The document lists that node as a step that carries no text of the record it stands on, since what it says is in its attributes, and orders it among the nodes at one record by the call it names, and before that call, as the Sessionizer orders it. The new history-forget fixture is the Sessionizer's scenario of that name, built and parsed by the Sessionizer, and the document the OAP builds from it equals the Sessionizer's, key for key.
hanahmily
approved these changes
Oct 18, 2026
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.
Show where an AI agent conversation's model call history changed
This follows apache/skywalking-ai-sessionizer#77, which the asz.view format defines. The Sessionizer now compares
each model call's history with the call before it in its stream. Where the history changed, it adds a
history.changenode just before the call, under the same parent, at the call's first record. The rules are on theSessionizer's Session Flow page, "Where a call's history changed".
The OAP mirrors two rules of the document:
attrs, soConversationViewBuilder.carriesContentlistshistory.changebesidellm.call. Without it, the card took thecall's text.
ConversationFold.compareorders a card by the id of thecall it names,
call/and the card's key, and before that call, as the Sessionizer'sBeforedoes. By its own id,history/sorts aftercall/.Tests.
history-forgetis the Sessionizer's scenario of that name, built and parsed by the Sessionizer. The document theOAP builds from its files and round equals
asz conversation -json, key for key and in order. The test alsochecks the card's place among its siblings and that it carries no text.
CardOrderTestmirrors the Sessionizer's own order test: four nodes at one record, given in every rotation.Each rule was proven by reverting it and seeing its test fail.
Update the
CHANGESlog.