ToolParameterError

org.llm4s.toolapi.ToolParameterError
See theToolParameterError companion trait

Attributes

Companion
trait
Source
ToolParameterError.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class InvalidNesting(parameterName: String, parentPath: String, parentType: String) extends ToolParameterError

Cannot access a nested property because parent is not an object.

Cannot access a nested property because parent is not an object.

Value parameters

parameterName

name of the parameter being accessed

parentPath

JSON path to the parent element

parentType

actual type of the parent element (e.g. "string", "array")

Attributes

Source
ToolParameterError.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class MissingParameter extends ToolParameterError

A required parameter is completely missing from the arguments.

A required parameter is completely missing from the arguments.

Value parameters

availableParameters

list of parameter names that were provided (hint for self-correction)

expectedType

the expected type of the parameter

parameterName

name of the missing parameter

Attributes

Companion
object
Source
ToolParameterError.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ToolParameterError.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Aggregation of multiple parameter errors from a single tool call.

Aggregation of multiple parameter errors from a single tool call.

Value parameters

errors

the individual parameter errors

Attributes

Source
ToolParameterError.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class NullParameter(parameterName: String, expectedType: String) extends ToolParameterError

A required parameter is present but has a null value.

A required parameter is present but has a null value.

Value parameters

expectedType

the expected non-null type

parameterName

name of the null parameter

Attributes

Source
ToolParameterError.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class TypeMismatch(parameterName: String, expectedType: String, actualType: String) extends ToolParameterError

A parameter has the wrong type.

A parameter has the wrong type.

Value parameters

actualType

the type that was received

expectedType

the type that was expected

parameterName

name of the mistyped parameter

Attributes

Source
ToolParameterError.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala