AI Agent Component Spec
AI Agent Component Spec
Where It Fits
CometChatAIAssistantChatHistory is a pre-built user interface widget designed to display the conversation history between users and an AI assistant within a chat application. It provides a structured and visually appealing way to present past interactions, making it easy for users to review previous messages and context.
Minimal Render
The simplest way to render CometChatAIAssistantChatHistory:- Dart
- Dart
- Dart
Filtering
You can adjust theMessagesRequestBuilder to customize the message list. Numerous options are available to alter the builder to meet your specific needs.
- Dart
The following parameters in messageRequestBuilder will always be altered inside the list:
- UID
- GUID
- types
- categories
MessagesRequestBuilder, please visit MessagesRequestBuilder.
Actions and Events
Callback Props
Component-level callbacks that fire on specific user interactions:- Dart
Global UI Events
The CometChatAIAssistantChatHistory component does not produce any global UI events.Custom View Slots
Customize the appearance of CometChatAIAssistantChatHistory by replacing default views with your own widgets.Example: Custom Back Button
- Dart
Example: Custom Loading State
- Dart
Example: Custom Empty State
- Dart
Date Separator Pattern
You can modify the date pattern of the chat history date separator usingdateSeparatorPattern:
- Dart
Styling
Customize the appearance of CometChatAIAssistantChatHistory usingCometChatAIAssistantChatHistoryStyle.
- Dart

Style Properties
Props Reference
Message List
Display messages in a conversation
Message Composer
Compose and send messages
Theming
Learn how to customize the look and feel
Localization
Support multiple languages in your app