curl --request POST \
--url http://localhost:3773/agent/negotiation \
--header 'Content-Type: application/json' \
--data '
{
"task_summary": "Summarize a 4-page PDF in 200 words.",
"task_details": "Reader is a non-technical manager. Output should be plain English Markdown.",
"input_mime_types": [
"application/pdf"
],
"output_mime_types": [
"text/markdown"
],
"max_latency_ms": 20000,
"max_cost_amount": "0.05",
"required_tools": [],
"forbidden_tools": [],
"min_score": 0.7,
"weights": {
"skill_match": 0.55,
"io_compatibility": 0.2,
"performance": 0.15,
"load": 0.05,
"cost": 0.05
}
}
'import requests
url = "http://localhost:3773/agent/negotiation"
payload = {
"task_summary": "Summarize a 4-page PDF in 200 words.",
"task_details": "Reader is a non-technical manager. Output should be plain English Markdown.",
"input_mime_types": ["application/pdf"],
"output_mime_types": ["text/markdown"],
"max_latency_ms": 20000,
"max_cost_amount": "0.05",
"required_tools": [],
"forbidden_tools": [],
"min_score": 0.7,
"weights": {
"skill_match": 0.55,
"io_compatibility": 0.2,
"performance": 0.15,
"load": 0.05,
"cost": 0.05
}
}
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({
task_summary: 'Summarize a 4-page PDF in 200 words.',
task_details: 'Reader is a non-technical manager. Output should be plain English Markdown.',
input_mime_types: ['application/pdf'],
output_mime_types: ['text/markdown'],
max_latency_ms: 20000,
max_cost_amount: '0.05',
required_tools: [],
forbidden_tools: [],
min_score: 0.7,
weights: {
skill_match: 0.55,
io_compatibility: 0.2,
performance: 0.15,
load: 0.05,
cost: 0.05
}
})
};
fetch('http://localhost:3773/agent/negotiation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3773",
CURLOPT_URL => "http://localhost:3773/agent/negotiation",
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([
'task_summary' => 'Summarize a 4-page PDF in 200 words.',
'task_details' => 'Reader is a non-technical manager. Output should be plain English Markdown.',
'input_mime_types' => [
'application/pdf'
],
'output_mime_types' => [
'text/markdown'
],
'max_latency_ms' => 20000,
'max_cost_amount' => '0.05',
'required_tools' => [
],
'forbidden_tools' => [
],
'min_score' => 0.7,
'weights' => [
'skill_match' => 0.55,
'io_compatibility' => 0.2,
'performance' => 0.15,
'load' => 0.05,
'cost' => 0.05
]
]),
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 := "http://localhost:3773/agent/negotiation"
payload := strings.NewReader("{\n \"task_summary\": \"Summarize a 4-page PDF in 200 words.\",\n \"task_details\": \"Reader is a non-technical manager. Output should be plain English Markdown.\",\n \"input_mime_types\": [\n \"application/pdf\"\n ],\n \"output_mime_types\": [\n \"text/markdown\"\n ],\n \"max_latency_ms\": 20000,\n \"max_cost_amount\": \"0.05\",\n \"required_tools\": [],\n \"forbidden_tools\": [],\n \"min_score\": 0.7,\n \"weights\": {\n \"skill_match\": 0.55,\n \"io_compatibility\": 0.2,\n \"performance\": 0.15,\n \"load\": 0.05,\n \"cost\": 0.05\n }\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("http://localhost:3773/agent/negotiation")
.header("Content-Type", "application/json")
.body("{\n \"task_summary\": \"Summarize a 4-page PDF in 200 words.\",\n \"task_details\": \"Reader is a non-technical manager. Output should be plain English Markdown.\",\n \"input_mime_types\": [\n \"application/pdf\"\n ],\n \"output_mime_types\": [\n \"text/markdown\"\n ],\n \"max_latency_ms\": 20000,\n \"max_cost_amount\": \"0.05\",\n \"required_tools\": [],\n \"forbidden_tools\": [],\n \"min_score\": 0.7,\n \"weights\": {\n \"skill_match\": 0.55,\n \"io_compatibility\": 0.2,\n \"performance\": 0.15,\n \"load\": 0.05,\n \"cost\": 0.05\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3773/agent/negotiation")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"task_summary\": \"Summarize a 4-page PDF in 200 words.\",\n \"task_details\": \"Reader is a non-technical manager. Output should be plain English Markdown.\",\n \"input_mime_types\": [\n \"application/pdf\"\n ],\n \"output_mime_types\": [\n \"text/markdown\"\n ],\n \"max_latency_ms\": 20000,\n \"max_cost_amount\": \"0.05\",\n \"required_tools\": [],\n \"forbidden_tools\": [],\n \"min_score\": 0.7,\n \"weights\": {\n \"skill_match\": 0.55,\n \"io_compatibility\": 0.2,\n \"performance\": 0.15,\n \"load\": 0.05,\n \"cost\": 0.05\n }\n}"
response = http.request(request)
puts response.read_body{
"can_handle": true,
"score": 0.84,
"reasons": [
"Skill 'pdf_summarize' matches task summary closely",
"Output MIME 'text/markdown' within declared modes",
"Current load at 12%, well below threshold"
],
"estimated_latency_ms": 12000,
"estimated_cost_amount": "0.02"
}Ask whether this agent can handle a task
Orchestrators use this to pick the best agent for a task
before sending a real message/send. The agent returns a
capability score (0–1) weighted across skill match, I/O
compatibility, performance, load, and cost.
A score below the caller’s min_score is interpreted as
“decline” — the orchestrator should route the task
elsewhere. This endpoint never actually performs the task;
it’s advisory.
curl --request POST \
--url http://localhost:3773/agent/negotiation \
--header 'Content-Type: application/json' \
--data '
{
"task_summary": "Summarize a 4-page PDF in 200 words.",
"task_details": "Reader is a non-technical manager. Output should be plain English Markdown.",
"input_mime_types": [
"application/pdf"
],
"output_mime_types": [
"text/markdown"
],
"max_latency_ms": 20000,
"max_cost_amount": "0.05",
"required_tools": [],
"forbidden_tools": [],
"min_score": 0.7,
"weights": {
"skill_match": 0.55,
"io_compatibility": 0.2,
"performance": 0.15,
"load": 0.05,
"cost": 0.05
}
}
'import requests
url = "http://localhost:3773/agent/negotiation"
payload = {
"task_summary": "Summarize a 4-page PDF in 200 words.",
"task_details": "Reader is a non-technical manager. Output should be plain English Markdown.",
"input_mime_types": ["application/pdf"],
"output_mime_types": ["text/markdown"],
"max_latency_ms": 20000,
"max_cost_amount": "0.05",
"required_tools": [],
"forbidden_tools": [],
"min_score": 0.7,
"weights": {
"skill_match": 0.55,
"io_compatibility": 0.2,
"performance": 0.15,
"load": 0.05,
"cost": 0.05
}
}
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({
task_summary: 'Summarize a 4-page PDF in 200 words.',
task_details: 'Reader is a non-technical manager. Output should be plain English Markdown.',
input_mime_types: ['application/pdf'],
output_mime_types: ['text/markdown'],
max_latency_ms: 20000,
max_cost_amount: '0.05',
required_tools: [],
forbidden_tools: [],
min_score: 0.7,
weights: {
skill_match: 0.55,
io_compatibility: 0.2,
performance: 0.15,
load: 0.05,
cost: 0.05
}
})
};
fetch('http://localhost:3773/agent/negotiation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3773",
CURLOPT_URL => "http://localhost:3773/agent/negotiation",
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([
'task_summary' => 'Summarize a 4-page PDF in 200 words.',
'task_details' => 'Reader is a non-technical manager. Output should be plain English Markdown.',
'input_mime_types' => [
'application/pdf'
],
'output_mime_types' => [
'text/markdown'
],
'max_latency_ms' => 20000,
'max_cost_amount' => '0.05',
'required_tools' => [
],
'forbidden_tools' => [
],
'min_score' => 0.7,
'weights' => [
'skill_match' => 0.55,
'io_compatibility' => 0.2,
'performance' => 0.15,
'load' => 0.05,
'cost' => 0.05
]
]),
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 := "http://localhost:3773/agent/negotiation"
payload := strings.NewReader("{\n \"task_summary\": \"Summarize a 4-page PDF in 200 words.\",\n \"task_details\": \"Reader is a non-technical manager. Output should be plain English Markdown.\",\n \"input_mime_types\": [\n \"application/pdf\"\n ],\n \"output_mime_types\": [\n \"text/markdown\"\n ],\n \"max_latency_ms\": 20000,\n \"max_cost_amount\": \"0.05\",\n \"required_tools\": [],\n \"forbidden_tools\": [],\n \"min_score\": 0.7,\n \"weights\": {\n \"skill_match\": 0.55,\n \"io_compatibility\": 0.2,\n \"performance\": 0.15,\n \"load\": 0.05,\n \"cost\": 0.05\n }\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("http://localhost:3773/agent/negotiation")
.header("Content-Type", "application/json")
.body("{\n \"task_summary\": \"Summarize a 4-page PDF in 200 words.\",\n \"task_details\": \"Reader is a non-technical manager. Output should be plain English Markdown.\",\n \"input_mime_types\": [\n \"application/pdf\"\n ],\n \"output_mime_types\": [\n \"text/markdown\"\n ],\n \"max_latency_ms\": 20000,\n \"max_cost_amount\": \"0.05\",\n \"required_tools\": [],\n \"forbidden_tools\": [],\n \"min_score\": 0.7,\n \"weights\": {\n \"skill_match\": 0.55,\n \"io_compatibility\": 0.2,\n \"performance\": 0.15,\n \"load\": 0.05,\n \"cost\": 0.05\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3773/agent/negotiation")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"task_summary\": \"Summarize a 4-page PDF in 200 words.\",\n \"task_details\": \"Reader is a non-technical manager. Output should be plain English Markdown.\",\n \"input_mime_types\": [\n \"application/pdf\"\n ],\n \"output_mime_types\": [\n \"text/markdown\"\n ],\n \"max_latency_ms\": 20000,\n \"max_cost_amount\": \"0.05\",\n \"required_tools\": [],\n \"forbidden_tools\": [],\n \"min_score\": 0.7,\n \"weights\": {\n \"skill_match\": 0.55,\n \"io_compatibility\": 0.2,\n \"performance\": 0.15,\n \"load\": 0.05,\n \"cost\": 0.05\n }\n}"
response = http.request(request)
puts response.read_body{
"can_handle": true,
"score": 0.84,
"reasons": [
"Skill 'pdf_summarize' matches task summary closely",
"Output MIME 'text/markdown' within declared modes",
"Current load at 12%, well below threshold"
],
"estimated_latency_ms": 12000,
"estimated_cost_amount": "0.02"
}Body
One-sentence description of the work.
How much each factor contributes to the overall score. Must sum to 1.0 (not enforced; callers should normalize).
Show child attributes
Show child attributes
Longer context, audience, constraints.
Client's latency tolerance.
Client's cost tolerance (currency-agnostic; agreed per-agent).
Decline threshold. Scores below this are treated as "no".
0 <= x <= 1Was this page helpful?