get_metrics
Fetch scalar metrics (reward, losses, LR) from a Unity ML-Agents training run. Query by run ID to monitor recent training progress.
Instructions
Read TensorBoard scalar metrics from a training run.
Args: run_id: The run to query. behavior_name: Specific behavior to read (auto-detected if omitted). metric_keys: Specific metric keys to read (defaults to reward, losses, LR). last_n: Number of most recent data points per metric (default 20). Use -1 for all.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"run_id": "<run_id>"
},
"name": "get_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last_n | No | ||
| run_id | Yes | ||
| metric_keys | No | ||
| behavior_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||