curl --request POST \
--url https://api.eddy.engineer/v1/sequence.narrate \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assembly": {},
"include_replies": true,
"language": "<string>",
"model": "<string>",
"notes": {},
"parts": [
{
"id": "<string>",
"find_no": 123,
"name": "<string>"
}
],
"plan": {},
"product": "<string>",
"repair": true,
"request": {},
"sequence": {},
"up": [
123
]
}
'import requests
url = "https://api.eddy.engineer/v1/sequence.narrate"
payload = {
"assembly": {},
"include_replies": True,
"language": "<string>",
"model": "<string>",
"notes": {},
"parts": [
{
"id": "<string>",
"find_no": 123,
"name": "<string>"
}
],
"plan": {},
"product": "<string>",
"repair": True,
"request": {},
"sequence": {},
"up": [123]
}
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({
assembly: {},
include_replies: true,
language: '<string>',
model: '<string>',
notes: {},
parts: [{id: '<string>', find_no: 123, name: '<string>'}],
plan: {},
product: '<string>',
repair: true,
request: {},
sequence: {},
up: [123]
})
};
fetch('https://api.eddy.engineer/v1/sequence.narrate', 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/sequence.narrate",
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([
'assembly' => [
],
'include_replies' => true,
'language' => '<string>',
'model' => '<string>',
'notes' => [
],
'parts' => [
[
'id' => '<string>',
'find_no' => 123,
'name' => '<string>'
]
],
'plan' => [
],
'product' => '<string>',
'repair' => true,
'request' => [
],
'sequence' => [
],
'up' => [
123
]
]),
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/sequence.narrate"
payload := strings.NewReader("{\n \"assembly\": {},\n \"include_replies\": true,\n \"language\": \"<string>\",\n \"model\": \"<string>\",\n \"notes\": {},\n \"parts\": [\n {\n \"id\": \"<string>\",\n \"find_no\": 123,\n \"name\": \"<string>\"\n }\n ],\n \"plan\": {},\n \"product\": \"<string>\",\n \"repair\": true,\n \"request\": {},\n \"sequence\": {},\n \"up\": [\n 123\n ]\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/sequence.narrate")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assembly\": {},\n \"include_replies\": true,\n \"language\": \"<string>\",\n \"model\": \"<string>\",\n \"notes\": {},\n \"parts\": [\n {\n \"id\": \"<string>\",\n \"find_no\": 123,\n \"name\": \"<string>\"\n }\n ],\n \"plan\": {},\n \"product\": \"<string>\",\n \"repair\": true,\n \"request\": {},\n \"sequence\": {},\n \"up\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/sequence.narrate")
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 \"assembly\": {},\n \"include_replies\": true,\n \"language\": \"<string>\",\n \"model\": \"<string>\",\n \"notes\": {},\n \"parts\": [\n {\n \"id\": \"<string>\",\n \"find_no\": 123,\n \"name\": \"<string>\"\n }\n ],\n \"plan\": {},\n \"product\": \"<string>\",\n \"repair\": true,\n \"request\": {},\n \"sequence\": {},\n \"up\": [\n 123\n ]\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>"
}
}Write the build guide's step text in any language with a model, validated against the sequence document (AQ9)
The AI layer’s narration. The request to the model is built deterministically from engine data: the compact ss.assembly.sequence/1 document (path waypoints as a count), the ss.sequence.plan/1 plan, the parts with the drawing’s find numbers, AQ6’s fastener specs with their cited torques copied verbatim (source as the table states it; a table miss is null, never a guess), the tools, and one overlay per narrated step in build order (the movers, insert_words from the insertion direction against the base’s up after any flip, the tool that passed the access check plus the torque wrench when a torque is cited, the parts a hand holds, the flip, the sub-assembly context). The model answers under the versioned narration prompt (ml/aq9/prompts/narrate.md), one JSON object: per step a title, the text with every part named as [[id|words]], warnings, the tools and torque_refs. The validator then checks every rule of ml/aq9/validator.md (23 narration codes: the step list matches the overlays in order, every named part exists and is already in the assembly, the movers and held parts are named, no internal id or axis word in the text, the listed tools are the step’s, every cited torque is referenced with its exact value and verbatim source and stated in the text, no other torque value, every other number comes from the inputs, lengths, the text reads as the requested language). A refused first reply gets ONE repair round with the refusals; a reply still refused is 502 SEQUENCE_AI_REFUSED naming them, and nothing of it is used. An accepted narration is stored content-addressed (narration_key, a blob) and cached by (request, prompt version, model). Without a gateway (SS_LLM_GATEWAY_URL / _KEY) the engine’s own English step text comes back, labelled provider: "engine", live: false. Live calls are metered like /v1/llm.messages (the model and the token counts, priced by the book). The page’s data-slot="narration" and the share viewer show the text.
curl --request POST \
--url https://api.eddy.engineer/v1/sequence.narrate \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assembly": {},
"include_replies": true,
"language": "<string>",
"model": "<string>",
"notes": {},
"parts": [
{
"id": "<string>",
"find_no": 123,
"name": "<string>"
}
],
"plan": {},
"product": "<string>",
"repair": true,
"request": {},
"sequence": {},
"up": [
123
]
}
'import requests
url = "https://api.eddy.engineer/v1/sequence.narrate"
payload = {
"assembly": {},
"include_replies": True,
"language": "<string>",
"model": "<string>",
"notes": {},
"parts": [
{
"id": "<string>",
"find_no": 123,
"name": "<string>"
}
],
"plan": {},
"product": "<string>",
"repair": True,
"request": {},
"sequence": {},
"up": [123]
}
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({
assembly: {},
include_replies: true,
language: '<string>',
model: '<string>',
notes: {},
parts: [{id: '<string>', find_no: 123, name: '<string>'}],
plan: {},
product: '<string>',
repair: true,
request: {},
sequence: {},
up: [123]
})
};
fetch('https://api.eddy.engineer/v1/sequence.narrate', 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/sequence.narrate",
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([
'assembly' => [
],
'include_replies' => true,
'language' => '<string>',
'model' => '<string>',
'notes' => [
],
'parts' => [
[
'id' => '<string>',
'find_no' => 123,
'name' => '<string>'
]
],
'plan' => [
],
'product' => '<string>',
'repair' => true,
'request' => [
],
'sequence' => [
],
'up' => [
123
]
]),
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/sequence.narrate"
payload := strings.NewReader("{\n \"assembly\": {},\n \"include_replies\": true,\n \"language\": \"<string>\",\n \"model\": \"<string>\",\n \"notes\": {},\n \"parts\": [\n {\n \"id\": \"<string>\",\n \"find_no\": 123,\n \"name\": \"<string>\"\n }\n ],\n \"plan\": {},\n \"product\": \"<string>\",\n \"repair\": true,\n \"request\": {},\n \"sequence\": {},\n \"up\": [\n 123\n ]\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/sequence.narrate")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assembly\": {},\n \"include_replies\": true,\n \"language\": \"<string>\",\n \"model\": \"<string>\",\n \"notes\": {},\n \"parts\": [\n {\n \"id\": \"<string>\",\n \"find_no\": 123,\n \"name\": \"<string>\"\n }\n ],\n \"plan\": {},\n \"product\": \"<string>\",\n \"repair\": true,\n \"request\": {},\n \"sequence\": {},\n \"up\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/sequence.narrate")
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 \"assembly\": {},\n \"include_replies\": true,\n \"language\": \"<string>\",\n \"model\": \"<string>\",\n \"notes\": {},\n \"parts\": [\n {\n \"id\": \"<string>\",\n \"find_no\": 123,\n \"name\": \"<string>\"\n }\n ],\n \"plan\": {},\n \"product\": \"<string>\",\n \"repair\": true,\n \"request\": {},\n \"sequence\": {},\n \"up\": [\n 123\n ]\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>"
}
}Body
Response
{kind: aq9_narration, schema_version, request_key, narration_key, blob_uri, language, requested_language, provider (gateway | engine), model, live, prompt_version, narration {schema, language, steps[] {step_id, title, text, warnings[], tools[], torque_refs[]}}, steps, usage {input_tokens, output_tokens}, attempts[] {round, refusals[], usage, elapsed_ms}, cached}