JITHarnessProfile#

Create, compose, unload, and save session-local Python tools. See the guide.

class zett_agent.jit_harness.profiling.JITHarnessProfile(*, stats, calls, total_calls, offset, next_offset)[源代码]#

An immutable, JSON-exportable view of session-local profiling data.

Stats cover finished attempts; in-flight calls are not published. Calls contain a page of finished records ordered by dispatch. offset/next_offset paginate them. Retained records are bounded per harness, oldest dropped first, while lifetime aggregates stay complete. Do not paginate while calls are finishing if a stable export is required; export after the request. Profiles are not part of executable JITHarnessSnapshot data.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

参数:
stats: tuple[ToolProfileStats, ...]#

One entry per requested tool name, sorted by name when no filter was given.

calls: tuple[ToolCallProfile, ...]#

This page of finished records, oldest retained dispatch first.

total_calls: int#

Retained records matching the filter, across every page.

offset: int#

Offset this page started at, and the offset to pass next when one exists.

Fields#

stats (required)

See the typed model signature for this field.

calls (required)

See the typed model signature for this field.

total_calls (required)

See the typed model signature for this field.

offset (required)

See the typed model signature for this field.

next_offset (required)

See the typed model signature for this field.