跨 Agent 结算转账
settlement.transfer在跨 Agent 结算账户间原子转账 credits,写入不可篡改哈希链流水,幂等键防重放,用于多 Agent 任务结算/分账。Example: {"from_account":"orchestrator","to_account":"agent-a","amount":5,"idempotency_key":"settle-001"}
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"amount": 5,
"reason": "task.complete",
"to_account": "agent-a",
"from_account": "orchestrator",
"idempotency_key": "settle-001"
},
"name": "settlement.transfer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | 结算单位,默认 credits | |
| amount | Yes | 结算金额(正数) | |
| reason | No | 结算原因(可选) | |
| to_account | Yes | 收款方账户 | |
| from_account | Yes | 付款方账户 | |
| idempotency_key | No | 幂等键,防重放(建议) |