- Who caused this cost?
- Which part of the agent caused it?
Customer identifiers
Usecustomer_id for the account, workspace, tenant, or end customer that caused the work.
Good values:
cust_abc123workspace_789acme-corp
- Email addresses.
- Phone numbers.
- Raw names when an opaque ID is available.
- Any prompt or message content.
Step names
Usestep_name for the logical agent step that created spend.
Good values:
retrieve_contextevaluatesummarizedraft_replyspeak_answer
Why attribution matters
Provider dashboards show a vendor bill. Pylva shows the customer and product path behind the bill.
Before attribution can be trusted, make sure each paid model, tool, and service is covered by Cost Source Discovery.
Minimum useful event
An event should include:customer_id.step_name.- Provider or metric.
- Usage counts such as tokens, requests, seconds, characters, or executions.
- Status and latency.
cost_usd on the server.