curl --request POST \
--url https://api.eddy.engineer/v1/sequence.intent \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"text": "<string>",
"assembly": {},
"base": [
"<string>"
],
"existing": [
{}
],
"include_replies": true,
"model": "<string>",
"options": {},
"oracles": true,
"parts": [
{
"id": "<string>",
"name": "<string>"
}
],
"plan": true,
"plan_request": {},
"repair": true,
"segments": 123,
"units": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/sequence.intent"
payload = {
"text": "<string>",
"assembly": {},
"base": ["<string>"],
"existing": [{}],
"include_replies": True,
"model": "<string>",
"options": {},
"oracles": True,
"parts": [
{
"id": "<string>",
"name": "<string>"
}
],
"plan": True,
"plan_request": {},
"repair": True,
"segments": 123,
"units": "<string>"
}
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({
text: '<string>',
assembly: {},
base: ['<string>'],
existing: [{}],
include_replies: true,
model: '<string>',
options: {},
oracles: true,
parts: [{id: '<string>', name: '<string>'}],
plan: true,
plan_request: {},
repair: true,
segments: 123,
units: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/sequence.intent', 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.intent",
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([
'text' => '<string>',
'assembly' => [
],
'base' => [
'<string>'
],
'existing' => [
[
]
],
'include_replies' => true,
'model' => '<string>',
'options' => [
],
'oracles' => true,
'parts' => [
[
'id' => '<string>',
'name' => '<string>'
]
],
'plan' => true,
'plan_request' => [
],
'repair' => true,
'segments' => 123,
'units' => '<string>'
]),
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.intent"
payload := strings.NewReader("{\n \"text\": \"<string>\",\n \"assembly\": {},\n \"base\": [\n \"<string>\"\n ],\n \"existing\": [\n {}\n ],\n \"include_replies\": true,\n \"model\": \"<string>\",\n \"options\": {},\n \"oracles\": true,\n \"parts\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"plan\": true,\n \"plan_request\": {},\n \"repair\": true,\n \"segments\": 123,\n \"units\": \"<string>\"\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.intent")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"<string>\",\n \"assembly\": {},\n \"base\": [\n \"<string>\"\n ],\n \"existing\": [\n {}\n ],\n \"include_replies\": true,\n \"model\": \"<string>\",\n \"options\": {},\n \"oracles\": true,\n \"parts\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"plan\": true,\n \"plan_request\": {},\n \"repair\": true,\n \"segments\": 123,\n \"units\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/sequence.intent")
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 \"text\": \"<string>\",\n \"assembly\": {},\n \"base\": [\n \"<string>\"\n ],\n \"existing\": [\n {}\n ],\n \"include_replies\": true,\n \"model\": \"<string>\",\n \"options\": {},\n \"oracles\": true,\n \"parts\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"plan\": true,\n \"plan_request\": {},\n \"repair\": true,\n \"segments\": 123,\n \"units\": \"<string>\"\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>"
}
}Turn a person's words into planner constraints with a model, validated; optionally plan at once (AQ9)
The AI layer’s intent reading: “the motor goes in before the cover”, “keep the bearings together”, “the filter must be serviceable” become AQ3 Constraints (before {a, b}, group {parts}, keep_together {parts}, serviceable {part, within?}) exactly as sequence.plan takes them, or typed cannot_express notes (unknown_part, ambiguous_part, base_part, geometry_or_motion, tool_or_value, conflict, not_a_sequence_rule, vague) when the words cannot be said as an order rule, each with the phrase quoted from the person’s own words. The validator (ml/aq9/validator.md, 12 intent codes) refuses an unknown or base part, before(a, a), sets under two parts, within outside 1..the movable parts, a cycle or a before inside a keep_together set — against the constraints already on the form (existing / plan_request.constraints) too — a reason outside the list, a phrase the person never said, a constraint no reading explains; one repair round, then 502 SEQUENCE_AI_REFUSED. The accepted constraints come back deduplicated with the existing ones (constraints) and alone (new_constraints); with plan: true and the assembly they go straight into sequence.plan, whose whole answer comes back under plan (the planner keeps the last word: its own precedence refusals stand). Without a gateway a small deterministic reader handles the plain shapes (A before B, A after B, keep A and B together, A must be serviceable) and says vague for the rest (provider: "fixture").
curl --request POST \
--url https://api.eddy.engineer/v1/sequence.intent \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"text": "<string>",
"assembly": {},
"base": [
"<string>"
],
"existing": [
{}
],
"include_replies": true,
"model": "<string>",
"options": {},
"oracles": true,
"parts": [
{
"id": "<string>",
"name": "<string>"
}
],
"plan": true,
"plan_request": {},
"repair": true,
"segments": 123,
"units": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/sequence.intent"
payload = {
"text": "<string>",
"assembly": {},
"base": ["<string>"],
"existing": [{}],
"include_replies": True,
"model": "<string>",
"options": {},
"oracles": True,
"parts": [
{
"id": "<string>",
"name": "<string>"
}
],
"plan": True,
"plan_request": {},
"repair": True,
"segments": 123,
"units": "<string>"
}
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({
text: '<string>',
assembly: {},
base: ['<string>'],
existing: [{}],
include_replies: true,
model: '<string>',
options: {},
oracles: true,
parts: [{id: '<string>', name: '<string>'}],
plan: true,
plan_request: {},
repair: true,
segments: 123,
units: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/sequence.intent', 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.intent",
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([
'text' => '<string>',
'assembly' => [
],
'base' => [
'<string>'
],
'existing' => [
[
]
],
'include_replies' => true,
'model' => '<string>',
'options' => [
],
'oracles' => true,
'parts' => [
[
'id' => '<string>',
'name' => '<string>'
]
],
'plan' => true,
'plan_request' => [
],
'repair' => true,
'segments' => 123,
'units' => '<string>'
]),
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.intent"
payload := strings.NewReader("{\n \"text\": \"<string>\",\n \"assembly\": {},\n \"base\": [\n \"<string>\"\n ],\n \"existing\": [\n {}\n ],\n \"include_replies\": true,\n \"model\": \"<string>\",\n \"options\": {},\n \"oracles\": true,\n \"parts\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"plan\": true,\n \"plan_request\": {},\n \"repair\": true,\n \"segments\": 123,\n \"units\": \"<string>\"\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.intent")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"<string>\",\n \"assembly\": {},\n \"base\": [\n \"<string>\"\n ],\n \"existing\": [\n {}\n ],\n \"include_replies\": true,\n \"model\": \"<string>\",\n \"options\": {},\n \"oracles\": true,\n \"parts\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"plan\": true,\n \"plan_request\": {},\n \"repair\": true,\n \"segments\": 123,\n \"units\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/sequence.intent")
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 \"text\": \"<string>\",\n \"assembly\": {},\n \"base\": [\n \"<string>\"\n ],\n \"existing\": [\n {}\n ],\n \"include_replies\": true,\n \"model\": \"<string>\",\n \"options\": {},\n \"oracles\": true,\n \"parts\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"plan\": true,\n \"plan_request\": {},\n \"repair\": true,\n \"segments\": 123,\n \"units\": \"<string>\"\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
The person's words (<= 2000 characters).
Response
{schema: ss.aq9.intent/1, request_key, text, intent {constraints[], cannot_express[] {phrase, reason, detail}, readings[] {phrase, constraints[]}}, constraints[] (existing + new, deduplicated), new_constraints[], cannot_express[], readings[], existing[], provider, model, live, prompt_version, usage, attempts[], cached, plan? (as sequence.plan answers), planned?}