Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
ToolRegistry.java
Go to the documentation of this file.
1
package
io.github.ollama4j.tools;
2
3
import
java.util.HashMap;
4
import
java.util.Map;
5
6
public
class
ToolRegistry
{
7
private
final
Map<String, ToolFunction> functionMap =
new
HashMap<>();
8
9
public
ToolFunction
getFunction
(String name) {
10
return
functionMap.get(name);
11
}
12
13
public
void
addFunction
(String name,
ToolFunction
function
) {
14
functionMap.put(name,
function
);
15
}
16
}
io.github.ollama4j.tools.ToolRegistry
Definition
ToolRegistry.java:6
io.github.ollama4j.tools.ToolRegistry.getFunction
ToolFunction getFunction(String name)
Definition
ToolRegistry.java:9
io.github.ollama4j.tools.ToolRegistry.addFunction
void addFunction(String name, ToolFunction function)
Definition
ToolRegistry.java:13
io.github.ollama4j.tools.ToolFunction
Definition
ToolFunction.java:6
src
main
java
io
github
ollama4j
tools
ToolRegistry.java
Generated by
1.12.0