@archastro/sdk
    Preparing search index...
    Index

    Constructors

    Methods

    Constructors

    Methods

    • List agent routine runs Returns a paginated list of agent routine runs across all routines visible to the authenticated app scope. Results are ordered by creation time descending (most recent first). Use the agent parameter to filter runs to one or more specific agents. Use status to narrow results to runs in a particular state. Pagination is bidirectional: supply after_cursor to page forward through newer runs or before_cursor to page backward through older runs. This endpoint requires an app scope. Requests without a valid app credential return 403.

      Parameters

      • Optionalparams: {
            afterCursor?: string;
            agent?: string[];
            beforeCursor?: string;
            limit?: number;
            status?: string;
        }

        Query parameters.

        • OptionalafterCursor?: string

          Opaque cursor from a previous response's after_cursor field. Returns the page of runs newer than that cursor position.

        • Optionalagent?: string[]

          Filter by one or more agent IDs (agi_...) or lookup_key values. Repeat the parameter (e.g. ?agent[]=agi_a&agent[]=agi_b) to OR multiple agents. Omit to return runs for all agents.

        • OptionalbeforeCursor?: string

          Opaque cursor from a previous response's before_cursor field. Returns the page of runs older than that cursor position.

        • Optionallimit?: number

          Maximum number of runs to return. Defaults to 50; maximum is 100.

        • Optionalstatus?: string

          Filter by run status. One of "pending", "running", "completed", "failed", "skipped", or "cancelled". Omit to return runs in any status.

      Returns Promise<AgentRoutineRunListResponse>

      Paginated list of agent routine runs.