create For Participants
open fun createForParticipants(id: String, user: User, agent: User? = null, title: String? = null): Conversation
Create a conversation for a 1-1 chat between a user and an agent.
Messages can be automatically attributed based on role when participants are set.
Return
a new Conversation instance
Parameters
id
the conversation/session ID
user
the human user participant
agent
the AI/system user participant (optional)
title
the session title (optional)