Conversation class
A comprehensive model representing a Tuul AI conversation session and its metadata.
This model encapsulates identity, configuration (like type and instanceName), execution state, and historical logs.
Constructors
-
Conversation({String? id, required String name, required String type, required String instanceName, bool isConversationning = false, String? sessionId, bool isDefault = false, Map<
String, dynamic> ? stats, String? conversationId, List<ConversationError> ? errorLogs, required DateTime createdAt, required DateTime updatedAt}) -
Conversation.fromJson(Map<
String, dynamic> json) -
Creates a Conversation from a JSON map.
factory
Properties
- conversationId → String?
-
The identifier for the specific conversation thread.
final
- createdAt → DateTime
-
The timestamp of when the conversation record was first created.
final
-
errorLogs
→ List<
ConversationError> ? -
A list of ConversationError logs recorded during the session.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
The unique internal identifier for this conversation record.
final
- instanceName → String
-
The name of the specific AI instance or agent associated with this conversation.
final
- isConversationning → bool
-
Indicates if the conversation is currently active or processing.
Maps to
is_runningin the backend.final - isDefault → bool
-
Whether this is the primary or default conversation for the instance.
final
- name → String
-
The display name or title assigned to the conversation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String?
-
The unique session identifier used for request tracking.
final
-
stats
→ Map<
String, dynamic> ? -
A collection of dynamic metrics or statistics related to this conversation.
final
- type → String
-
The deployment environment or lifecycle stage.
Usually "test" or "publish".
final
- updatedAt → DateTime
-
The timestamp of the most recent update to the conversation record.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the Conversation instance into a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited