Expand description
The chat surface: a log of message groups, from chat.css.
Re-exports§
pub use Chat_completions::Component::Chat;pub use ChatGroup_completions::Component::ChatGroup;pub use Message_completions::Component::Message;pub use MessageAction_completions::Component::MessageAction;pub use MessagePart_completions::Component::MessagePart;
Structs§
- Chat
Group Props - Properties for the
ChatGroupcomponent. - Chat
Props - Properties for the
Chatcomponent. - Message
Action Props - Properties for the
MessageActioncomponent. - Message
Part Props - Properties for the
MessagePartcomponent. - Message
Props - Properties for the
Messagecomponent. - SentAt
- When a message was sent: a machine-readable instant and how people read it.
Functions§
- Chat
- A conversation, as a
role="log"so new messages are announced politely in order. - Chat
Group - Consecutive messages shown together, e.g. one turn.
- Message
- One message: author, time, body, and optional actions.
- Message
Action - One action on a message. Icon-only actions take
icon_label; otherwise the visible text is the name. - Message
Part - One addressable unit of a message body: a text block, a code block, a tool call.