Decorators Overview
Auto-instrumentation for AI features
Introduction
Humanloop provides a set of decorators that help you instrument your AI features with minimal code changes. These decorators automatically create and manage Logs on the Humanloop platform, enabling monitoring, evaluation, and improvement of your AI applications.
Common Patterns
All decorators share these common characteristics:
- Path-based organization: Each decorator requires a
path
parameter that determines where the File and its Logs are stored in your Humanloop workspace. - Automatic versioning: Changes to the decorated function or its parameters create new versions of the File.
- Error handling: Errors are caught and logged, making debugging easier.
- Minimal code changes: Decorate existing code and adopt the Humanloop SDK gradually.