public class ToolExecutionRequestUtil extends Object
ToolExecutionRequest
.Modifier and Type | Field and Description |
---|---|
static com.google.gson.Gson |
GSON
Gson instance.
|
static Type |
MAP_TYPE
Utility
TypeToken describing Map<String, Object> . |
Modifier and Type | Method and Description |
---|---|
static <T> T |
argument(ToolExecutionRequest toolExecutionRequest,
String name)
Get an argument value from ToolExecutionRequest.
|
static Map<String,Object> |
argumentsAsMap(String arguments)
Convert arguments to map.
|
public static final com.google.gson.Gson GSON
public static final Type MAP_TYPE
TypeToken
describing Map<String, Object>
.public static <T> T argument(ToolExecutionRequest toolExecutionRequest, String name)
T
- the argument typetoolExecutionRequest
- requestname
- argument nameCopyright © 2024. All rights reserved.