Skip to main content

openhands.core.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()

Return the metrics in a dictionary.

log

def log()

Log the metrics.