API reference

The result format

Every field of the document that GET /v1/solves/{id}/result returns. To learn how to read a hand from it, start with Results.

In short

  • The format of the document is named in its schema field: "cloud-result-v1".
  • tree holds every decision of the street, nested. exits holds the lines that lead to a next street.
  • A complete real result is here: sample-result.json (228 KB).

The parts of the document

The document

schema, model_id, input, tree, exits, root
A result, trimmed
{
  "schema": "cloud-result-v1",
  "model_id": "2bf1217be47136483022b4926d538eb2e835a235f241a7adb0ae94120d66420b",
  "hand_order": "pio-rank-cdhs-high-low-v1",
  "input": {
    "kind": "solve", "board": ["As", "Ks", "7h"], "pot": 100, "stack": 300,
    "bet_sizes": [0.33], "raise_sizes": [1.0], "max_raises": 1, "all_in": true,
    "iterations": 500, "accuracy": "fast", "utility": {"kind": "chip"},
    "ranges": [[1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0]]     // 1,326 weights each
  },
  "root": {
    "actions": ["check", "bet:33", "bet:300"],
    "action_frequencies": [0.7257, 0.2743, 0.00003],
    "hand_count": 108
  },
  "tree": {
    "node_id": "r:0",
    "node_type": "OOP_DEC",
    "pot": 100,
    "startingstack": 300,
    "strategy": {
      "actions": ["b300", "b33", "c"],
      "strategy": {"AhKh": [0.0001, 0.7832, 0.2167], "AdAc": [0.0000, 0.0111, 0.9889]},
      "evs":      {"AhKh": [104.66, 130.85, 130.94], "AdAc": [145.62, 186.39, 186.65]},
      "range":    {"AhKh": 1.0, "AdAc": 1.0}
    },
    "childrens": {
      "c": {
        "node_id": "r:0:c",
        "node_type": "IP_DEC",
        "pot": 100,
        "strategy": {"actions": ["b300", "b33", "c"], "strategy": {}, "evs": {}, "range": {}},
        "childrens": {
          "c":    {"node_id": "r:0:c:c", "node_type": "SPLIT_NODE", "pot": 100},
          "b33":  {"node_id": "r:0:c:b33", "node_type": "OOP_DEC", "pot": 133},
          "b300": {"node_id": "r:0:c:b300", "node_type": "OOP_DEC", "pot": 400}
        }
      },
      "b33":  {"node_id": "r:0:b33", "node_type": "IP_DEC", "pot": 133},
      "b300": {"node_id": "r:0:b300", "node_type": "IP_DEC", "pot": 400}
    }
  },
  "exits": {
    "n5": {
      "actions": ["check", "bet:33", "call"],
      "node_id": "r:0:c:b33:c",
      "board": ["As", "Ks", "7h"],
      "pot": 166,
      "stack": 267,
      "ranges": [[0.0, 0.0001, 0.0001, 0.1803], [0.8192, 0.0768, 0.0768, 0.984]]   // 1,326 weights each
    }
  },
  "locks": [],
  "profile": {"accuracy": "fast", "utility": {"kind": "chip"}, "rounding": "ceil to one chip", "rake_quality": null},
  "runtime": {},                                              // the solver's software versions
  "timing": {"solve_seconds": 4.51, "total_seconds": 4.62}
}
schema
The format of this document: "cloud-result-v1".
model_id
The version of the solver that made the result. It changes with a solver update; the same spot can then give other numbers. Store it with the results you keep.
hand_order
The order of the 1,326 hands in every list of weights. The same as GET /v1/hands.
input
The spot as it was solved: your fields, the defaults for what you left out, and the ranges as lists.
tree
Every decision of the street, nested. This is the solution.
exits
The lines that end the street with chips behind, by exit id, with both ranges at that point.
root
The first decision again, as lists. See below. Not in a test-key result.
locks
The locks of the request.
profile, runtime, timing
How the solve ran: its settings, the solver's environment and the seconds it took. A test-key result has them too; both of its times are 0.
sandbox, note
In a test-key result only: true, and a sentence that says the numbers are placeholders.

A node of the tree

node_id, node_type, pot, childrens, strategy

tree is the first decision. Each node has these fields. At a decision, strategy holds the solution: see a decision in the result.

node_id
"r:0" for the first decision, then one token for each action: "r:0:c:b33" is check, bet 33. Node ids use the same tokens as lines and exits.
node_type
OOP_DEC: the out-of-position player decides. IP_DEC: the in-position player decides. SPLIT_NODE: the street ends and a card comes; this is an exit. END_NODE: the hand ends, by a fold or at showdown.
pot
The pot at this node, with the bets made so far.
childrens
At a decision: the node after each action, by the action's name in strategy.actions.
strategy
At a decision: the solution for the player who decides.
startingstack
On the first node: the stack behind at the start of the street.

Exits in a result

exits maps each exit id to the line (actions, in long names such as "bet:33"), the node_id of its SPLIT_NODE, the board, and the pot and stack for the next street. ranges holds both players' ranges at the exit as 1,326 weights each, out of position first.

The next street starts from these ranges. You do not send them: parent and the exit are enough.

The root block

root repeats the first decision as lists and adds numbers for the whole range. actions are in long names and in their own order ("check", "bet:33", "bet:300"): not the order of tree.strategy.actions. action_frequencies is how often the whole range takes each action: here check 72.6%, bet 27.4%.

hands lists hand names, and strategy has one row for each of them in the order of root.actions. The other fields are the solver's own statistics. For hand-by-hand work, read tree.