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

    Interface AskPersonalServerResult

    interface AskPersonalServerResult {
        registration: {
            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;
        };
        record: {
            $schema?: string;
            version: "1.0";
            scope: string;
            schemaId?: string;
            collectedAt: string;
            data: Record<string, unknown>;
        };
    }
    Index

    Properties

    Properties

    registration: {
        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 settled registration (status is ready).

    Type Declaration

    • questionId: string
    • derivedScope: string
    • sourceScopes: string[]
    • question: string
    • model: string | null

      The model override, or null for the server's default.

    • registeredBy: { kind: "owner" } | { kind: "builder"; builder: string; grantId: string }
    • status: "pending" | "failed" | "ready" | "stale"
    • error: string | null

      A short reason, set only while status is failed.

    • errorCode: "internal" | "inference_unavailable" | "source_missing" | "grant_invalid" | null

      The coarse failure class behind error, set only while status is failed. null from a Personal Server that predates the class (personal-server-ts before the status route).

    • createdAt: string
    • updatedAt: string | null
    • lastComputedAt: string | null

      When the last compute finished, or null while pending.

    • derivedVersion: number | null

      Local version of the derived record the last compute wrote.

    • derivedCollectedAt: string | null
    record: {
        $schema?: string;
        version: "1.0";
        scope: string;
        schemaId?: string;
        collectedAt: string;
        data: Record<string, unknown>;
    }

    The derived record the Personal Server wrote and the builder just read.