update

fun update(messages: List<M>)

The conversation's messages, oldest first, each time they change.

Parameters

messages

The messages, oldest first.


fun update(hasOlderMessages: Boolean)

Whether there are messages before the first one, which the transport's AIConversationTransport.loadOlderMessages loads.

Parameters

hasOlderMessages

Whether there are older messages.


fun update(activity: AIAgentActivity?)

What the agent says it is doing, or null once it stops saying. An activity in the AIAgentActivity.State.Error state ends the latest request with an AIAgentError.

Parameters

activity

What the agent is doing, or null.