Spent#

class scikitplot.agent.Spent(steps=0, tool_calls=0, cost=0.0, tokens=0, seconds=0.0)[source]#

What a run has used so far, against its Limits.

Parameters:
cost: float = 0.0#
classmethod from_dict(data)[source]#

Rebuild what to_dict wrote.

Parameters:

data (Mapping[str, Any])

Return type:

Spent

seconds: float = 0.0#
steps: int = 0#
to_dict()[source]#

Return a JSON-compatible mapping.

Return type:

dict[str, Any]

tokens: int = 0#
tool_calls: int = 0#