ToolboxSkillReference Class
- java.
lang. Object - com.
azure. ai. agents. models. ToolboxSkill - com.
azure. ai. agents. models. ToolboxSkillReference
- com.
- com.
public final class ToolboxSkillReference
extends ToolboxSkill
A reference to an existing skill to include in a toolbox.
Constructor Summary
| Constructor | Description |
|---|---|
| ToolboxSkillReference(String name) |
Creates an instance of Toolbox |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Toolbox |
fromJson(JsonReader jsonReader)
Reads an instance of Toolbox |
| String |
getName()
Get the name property: The name of the skill. |
| String |
getType()
Get the type property: The type of skill source. |
| String |
getVersion()
Get the version property: The version of the skill. |
|
Toolbox |
setVersion(String version)
Set the version property: The version of the skill. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from ToolboxSkill
Methods inherited from java.lang.Object
Constructor Details
ToolboxSkillReference
public ToolboxSkillReference(String name)
Creates an instance of ToolboxSkillReference class.
Parameters:
Method Details
fromJson
public static ToolboxSkillReference fromJson(JsonReader jsonReader)
Reads an instance of ToolboxSkillReference from the JsonReader.
Parameters:
Returns:
Throws:
getName
public String getName()
Get the name property: The name of the skill.
Returns:
getType
public String getType()
Get the type property: The type of skill source.
Overrides:
ToolboxSkillReference.getType()Returns:
getVersion
public String getVersion()
Get the version property: The version of the skill. If not specified, the skill's default version is used. When a version is specified, the reference is pinned to that immutable version.
Returns:
setVersion
public ToolboxSkillReference setVersion(String version)
Set the version property: The version of the skill. If not specified, the skill's default version is used. When a version is specified, the reference is pinned to that immutable version.
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ToolboxSkillReference.toJson(JsonWriter jsonWriter)Parameters:
Throws: