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.

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.