Class ToolParameters
java.lang.Object
me.neurodock.plugin.tool.ToolParameters
Represents the parameters of a tool.
This is used by Ollama to determine the parameters of a tool.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new instance ofToolParameters.ToolParametersBuilder.static ToolParametersempty()Creates an emptyToolParametersorg.json.JSONObjectgetJSON()org.json.JSONObjectGets the properties of theToolParametersString[]Gets the required parameters of theToolParameters
-
Method Details
-
getJSON
public org.json.JSONObject getJSON() -
getProperties
public org.json.JSONObject getProperties()Gets the properties of theToolParameters- Returns:
- The properties of the
ToolParameters
-
getRequired
Gets the required parameters of theToolParameters- Returns:
- The required parameters of the
ToolParameters
-
builder
Creates a new instance ofToolParameters.ToolParametersBuilder.- Returns:
- The
ToolParameters.ToolParametersBuilder
-
empty
Creates an emptyToolParameters- Returns:
- an empty
ToolParameters
-