curl --request POST \
--url https://api.eddy.engineer/v1/mesh2cad.policy.train \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"created_at": "<string>",
"async": false,
"cost": 0.002,
"epochs": 40,
"epsilon": 0.2,
"longest": 48,
"max_features": 8,
"max_per_blob": 12,
"max_steps": 12,
"mesh_rollouts": 4,
"mesh_weight": 4,
"min_features": 2,
"parts": 48,
"seed": 1,
"segments": 24,
"split_components": false,
"stl_blob_ids": [
"<string>"
],
"top": 6,
"train_on": "clean",
"wide": true
}
'import requests
url = "https://api.eddy.engineer/v1/mesh2cad.policy.train"
payload = {
"created_at": "<string>",
"async": False,
"cost": 0.002,
"epochs": 40,
"epsilon": 0.2,
"longest": 48,
"max_features": 8,
"max_per_blob": 12,
"max_steps": 12,
"mesh_rollouts": 4,
"mesh_weight": 4,
"min_features": 2,
"parts": 48,
"seed": 1,
"segments": 24,
"split_components": False,
"stl_blob_ids": ["<string>"],
"top": 6,
"train_on": "clean",
"wide": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
created_at: '<string>',
async: false,
cost: 0.002,
epochs: 40,
epsilon: 0.2,
longest: 48,
max_features: 8,
max_per_blob: 12,
max_steps: 12,
mesh_rollouts: 4,
mesh_weight: 4,
min_features: 2,
parts: 48,
seed: 1,
segments: 24,
split_components: false,
stl_blob_ids: ['<string>'],
top: 6,
train_on: 'clean',
wide: true
})
};
fetch('https://api.eddy.engineer/v1/mesh2cad.policy.train', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/mesh2cad.policy.train",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'created_at' => '<string>',
'async' => false,
'cost' => 0.002,
'epochs' => 40,
'epsilon' => 0.2,
'longest' => 48,
'max_features' => 8,
'max_per_blob' => 12,
'max_steps' => 12,
'mesh_rollouts' => 4,
'mesh_weight' => 4,
'min_features' => 2,
'parts' => 48,
'seed' => 1,
'segments' => 24,
'split_components' => false,
'stl_blob_ids' => [
'<string>'
],
'top' => 6,
'train_on' => 'clean',
'wide' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/mesh2cad.policy.train"
payload := strings.NewReader("{\n \"created_at\": \"<string>\",\n \"async\": false,\n \"cost\": 0.002,\n \"epochs\": 40,\n \"epsilon\": 0.2,\n \"longest\": 48,\n \"max_features\": 8,\n \"max_per_blob\": 12,\n \"max_steps\": 12,\n \"mesh_rollouts\": 4,\n \"mesh_weight\": 4,\n \"min_features\": 2,\n \"parts\": 48,\n \"seed\": 1,\n \"segments\": 24,\n \"split_components\": false,\n \"stl_blob_ids\": [\n \"<string>\"\n ],\n \"top\": 6,\n \"train_on\": \"clean\",\n \"wide\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/mesh2cad.policy.train")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"created_at\": \"<string>\",\n \"async\": false,\n \"cost\": 0.002,\n \"epochs\": 40,\n \"epsilon\": 0.2,\n \"longest\": 48,\n \"max_features\": 8,\n \"max_per_blob\": 12,\n \"max_steps\": 12,\n \"mesh_rollouts\": 4,\n \"mesh_weight\": 4,\n \"min_features\": 2,\n \"parts\": 48,\n \"seed\": 1,\n \"segments\": 24,\n \"split_components\": false,\n \"stl_blob_ids\": [\n \"<string>\"\n ],\n \"top\": 6,\n \"train_on\": \"clean\",\n \"wide\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/mesh2cad.policy.train")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"created_at\": \"<string>\",\n \"async\": false,\n \"cost\": 0.002,\n \"epochs\": 40,\n \"epsilon\": 0.2,\n \"longest\": 48,\n \"max_features\": 8,\n \"max_per_blob\": 12,\n \"max_steps\": 12,\n \"mesh_rollouts\": 4,\n \"mesh_weight\": 4,\n \"min_features\": 2,\n \"parts\": 48,\n \"seed\": 1,\n \"segments\": 24,\n \"split_components\": false,\n \"stl_blob_ids\": [\n \"<string>\"\n ],\n \"top\": 6,\n \"train_on\": \"clean\",\n \"wide\": true\n}"
response = http.request(request)
puts response.read_body{}Train the move scorer on rollouts in the engine (M2C3; M2C4c: wide vocabulary, a job form)
Rollouts over synthetic parts (seeds seed .. seed + parts) where EVERY candidate move at every state is played against the kernel and its reward recorded — the trajectory follows the best reward, or with probability epsilon a random gaining move; a small MLP (26 scale-free features -> 32 -> 16 -> 1, pure Rust, seeded) learns to predict a move’s reward. The weights land as a content-addressed mesh2cad_policy artifact. Deterministic: the same request gives the same key. M2C4f: the same labelled moves also fit a LEGALITY head (the chance the kernel builds a candidate), stored in the policy beside the scorer and used by mesh2cad.env.play with rank: gain; summary.legality_accuracy is its accuracy on the moves it was fitted to.
curl --request POST \
--url https://api.eddy.engineer/v1/mesh2cad.policy.train \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"created_at": "<string>",
"async": false,
"cost": 0.002,
"epochs": 40,
"epsilon": 0.2,
"longest": 48,
"max_features": 8,
"max_per_blob": 12,
"max_steps": 12,
"mesh_rollouts": 4,
"mesh_weight": 4,
"min_features": 2,
"parts": 48,
"seed": 1,
"segments": 24,
"split_components": false,
"stl_blob_ids": [
"<string>"
],
"top": 6,
"train_on": "clean",
"wide": true
}
'import requests
url = "https://api.eddy.engineer/v1/mesh2cad.policy.train"
payload = {
"created_at": "<string>",
"async": False,
"cost": 0.002,
"epochs": 40,
"epsilon": 0.2,
"longest": 48,
"max_features": 8,
"max_per_blob": 12,
"max_steps": 12,
"mesh_rollouts": 4,
"mesh_weight": 4,
"min_features": 2,
"parts": 48,
"seed": 1,
"segments": 24,
"split_components": False,
"stl_blob_ids": ["<string>"],
"top": 6,
"train_on": "clean",
"wide": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
created_at: '<string>',
async: false,
cost: 0.002,
epochs: 40,
epsilon: 0.2,
longest: 48,
max_features: 8,
max_per_blob: 12,
max_steps: 12,
mesh_rollouts: 4,
mesh_weight: 4,
min_features: 2,
parts: 48,
seed: 1,
segments: 24,
split_components: false,
stl_blob_ids: ['<string>'],
top: 6,
train_on: 'clean',
wide: true
})
};
fetch('https://api.eddy.engineer/v1/mesh2cad.policy.train', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/mesh2cad.policy.train",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'created_at' => '<string>',
'async' => false,
'cost' => 0.002,
'epochs' => 40,
'epsilon' => 0.2,
'longest' => 48,
'max_features' => 8,
'max_per_blob' => 12,
'max_steps' => 12,
'mesh_rollouts' => 4,
'mesh_weight' => 4,
'min_features' => 2,
'parts' => 48,
'seed' => 1,
'segments' => 24,
'split_components' => false,
'stl_blob_ids' => [
'<string>'
],
'top' => 6,
'train_on' => 'clean',
'wide' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/mesh2cad.policy.train"
payload := strings.NewReader("{\n \"created_at\": \"<string>\",\n \"async\": false,\n \"cost\": 0.002,\n \"epochs\": 40,\n \"epsilon\": 0.2,\n \"longest\": 48,\n \"max_features\": 8,\n \"max_per_blob\": 12,\n \"max_steps\": 12,\n \"mesh_rollouts\": 4,\n \"mesh_weight\": 4,\n \"min_features\": 2,\n \"parts\": 48,\n \"seed\": 1,\n \"segments\": 24,\n \"split_components\": false,\n \"stl_blob_ids\": [\n \"<string>\"\n ],\n \"top\": 6,\n \"train_on\": \"clean\",\n \"wide\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/mesh2cad.policy.train")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"created_at\": \"<string>\",\n \"async\": false,\n \"cost\": 0.002,\n \"epochs\": 40,\n \"epsilon\": 0.2,\n \"longest\": 48,\n \"max_features\": 8,\n \"max_per_blob\": 12,\n \"max_steps\": 12,\n \"mesh_rollouts\": 4,\n \"mesh_weight\": 4,\n \"min_features\": 2,\n \"parts\": 48,\n \"seed\": 1,\n \"segments\": 24,\n \"split_components\": false,\n \"stl_blob_ids\": [\n \"<string>\"\n ],\n \"top\": 6,\n \"train_on\": \"clean\",\n \"wide\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/mesh2cad.policy.train")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"created_at\": \"<string>\",\n \"async\": false,\n \"cost\": 0.002,\n \"epochs\": 40,\n \"epsilon\": 0.2,\n \"longest\": 48,\n \"max_features\": 8,\n \"max_per_blob\": 12,\n \"max_steps\": 12,\n \"mesh_rollouts\": 4,\n \"mesh_weight\": 4,\n \"min_features\": 2,\n \"parts\": 48,\n \"seed\": 1,\n \"segments\": 24,\n \"split_components\": false,\n \"stl_blob_ids\": [\n \"<string>\"\n ],\n \"top\": 6,\n \"train_on\": \"clean\",\n \"wide\": true\n}"
response = http.request(request)
puts response.read_body{}Body
M2C4e: GIVEN meshes (STL blobs) to roll out on beside the synthetic parts -- the concept corpus's own. A scorer trained on synthetic parts does not transfer to AI concept meshes; here the game is played on the meshes themselves, every candidate at every state labelled by the kernel. parts may be 0 when meshes are given; an unknown blob is 404.
32Response
policy_key and summary (parts, examples, built, refused, loss, epochs, sizes, seconds).
The response is of type object.