//core/com.kustomer.core.providers/KusChatProvider/createConversationWithExternalAttachments
[androidJvm]
abstract suspend fun createConversationWithExternalAttachments(title: String? = null, attachments: List<KusExternalAttachment>, attributes: Map<String, Any>? = null, initialAgentMessages: List<String>? = null, assistantId: String? = null): KusResult<Pair<KusConversation, List<KusChatMessage>>>
Creates a new conversation whose first message owns the given host-owned attachments.
Attachments are registered first, so no empty conversation is created when registration fails.
Note: This is a suspend function and should be called from Kotlin Coroutines
Pair of created KusConversation and the list containing the sent KusChatMessage
4.6.7
androidJvm
| title | Optional conversation title. Defaults to the first attachment name. Truncated to 256 characters. |
| attachments | Host-owned attachment metadata (absolute https urls) |
| attributes | Key Value pairs that can be optionally included to describe the newly created conversation |
| initialAgentMessages | A list of messages that appear as if sent by an agent at the start of the conversation. Ignored if a Chat Assistant is set. |
| assistantId | Optional assistant id. Defaults to KusChatSetting.assistantId. |