Interface LLMToolParams
public interface LLMToolParams
Represents the parameters of a tool
-
Method Summary
Modifier and TypeMethodDescriptiondefault BooleanbooleanParam(String name) Returns a param of type Boolean.getBooleanParam(String name) Returns a param of type BooleangetListParam(String name) Returns a param of type List (representing a JSON array)getObjectParam(String name) Returns a param of type Map (representing a JSON object)getStringParam(String name) Returns a param of type Stringdefault StringstringParam(String name) Returns a param of type String.
-
Method Details
-
getStringParam
Returns a param of type String- Parameters:
name- The name of the param- Returns:
- The param if it exists
-
getBooleanParam
Returns a param of type Boolean- Parameters:
name- The name of the param- Returns:
- The param if it exists
-
getObjectParam
Returns a param of type Map (representing a JSON object)- Parameters:
name- The name of the param- Returns:
- The param if it exists
-
getListParam
Returns a param of type List (representing a JSON array)- Parameters:
name- The name of the param- Returns:
- The param if it exists
-
stringParam
Returns a param of type String. This is a convenience method that directly returns the String value.- Parameters:
name- The name of the param.- Returns:
- The String value of the param.
- Throws:
RuntimeException- if the parameter with the given name is not found or is not a String.
-
booleanParam
Returns a param of type Boolean. This is a convenience method that directly returns the Boolean value.- Parameters:
name- The name of the param.- Returns:
- The Boolean value of the param.
- Throws:
RuntimeException- if the parameter with the given name is not found or is not a Boolean.
-