Interface FunctionTools


public interface FunctionTools
Service-provider interface (SPI) for installing host-provided function tools.

Implementations of this interface define a set of local capabilities (such as file access, command execution, or HTTP retrieval) that can be registered with an AI provider (e.g., Genai).

Function tool implementations are typically discovered via Java's ServiceLoader mechanism and applied to the provider at runtime. This enables dynamic extension of the provider's functionality based on available tool implementations in the classpath.

The interface serves as a marker for tool installer classes; concrete implementations may expose tool functions, prompts, or other callable capabilities.