AgentforceUIApiRecordCollection

A data structure that represents a collection of UI API records in Agentforce conversations. It provides pagination support and metadata for managing multiple records from the UI API.

PropertyTypeDescription
countIntThe total number of records in the collection
currentPageTokenStringToken for the current page
currentPageUrlStringURL for the current page
nextPageTokenString?Token for the next page, if available
nextPageUrlString?URL for the next page, if available
previousPageTokenString?Token for the previous page, if available
previousPageUrlString?URL for the previous page, if available
records[AgentforceRecordRepresentation]Array of record representations
MethodSignatureDescription
init(count:currentPageToken:currentPageUrl:nextPageToken:nextPageUrl:previousPageToken:previousPageUrl:records:)init(count: Int, currentPageToken: String, currentPageUrl: String, nextPageToken: String? = nil, nextPageUrl: String? = nil, previousPageToken: String? = nil, previousPageUrl: String? = nil, records: [AgentforceRecordRepresentation])Creates a new record collection with pagination metadata and records
init(from:)init(from decoder: Decoder) throwsCreates a new instance from a decoder (inherited from Decodable)