AnthropicToolSchema

data class AnthropicToolSchema(val type: String = "object", val properties: JsonObject, val required: List<String>)(source)

Represents a schema definition for an Anthropic tool utilized in LLM clients. This data class defines the structure expected for tools, including the type of schema, properties, and required fields.

This API is internal and should not be used outside of its intended scope, as it might be subject to changes or removal without notice.

Constructors

Link copied to clipboard
constructor(type: String = "object", properties: JsonObject, required: List<String>)

Properties

Link copied to clipboard

A JSON object representing the properties within this schema.

Link copied to clipboard

A list of property names that are mandatory within this schema.

Link copied to clipboard

The type of the schema, defaulting to "object".