AAI SDK
    Preparing search index...

    Type Alias InferAgentState<A>

    InferAgentState: A extends AgentDef<infer S> ? S : never

    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>>.

    Type Parameters

    • A