toolType

public abstract ToolResponse.Builder toolType(ToolType toolType)

Setter for toolType.

toolType: The type of tool that was called, matching the tool_type in the corresponding ToolCall.


@CanIgnoreReturnValue()
public ToolResponse.Builder toolType(ToolType.Known knownType)

Setter for toolType given a known enum.

toolType: The type of tool that was called, matching the tool_type in the corresponding ToolCall.


@CanIgnoreReturnValue()
public ToolResponse.Builder toolType(String toolType)

Setter for toolType given a string.

toolType: The type of tool that was called, matching the tool_type in the corresponding ToolCall.