Class LLMToolCall
java.lang.Object
org.openhab.core.voice.text.interpreter.llm.LLMToolCall
A DTO to store information about a tool call.
- Author:
- Florian Hotze - Initial contribution
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
GSON
protected static final com.google.gson.Gson GSON -
tool
the UID of theLLMTool -
params
the params of the tool call
-
-
Constructor Details
-
LLMToolCall
-
-
Method Details
-
map
-
toJson
Serializes this instance to JSON.- Returns:
- the JSON
-
fromJson
Deserializes a tool call from JSON.- Parameters:
json- the JSON to deserialize- Returns:
- the deserialized tool call
- Throws:
com.google.gson.JsonSyntaxException- ifjsonis not a valid representation ofLLMToolCall
-
equals
-
hashCode
public int hashCode()
-