Package-level declarations
Types
What the agent says it is doing while it answers, besides what its reply shows, such as thinking or checking external sources. Stream Chat's AI indicator events carry it:
The agent couldn't answer: it said so, such as with an AIAgentActivity in the AIAgentActivity.State.Error state, or its reply didn't start in time.
Where an AIConversationTransport tells its AIConversationState what the conversation holds. Call it on the state's thread, the main thread for a viewModelScope.
What the person asks of the agent, which an AIConversationState hands to its AIConversationTransport.
What the person asks for in an AIConversationRequest. It is an open set: compare against the kinds you know, and treat the rest as a new message.
The state behind a conversation with an AI agent, and what the person does in it.
Where an AIConversationState's latest exchange with the agent is. It is an open set: compare against the statuses you know.
How an AIConversationState reaches the agent and learns what it holds: it sends what the person asks, stops the agent, and tells the state its messages as they change.
Something a message carries besides its text, such as an image or a file.
How the person rated a reply.
Who wrote a message. It is an open set: compare against the roles you know.
A message the person sent that has not arrived in the conversation yet. The conversation shows it at once, and its copy takes over its row when it arrives.
What the person can do with a finished reply besides copying and sharing it.
Functions
An AIConversationState that lives as long as the composition, connected to transport.