@archastro/sdk
    Preparing search index...
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Retrieve thread settings Returns the current settings for the specified thread. Settings control per-thread behavior such as whether the AI agent is enabled. The authenticated user must own the thread or be a member of its workspace. If settings have never been explicitly configured, defaults are returned (for example, agent_enabled defaults to true).

      Parameters

      • thread: string

        Thread ID (thr_...). Must belong to the authenticated user's workspace.

      Returns Promise<{ agent_enabled?: boolean }>

      Successful response

    • Update thread settings Updates the settings for the specified thread. Only fields included in the settings map are modified; omitted fields retain their current values. The authenticated user must own the thread or be a member of its workspace. Returns the full settings object reflecting the state after the update. Validation errors are returned as 422 Unprocessable Entity.

      Parameters

      • thread: string

        Thread ID (thr_...). Must belong to the authenticated user's workspace.

      • input: { settings: Record<string, unknown> }

        Request body.

        • settings: Record<string, unknown>

          Map of settings fields to update. Include only the keys you want to change.

      Returns Promise<ThreadSettings>

      The thread settings object after the update has been applied.