ToolCallStatus#

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

class zett_agent.jit_harness.enums.ToolCallStatus(*values)[源代码]#

How one dispatch attempt ended.

The value stays a plain string in JSON, so exported profiles and recent-error reports keep "completed", "failed", "cancelled", and "rejected".

COMPLETED

The handler returned. A later serialization or lifecycle-hook failure does not change this record; completed means the tool itself worked.

FAILED

The tool started and raised: argument validation, handler code, or a nested dependency error the handler did not catch.

CANCELLED

The awaiting caller was cancelled, for example by request cancellation or asyncio task cancellation. A synchronous worker may still be running because Python cannot forcibly stop it.

REJECTED

The harness refused the call before any handler body ran: the tool is unloaded, missing its base binding, no longer registered in the current request, or the nested call exceeded max_call_depth.