participant role chats through the
conversation functions. Each one is exposed at its path under the place you
mounted the app, and acts only on the caller’s own conversations: a
conversation’s owner is the principal that opened it.
A conversation fact carries
id, agent, title, state, running (the
active turn) and createdAt. A message carries id, position, role
(user, assistant or tool), text, tools, turn, by and at.
Every function refuses with a host code or one of the app’s codes:
NotFound, UnknownAgent, SignedOut, Unadmitted and InvalidInput. A
caller without the participant role is refused Disallowed.
From React
Unknown, call the mutation with the original
arguments and the refusal’s once to recover the original turn.
useWatch with null arguments holds no watch.
Turn states
A stopped turn’s outstanding model call, tool calls and questions run to
their own results, which the app ignores.
tokens totals the usage the
provider reported for the turn’s model calls.