class RubyLLM::Cost::Aggregate

An Aggregate is the combined cost of several messages, summing each component across them. Chat#cost and Cost.aggregate return Aggregate objects, which respond to the same component readers as Cost.

chat.cost.total

A component returns nil when pricing was missing for one of the messages, or when no message has a cost for that component.