一次调用读取整张编队地图
一次调用读取平面所持有的每个智能体、租约、等待者和隔离项,无需手工维护清单。
coordination.fleetmap
一次调用读取平面所持有的每个智能体、租约、等待者和隔离项,无需手工维护清单。
coordination.fleetmap您想用一个视图看到谁在行动:哪些智能体持有授予、哪些租约有效、谁在等待、谁被停止。平面本来就持有这些信息,编队地图把它们一并读出,而不是另外维护一份清单。
代码从 INTRAMEDIAL_KEY 读取密钥。请把它放在您的 shell 或密钥存储中,切勿放进要提交的文件。需要已登录用户的调用不能使用密钥:这些调用由控制台发起。
该路由不接受参数,返回整个工作区,而不是其中一页。工作区取自调用方的会话,读取地图不计量。
地图包含智能体、租约、授予计数、等待者、在线状态、停止项和网关模式。
{
"agents": [
"did:web:acme.example:agent:billing",
"did:web:acme.example:agent:release"
],
"leases": [
{
"id": "lease_4c1e",
"resource": "lock:deploy/production",
: ,
: ,
: { : , : [] },
: ,
: {}
}
],
: ,
: { : },
: [],
: [],
: ,
: ,
:
}coordination.fleetmapcoordination-fleetmapcurl -sS https://api.intramedial.com/api/v1/acp/coordination/fleetmap \
-H "Authorization: Bearer $INTRAMEDIAL_KEY"const res = await fetch("https://api.intramedial.com/api/v1/acp/coordination/fleetmap", {
headers: { Authorization: `Bearer ${process.env.INTRAMEDIAL_KEY}`, },
});
const body = await res.json();
console.log(res.status, body);import os, requests
res = requests.get(
"https://api.intramedial.com/api/v1/acp/coordination/fleetmap",
headers={"Authorization": "Bearer " + os.environ["INTRAMEDIAL_KEY"]},
timeout=30,
)
body = res.json()
print(res.status_code, body)agents 是授予内容中不同的主体。leases 显示每个有效租约及其持有者和过期时间,grants 仅为计数。未持有授予的智能体不在此列出:在 MCP 网关见到的调用方位于 mcp.shadow。
for (const l of body.leases) {
console.log(l.resource, "held by", l.holder, "until", new Date(l.expiresAtMs).toISOString());
}
console.log(body.agents.length, "agents,", body.grants, "grants");for l in body["leases"]:
print(l["resource"], "held by", l["holder"], "until", l["expiresAtMs"])
print(len(body["agents"]), "agents,", body["grants"], "grants")waiters 统计每个资源上排队的智能体,quarantined 列出平面拒绝的 DID,mcpMode 默认为 observe。
console.log(body.waiters, body.quarantined, body.mcpMode);print(body["waiters"], body["quarantined"], body["mcpMode"])内容复制自: /docs/coordination-fleetmap
账本仅可追加,并封存在 Merkle 根之下。条目上的时间取自 Intramedial 自己的时钟,签名包可用已发布的公钥离线核查。
读取 MCP 网关见过的调用方,然后将其认定为一个身份,或作为影子智能体继续跟踪。
mcp.shadowidentity.enroll读取智能体的信任档案和自主等级,以及两者背后的固定分值和衰减规则。
trust.get用 coordination.halt 停止智能体,使准入返回 quarantine,确认确实如此,并在安全时解除停止。
coordination.haltcoordination.quarantine当我们向实用示例中添加新示例时,会发送一封简短的邮件。不会发送其他任何邮件,而且您可以从任意一封邮件中退订。
完全无需账户:在 7 天之内可以在各个 attest 路由上调用 35 次,所生成的回执都会被标记为测试回执。当您想继续使用时,再注册账户即可。