API Reference
Api overview
Reward Kit API Reference
This API reference provides detailed documentation for the key classes, functions, and data models in the Reward Kit.
Core Components
Classes and Decorators
- RewardFunction Class: Core class for wrapping and calling reward functions
- reward_function Decorator: Decorator for creating deployable reward functions
Data Models
- Data Models: Documentation for Message, RewardOutput, MetricRewardOutput, and other data models
Modules
reward_function Module
The reward_function
module contains the core functionality for creating and using reward functions.
evaluation Module
The evaluation
module provides functions for previewing and creating evaluations.
Key functions:
preview_evaluation
: Previews an evaluation with sample data before deploymentcreate_evaluation
: Creates and deploys an evaluator to Fireworks
models Module
The models
module contains data models used throughout the Reward Kit.
rewards Module
The rewards
module contains specialized reward functions for specific use cases.
server Module
The server
module provides functionality for running a reward function as a server.
auth Module
The auth
module handles authentication with Fireworks.
Command Line Interface
The Reward Kit provides a command-line interface for common operations:
For detailed CLI documentation, see the CLI Reference.
Common Patterns
Creating a Basic Reward Function
Using a Deployed Reward Function
Next Steps
- Explore the Examples for practical implementations
- Follow the Tutorials for step-by-step guidance
- Review the Developer Guide for conceptual understanding