Skip to content

Move chat messages into message module#25

Merged
linmx0130 merged 1 commit intomainfrom
lib-chat-iterator-utils
Aug 7, 2025
Merged

Move chat messages into message module#25
linmx0130 merged 1 commit intomainfrom
lib-chat-iterator-utils

Conversation

@linmx0130
Copy link
Copy Markdown
Owner

  • Factored all chat-message-related types (ChatMessage, ChatResponseChunk, ToolCallRequest, FunctionCallRequest, etc.) into a new sub-module message.
  • Added mod message and re-exported symbols with pub use message::*.
  • Implemented FromIterator<ChatResponseChunkDelta>, Default, and Extend for ChatMessage to enable collect.
  • Added a new test verifying stream deltas can be collected into a complete ChatMessage.

- Factored all chat-message-related types (`ChatMessage`, `ChatResponseChunk`, `ToolCallRequest`, `FunctionCallRequest`, etc.) into a new sub-module `message`.
- Added `mod message` and re-exported symbols with `pub use message::*`.
- Implemented `FromIterator<ChatResponseChunkDelta>`, `Default`, and `Extend` for `ChatMessage` to enable `collect`.
- Added a new test verifying stream deltas can be collected into a complete `ChatMessage`.
@linmx0130 linmx0130 changed the title actor: move chat messages into message module Move chat messages into message module Aug 7, 2025
@linmx0130 linmx0130 merged commit 3ad50ac into main Aug 7, 2025
1 check passed
@linmx0130 linmx0130 deleted the lib-chat-iterator-utils branch August 7, 2025 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant