ToolParameterType

Sealed class representing different types of tool parameters.

Each subclass of ToolParameterType denotes a specific data type that a tool parameter can have.

Parameters

T

The type of data that the tool parameter represents.

Inheritors

Types

Link copied to clipboard

Represents a boolean type parameter.

Link copied to clipboard
object Companion

Companion object for the enclosing class. Provides utility functions for creating instances of the Enum type parameter from different kinds of inputs.

Link copied to clipboard
data class Enum(val entries: Array<String>) : ToolParameterType

Represents an enum type parameter.

Link copied to clipboard
data object Float : ToolParameterType

Represents a float type parameter.

Link copied to clipboard

Represents an integer type parameter.

Link copied to clipboard
data class List(val itemsType: ToolParameterType) : ToolParameterType

Represents an array type parameter.

Link copied to clipboard
data class Object(val properties: List<ToolParameterDescriptor>, val requiredProperties: List<String> = listOf(), val additionalProperties: Boolean? = null, val additionalPropertiesType: ToolParameterType? = null) : ToolParameterType

Represents an array type parameter.

Link copied to clipboard

Represents a string type parameter.

Properties

Link copied to clipboard

The name associated with the type of tool parameter.