AgentPlatformChatSession

class AgentPlatformChatSession(val user: User?, planLister: PlanLister, val processOptions: ProcessOptions = ProcessOptions(), val responseGenerator: ResponseGenerator, val conversation: Conversation = InMemoryConversation()) : ChatSession

Support for chat sessions leveraging an AgentPlatform.

Constructors

Link copied to clipboard
constructor(user: User?, planLister: PlanLister, processOptions: ProcessOptions = ProcessOptions(), responseGenerator: ResponseGenerator, conversation: Conversation = InMemoryConversation())

Properties

Link copied to clipboard
open override val conversation: Conversation

Conversation history. Kept up to date.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val user: User?

The Embabel User if known, null if not.

Functions

Link copied to clipboard
open override fun respond(userMessage: UserMessage, messageListener: MessageListener)

Update the conversation with a new message and respond to it. Any response messages will be sent to the messageListener, but also should be added to the conversation.