curl --request POST \
--url https://api.eddy.engineer/v1/dfm.explain \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fixes": true,
"fixes_key": "<string>",
"include_replies": true,
"material": "<string>",
"model": "<string>",
"part": "<string>",
"pmi": {},
"process": "<string>",
"profile": "<string>",
"quantity": 123,
"repair": true,
"report_key": "<string>",
"request": {},
"subject": {}
}
'import requests
url = "https://api.eddy.engineer/v1/dfm.explain"
payload = {
"fixes": True,
"fixes_key": "<string>",
"include_replies": True,
"material": "<string>",
"model": "<string>",
"part": "<string>",
"pmi": {},
"process": "<string>",
"profile": "<string>",
"quantity": 123,
"repair": True,
"report_key": "<string>",
"request": {},
"subject": {}
}
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({
fixes: true,
fixes_key: '<string>',
include_replies: true,
material: '<string>',
model: '<string>',
part: '<string>',
pmi: {},
process: '<string>',
profile: '<string>',
quantity: 123,
repair: true,
report_key: '<string>',
request: {},
subject: {}
})
};
fetch('https://api.eddy.engineer/v1/dfm.explain', 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/dfm.explain",
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([
'fixes' => true,
'fixes_key' => '<string>',
'include_replies' => true,
'material' => '<string>',
'model' => '<string>',
'part' => '<string>',
'pmi' => [
],
'process' => '<string>',
'profile' => '<string>',
'quantity' => 123,
'repair' => true,
'report_key' => '<string>',
'request' => [
],
'subject' => [
]
]),
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/dfm.explain"
payload := strings.NewReader("{\n \"fixes\": true,\n \"fixes_key\": \"<string>\",\n \"include_replies\": true,\n \"material\": \"<string>\",\n \"model\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantity\": 123,\n \"repair\": true,\n \"report_key\": \"<string>\",\n \"request\": {},\n \"subject\": {}\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/dfm.explain")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fixes\": true,\n \"fixes_key\": \"<string>\",\n \"include_replies\": true,\n \"material\": \"<string>\",\n \"model\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantity\": 123,\n \"repair\": true,\n \"report_key\": \"<string>\",\n \"request\": {},\n \"subject\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/dfm.explain")
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 \"fixes\": true,\n \"fixes_key\": \"<string>\",\n \"include_replies\": true,\n \"material\": \"<string>\",\n \"model\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantity\": 123,\n \"repair\": true,\n \"report_key\": \"<string>\",\n \"request\": {},\n \"subject\": {}\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Explain a DfM report in plain words and rank what to fix first, validated against the report (MF19)
MF19’s explanation. The engine builds ss.mf19.explain.request/1 from the report (stored by report_key, or checked now from subject on the profile) and its MF16 fixes (a stored fixes_key, or searched now): per finding the rule and its name, the severity, measured against the limit in the catalogue’s unit, the faces / edges / parts it names, the source, the cost delta (MF14) and the fix status (offered = a verified fix: applied to a copy and checked again), plus the engine’s own ranking (severity, then a verified fix, then the biggest saving). The model (through the Eddy AI Gateway, or the engine’s own text without one: provider: engine) writes one explanation per finding, a ranking and a summary naming what to fix first. Every reply passes the MF19 validator before it is answered: every number, rule id, face id, count, process name and money amount must be the request’s; no finding may be ranked above one of higher severity; no pass or fail is stated; a verified fix is claimed only where the engine offers one. A refused reply gets one repair round, then 502 DFM_AI_REFUSED; a refused output is never used in part. The model never sets a pass or fail: the severities are the engine’s.
curl --request POST \
--url https://api.eddy.engineer/v1/dfm.explain \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fixes": true,
"fixes_key": "<string>",
"include_replies": true,
"material": "<string>",
"model": "<string>",
"part": "<string>",
"pmi": {},
"process": "<string>",
"profile": "<string>",
"quantity": 123,
"repair": true,
"report_key": "<string>",
"request": {},
"subject": {}
}
'import requests
url = "https://api.eddy.engineer/v1/dfm.explain"
payload = {
"fixes": True,
"fixes_key": "<string>",
"include_replies": True,
"material": "<string>",
"model": "<string>",
"part": "<string>",
"pmi": {},
"process": "<string>",
"profile": "<string>",
"quantity": 123,
"repair": True,
"report_key": "<string>",
"request": {},
"subject": {}
}
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({
fixes: true,
fixes_key: '<string>',
include_replies: true,
material: '<string>',
model: '<string>',
part: '<string>',
pmi: {},
process: '<string>',
profile: '<string>',
quantity: 123,
repair: true,
report_key: '<string>',
request: {},
subject: {}
})
};
fetch('https://api.eddy.engineer/v1/dfm.explain', 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/dfm.explain",
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([
'fixes' => true,
'fixes_key' => '<string>',
'include_replies' => true,
'material' => '<string>',
'model' => '<string>',
'part' => '<string>',
'pmi' => [
],
'process' => '<string>',
'profile' => '<string>',
'quantity' => 123,
'repair' => true,
'report_key' => '<string>',
'request' => [
],
'subject' => [
]
]),
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/dfm.explain"
payload := strings.NewReader("{\n \"fixes\": true,\n \"fixes_key\": \"<string>\",\n \"include_replies\": true,\n \"material\": \"<string>\",\n \"model\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantity\": 123,\n \"repair\": true,\n \"report_key\": \"<string>\",\n \"request\": {},\n \"subject\": {}\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/dfm.explain")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fixes\": true,\n \"fixes_key\": \"<string>\",\n \"include_replies\": true,\n \"material\": \"<string>\",\n \"model\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantity\": 123,\n \"repair\": true,\n \"report_key\": \"<string>\",\n \"request\": {},\n \"subject\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/dfm.explain")
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 \"fixes\": true,\n \"fixes_key\": \"<string>\",\n \"include_replies\": true,\n \"material\": \"<string>\",\n \"model\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantity\": 123,\n \"repair\": true,\n \"report_key\": \"<string>\",\n \"request\": {},\n \"subject\": {}\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Response
explanation (ss.mf19.explanation/1: schema, summary, top[] (finding ids, the ranking's first three), ranking[] (every finding id once), findings[] {finding, text}), provider (gateway | engine), model, live, prompt_version, usage {input_tokens, output_tokens}, attempts[] {round, refusals[] {code, path, message}, usage, elapsed_ms, reply?}, request_key, cached, engine_rank[], omitted, counts {findings, errors, warnings, advice}, report_key, fixes_key? (finding ids are the report's indices)