-
Notifications
You must be signed in to change notification settings - Fork 701
Open
Labels
RoadmapThis feature or functionality should be added to the roadmap.This feature or functionality should be added to the roadmap.enhancementNew feature or requestNew feature or requestproposalIf you'd like to propose adding something to the roadmapIf you'd like to propose adding something to the roadmap
Description
Description
I propose extending the current protocol to better support reasoning and event tracking.
This involves adding new fields to existing message types and introducing a new ThinkingMessage
class.
Proposed Changes
-
BaseMessage
- Add a
timestamp
field to record message creation time.
- Add a
-
ThinkingTextMessage Events
-
Applicable to:
ThinkingTextMessageStartEvent
ThinkingTextMessageContentEvent
ThinkingTextMessageEndEvent
-
Add a
thinking_id
field to associate events with a specific reasoning process.
-
-
Message Class Extensions
- Introduce a new
ThinkingMessage
type withinMessage
.
class ThinkingMessage(BaseMessage): role: Literal["thinking"] = "thinking" content: str # The reasoning content to display
- Introduce a new
Rationale
timestamp
ensures temporal tracking of messages for better debugging, ordering, and replay scenarios.thinking_id
allows correlation of multiple reasoning events within the same process.ThinkingMessage
provides a clear representation of reasoning content, separated from user/system messages, improving protocol clarity and extensibility.
Expected Impact
- More robust event correlation.
- Better support for reasoning transparency.
- Easier debugging and auditing of protocol interactions.
Metadata
Metadata
Assignees
Labels
RoadmapThis feature or functionality should be added to the roadmap.This feature or functionality should be added to the roadmap.enhancementNew feature or requestNew feature or requestproposalIf you'd like to propose adding something to the roadmapIf you'd like to propose adding something to the roadmap
Type
Projects
Status
Under consideration