Skip to main content

1. Configure Freeplay Client

You’ll need to set the following environment variables:
  1. FREEPLAY_API_KEY
  2. OPENAI_API_KEY
  3. FREEPLAY_PROJECT_ID

2. Fetch Prompt

Fetch your prompt from the Freeplay server

3. Call your LLM

You will interact with your LLM directly, but you can key model config and messages off of the formatted prompt object

4. Record the LLM Interaction

Record your LLM response back to Freeplay

Examples