Expand description
Usage utilities.
Adapted from langchain_core/utils/usage.py
Enums§
- Usage
Error - Error types for usage operations.
- Usage
Value - 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.