Visitor

public interface Visitor<T extends Object>

An interface that defines how to map each variant of ToolChoice to a value of type T.

Functions

Link copied to clipboard
public T unknown(JsonValue json)

Maps an unknown variant of ToolChoice to a value of type T.

Link copied to clipboard
public abstract T visitConfig(ToolChoiceConfig config)

The tool choice configuration containing allowed tools.

Link copied to clipboard
public abstract T visitType(ToolChoiceType type)