JToolArgs

org.llm4s.javaapi.JToolArgs
final class JToolArgs

The arguments of one tool call, read into Java values before the handler runs (#1484): each declared parameter the model passed, as the type it was declared with - a String, an Integer/Long/Short/Byte, a Double/Float, a Boolean or an enum constant. A required parameter is always present; an optional one the model left out is absent (has is false, and its getters return null, or throw for a primitive one).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def asMap(): Map[String, AnyRef]

Every argument, by name.

Every argument, by name.

Attributes

def get[T](name: String, `type`: Class[T]): T

name as declared, or null when absent: cast it with get(name, Type.class), as for an enum.

name as declared, or null when absent: cast it with get(name, Type.class), as for an enum.

Attributes

def getBoolean(name: String): Boolean

A boolean parameter.

A boolean parameter.

Attributes

def getDouble(name: String): Double

A double parameter.

A double parameter.

Attributes

def getInt(name: String): Int

An integer parameter (declared int or Integer).

An integer parameter (declared int or Integer).

Attributes

def getLong(name: String): Long

A long parameter.

A long parameter.

Attributes

def getString(name: String): String

A String parameter.

A String parameter.

Attributes

def has(name: String): Boolean

Whether the model passed name.

Whether the model passed name.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any