Note: Currently, an Agent only responds to Text Messages.
AIAssistantListener
.MessageListener
.onAIAssistantEventReceived
method of the AIAssistantListener
class in this general order:
Run Start
and Run Finished
are always emitted.Tool Call
events appear only when a backend or frontend tool is invoked. There can be multiple tool calls in a single run.Text Message
events are always emitted and carry the assistant’s reply incrementally.MessageListener
after the run completes.
AIAssistantMessage
: The full assistant reply.AIToolResultMessage
: The final output of a tool call.AIToolArgumentMessage
: The arguments that were passed to a tool.