AzureFunctionTool Class
- java.
lang. Object - com.
azure. ai. agents. models. Tool - com.
azure. ai. agents. models. AzureFunctionTool
- com.
- com.
public final class AzureFunctionTool
extends Tool
The input definition information for an Azure Function Tool, as used to configure an Agent.
Constructor Summary
| Constructor | Description |
|---|---|
| AzureFunctionTool(AzureFunctionDefinition azureFunction) |
Creates an instance of Azure |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
|
Azure |
getAzureFunction()
Get the azure |
|
Map<String,Tool |
getToolConfigs()
Get the tool |
|
Tool |
getType()
Get the type property: The type property. |
|
Azure |
setToolConfigs(Map<String,ToolConfig> toolConfigs)
Set the tool |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from Tool
Methods inherited from java.lang.Object
Constructor Details
AzureFunctionTool
public AzureFunctionTool(AzureFunctionDefinition azureFunction)
Creates an instance of AzureFunctionTool class.
Parameters:
Method Details
fromJson
public static AzureFunctionTool fromJson(JsonReader jsonReader)
Reads an instance of AzureFunctionTool from the JsonReader.
Parameters:
Returns:
Throws:
getAzureFunction
public AzureFunctionDefinition getAzureFunction()
Get the azureFunction property: The Azure Function Tool definition.
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:
AzureFunctionTool.getType()Returns:
setToolConfigs
public AzureFunctionTool 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:
AzureFunctionTool.toJson(JsonWriter jsonWriter)Parameters:
Throws: