Skip to main content

Module chat

Module chat 

Source
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§

ChatGroupProps
Properties for the ChatGroup component.
ChatProps
Properties for the Chat component.
MessageActionProps
Properties for the MessageAction component.
MessagePartProps
Properties for the MessagePart component.
MessageProps
Properties for the Message component.
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.
ChatGroup
Consecutive messages shown together, e.g. one turn.
Message
One message: author, time, body, and optional actions.
MessageAction
One action on a message. Icon-only actions take icon_label; otherwise the visible text is the name.
MessagePart
One addressable unit of a message body: a text block, a code block, a tool call.