Vana SDK - v4.1.0
    Preparing search index...

    Function listQuestions

    • List the questions this builder registered on a derived scope.

      Parameters

      • params: ListQuestionsParams

      Returns Promise<
          {
              questionId: string;
              derivedScope: string;
              sourceScopes: string[];
              question: string;
              model: string
              | null;
              registeredBy:
                  | { kind: "owner" }
                  | { kind: "builder"; builder: string; grantId: string };
              status: "pending" | "failed" | "ready" | "stale";
              error: string | null;
              errorCode:
                  | "internal"
                  | "inference_unavailable"
                  | "source_missing"
                  | "grant_invalid"
                  | null;
              createdAt: string;
              updatedAt: string
              | null;
              lastComputedAt: string | null;
              derivedVersion: number | null;
              derivedCollectedAt: string | null;
          }[],
      >

      The registrations, newest state included.

      Sends GET /v1/derivatives/questions?derivedScope=.... The scope is required for a builder: it is what the call is authorized against, which is exactly why the signed proof commits to the query string as well as the path. The target is built once and used for both, so the signature and the request can never name different scopes.

      400 DERIVATIVE_DERIVED_SCOPE_REQUIRED when the server saw no ?derivedScope= (the SDK refuses an empty one before sending).