Builder

public abstract class Builder

Builder for ToolCall.

Constructors

Link copied to clipboard
public void ToolCall.Builder()

Functions

Link copied to clipboard
public abstract ToolCall.Builder args(Map<String, Object> args)
Setter for args.
Link copied to clipboard
public abstract ToolCall build()
Link copied to clipboard
@CanIgnoreReturnValue()
public ToolCall.Builder clearArgs()
Clears the value of args field.
Link copied to clipboard
@CanIgnoreReturnValue()
public ToolCall.Builder clearId()
Clears the value of id field.
Link copied to clipboard
@CanIgnoreReturnValue()
public ToolCall.Builder clearToolType()
Clears the value of toolType field.
Link copied to clipboard
public abstract ToolCall.Builder id(String id)
Setter for id.
Link copied to clipboard
public abstract ToolCall.Builder toolType(ToolType toolType)
Setter for toolType.
@CanIgnoreReturnValue()
public ToolCall.Builder toolType(ToolType.Known knownType)
Setter for toolType given a known enum.
@CanIgnoreReturnValue()
public ToolCall.Builder toolType(String toolType)
Setter for toolType given a string.