Builder

public final class Builder

A builder for AllowedTools.

Functions

Link copied to clipboard
public final AllowedTools.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
Link copied to clipboard
public final AllowedTools.Builder addTool(String tool)

Adds a single String to tools.

Link copied to clipboard
public final AllowedTools build()

Returns an immutable instance of AllowedTools.

Link copied to clipboard
public final AllowedTools.Builder mode(JsonField<ToolChoiceType> mode)

Sets Builder.mode to an arbitrary JSON value.

The mode of the tool choice.

Link copied to clipboard
public final AllowedTools.Builder putAdditionalProperty(String key, JsonValue value)
Link copied to clipboard
public final AllowedTools.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
Link copied to clipboard
Link copied to clipboard
public final AllowedTools.Builder tools(JsonField<List<String>> tools)

Sets Builder.tools to an arbitrary JSON value.

public final AllowedTools.Builder tools(List<String> tools)

The names of the allowed tools.