Repository navigation
Fix #85: Support provider cost metering and accumulate in ledger - #111
AnandkumarMall wants to merge 4 commits into
Conversation
|
Thank you, @AnandkumarMall, for contributing provider cost metering and ledger accumulation. We transferred the cost-reporting work into Our maintainer workflow is documented here: https://github.com/sapientinc/PRAXIST/blob/main/docs/guides/contributing.md#what-happens-after-submission This branch is now ready for a separately scheduled real-task experiment stage. Please allow us time to complete that validation; if it passes, the maintainers will submit the validated change to |
|
Update: this shipped. Your provider cost metering and ledger accumulation are now Thank you for your contribution, @AnandkumarMall |
Fixes #85. Extends the usage-reporting contract so an API provider adapter can return a
costfield alongside tokens. This includes updatingModelResultandAgentRunResultto carry acostpayload, extractingcostfromCodexEventCollectorandModelProviderAdapter, and updating theRuntimeUsageCollectorandexecution_guardsto allow informational cost units (likecost_usdorneurons) to be recorded in theBudgetLedgerwithout raising unapproved grant exceptions. The metrics are fully additive and correctly surface insystem_run_summary.