@conciergus/chat - v0.3.1
    Preparing search index...

    Interface ModelManager

    Model management interface for AI Gateway integration

    interface ModelManager {
        getCurrentModel(): string;
        getAvailableModels(): string[];
        switchModel(modelId: string): Promise<void>;
        getModelCapabilities(
            modelId?: string,
        ): {
            supportsVision: boolean;
            supportsFunctionCalling: boolean;
            supportsReasoning: boolean;
            costTier: "low" | "medium" | "high";
        };
        getOptimalModel(
            requirements: {
                vision?: boolean;
                functionCalling?: boolean;
                reasoning?: boolean;
                costOptimized?: boolean;
            },
        ): string;
    }
    Index

    Methods

    • Get the currently selected model

      Returns string

    • Get all available models from the gateway

      Returns string[]

    • Switch to a different model

      Parameters

      • modelId: string

      Returns Promise<void>

    • Get model capabilities

      Parameters

      • OptionalmodelId: string

      Returns {
          supportsVision: boolean;
          supportsFunctionCalling: boolean;
          supportsReasoning: boolean;
          costTier: "low" | "medium" | "high";
      }

    • Get optimal model for a specific task

      Parameters

      • requirements: {
            vision?: boolean;
            functionCalling?: boolean;
            reasoning?: boolean;
            costOptimized?: boolean;
        }

      Returns string