Skip to main content

1. Create the necessary clients

2. Fetch the prompt from Freeplay

Freeplay will format your messages and model parameters for the provider you have configured on the prompt template version

3. Make the LLM call

Key off the provider name from the formatted prompt and route to the proper provider

4. Record to Freeplay

Record the interaction back to Freeplay

Examples