FunctionShellToolParameter Class
- java.
lang. Object - com.
azure. ai. agents. models. Tool - com.
azure. ai. agents. models. FunctionShellToolParameter
- com.
- com.
public final class FunctionShellToolParameter
extends Tool
Shell tool A tool that allows the model to execute shell commands.
Constructor Summary
| Constructor | Description |
|---|---|
| FunctionShellToolParameter() |
Creates an instance of Function |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Function |
fromJson(JsonReader jsonReader)
Reads an instance of Function |
| String |
getDescription()
Get the description property: Deprecated. |
|
Function |
getEnvironment()
Get the environment property: The environment property. |
| String |
getName()
Get the name property: Deprecated. |
|
Map<String,Tool |
getToolConfigs()
Get the tool |
|
Tool |
getType()
Get the type property: The type property. |
|
Function |
setDescription(String description)
Set the description property: Deprecated. |
|
Function |
setEnvironment(FunctionShellToolParamEnvironment environment)
Set the environment property: The environment property. |
|
Function |
setName(String name)
Set the name property: Deprecated. |
|
Function |
setToolConfigs(Map<String,ToolConfig> toolConfigs)
Set the tool |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from Tool
Methods inherited from java.lang.Object
Constructor Details
FunctionShellToolParameter
public FunctionShellToolParameter()
Creates an instance of FunctionShellToolParameter class.
Method Details
fromJson
public static FunctionShellToolParameter fromJson(JsonReader jsonReader)
Reads an instance of FunctionShellToolParameter from the JsonReader.
Parameters:
Returns:
Throws:
getDescription
public String getDescription()
Get the description property: Deprecated. This property is deprecated and will be removed in a future version.
Returns:
getEnvironment
public FunctionShellToolParamEnvironment getEnvironment()
Get the environment property: The environment property.
Returns:
getName
public String getName()
Get the name property: Deprecated. This property is deprecated and will be removed in a future version.
Returns:
getToolConfigs
public Map<String,ToolConfig> getToolConfigs()
Get the toolConfigs property: Deprecated. This property is deprecated and will be removed in a future version.
Returns:
getType
public ToolType getType()
Get the type property: The type property.
Overrides:
FunctionShellToolParameter.getType()Returns:
setDescription
public FunctionShellToolParameter setDescription(String description)
Set the description property: Deprecated. This property is deprecated and will be removed in a future version.
Parameters:
Returns:
setEnvironment
public FunctionShellToolParameter setEnvironment(FunctionShellToolParamEnvironment environment)
Set the environment property: The environment property.
Parameters:
Returns:
setName
public FunctionShellToolParameter setName(String name)
Set the name property: Deprecated. This property is deprecated and will be removed in a future version.
Parameters:
Returns:
setToolConfigs
public FunctionShellToolParameter setToolConfigs(Map<String,ToolConfig> toolConfigs)
Set the toolConfigs property: Deprecated. This property is deprecated and will be removed in a future version.
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
FunctionShellToolParameter.toJson(JsonWriter jsonWriter)Parameters:
Throws: