ToolProvider

public interface ToolProvider


Interface for runtime discovery of generated tool details.

During compilation, the KSP plugin automatically generates an implementation of this interface for each class containing @Tool annotated methods.

Summary

Public methods

abstract @NonNull KClass<@NonNull ?>

The class type this provider is for.

abstract @NonNull ToolDetail

Returns the ToolDetail for the targetClass.

Public methods

getTargetClass

abstract @NonNull KClass<@NonNull ?> getTargetClass()

The class type this provider is for.

getToolDetail

abstract @NonNull ToolDetail getToolDetail()

Returns the ToolDetail for the targetClass.