Tool Class
- java.
lang. Object - com.
azure. ai. agents. models. Tool
- com.
Implements
public class Tool
implements JsonSerializable<Tool>
A tool that can be used to generate a response.
Constructor Summary
| Constructor | Description |
|---|---|
| Tool() |
Creates an instance of Tool class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Tool |
fromJson(JsonReader jsonReader)
Reads an instance of Tool from the Json |
|
Tool |
getType()
Get the type property: The type property. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
Tool
public Tool()
Creates an instance of Tool class.
Method Details
fromJson
public static Tool fromJson(JsonReader jsonReader)
Reads an instance of Tool from the JsonReader.
Parameters:
Returns:
Throws:
getType
public ToolType getType()
Get the type property: The type property.
Returns: