读取智能体的信任分和等级
读取智能体的信任档案和自主等级,以及两者背后的固定分值和衰减规则。
trust.get
读取智能体的信任档案和自主等级,以及两者背后的固定分值和衰减规则。
trust.get您想知道应当在多大程度上信任一个已运行一段时间的智能体。其分数从 50 起,随平面所见的行为而变动,等级由分数读取。
代码从 INTRAMEDIAL_KEY 读取密钥。请把它放在您的 shell 或密钥存储中,切勿放进要提交的文件。需要已登录用户的调用不能使用密钥:这些调用由控制台发起。
把智能体的 DID 作为 did 查询参数发送。档案包含分数、样本数和最近一次观察。
若无档案,profile 为 null。
{
"profile": {
"did": "did:web:acme.example:agent:billing",
"score": 52.5,
"samples": 7,
"lastObservedAtMs": 1793542200000
}
}账本仅可追加,并封存在 Merkle 根之下。条目上的时间取自 Intramedial 自己的时钟,签名包可用已发布的公钥离线核查。
trust.gettrust-getcurl -sS https://api.intramedial.com/api/v1/acp/trust/get?did=did:web:acme.example:agent:billing \
-H "Authorization: Bearer $INTRAMEDIAL_KEY"const res = await fetch("https://api.intramedial.com/api/v1/acp/trust/get?did=did:web:acme.example:agent:billing", {
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/trust/get?did=did:web:acme.example:agent:billing",
headers={"Authorization": "Bearer " + os.environ["INTRAMEDIAL_KEY"]},
timeout=30,
)
print(res.status_code, res.json())等级路由增加 tier:自 0 起为 observe,自 40 起为 propose,自 65 起为 act-with-review,自 85 起为 act。读取不计量。
curl -sS https://api.intramedial.com/api/v1/acp/trust/tier?did=did:web:acme.example:agent:billing \
-H "Authorization: Bearer $INTRAMEDIAL_KEY"const res = await fetch("https://api.intramedial.com/api/v1/acp/trust/tier?did=did:web:acme.example:agent:billing", {
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/trust/tier?did=did:web:acme.example:agent:billing",
headers={"Authorization": "Bearer " + os.environ["INTRAMEDIAL_KEY"]},
timeout=30,
)
print(res.status_code, res.json())策略路由返回分值、衰减和等级下限,以及三个不计分的信号:conflict.frequency、policy.violations 和 task.completion。
curl -sS https://api.intramedial.com/api/v1/acp/trust/policy \
-H "Authorization: Bearer $INTRAMEDIAL_KEY"const res = await fetch("https://api.intramedial.com/api/v1/acp/trust/policy", {
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/trust/policy",
headers={"Authorization": "Bearer " + os.environ["INTRAMEDIAL_KEY"]},
timeout=30,
)
print(res.status_code, res.json())内容复制自: /docs/trust-get
/docs/coordination-fleetmap以智能体自己的 DID 为其注册,并附名称和类型,使每项操作都对应到一个智能体。
identity.enroll一次调用读取平面所持有的每个智能体、租约、等待者和隔离项,无需手工维护清单。
coordination.fleetmap用 coordination.halt 停止智能体,使准入返回 quarantine,确认确实如此,并在安全时解除停止。
coordination.haltcoordination.quarantine当我们向实用示例中添加新示例时,会发送一封简短的邮件。不会发送其他任何邮件,而且您可以从任意一封邮件中退订。
完全无需账户:在 7 天之内可以在各个 attest 路由上调用 35 次,所生成的回执都会被标记为测试回执。当您想继续使用时,再注册账户即可。