ors.md
attributes
| source_path | references/ors.md |
|---|---|
| source_sha256 | f409b75446e510b3837d770cebb592ff7dca0130def913f40ca427854aae1710 |
| source_url | https://github.com/adithya-s-k/FineEnvs/blob/fee6f71a70d0df315c2e2712859eb15689968b3a/.claude/skills/rl-env-from-description/references/ors.md |
| supporting_skill_id | 40344 |
| upstream_revision | fee6f71a70d0df315c2e2712859eb15689968b3a |
ORS (OpenReward) quick reference (for the umbrella skill)
For implementation, defer to generate-ors-env. This is the planner-level summary.
What ORS is
HTTP REST + Server-Sent Events protocol from openrewardstandard.io. Official Python SDK is openreward on PyPI (the ors-sdk name does not exist — common mistake). Servers expose:
GET /list_environmentsGET /<env_name>/toolsPOST /<env_name>/sessions(withtask_specbody)POST /<env_name>/sessions/<sid>/tool(call a tool)GET /<env_name>/splitsandPOST /<env_name>/tasks
The Python server does this for you when you subclass Environment and decorate @tool.
Core types
| Symbol | Source | What it is |
|---|---|---|
Environment |
openreward.environments |
Subclass for the env. Has setup(), teardown(), list_splits(), list_tasks(), get_prompt(). |
tool (decorator) |
openreward.environments |
Marks a method as a callable tool. Method signature: (self, params: PydanticModel) -> ToolOutput. |
ToolOutput |
openreward.environments |
`blocks=[TextBlock |
TextBlock, ImageBlock |
openreward.environments |
Content blocks. ImageBlock(data=<base64>, mimeType="image/png"). |
Split |
openreward.environments |
Split(name="train", type="train"). |
Server |
openreward.environments |
Server([EnvCls]).run(host=, port=). Endpoint name is the lowercased class name. |
EnvironmentsAPI |
openreward |
Sync client. EnvironmentsAPI(base_url, api_key="").get(name). |
OpenReward |
openreward |
High-level client; rewrites base_url with matrix. subdomain — avoid for HF Spaces. |
Reward model
Per tool call. Every ToolOutput carries a reward field. Use None for "no reward this step" and a float for "scored". The session ends when finished=True.
When ORS beats OpenEnv / Verifiers
- You want per-step rewards (env-side, not trainer-side).
- You want declarative
task_spec+ train/val/test splits without writing your own dataset code. - You want to deploy to OpenReward.ai's hosted infrastructure.
When ORS loses
- The MCP ecosystem matters more than reward ergonomics → OpenEnv.
- No HTTP server desired → Verifiers.
Common confusions
ors-sdkis not on PyPI. Always useopenreward.- Endpoint name is the lowercased class name:
WordleORS→wordleors. OpenReward(base_url=URL)mangles URL with subdomain prefixes — useEnvironmentsAPIdirect for HF Space targets.Tasklives inopenreward.api.environments.types, but you usually return plain dicts fromlist_tasks()— ORS auto-wraps them.
Children
No children yet.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.