Object

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

Represents an object-type parameter used in the tool's parameter schema. This class is a specialization of ToolParameterType with the parameter type set to "OBJECT".

Constructors

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

Properties

Link copied to clipboard

Indicates whether additional properties are allowed in the object. If null, the allowance for additional properties is unspecified.

Link copied to clipboard

The type of any additional properties allowed, if additional properties are permitted. If not applicable, defaults to null.

Link copied to clipboard

The name associated with the type of tool parameter.

Link copied to clipboard

A list of descriptors for the properties of the object. Each descriptor defines the name, description, and type for an individual property.

Link copied to clipboard

A list of property names that are required. Defaults to an empty list if no properties are considered mandatory.

Functions

Link copied to clipboard
open override fun toString(): String