For server-managed agents (with a store) provide a snapshotId (resume an
exact snapshot, required for branching/snapshotting clients) and/or a
sessionId (resume the session's latest snapshot - the simple case used by
useChat-style clients). When both are provided, snapshotId selects the
snapshot to resume and sessionId acts as an ownership guard: the snapshot
must belong to that session. For client-managed agents (no store) provide
the full state.
Runtime variant of AgentInitSchema, generic over the custom state
type S.
Initialization options for an agent turn.
For server-managed agents (with a
store) provide asnapshotId(resume an exact snapshot, required for branching/snapshotting clients) and/or asessionId(resume the session's latest snapshot - the simple case used byuseChat-style clients). When both are provided,snapshotIdselects the snapshot to resume andsessionIdacts as an ownership guard: the snapshot must belong to that session. For client-managed agents (no store) provide the fullstate.Runtime variant of AgentInitSchema, generic over the custom state type
S.