The transport-agnostic surface for talking to an agent. The same shape is
returned by ai.defineAgent(...) on the server and by remoteAgent(...) on
the client.
Loads a server snapshot and returns a chat with history restored. Accepts
either a snapshotId (an exact snapshot) or a sessionId (the session's
latest snapshot).
The transport-agnostic surface for talking to an agent. The same shape is returned by
ai.defineAgent(...)on the server and byremoteAgent(...)on the client.