Resource
tool-call
An active tool call. Construct with [tool-call.constructor]
to announce the call to the parent prompt-turn; apply
[update] to mutate state; drop when the call ends (the
status at drop time is the call's final state).
resource tool-call;F constructor
constructor: func(initial: tool-call-init) -> tool-call;Begin a tool call. Initial state is announced to the
parent prompt-turn's update stream as a
session-update::ToolCall.
F update
update: async func(patch: tool-call-patch);Mutate one or more fields of the tool call. Each call
emits a session-update::ToolCallUpdate carrying the
patch into the parent prompt-turn's stream.