Skip to content

Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.

917 B
Raw Blame
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

"""Recognize an import failure caused by a missing ``tier3`` extra."""

from __future__ import annotations

# Top-level import names of the packages that only the ``tier3`` extra installs
# (``[project.optional-dependencies]`` in pyproject.toml).
TIER3_EXTRA_MODULES = frozenset(
    {"anthropic", "boto3", "dotenv", "harbor", "jwt", "litellm", "mcp", "oauthlib", "openai"}
)


def is_missing_tier3_extra(exc: ImportError) -> bool:
    """Return whether ``exc`` names a package that the ``tier3`` extra provides."""
    # A missing symbol or submodule in an installed dependency means a broken or
    # incompatible installation; preserve its real cause instead of claiming the extra is absent.
    return isinstance(exc, ModuleNotFoundError) and exc.name in TIER3_EXTRA_MODULES