Skip to main content

buckets_of

Function buckets_of 

Source
pub fn buckets_of(usage: &Value) -> Option<(Buckets, bool)>
Expand description

The buckets of an Anthropic-style usage object, and whether it reports reasoning apart. None when it holds none of the four counts: a field that is missing among them is 0, an object with none of them is not a reading.