Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/features/mcp-rl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ scenario_collection = await generate_scenarios(
)
```

You can generate scenarios against [OrcaRouter](https://www.orcarouter.ai) the same way — point `generator_base_url` at `https://api.orcarouter.ai/v1` and use an OrcaRouter key (keys start with `sk-orca-`):

```python
scenario_collection = await generate_scenarios(
tools=tools_list,
num_scenarios=24,
show_preview=True,
generator_api_key="your_orcarouter_key",
generator_base_url="https://api.orcarouter.ai/v1",
)
```

ART automatically generates diverse training scenarios that exercise different aspects of the MCP server: simple single-tool usage, complex multi-step workflows, edge cases and error handling, and creative combinations of available tools.

### 3. **RULER Evaluation**
Expand Down
6 changes: 6 additions & 0 deletions docs/fundamentals/sft-training.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ async def main():
api_key="your-api-key",
base_url="https://openrouter.ai/api/v1",
)
# Or point the teacher at OrcaRouter:
#
# teacher_client = AsyncOpenAI(
# api_key=os.getenv("ORCAROUTER_API_KEY"),
# base_url="https://api.orcarouter.ai/v1",
# )
# Small models often produce malformed JSON or miss fields.
# Distilling from a larger model teaches consistent structured extraction.
system_prompt = "Extract {name, role, company} as JSON from the text. Return only valid JSON."
Expand Down
10 changes: 10 additions & 0 deletions src/art/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,16 @@ class Model(
)
``

Or, if you're pointing at [OrcaRouter](https://www.orcarouter.ai):

``python model = art.Model(
name="gemini-2.5-pro", project="my-project",
inference_api_key=os.getenv("ORCAROUTER_API_KEY"),
inference_base_url="https://api.orcarouter.ai/v1",
inference_model_name="orcarouter/auto",
)
``

For trainable (`art.TrainableModel`) models the inference values will be
populated automatically by `model.register(api)` so you generally don't need
to think about them.
Expand Down