ToolParameterType

org.llm4s.toolapi.ToolParameterType
@Stable
enum ToolParameterType(val name: String)

The JSON type a tool parameter is read as: what SafeParameterExtractor.validateRequired checks, and the expectedType a ToolParameterError names.

Value parameters

name

the JSON Schema type name, as it appears in an error message

Attributes

Source
SafeParameterExtractor.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case Array extends ToolParameterType

A JSON array.

A JSON array.

Attributes

Source
SafeParameterExtractor.scala
case Boolean extends ToolParameterType

true or false.

true or false.

Attributes

Source
SafeParameterExtractor.scala
case Integer extends ToolParameterType

A JSON number with no fractional part that fits in an Int.

A JSON number with no fractional part that fits in an Int.

Attributes

Source
SafeParameterExtractor.scala
case Number extends ToolParameterType

A JSON number.

A JSON number.

Attributes

Source
SafeParameterExtractor.scala
case Object extends ToolParameterType

A JSON object.

A JSON object.

Attributes

Source
SafeParameterExtractor.scala
case String extends ToolParameterType

A JSON string.

A JSON string.

Attributes

Source
SafeParameterExtractor.scala