Meshpocalypse Semantic
    Preparing search index...

    Function getTokenBudgetStatus

    • Queries the current token budget status for all budgets owned by a tenant.

      Returns all budgets with their current spentTokens snapshot and computed remainingTokens (computed via SPARQL BIND, mirroring the ontology design intent).

      Parameters

      • tenantId: string

        Tenant identifier (must pass SAFE_IRI_KEY_RE)

      • config: AiGatewayConfig

        Gateway configuration

      Returns Promise<BudgetStatus>

      BudgetStatus with all budgets

      If tenantId is unsafe