Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
io.github.ollama4j.tools.annotations.ToolSpec Interface Reference

Public Member Functions

String name () default ""
 
String desc ()
 

Detailed Description

Annotates Methods of classes that should be registered as tools by OllamaAPI#registerAnnotatedTools() automatically.

Definition at line 16 of file ToolSpec.java.

Member Function Documentation

◆ desc()

String io.github.ollama4j.tools.annotations.ToolSpec.desc ( )
Returns
a detailed description of the method that can be interpreted by the llm, whether it should call the tool or not.

◆ name()

String io.github.ollama4j.tools.annotations.ToolSpec.name ( )
Returns
tool-name that the method should be used as. Defaults to the methods name.

The documentation for this interface was generated from the following file: