Skip to content

Feature request: add field support #370

@DennySORA

Description

@DennySORA

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

  1. BaseMessage

    • Add a timestamp field to record message creation time.
  2. ThinkingTextMessage Events

    • Applicable to:

      • ThinkingTextMessageStartEvent
      • ThinkingTextMessageContentEvent
      • ThinkingTextMessageEndEvent
    • Add a thinking_id field to associate events with a specific reasoning process.

  3. Message Class Extensions

    • Introduce a new ThinkingMessage type within Message.
    class ThinkingMessage(BaseMessage):
        role: Literal["thinking"] = "thinking"
        content: str  # The reasoning content to display

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

No one assigned

    Labels

    RoadmapThis feature or functionality should be added to the roadmap.enhancementNew feature or requestproposalIf you'd like to propose adding something to the roadmap

    Type

    No type

    Projects

    Status

    Under consideration

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions