Getting started — This guide takes a blank browser application to a connected agent that answers a question and says a scripted line. The SDK runs in the browser only.
Chat modes — The chat mode decides how the agent answers: with a streamed video, as text only, or not at all.
Client tools — A client tool is a function that runs in the user's browser when the agent's LLM decides to call it.
Expressive agents — An Expressive (V4) session is two-way: the page can publish the user's microphone and camera, change the speech-to-text language mid-conversation, and send…
Handling errors — Every error the SDK raises is a BaseError carrying a kind, and isDIDError is the guard that recognizes one.
Migration guide — @d-id/client-sdk v3 is a breaking release that trims the package's public surface to what the SDK supports.
Agent Manager
createAgentManager — Creates an AgentManager for one agent: its chat, its video stream and its connections.
Agent — An agent's profile, as the Agents API returns it.
AgentAvatar — The avatar an agent speaks through: its rendering tier and the language of its voice.
AgentManager — A live connection to one agent: its profile, its chat, and the video stream it answers on.
AgentManagerOptions — Everything createAgentManager needs to reach an agent and report back to the application.
AnalyticsOptions — What the SDK reports about the session, and where it goes.