![]() |
Ollama4j
A Java library (wrapper/binding) for Ollama server.
|
Public Member Functions | |
String | name () default "" |
String | desc () |
Annotation to mark a method as a tool that can be registered automatically by Ollama#registerAnnotatedTools()
.
Methods annotated with @ToolSpec
will be discovered and registered as tools when the containing class is specified as a provider in OllamaToolService
.
Definition at line 27 of file ToolSpec.java.
String io.github.ollama4j.tools.annotations.ToolSpec.desc | ( | ) |
Provides a detailed description of the tool's functionality. This description is used by the LLM to determine when to call the tool.
String io.github.ollama4j.tools.annotations.ToolSpec.name | ( | ) |
Specifies the name of the tool as exposed to the LLM. If left empty, the method's name will be used as the tool name.