Skip to main content
Code Recipes are self-contained examples that demonstrate how to accomplish specific tasks with Freeplay. Each recipe includes complete, working code that you can copy and adapt for your own projects.

How Recipes Relate to Other Documentation

ResourcePurposeWhen to Use
Code RecipesComplete, runnable examplesStarting a new integration or looking for working code
SDK DocumentationDetailed API referenceUnderstanding all available methods and options
API ReferenceHTTP endpoint documentationBuilding custom integrations or debugging
How-To GuidesStep-by-step implementation guidesLearning patterns and best practices

Recipe Categories

Basic Patterns

Get started with fundamental Freeplay integration patterns.

Chat & Conversations

Build conversational AI applications.

Tool Calling

Implement function calling with different providers.

Providers & Model Hosting

Connect to models hosted on different platforms.

Testing

Run tests and evaluations programmatically.

Specialized

Advanced patterns and integrations.

Using Recipes

Each recipe follows a consistent structure:
  1. Prerequisites - What you need before starting
  2. Setup - Environment and client configuration
  3. Implementation - Step-by-step code with explanations
  4. Complete Example - Full working code you can run
Most recipes include examples in Python, with some also providing TypeScript and/or Java variants. Copy the code, update the configuration values for your project, and run.