ToolSet

org.llm4s.agent.graph.tool.ToolSet
See theToolSet companion object
final class ToolSet

The tools an agent loop offers, in order, with the validator that checks their arguments. Built only through ToolSet.of, so every name is valid and unique, every argument schema is an object, and every schema keyword is one the validator checks.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def definitions: Vector[Value]

The tool definitions in OpenAI's strict format, in order, for callers that send definitions themselves; core's clients receive toolFunctions instead.

The tool definitions in OpenAI's strict format, in order, for callers that send definitions themselves; core's clients receive toolFunctions instead.

Attributes

def get(name: String): Option[AgentTool[_]]
def toolFunctions: Seq[ToolFunction[_, _]]

The tools as core ToolFunctions, in order, for CompletionOptions.tools. A tool made by AgentTool.fromToolFunction is its original function; any other is a stand-in with the spec's name, description and schema whose handler refuses to run, since ToolLoop executes agent tools itself.

The tools as core ToolFunctions, in order, for CompletionOptions.tools. A tool made by AgentTool.fromToolFunction is its original function; any other is a stand-in with the spec's name, description and schema whose handler refuses to run, since ToolLoop executes agent tools itself.

Attributes

Concrete fields

val tools: Vector[AgentTool[_]]