Overview
The basic OpenAI demo is the smallest possible ICRL example. It uses a trivial environment that succeeds after one action, runs a single training episode, and prints the result. Use it to confirm your API key and environment are working.Prerequisites
OPENAI_API_KEYset in your environment- Python 3.12+
icrl-pyinstalled
Run
gpt-4o-mini):
What It Does
- Creates a
MinimalEnvironmentthat accepts any action and returns success - Creates an
AgentwithLiteLLMProviderand basic prompts - Runs one
agent.train()call with goal"Demonstrate one minimal training run" - Prints model, success status, and step count
Expected Output
Source
examples/basic_openai_demo.py — about 60 lines, including the minimal environment definition.
