ServerToolCall#

Implement the model contract and normalize usage and stream output. See the guide.

class zett_agent.model.ServerToolCall(id, name, input=None)[源代码]#

Provider-executed tool invocation exposed for observation only.

Unlike a local ToolCall, this call must never be dispatched by the Agent or answered with a client-authored ToolMessage. input may be incomplete on the start event when the provider streams its JSON later.

参数:
  • id (str)

  • name (str)

  • input (Mapping[str, Any] | None)

id: str#

Provider-assigned invocation identifier, or a stable adapter-generated ID.

name: str#

Provider tool name such as web_fetch, web_search, or url_context.

input: Mapping[str, Any] | None#

Complete input when already available; None while input is still streaming.