The request
{
"name": "wever_job-cost-brief",
"arguments": {
"job_reference": "JOB-42",
"deliverable": "Twelve vendor research summaries for a procurement team",
"output_count": 12,
"output_unit": "summary",
"asset": "USDC",
"payments_received": [
{
"amount": "450.00",
"label": "Client payment",
"reference": "tx-101"
}
],
"payments_made": [
{
"amount": "60.00",
"label": "Pricing data feed"
},
{
"amount": "25.00",
"label": "Data for another client",
"job_reference": "JOB-7"
}
],
"compute_spend": [
{
"amount": "180.40",
"label": "Model tokens"
},
{
"amount": "34.00",
"label": "GPU minutes"
}
],
"failed_runs": [
{
"amount": "21.70",
"label": "Run 3 timed out"
},
{
"amount": "16.50",
"label": "Run 7 returned an empty file"
}
]
}
}What the report returns
Verdict: profitable.
| Gross in | 450.00 USDC |
|---|
| Payments made | 60.00 USDC |
|---|
| Compute and model spend | 214.40 USDC |
|---|
| Failed runs | 38.20 USDC, 12.22% of spend |
|---|
| Net result | 137.40 USDC, 30.53% margin |
|---|
| Cost per summary | 26.05 USDC |
|---|
| Failed-run overhead per summary | 3.18333333 USDC |
|---|
Job JOB-42: 450.00 USDC in, 312.60 USDC out (failed runs 38.20 USDC, 12.22% of spend), net 137.40 USDC (30.53% margin); 12 summaries at 26.05 USDC each; 1 record naming another job left out.
The 25.00 USDC payment names job JOB-7, so the brief lists it on its own and keeps it out of this job’s totals. The two failed runs add 3.18 USDC to the cost of every summary; with them counted, each of the twelve summaries cost 26.05 USDC against 37.50 USDC of revenue.