RunSummary#

class scikitplot.agent.RunSummary(run_id, goal, parent, status, stop_reason, decisions, tool_calls, outcomes, denials, approvals_requested, approvals_granted, approvals_refused, subruns, plan_changes, tokens, cost, wall_seconds)[source]#

What one run did, read from its audit records.

Parameters:
run_idstr
goalstr
parentstr or None

The parent run’s id, for a sub-run.

status, stop_reasonstr or None

From the run’s last run_ended record; None while it has not ended.

decisionsint
tool_callsint

Calls started, retries included.

outcomesdict of str to int

Steps by outcome (executed, failed, denied, …).

denialsdict of str to int

Denied and failed steps by error code.

approvals_requested, approvals_granted, approvals_refusedint
subrunsint
plan_changesint

Decisions that carried a plan.

tokensint or None
costfloat or None

From the run_ended record.

wall_secondsfloat

Last record time minus first.

Parameters:
approvals_granted: int[source]#
approvals_refused: int[source]#
approvals_requested: int[source]#
cost: float | None[source]#
decisions: int[source]#
denials: dict[str, int][source]#
goal: str[source]#
outcomes: dict[str, int][source]#
parent: str | None[source]#
plan_changes: int[source]#
run_id: str[source]#
status: str | None[source]#
stop_reason: str | None[source]#
subruns: int[source]#
to_dict()[source]#

Return a JSON-compatible mapping.

Return type:

dict[str, Any]

tokens: int | None[source]#
tool_calls: int[source]#
wall_seconds: float[source]#