The per-session state shape of an agent — inferred from the definition agent() returned, so client code can type a syncState projection or a shared module can type ToolContext<InferAgentState<typeof agentDef>>.
agent()
syncState
ToolContext<InferAgentState<typeof agentDef>>
The per-session state shape of an agent — inferred from the definition
agent()returned, so client code can type asyncStateprojection or a shared module can typeToolContext<InferAgentState<typeof agentDef>>.