@squidcloud/client
    Preparing search index...

    Class SessionClient

    Stores sessions: app-scoped JSON records under ids the app chooses, which expire. Every call needs the app API key.

    A client without the API key starts a session, or attaches a live one, through an AI agent or LangGraph call.

    Index
    • Deletes the session. Deleting a missing session does nothing.

      Parameters

      • id: string

      Returns Promise<void>

    • Returns the session, or undefined when it is missing or expired.

      Parameters

      • id: string

      Returns Promise<Session | undefined>