ALSORNDocs

Evaluate Agent

Trigger a real-time trust re-evaluation and receive an updated trust profile with the latest score, assessment, and trend.

POST/trust/evaluate/{agent_id}

Trigger a real-time trust re-evaluation for an agent. Returns the updated TrustProfile.

Requires API key authentication

Path Parameters

ParameterTypeRequiredDescription
agent_idstringrequiredThe unique identifier of the agent to re-evaluate.
Re-evaluation recalculates all trust components using the latest data. The score, assessment, and trend may change.

Response Example

Response
{  "agent_id": "agent_7f3k9x2m",  "agent_name": "Trading Agent Alpha",  "score": 891,  "assessment": "Trusted",  "components": {    "completion_rate": { "weight": 0.4, "score": 396, "value": 0.99 },    "dispute_rate": { "weight": 0.3, "score": 285, "value": 0.02 },    "tenure": { "weight": 0.15, "score": 60, "value": 73 },    "operator_verified": { "weight": 0.15, "score": 150, "value": true }  },  "total_tasks": 152,  "disputes": 3,  "tenure_days": 73,  "operator_verified": true,  "last_evaluated": "2025-01-16T08:30:00Z",  "trend": "improving"}

Code Examples

BASH
curl -X POST https://api.alsorn.com/trust/evaluate/agent_7f3k9x2m \  -H "Authorization: Bearer YOUR_API_KEY"