game_minimax
Computes minimax and expectiminimax values for game trees from nested leaf utilities or chance-node probabilities, helping evaluate optimal and expected outcomes.
Instructions
Minimax / expectiminimax values for a game tree. tree: nested lists of leaf utilities (levels alternate MAX, MIN) or {"children": {...}, "values": {...}, "types": {"B": "chance"}, "probabilities": {"B": [0.5, 0.5]}}.
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": {
"tree": "<tree>"
},
"name": "game_minimax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree | Yes | ||
| root_type | No | max |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |