You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1c446ce
Browse filesBrowse the repository at this point in the historyBrowse files
* Changed to correct import
* Added null checks to rlm core
* Added example to quickstart script
* Move quickstart to examples folder
* Remove uv.lock changes
* Merged rlm_example and quickstart
* Wrap model reference in _to_str
* Update README with quickstart example
* Refine Quick Setup instructions in README
Updated setup instructions for clarity and formatting.
---------
Co-authored-by: az <alex.lx.zhang@gmail.com>
Set up the dependencies with `uv` (or your virtual environment of choice):
50
-
```
50
+
```bash
51
51
curl -LsSf https://astral.sh/uv/install.sh | sh
52
52
uv init && uv venv --python 3.12 # change version as needed
53
53
uv pip install -e .
54
54
```
55
55
56
+
To run a quick test, make sure your `OPENAI_API_KEY` is set properly and run the following:
57
+
```bash
58
+
cd examples/
59
+
uv run quickstart.py
60
+
```
61
+
62
+
This will generate console output as well as a log which you can use with the visualizer to explore the trajectories.
63
+
64
+
65
+
## REPL Environments
56
66
The default RLM object uses a REPL environment that runs on the host process through Python `exec` calls. It uses the same virtual environment as the host process (i.e. it will have access to the same dependencies), but with some limitations in its available global modules. As an example, we can call RLM completions using GPT-5-nano with the Portkey client:
57
67
```python
58
68
from rlm importRLM
@@ -66,7 +76,6 @@ rlm = RLM(
66
76
print(rlm.completion("Print me the first 100 powers of two, each on a newline.").response)
67
77
```
68
78
69
-
## REPL Environments
70
79
We support two types of REPL environments -- isolated, and non-isolated. Non-isolated environments (default) run code execution on the same machine as the RLM (e.g. through `exec`), which is pretty reasonable for some local low-risk tasks, like simple benchmarking, but can be problematic if the prompts or tool calls can interact with malicious users. Fully isolated environments used Cloud-based sandboxes (e.g. Prime Sandboxes, [Modal Sandboxes](https://modal.com/docs/guide/sandboxes)) to run code generated by the RLM, ensuring completely isolation from the host process. Environments can be added, but we natively support the following: `local` (default), `modal`, `prime`.
0 commit comments