Visitor

public interface Visitor<T extends Object>

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

Functions

Link copied to clipboard
public T unknown(JsonValue json)

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

Link copied to clipboard
public abstract T visitCodeExecution(JsonValue codeExecution)

A tool that can be used by the model to execute code.

Link copied to clipboard
public abstract T visitComputerUse(Tool.ComputerUse computerUse)

A tool that can be used by the model to interact with the computer.

Link copied to clipboard
public abstract T visitFileSearch(Tool.FileSearch fileSearch)

A tool that can be used by the model to search files.

Link copied to clipboard
public abstract T visitFunction(Function function)

A tool that can be used by the model.

Link copied to clipboard
public abstract T visitGoogleMaps(Tool.GoogleMaps googleMaps)

A tool that can be used by the model to call Google Maps.

Link copied to clipboard
public abstract T visitGoogleSearch(Tool.GoogleSearch googleSearch)

A tool that can be used by the model to search Google.

Link copied to clipboard
public abstract T visitMcpServer(Tool.McpServer mcpServer)

A MCPServer is a server that can be called by the model to perform actions.

Link copied to clipboard
public abstract T visitRetrieval(Tool.Retrieval retrieval)

A tool that can be used by the model to retrieve files.

Link copied to clipboard
public abstract T visitUrlContext(JsonValue urlContext)

A tool that can be used by the model to fetch URL context.