ServerToolResult#
Implement the model contract and normalize usage and stream output. See the guide.
- class zett_agent.model.ServerToolResult(call_id, name, output=None, error_code=None)[source]#
Terminal output from a tool executed inside the provider.
An adapter may close a call whose terminal result never arrived with
output={"status": NOT_REPORTED_STATUS}. That status is the adapter’s marker that the generation ended without a provider payload; it is not a provider result shape, and the call’s success is unknown.- Parameters:
call_id (str)
name (str)
output (Any)
error_code (str | None)
- call_id: str#
Invocation identifier matching
ServerToolCall.id.
- name: str#
Provider tool name matching the corresponding start event.
- output: Any#
Provider result payload; its shape remains tool-specific.
- error_code: str | None#
Stable provider error code when the hosted tool failed.