Initialization

To integrate with Runloop and your preferred LLM provider, initialize the respective SDK clients.

Defining Prompts

Defining a clear, actionable prompt ensures accurate LLM responses.

Generating Code

Send the defined prompts to the LLM’s message endpoint, configure parameters and extract the generated code from the response.

Running Code on a Devbox

After retrieving the code from the LLM, execute it in a Runloop Devbox.

The examples below show Integration of Runloop with popular frameworks and LLM providers.

The examples follow this structure:

  1. Client Initialization: Set up SDK clients with environment variables.
  2. Prompt Definition: Use pre-defined system and user prompts.
  3. Code Generation: Generate code based on the prompts.
  4. Execution: Run the code in a secure Runloop Devbox.
Prompts are defined above and reused across examples.
Handle the non-null ”!” operator in examples with default values or as needed.

TypeScript Integrations

Python Integrations