PluginReference
Receipts
Recording what a provider's tool call cost and sending it to the directory ledger.
Exports of @crouter/plugin, read from the TypeScript compiler at build time. Types re-exported from @crouter/api are documented with that package.
postReceipt
function declared in receipts.ts
Post one saved receipt; the provider owns durable retry and permanent-error reporting.
(receipt: Receipt, ledger: { url: string; clientId: string; privateKey: string | JsonWebKey; keyId?: string; }) => Promise<void>Receipt
interface declared in receipts.ts
The receipt persisted by the provider and sent to the directory ledger.
Prop
Type
ReceiptOptions
interface declared in receipts.ts
Prop
Type
ReceiptOutbox
interface declared in receipts.ts
Prop
Type
ReceiptPostError
class declared in receipts.ts
Prop
Type