CustomTool

@Serializable
data class CustomTool(val custom: CustomToolDefinition, val type: String = "custom") : ChatTool

A tool accepting free-form or grammar-constrained text.

Constructors

Link copied to clipboard
constructor(custom: CustomToolDefinition, type: String = "custom")

Properties

Link copied to clipboard
@SerialName(value = "custom")
val custom: CustomToolDefinition

Custom tool definition.

Link copied to clipboard
@EncodeDefault
@SerialName(value = "type")
val type: String

Tool kind.