reward_function
module contains the core functionality for creating and using reward functions.
evaluation
module provides the Evaluator
class for managing evaluation configurations and functions for creating and previewing evaluations.
Evaluator
class: Manages metric loading, sample loading, and evaluator creation on the platform.preview_evaluation
: Previews an evaluation with sample data before deployment.create_evaluation
: Creates and deploys an evaluator to the platform.config
module handles loading and managing configurations for the Reward Kit, typically from a rewardkit.yaml
file.
load_config()
/ get_config()
: Load the global Reward Kit configuration.RewardKitConfig
: Pydantic model for the main configuration structure.GCPCloudRunConfig
, AWSLambdaConfig
.models
module contains data models used throughout the Reward Kit.
rewards
module contains specialized reward functions for specific use cases.
server
module provides the RewardServer
class and serve
function to host reward functions as a FastAPI application.
RewardServer
class: A class to encapsulate a reward function and run it as a server.serve()
function: A utility to quickly serve a given reward function.auth
module provides utility functions to retrieve authentication credentials, primarily for Fireworks AI.
get_fireworks_api_key()
: Retrieves the Fireworks API key.get_fireworks_account_id()
: Retrieves the Fireworks account ID.gcp_tools
module offers utilities for working with Google Cloud Platform, such as building and pushing Docker images to Artifact Registry and deploying to Cloud Run.
packaging
module assists in preparing reward functions for deployment, for example, by generating Dockerfile content.
platform_api
module provides functions for direct interaction with the Fireworks AI platform API, such as managing secrets.
rl_processing
module contains tools for processing data for Reinforcement Learning workflows, such as the RLDataAligner
.
reward_kit.mcp
)reward_kit.mcp.clients
: Provides clients for interacting with MCP-compliant servers.reward_kit.mcp_agent
)