A Python SDK for TrustyAI, providing tools for explaining, evaluating, and enhancing AI models.
Install the package with core functionality and CLI:
pip install .
After installation, you can use both the Python API and CLI:
trustyai --help
trustyai info
trustyai model list
trustyai eval list-providers
To install everything including evaluation support:
pip install .[all]
This includes all core, CLI, and evaluation dependencies.
For model evaluation capabilities:
pip install .[eval]
For development, testing, and linting:
pip install .[dev]
import numpy as np
from trustyai.core.model import TrustyModel
from trustyai.core.providers import ProviderRegistry
# Create a trusty model
model = TrustyModel(name="MyModel")
# Get explanations
X = np.random.rand(10, 5)
explanations = model.explain(X)
print(explanations)
The CLI is available by default after installation:
# Display help
trustyai --help
# Show version information
trustyai --version
# Show general information
trustyai info
# List available models
trustyai model list
# List evaluation providers
trustyai eval list-providers
This project uses:
# Install development dependencies
pip install .[dev]
# Run tests
make test
# Run linting
make lint
# Format code
make format
Apache License 2.0