Skip to content

Assistant

MSM pattern

Agent Thread

An assistant conversation: messages, reasoning, tool activity, approvals, and questions.

When to use it
Render every assistant conversation with AgentThread. Map Eve's message parts to AgentMessage in one adapter: text, reasoning, files, dynamic-tool activity, and input requests keep Eve's IDs, kinds, and option styles. Answer approvals, questions, and session limits through onRespond.

Scheduling with the assistant

Book a trial guitar lesson for Leo Andersson next week.

Leo intake form.pdfPDF · 180 KB
Which time should I book?
Thursday, 3:30 PM

Thursday at 3:30 PM it is. I can book it now and email the family a confirmation.

Book Leo's trial lesson on Thursday at 3:30 PM?
Creates a 30-minute guitar lesson with Sam Patel in Room B and emails the Andersson family.

Working, reconnecting, failed, and at a limit

Scripted states

Which families still owe for March?

Searching March invoices — In progress

Usage

Use the Code tab to copy a complete example. MSM pages import shared components from @msm/ui; changes to those components appear here and in the application.

View registry item