Usage with Frameworks
Usage with Common Model Providers and Frameworks
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.
Integrating with Popular Frameworks
The examples below show Integration of Runloop with popular frameworks and LLM providers.
The examples follow this structure:
- Client Initialization: Set up SDK clients with environment variables.
- Prompt Definition: Use pre-defined system and user prompts.
- Code Generation: Generate code based on the prompts.
- 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
Was this page helpful?