运行租约重叠检测器
列出检测器,运行 lease-overlap,读取它所引用的冲突及其证据,然后读取它为审查而提交的案件。
detection.run
列出检测器,运行 lease-overlap,读取它所引用的冲突及其证据,然后读取它为审查而提交的案件。
detection.run您想在两个智能体持有同一资源演变成故障之前就知道。检测器是针对租约或事件的纯函数。每个命中都会引用它所见的内容,并作为阶梯第 0 级的案件提交。
代码从 INTRAMEDIAL_KEY 读取密钥。请把它放在您的 shell 或密钥存储中,切勿放进要提交的文件。需要已登录用户的调用不能使用密钥:这些调用由控制台发起。
目录列出每个检测器及其最近一次运行。十个近路径检测器是纯函数,没有一个使用模型。
运行结果列出冲突和 filed 的案件。
{
"detector": { "id": "lease-overlap", "path": "near", "llm": false },
: [],
: [
{
: ,
: ,
: [, ],
: ,
: [, ],
:
}
],
: ,
: [{ : , : }],
: [],
: { : , : }
}suppressed 暂缓。detection.rundetection-runcurl -sS https://api.intramedial.com/api/v1/acp/detection/catalog \
-H "Authorization: Bearer $INTRAMEDIAL_KEY"const res = await fetch("https://api.intramedial.com/api/v1/acp/detection/catalog", {
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/detection/catalog",
headers={"Authorization": "Bearer " + os.environ["INTRAMEDIAL_KEY"]},
timeout=30,
)
print(res.status_code, res.json())发送检测器 id;未知的 id 返回 404。forceInline 只对 semantic-intent 有意义,它是唯一会把文本发送给模型的检测器。十个近路径检测器都是租约或事件的纯函数。
curl -sS -X POST https://api.intramedial.com/api/v1/acp/detection/run \
-H "Authorization: Bearer $INTRAMEDIAL_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "lease-overlap",
"forceInline": true
}'const res = await fetch("https://api.intramedial.com/api/v1/acp/detection/run", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.INTRAMEDIAL_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
id: "lease-overlap",
forceInline: true,
}),
});
console.log(res.status, await res.json());import os, requests
res = requests.post(
"https://api.intramedial.com/api/v1/acp/detection/run",
headers={"Authorization": "Bearer " + os.environ["INTRAMEDIAL_KEY"]},
json={
"id": "lease-overlap",
"forceInline": True,
},
timeout=30,
)
print(res.status_code, res.json())命中会引用账本事件 id 或租约 id。filed 列出已开启的案件;当同一当事方的案件仍然未结时,suppressed 保存重复项。
内容复制自: /docs/detection-run
账本仅可追加,并封存在 Merkle 根之下。条目上的时间取自 Intramedial 自己的时钟,签名包可用已发布的公钥离线核查。
当我们向实用示例中添加新示例时,会发送一封简短的邮件。不会发送其他任何邮件,而且您可以从任意一封邮件中退订。
完全无需账户:在 7 天之内可以在各个 attest 路由上调用 35 次,所生成的回执都会被标记为测试回执。当您想继续使用时,再注册账户即可。