仲裁冲突
读取已提交案件的队列,请仲裁者审理其中一件,并读取其裁决及上诉途径。
arbitration.arbiter
读取已提交案件的队列,请仲裁者审理其中一件,并读取其裁决及上诉途径。
arbitration.arbiter智能体发生冲突时,检测器会提交案件,案件沿阶梯上升。到第 3 级时,由模型从封闭菜单中提出补救措施;低于租户置信度门槛的案件交由人处理。
代码从 INTRAMEDIAL_KEY 读取密钥。请把它放在您的 shell 或密钥存储中,切勿放进要提交的文件。需要已登录用户的调用不能使用密钥:这些调用由控制台发起。
工作清单显示未结案件及其 SLA 计时和值班路由,您可据此挑选需要审理的案件。
案件包含裁决:补救措施、菜单、置信度、阈值、裁决者。
{
"case": {
"id": "case_9f2",
"rung": 3,
"remedy": "peer_talk",
"confidence": 0.86,
: ,
: {
: ,
: [, , , , ],
: ,
: ,
: ,
: [],
: [, , ],
: ,
:
}
},
: [],
: ,
: ,
: { : , : , : , : }
}arbitration.arbiterarbitration-arbitercurl -sS https://api.intramedial.com/api/v1/acp/arbitration/queue \
-H "Authorization: Bearer $INTRAMEDIAL_KEY"const res = await fetch("https://api.intramedial.com/api/v1/acp/arbitration/queue", {
headers: { Authorization: `Bearer ${process.env.INTRAMEDIAL_KEY}`, },
});
console.log(res.status, await res.json());import os, requests
res = requests.get(
"https://api.intramedial.com/api/v1/acp/arbitration/queue",
headers={"Authorization": "Bearer " + os.environ["INTRAMEDIAL_KEY"]},
timeout=30,
)
print(res.status_code, res.json())发送案件 id 及其 conflictId,二者必须与案件一致。通过 REST 添加 forceInline,可在该请求中直接审理。
curl -sS -X POST https://api.intramedial.com/api/v1/acp/arbitration/arbiter \
-H "Authorization: Bearer $INTRAMEDIAL_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "case_9f2",
"conflictId": "lease-overlap:repo:payments/main:did:web:acme.example:agent:cost,did:web:acme.example:agent:release"
}'const res = await fetch("https://api.intramedial.com/api/v1/acp/arbitration/arbiter", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.INTRAMEDIAL_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
id: "case_9f2",
conflictId: "lease-overlap:repo:payments/main:did:web:acme.example:agent:cost,did:web:acme.example:agent:release",
}),
});
const body = await res.json();
console.log(res.status, body);import os, requests
res = requests.post(
"https://api.intramedial.com/api/v1/acp/arbitration/arbiter",
headers={"Authorization": "Bearer " + os.environ["INTRAMEDIAL_KEY"]},
json={
"id": "case_9f2",
"conflictId": "lease-overlap:repo:payments/main:did:web:acme.example:agent:cost,did:web:acme.example:agent:release",
},
timeout=30,
)
body = res.json()
print(res.status_code, body)remedy 和 confidence 来自模型。低于门槛时,decidedBy 为 fallback。
const { case: c, appealPath } = body;
console.log(c.rung, c.remedy, c.confidence, c.ruling.decidedBy);
if (c.rung === 4) console.log("waits for a person");
else console.log("appealable:", appealPath.appealable, "until", appealPath.deadline);c = body["case"]
print(c["rung"], c["remedy"], c["confidence"], c["ruling"]["decidedBy"])
if c["rung"] == 4:
print("waits for a person")
else:
print("appealable:", body["appealPath"]["appealable"], "until", body["appealPath"]["deadline"])具有诉讼资格的一方可在七天内向上一级上诉。escalate_human 会提交一个待办事项。
内容复制自: /docs/arbitration-arbiter
账本仅可追加,并封存在 Merkle 根之下。条目上的时间取自 Intramedial 自己的时钟,签名包可用已发布的公钥离线核查。
就一个案件开启协商,让双方在八轮之内提议和还价,并通过接受来结案,生成承诺记录。
negotiate.propose提交一个含当事方和诉讼资格的案卷条目,读取其状态,列出案卷,并了解条目如何被审理、结案或上诉。
courts.file列出检测器,运行 lease-overlap,读取它所引用的冲突及其证据,然后读取它为审查而提交的案件。
detection.run当我们向实用示例中添加新示例时,会发送一封简短的邮件。不会发送其他任何邮件,而且您可以从任意一封邮件中退订。
完全无需账户:在 7 天之内可以在各个 attest 路由上调用 35 次,所生成的回执都会被标记为测试回执。当您想继续使用时,再注册账户即可。