ToolOrigin#

Let a model keep its own tools and notes in a repository on disk. See the guide.

class zett_agent.jit_harness.enums.ToolOrigin(*values)[source]#

Which registry served one dispatch attempt.

The value records how the harness resolved the tool name at call time. It stays a plain string in JSON so exported profiles and model-facing results keep the values "base", "python", "management", and "unknown".

BASE

An application-owned tool: a constructor tools=[...] entry or one a tool-providing extension registered for the request. The harness keeps no Python source for it. With manage_base_tools=True it can be unloaded/reloaded and profiled.

PYTHON

A tool the model defined in its repository with @tool. An unloaded tool is still PYTHON; the call status then reads rejected.

MANAGEMENT

One of the reserved harness tools: repo_create, repo_load, repo_unload, or profile_tools. These belong to the harness rather than the application’s toolbox.

UNKNOWN

The name was in no registry when the attempt was recorded, usually a defensive fallback for a rejected call. It does not describe another kind of tool.