agent-metering

Usage metering + SLA accounting for agent services — the meter behind x402 pay-per-call billing.

От сообщества: Добавлен пользователем или импортирован; проверьте владельца перед подключениемРаботаетБез входаГлобальныйБесплатноТолько чтение

Что умеет

  • Create Meter: Create a usage meter between a provider and a consumer agent. unit: what is being counted (call, token, kwh, ...). Price is in minor currency units (cents) per unit. Returns the meter_id
  • Record Usage: Record a usage event. Idempotent on event_id (safe to retry — never double-billed). outcome is 'ok' or 'error' and feeds the SLA report.
  • Usage Summary: Totals for a meter: event count, total quantity, accrued minor units.

Какие данные видит

Нужен ли аккаунт

Не нужен: сервер работает без входа

Usage metering + SLA accounting for agent services — the meter behind x402 pay-per-call billing. Idempotent event recording, immutable invoices, verifiable chains. Part of the Viridis Agent Fleet — the trust-and-settlement rails of the agent economy. Durable state, free to call. Genesis receipts: github.com/jdhart81/viridis-agent-fleet/blob/main/docs/GENESIS_RECEIPTS.md

Список инструментов сервера (8)

Технические названия из tools/list. Нужны только разработчикам.

create_meterCreate a usage meter between a provider and a consumer agent. unit: what is being counted (call, token, kwh, ...). Price is in minor currency units (cents) per unit. Returns the meter_id.
record_usageRecord a usage event. Idempotent on event_id (safe to retry — never double-billed). outcome is 'ok' or 'error' and feeds the SLA report.
usage_summaryTotals for a meter: event count, total quantity, accrued minor units.
sla_reportPure SLA report: success_rate vs sla_target, breach flag. No mutation.
close_periodFreeze all open events into an immutable invoice (exactly-once). The invoice amount is what agent-escrow-agent should settle.
verify_chainVerify the tamper-evident event hash chain for a meter.
list_metersList all meters with event/invoice counts.
describe_agentFleet-standard self-description.