openhands.llm.metrics
Metrics Objects
class Metrics()
Metrics class can record various metrics during running and evaluation. Currently, we define the following metrics: accumulated_cost: the total cost (USD $) of the current LLM.
get
def get() -> dict
Return the metrics in a dictionary.
log
def log()
Log the metrics.