ToolProvider

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 functions

ToolDetail

Returns the ToolDetail for the targetClass.

Public properties

KClass<*>

The class type this provider is for.

Public functions

getToolDetail

fun getToolDetail(): ToolDetail

Returns the ToolDetail for the targetClass.

Public properties

targetClass

val targetClassKClass<*>

The class type this provider is for.