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

    Function getQuestion

    • Read one question's current state.

      Parameters

      • params: GetQuestionParams

      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 registration, including status, lastComputedAt, derivedVersion and (when it failed) error.

      Sends GET /v1/derivatives/questions/:id. A builder only sees questions it registered itself; anything else is a 404.

      404: unknown id, or not this builder's question.