MissingParameter

org.llm4s.toolapi.ToolParameterError.MissingParameter
See theMissingParameter companion object
final case class MissingParameter extends ToolParameterError

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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def getMessage: String
def withAvailableParameters(availableParameters: List[String]): MissingParameter

Replace the names of the parameters that were provided (a hint for self-correction).

Replace the names of the parameters that were provided (a hint for self-correction).

Attributes

def withExpectedType(expectedType: String): MissingParameter

Replace the expected type of the missing parameter.

Replace the expected type of the missing parameter.

Attributes

def withParameterName(parameterName: String): MissingParameter

Replace the name of the missing parameter.

Replace the name of the missing parameter.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product