Usage#

class scikitplot.agent.Usage(tokens=0, cost=0.0)[source]#

What producing one decision cost, as the planner reports it.

Parameters:
tokensint, default=0

Model tokens (input and output) used for the decision.

costfloat, default=0.0

Cost in the caller’s budget unit (the same unit as Tool.cost).

Parameters:
cost: float = 0.0#
to_dict()[source]#

Return a JSON-compatible mapping.

Return type:

dict[str, Any]

tokens: int = 0#