ChatThread
public struct ChatThread : Identifiable
All information about a chat thread as well as the messages for the thread.
-
The unique id of the thread. Refers to the
idOnExternalPlatform
.Declaration
Swift
public let id: UUID
-
The name given to the thread (for multi-thread channels only).
Declaration
Swift
public var name: String?
-
The list of messages on the thread.
Declaration
Swift
public var messages: [Message]
-
The agent assigned in the thread.
Declaration
Swift
public var assignedAgent: Agent?
-
The last agent that has been assigned to the thread
This attribute can be used to get the previously assigned agent back to the thread after unassignment.
Declaration
Swift
public var lastAssignedAgent: Agent?
-
The token for the scroll position used to load more messages.
Declaration
Swift
public var scrollToken: String
-
The thread state
Declaration
Swift
public var state: ChatThreadState
-
Whether there are more messages to load in the thread.
Declaration
Swift
public var hasMoreMessagesToLoad: Bool { get }
-
The position in the queue
Declaration
Swift
public var positionInQueue: Int?