Module usage

Module usage 

Source
Expand description

Usage utilities.

Adapted from langchain_core/utils/usage.py

Enums§

UsageError
Error types for usage operations.
UsageValue
A value in a usage dictionary.

Functions§

dict_int_add
Add two usage dictionaries together.
dict_int_add_json
Add two JSON usage dictionaries together.
dict_int_op
Perform an integer operation on nested dictionaries.
dict_int_op_json
Perform an integer operation on nested JSON dictionaries.
dict_int_sub
Subtract one usage dictionary from another.
dict_int_sub_floor_json
Subtract one JSON usage dictionary from another, with floor at 0.