Result.UsageUsage statistics for API calls.
val create :
?input_tokens:int ->
?output_tokens:int ->
?total_tokens:int ->
?cache_creation_input_tokens:int ->
?cache_read_input_tokens:int ->
unit ->
tcreate ?input_tokens ?output_tokens ?total_tokens ?cache_creation_input_tokens ?cache_read_input_tokens () creates usage statistics.
val input_tokens : t -> int optioninput_tokens t returns the number of input tokens used.
val output_tokens : t -> int optionoutput_tokens t returns the number of output tokens generated.
val total_tokens : t -> int optiontotal_tokens t returns the total number of tokens.
val cache_creation_input_tokens : t -> int optioncache_creation_input_tokens t returns cache creation input tokens.
val cache_read_input_tokens : t -> int optioncache_read_input_tokens t returns cache read input tokens.