Theia API Documentation v1.65.0
    Preparing search index...
    • Calculates the specificity score of a RequestSetting for a given scope. The score is calculated based on matching criteria:

      • Agent match: 100 points
      • Model match: 10 points
      • Provider match: 1 point

      Parameters

      • setting: RequestSetting

        RequestSetting object to check against

      • Optionalscope: Scope

        Optional scope object containing modelId, providerId, and agentId

      Returns number

      Specificity score (-1 for non-match, or sum of matching criteria points)