JIT harness#

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

Read the walkthrough before consulting individual signatures.

Public interfaces#

Interface

Purpose

JITHarness

An independently evolving toolbox of Python and Markdown capabilities.

JITHarnessSnapshot

Portable tool definitions and unload state, separate from history.

PythonToolSource

Trusted source and the tool definition validated when it was registered.

TextToolSource

Reusable Markdown workflow, stored verbatim and never executed as code.

JITHarnessExtension

Let a model evolve independent Python tools and text workflows per session.

JITToolCompletedEvent

CUSTOM event reporting how one management or dynamic tool call ended.

JITToolStartedEvent

CUSTOM event announcing one management or dynamic tool call.

ToolCallDetails

Context that appears only when it carries information.

ToolCallsPage

A model-facing page of compact call records.

ToolCatalogEntry

One row of a session's tool catalog, as the model receives it.

ToolDefinitionView

Model-facing definition; large schemas are read separately in chunks.

ToolErrorsPage

A bounded model-facing page; full error reports remain application-side.

ToolInspection

The application's detail payload from JITHarness.inspect_tool.

ToolListPage

A bounded model-facing catalog page, without profiling or definitions.

ToolMutationResult

Minimal acknowledgement of a successful tool state change.

ToolStatus

Public constant or type alias; see its definition.

ToolTextPage

One exact source or schema fragment, without unrelated metadata.

InspectionToolExposure

How the model sees the harness's inspection and measurement tools.

ToolCallStatus

How one dispatch attempt ended.

ToolKind

Representation of a reusable dynamic capability.

ToolOrigin

Which registry served one dispatch attempt.

JITHarnessProfile

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

ToolCallProfile

One finished dispatch attempt, without argument or result contents.

ToolProfileStats

Lifetime totals for one tool in one harness, counting finished attempts.

ToolErrorRecord

One distinct recent error, with the latest invocation's context.

ToolErrorReport

A read-only page of retained diagnostics, newest occurrence first.