curl --request POST \
--url https://api.eddy.engineer/v1/house/{assistant}/runs \
--header 'Content-Type: application/json' \
--data '
{
"text": "Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?"
}
'import requests
url = "https://api.eddy.engineer/v1/house/{assistant}/runs"
payload = { "text": "Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({text: 'Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?'})
};
fetch('https://api.eddy.engineer/v1/house/{assistant}/runs', 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/house/{assistant}/runs",
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' => 'Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/house/{assistant}/runs"
payload := strings.NewReader("{\n \"text\": \"Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/house/{assistant}/runs")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/house/{assistant}/runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?\"\n}"
response = http.request(request)
puts response.read_body{}One turn of a house assistant (AS21)
A run of the caller’s org’s copy of the assistant on the agent runtime (a definition run, as POST /v1/agents//runs: its own delegated token holding what the selectors resolved within the caller’s scopes, the org’s controls, its credit hold, its evals). The copy is seeded from the house definition at the org’s first run. text is the person’s words; Ask Eddy’s context carries what the console adds (the skills the person invoked, their data-source subscriptions) as data; the Dev IDE’s artifact (name, kind, source) rides the first turn whole; continue_from carries on the caller’s last finished turn of the same assistant; dirty tells the Dev IDE agent the person edited the source by hand. The run streams on /v1/agents/runs//events; the console answers its client tools (open_page, open_project, read_source, edit_source, write_source) at /client-result, a write waits at /approve. 403 for a delegate; 404 for an unknown assistant.
curl --request POST \
--url https://api.eddy.engineer/v1/house/{assistant}/runs \
--header 'Content-Type: application/json' \
--data '
{
"text": "Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?"
}
'import requests
url = "https://api.eddy.engineer/v1/house/{assistant}/runs"
payload = { "text": "Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({text: 'Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?'})
};
fetch('https://api.eddy.engineer/v1/house/{assistant}/runs', 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/house/{assistant}/runs",
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' => 'Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/house/{assistant}/runs"
payload := strings.NewReader("{\n \"text\": \"Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/house/{assistant}/runs")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/house/{assistant}/runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"Is a 1 m steel bar, 200 mm square, strong enough for 1 kN at its tip?\"\n}"
response = http.request(request)
puts response.read_body{}Body
The person's words (1..=32,000 characters).
Response
OK
The response is of type object.