Skip to content

ToolStats

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  615990870["output_types.ToolStats"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 615990870
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Tool usage statistics from an agent task.

Source code in src/clawd_code_sdk/models/output_types.py
class ToolStats(TypedDict):
    """Tool usage statistics from an agent task."""

    readCount: int
    """Number of read tool calls."""
    searchCount: int
    """Number of search tool calls."""
    bashCount: int
    """Number of bash tool calls."""
    editFileCount: int
    """Number of edit file tool calls."""
    linesAdded: int
    """Number of lines added by edit file tool calls."""
    linesRemoved: int
    """Number of lines removed by edit file tool calls."""
    otherToolCount: int
    """Number of other tool calls."""
    frameCount: NotRequired[int]
    """Number of frames."""

bashCount instance-attribute

bashCount: int

Number of bash tool calls.

editFileCount instance-attribute

editFileCount: int

Number of edit file tool calls.

frameCount instance-attribute

frameCount: NotRequired[int]

Number of frames.

linesAdded instance-attribute

linesAdded: int

Number of lines added by edit file tool calls.

linesRemoved instance-attribute

linesRemoved: int

Number of lines removed by edit file tool calls.

otherToolCount instance-attribute

otherToolCount: int

Number of other tool calls.

readCount instance-attribute

readCount: int

Number of read tool calls.

searchCount instance-attribute

searchCount: int

Number of search tool calls.

:fa-brands-github: Show source on GitHub