Skip to main content
POST
A policy or a beam search played out on a target mesh (M2C3, M2C4a, M2C5 profile moves)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
stl_blob_id
string
required
beam
object

M2C4a: a beam search over the environment; absent, one recipe plays.

cost
number
default:0.002
fallback
boolean
default:true

When the shortlist gains nothing, verify the remaining candidates in the model's order before stopping (the model's fit); false plays the shortlist alone (the model's calls).

longest
integer
default:64
Required range: 16 <= x <= 128
max_per_blob
integer
default:12
max_steps
integer
default:24
Required range: x <= 200
min_p
number
default:0

With rank: gain and a legality head: a candidate under this chance of building is not tried. 0 keeps every candidate (an exhaustive play's fit).

Required range: 0 <= x <= 1
policy_key
string
profiles

M2C5: draw the PROFILE MOVES (traced outlines, extruded and revolved, as unions and as cuts) beside the primitives at every state. true for the defaults or an object of options; implies rank: gain (rank: model with it is 400). A profile the kernel refuses is asked once more a little aside, so kernel_calls may exceed the candidates verified.

rank
enum<string>

M2C4f: gain ranks by the COMPUTED gain -- every candidate's reward is computed on the grading grid with no kernel call (the primitive rasterised: a box, cylinder, sphere, cone or revolved ring under its placement; a union, a cut or an intersection), the kernel verifies in the order of gain x P(built) and is never asked about a candidate that cannot beat the move in hand, even at its margin and the state's bias (how far the kernel has sat above the computed gain on the candidates verified at that state). The fit of an exhaustive play over the same candidates at a fraction of its kernel calls, with no model. With policy_key the policy's LEGALITY head supplies P(built). With beam, each node's candidates are verified in that order and expand is the number of gaining children a node keeps. model (the default) ranks as before.

Available options:
model,
gain
segments
integer
default:24
top
integer
default:6
verify_top
integer
default:3

Response

200 - application/json

policy (learned | greedy | beam | beam+learned | gain | gain+legality | beam+gain | beam+gain+legality, each of the gain forms with +profiles when the profile moves were drawn), profiles (the options used, or null), gain (candidates, skipped, min_p; null unless a play ranked by the computed gain), search (width, expand, max_calls, depth, dead_ends, explored, revived, budget_hit, heavy, skipped, opening; null without beam), recipe, steps, curve, kernel_calls, refusals, metrics, components, seconds, target.

The response is of type object.