Reference
Remy Reference/interface/createAgentChatClient
?

createAgentChatClient

Returns the stateless client for an agent chat UI, covering thread management and streaming message sends.
createAgentChatClient() → AgentChatClient

The entry point for an agent chat UI, and a thin, stateless wrapper over the platform's chat endpoints: the app owns the thread list, the message array, and the UI, while the client moves messages and events across the wire. Reach for this rather than hand-rolling fetch and SSE. Chat runs as the signed-in user, so every tool the agent calls carries that user's roles.

Create the client
import { createAgentChatClient } from '@mindstudio-ai/interface';

const chat = createAgentChatClient();
const thread = await chat.createThread();