ToolErrorReport#
Create, compose, unload, and save session-local Python tools. See the guide.
- class zett_agent.jit_harness.errors.ToolErrorReport(*, errors, capacity, max_message_chars, retained_errors, total_matches, offset, next_offset)[源代码]#
A read-only page of retained diagnostics, newest occurrence first.
capacity bounds distinct errors across the whole harness, not per tool. retained_errors is the current global cache size; total_matches counts retained entries matching the optional tool-name filter. Pagination is a live view: export after a request for stable pages. Empty pages do not prove that a tool never failed; older diagnostics may have been evicted.
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.
- 参数:
errors (tuple[ToolErrorRecord, ...])
capacity (int)
max_message_chars (int)
retained_errors (int)
total_matches (int)
offset (int)
next_offset (int | None)
Fields#
errors(required)See the typed model signature for this field.
capacity(required)See the typed model signature for this field.
max_message_chars(required)See the typed model signature for this field.
retained_errors(required)See the typed model signature for this field.
total_matches(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.