org.llm4s.toolapi.ToolBuilder
See theToolBuilder companion object
@Stable
Builder for ToolFunction definitions using a fluent API.
Obtained via the companion ToolBuilder object:
ToolBuilder[Map[String, Any], MyResult]("my_tool", "Does something", schema)
.withHandler(extractor => Right(MyResult(...)))
.buildSafe()
Value parameters
- description
-
Natural-language description for the LLM
- handler
-
Optional handler; must be set before calling buildSafe
- name
-
Tool name
- schema
-
Parameter schema
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article