Meshpocalypse Semantic
    Preparing search index...

    Interface SelectedModel

    A resolved model capability, returned by selectModel.

    interface SelectedModel {
        agentIri: string;
        budgetRatio: number | null;
        capabilityIri: string;
        contextWindow: number;
        costPerToken: number;
        downgraded: boolean;
        modelId: string;
        modelProvider: string;
        qualityScore: number;
    }
    Index

    Properties

    agentIri: string

    Agent IRI that provides this model.

    budgetRatio: number | null

    Current budget ratio (remainingTokens / maxTokens), if a budget was queried. null if no budget was provided or the graph returned no row.

    capabilityIri: string

    mesh:ModelCapability node IRI.

    contextWindow: number

    Maximum token context window.

    costPerToken: number

    USD cost per output token.

    downgraded: boolean

    Whether the downgrade path was applied.

    true means the cheapest model was selected because the remaining token budget fell below the configured threshold.

    modelId: string

    Provider-specific model identifier (e.g. 'gpt-4o').

    modelProvider: string

    Organisation providing the model (e.g. 'openai').

    qualityScore: number

    Normalised quality score in [0.0, 1.0].