Repository navigation
docs(unstable-v2): say the Agent owns the reported user message - #2873
Merged
Merged
Conversation
The prompt lifecycle page did not say whether the `user_message` report must match the submitted prompt, and its example dropped the prompt's `resource` block without explanation. - Make the `user_message` example carry the same content as the `session/prompt` example above it. - Say that the Agent owns the inserted message, that its reported `content` can differ from the prompt, and that a Client may keep showing the prompt as it sent it.
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.
Summary
After a prompt is inserted, the Agent reports the user message with a
user_messageupdate. The prompt lifecycle page did not say whether that report must match the submittedprompt. Its own example made this harder to read: thesession/promptexample has a text block and aresourceblock, and theuser_messageexample right after it had only the text block.Only the Prompt RFD said that the Agent's content wins.
Changes
Both are made in the stable page and its
draft/copy.user_messageexample now carries the same two content blocks as thesession/promptexample above it.contentusually repeats the submittedprompt, but can differ, for example when an adapter reports the message as its runtime recorded itNotes
user_messageupdate withcontentreplaces what the Client holds for thatmessageId.user_messageacknowledgment.Checks
typospass on the changed files.contentof theuser_messageexample equals thepromptof thesession/promptexample in both copies.