get_agent_trust
Retrieve the trust score, rank, and percentile of a single agent in a directed trust graph. Use when you need one counterparty's standing instead of full reputation scores.
Instructions
Trust score, rank, and percentile of ONE node in a trust graph you supply (LUMEN).
A single-agent reputation lookup over the same PageRank as `get_reputation_scores` ā use when
you only care about one counterparty's standing.
Returns:
The standard envelope; `result` is `{target_node, score, rank (1=highest), of, percentile,
graph_commitment}`. Cost ~$0.003 USDC.
Example:
get_agent_trust(nodes=3, edges=[[0,1,1.0],[1,2,0.5],[2,0,0.5]], target_node=1)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | Yes | Number of nodes in the directed trust graph, 1..100000. Node indices in `edges` must be in [0, nodes). | |
| edges | Yes | Directed, weighted trust edges as `[from_index, to_index, weight]`. An edge iāj with weight w means node i confers w trust on node j. Weights need not be normalized. | |
| target_node | Yes | Index of the node whose trust score/rank/percentile to return (0-based, in [0, nodes)). | |
| damping | No | PageRank damping factor in [0,1] (default 0.85). Lower = more weight on the uniform prior, dampening graph manipulation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |