Builder

org.llm4s.javaapi.JTool.Builder
final class Builder

A tool under construction. Immutable: every method returns a new builder.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

The tool; a failed result for a blank name, a missing handler, a parameter of an unsupported type or a parameter declared twice.

The tool; a failed result for a blank name, a missing handler, a parameter of an unsupported type or a parameter declared twice.

Attributes

def handler(handler: JToolHandler): Builder

What the tool does when called.

What the tool does when called.

Attributes

def optionalParam(name: String, `type`: Class[_], description: String): Builder

An optional parameter: the model may leave it out, and JToolArgs.has then says so.

An optional parameter: the model may leave it out, and JToolArgs.has then says so.

Attributes

def param(name: String, `type`: Class[_], description: String): Builder

A required parameter name of type, which description explains to the model.

A required parameter name of type, which description explains to the model.

Attributes