ToolObject

data class ToolObject(val obj: Any, val namingStrategy: StringTransformer = StringTransformer.IDENTITY, val filter: (String) -> Boolean = { true })

Holds an annotated tool object. Adds a naming strategy and a filter to the object.

Parameters

obj

the object the tool annotations are on

namingStrategy

the naming strategy to use for the tool object's methods

filter

a filter to apply to the tool object's methods

Constructors

Link copied to clipboard
constructor(obj: Any)
constructor(obj: Any, namingStrategy: StringTransformer = StringTransformer.IDENTITY, filter: (String) -> Boolean = { true })

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val obj: Any

Functions

Link copied to clipboard
fun withFilter(filter: (String) -> Boolean): ToolObject
Link copied to clipboard