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

Public Member Functions

ToolFunction getToolFunction (String name) throws ToolNotFoundException
 
void addTool (Tools.Tool tool)
 
void addTools (List< Tools.Tool > tools)
 
List< Tools.Tool > getRegisteredTools ()
 
void clear ()
 

Detailed Description

Definition at line 14 of file ToolRegistry.java.

Member Function Documentation

◆ addTool()

void io.github.ollama4j.tools.ToolRegistry.addTool ( Tools.Tool tool)

Definition at line 26 of file ToolRegistry.java.

◆ addTools()

void io.github.ollama4j.tools.ToolRegistry.addTools ( List< Tools.Tool > tools)

Definition at line 34 of file ToolRegistry.java.

◆ clear()

void io.github.ollama4j.tools.ToolRegistry.clear ( )

Removes all registered tools from the registry.

Definition at line 45 of file ToolRegistry.java.

◆ getRegisteredTools()

List< Tools.Tool > io.github.ollama4j.tools.ToolRegistry.getRegisteredTools ( )

Definition at line 40 of file ToolRegistry.java.

◆ getToolFunction()

ToolFunction io.github.ollama4j.tools.ToolRegistry.getToolFunction ( String name) throws ToolNotFoundException

Definition at line 17 of file ToolRegistry.java.


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