ToolboxesClient Class
- java.
lang. Object - com.
azure. ai. agents. ToolboxesClient
- com.
public final class ToolboxesClient
Initializes a new instance of the synchronous AgentsClient type.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Toolbox |
createToolboxVersion(String name, List<ToolboxTool> tools)
Create a new version of a toolbox Creates a new toolbox version, provisioning the toolbox itself if it does not already exist. |
|
Toolbox |
createToolboxVersion(String name, List<ToolboxTool> tools, String description, Map<String,String> metadata, List<ToolboxSkill> skills, ToolboxPolicies policies)
Create a new version of a toolbox Creates a new toolbox version, provisioning the toolbox itself if it does not already exist. |
|
Response<Binary |
createToolboxVersionWithResponse(String name, BinaryData createToolboxVersionRequest, RequestOptions requestOptions)
Create a new version of a toolbox Creates a new toolbox version, provisioning the toolbox itself if it does not already exist. |
| void |
deleteToolbox(String name)
Delete a toolbox Removes the specified toolbox along with all of its versions. |
| void |
deleteToolboxVersion(String name, String version)
Delete a specific version of a toolbox Removes the specified version of a toolbox. |
| Response<Void> |
deleteToolboxVersionWithResponse(String name, String version, RequestOptions requestOptions)
Delete a specific version of a toolbox Removes the specified version of a toolbox. |
| Response<Void> |
deleteToolboxWithResponse(String name, RequestOptions requestOptions)
Delete a toolbox Removes the specified toolbox along with all of its versions. |
|
Toolbox |
getToolbox(String name)
Retrieve a toolbox Retrieves the specified toolbox and its current configuration. |
|
Toolbox |
getToolboxVersion(String name, String version)
Retrieve a specific version of a toolbox Retrieves the specified version of a toolbox by name and version identifier. |
|
Response<Binary |
getToolboxVersionWithResponse(String name, String version, RequestOptions requestOptions)
Retrieve a specific version of a toolbox Retrieves the specified version of a toolbox by name and version identifier. |
|
Response<Binary |
getToolboxWithResponse(String name, RequestOptions requestOptions)
Retrieve a toolbox Retrieves the specified toolbox and its current configuration. |
|
Paged |
listToolboxes()
List toolboxes Returns the toolboxes available in the current project. |
|
Paged |
listToolboxes(Integer limit, PageOrder order, String after, String before)
List toolboxes Returns the toolboxes available in the current project. |
|
Paged |
listToolboxes(RequestOptions requestOptions)
List toolboxes Returns the toolboxes available in the current project. |
|
Paged |
listToolboxVersions(String name)
List toolbox versions Returns the available versions for the specified toolbox. |
|
Paged |
listToolboxVersions(String name, Integer limit, PageOrder order, String after, String before)
List toolbox versions Returns the available versions for the specified toolbox. |
|
Paged |
listToolboxVersions(String name, RequestOptions requestOptions)
List toolbox versions Returns the available versions for the specified toolbox. |
|
Toolbox |
updateToolbox(String name, String defaultVersion)
Update a toolbox to point to a specific version Updates the toolbox's default version pointer to the specified version. |
|
Response<Binary |
updateToolboxWithResponse(String name, BinaryData updateToolboxRequest, RequestOptions requestOptions)
Update a toolbox to point to a specific version Updates the toolbox's default version pointer to the specified version. |
Methods inherited from java.lang.Object
Method Details
createToolboxVersion
public ToolboxVersionDetails createToolboxVersion(String name, List<ToolboxTool> tools)
Create a new version of a toolbox Creates a new toolbox version, provisioning the toolbox itself if it does not already exist.
Parameters:
Returns:
createToolboxVersion
public ToolboxVersionDetails createToolboxVersion(String name, List<ToolboxTool> tools, String description, Map<String,String> metadata, List<ToolboxSkill> skills, ToolboxPolicies policies)
Create a new version of a toolbox Creates a new toolbox version, provisioning the toolbox itself if it does not already exist.
Parameters:
Returns:
createToolboxVersionWithResponse
public Response<BinaryData> createToolboxVersionWithResponse(String name, BinaryData createToolboxVersionRequest, RequestOptions requestOptions)
Create a new version of a toolbox Creates a new toolbox version, provisioning the toolbox itself if it does not already exist.
Request Body Schema
{
description: String (Optional)
metadata (Optional): {
String: String (Required)
}
tools (Required): [
(Required){
type: String(code_interpreter/file_search/web_search/mcp/azure_ai_search/openapi/a2a_preview/browser_automation_preview/reminder_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview) (Required)
name: String (Optional)
description: String (Optional)
tool_configs (Optional): {
String (Required): {
pin: Boolean (Optional)
additional_search_text: String (Optional)
}
}
}
]
skills (Optional): [
(Optional){
type: String (Required)
}
]
policies (Optional): {
rai_config (Optional): {
rai_policy_name: String (Required)
}
}
}
Response Body Schema
{
metadata (Required): {
String: String (Required)
}
id: String (Required)
name: String (Required)
version: String (Required)
description: String (Optional)
created_at: long (Required)
tools (Required): [
(Required){
type: String(code_interpreter/file_search/web_search/mcp/azure_ai_search/openapi/a2a_preview/browser_automation_preview/reminder_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview) (Required)
name: String (Optional)
description: String (Optional)
tool_configs (Optional): {
String (Required): {
pin: Boolean (Optional)
additional_search_text: String (Optional)
}
}
}
]
skills (Optional): [
(Optional){
type: String (Required)
}
]
policies (Optional): {
rai_config (Optional): {
rai_policy_name: String (Required)
}
}
}
Parameters:
Returns:
deleteToolbox
public void deleteToolbox(String name)
Delete a toolbox Removes the specified toolbox along with all of its versions.
Parameters:
deleteToolboxVersion
public void deleteToolboxVersion(String name, String version)
Delete a specific version of a toolbox Removes the specified version of a toolbox.
Parameters:
deleteToolboxVersionWithResponse
public Response<Void> deleteToolboxVersionWithResponse(String name, String version, RequestOptions requestOptions)
Delete a specific version of a toolbox Removes the specified version of a toolbox.
Parameters:
Returns:
deleteToolboxWithResponse
public Response<Void> deleteToolboxWithResponse(String name, RequestOptions requestOptions)
Delete a toolbox Removes the specified toolbox along with all of its versions.
Parameters:
Returns:
getToolbox
public ToolboxDetails getToolbox(String name)
Retrieve a toolbox Retrieves the specified toolbox and its current configuration.
Parameters:
Returns:
getToolboxVersion
public ToolboxVersionDetails getToolboxVersion(String name, String version)
Retrieve a specific version of a toolbox Retrieves the specified version of a toolbox by name and version identifier.
Parameters:
Returns:
getToolboxVersionWithResponse
public Response<BinaryData> getToolboxVersionWithResponse(String name, String version, RequestOptions requestOptions)
Retrieve a specific version of a toolbox Retrieves the specified version of a toolbox by name and version identifier.
Response Body Schema
{
metadata (Required): {
String: String (Required)
}
id: String (Required)
name: String (Required)
version: String (Required)
description: String (Optional)
created_at: long (Required)
tools (Required): [
(Required){
type: String(code_interpreter/file_search/web_search/mcp/azure_ai_search/openapi/a2a_preview/browser_automation_preview/reminder_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview) (Required)
name: String (Optional)
description: String (Optional)
tool_configs (Optional): {
String (Required): {
pin: Boolean (Optional)
additional_search_text: String (Optional)
}
}
}
]
skills (Optional): [
(Optional){
type: String (Required)
}
]
policies (Optional): {
rai_config (Optional): {
rai_policy_name: String (Required)
}
}
}
Parameters:
Returns:
getToolboxWithResponse
public Response<BinaryData> getToolboxWithResponse(String name, RequestOptions requestOptions)
Retrieve a toolbox Retrieves the specified toolbox and its current configuration.
Response Body Schema
{
id: String (Required)
name: String (Required)
default_version: String (Required)
}
Parameters:
Returns:
listToolboxes
public PagedIterable<ToolboxDetails> listToolboxes()
List toolboxes Returns the toolboxes available in the current project.
Returns:
listToolboxes
public PagedIterable<ToolboxDetails> listToolboxes(Integer limit, PageOrder order, String after, String before)
List toolboxes Returns the toolboxes available in the current project.
Parameters:
created_at timestamp of the objects. asc for ascending order anddesc
for descending order.
after is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects, ending with obj_foo, your
subsequent call can include after=obj_foo in order to fetch the next page of the list.
before is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects, ending with obj_foo, your
subsequent call can include before=obj_foo in order to fetch the previous page of the list.
Returns:
listToolboxes
public PagedIterable<BinaryData> listToolboxes(RequestOptions requestOptions)
List toolboxes Returns the toolboxes available in the current project.
Query Parameters
| ------ | ------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name | Type | Required | Description |
| limit | Integer | No | A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. |
| order | String | No | Sort order by the \`created\_at\` timestamp of the objects. \`asc\` for ascending order and\`desc\` for descending order. Allowed values: "asc", "desc". |
| after | String | No | A cursor for use in pagination. \`after\` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj\_foo, your subsequent call can include after=obj\_foo in order to fetch the next page of the list. |
| before | String | No | A cursor for use in pagination. \`before\` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj\_foo, your subsequent call can include before=obj\_foo in order to fetch the previous page of the list. |
You can add these to a request with RequestOptions#addQueryParam
Response Body Schema
{
id: String (Required)
name: String (Required)
default_version: String (Required)
}
Parameters:
Returns:
listToolboxVersions
public PagedIterable<ToolboxVersionDetails> listToolboxVersions(String name)
List toolbox versions Returns the available versions for the specified toolbox.
Parameters:
Returns:
listToolboxVersions
public PagedIterable<ToolboxVersionDetails> listToolboxVersions(String name, Integer limit, PageOrder order, String after, String before)
List toolbox versions Returns the available versions for the specified toolbox.
Parameters:
created_at timestamp of the objects. asc for ascending order anddesc
for descending order.
after is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects, ending with obj_foo, your
subsequent call can include after=obj_foo in order to fetch the next page of the list.
before is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects, ending with obj_foo, your
subsequent call can include before=obj_foo in order to fetch the previous page of the list.
Returns:
listToolboxVersions
public PagedIterable<BinaryData> listToolboxVersions(String name, RequestOptions requestOptions)
List toolbox versions Returns the available versions for the specified toolbox.
Query Parameters
| ------ | ------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name | Type | Required | Description |
| limit | Integer | No | A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. |
| order | String | No | Sort order by the \`created\_at\` timestamp of the objects. \`asc\` for ascending order and\`desc\` for descending order. Allowed values: "asc", "desc". |
| after | String | No | A cursor for use in pagination. \`after\` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj\_foo, your subsequent call can include after=obj\_foo in order to fetch the next page of the list. |
| before | String | No | A cursor for use in pagination. \`before\` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj\_foo, your subsequent call can include before=obj\_foo in order to fetch the previous page of the list. |
You can add these to a request with RequestOptions#addQueryParam
Response Body Schema
{
metadata (Required): {
String: String (Required)
}
id: String (Required)
name: String (Required)
version: String (Required)
description: String (Optional)
created_at: long (Required)
tools (Required): [
(Required){
type: String(code_interpreter/file_search/web_search/mcp/azure_ai_search/openapi/a2a_preview/browser_automation_preview/reminder_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview) (Required)
name: String (Optional)
description: String (Optional)
tool_configs (Optional): {
String (Required): {
pin: Boolean (Optional)
additional_search_text: String (Optional)
}
}
}
]
skills (Optional): [
(Optional){
type: String (Required)
}
]
policies (Optional): {
rai_config (Optional): {
rai_policy_name: String (Required)
}
}
}
Parameters:
Returns:
updateToolbox
public ToolboxDetails updateToolbox(String name, String defaultVersion)
Update a toolbox to point to a specific version Updates the toolbox's default version pointer to the specified version.
Parameters:
Returns:
updateToolboxWithResponse
public Response<BinaryData> updateToolboxWithResponse(String name, BinaryData updateToolboxRequest, RequestOptions requestOptions)
Update a toolbox to point to a specific version Updates the toolbox's default version pointer to the specified version.
Request Body Schema
{
default_version: String (Required)
}
Response Body Schema
{
id: String (Required)
name: String (Required)
default_version: String (Required)
}
Parameters:
Returns: