Skip to main content

toolboxes

Creates, updates, deletes, gets or lists a toolboxes resource.

Overview

Nametoolboxes
TypeResource
Idazure.ai_projects.toolboxes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the toolbox version. Required.
namestringThe name of the toolbox. Required.
created_atstring (date-time)The Unix timestamp (seconds) when the toolbox version was created. Required.
descriptionstringA human-readable description of the toolbox.
metadataobjectSet of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters. Required.
policiesobjectPolicy configuration for the toolbox version.
skillsarrayThe list of skill sources included in this toolbox version.
toolsarrayThe list of tools contained in this toolbox version. Required.
versionstringThe version identifier of the toolbox. Toolbox versions are immutable and every update creates a new version. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_versionselectname, version, endpointRetrieve a specific version of a toolbox. Retrieves the specified version of a toolbox by name and version identifier.
getselectname, endpointRetrieve a toolbox. Retrieves the specified toolbox and its current configuration.
listselectendpointlimit, order, after, beforeList toolboxes. Returns the toolboxes available in the current project.
updateupdatename, endpointUpdate a toolbox to point to a specific version. Updates the toolbox's default version pointer to the specified version.
deletedeletename, endpointDelete a toolbox. Removes the specified toolbox along with all of its versions.
list_versionsexecname, endpointlimit, order, after, beforeList toolbox versions. Returns the available versions for the specified toolbox.
create_versionexecname, endpointCreate a new version of a toolbox. Creates a new toolbox version, provisioning the toolbox itself if it does not already exist.
delete_versionexecname, version, endpointDelete a specific version of a toolbox. Removes the specified version of a toolbox.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
namestringThe name of the toolbox. Required.
versionstringThe version identifier to delete. Required.
afterstring
beforestringA 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. Default value is None.
limitintegerA limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. Default value is None.
orderstringSort order by the created_at timestamp of the objects. asc for ascending order anddesc for descending order. Known values are: "asc" and "desc". Default value is None.

SELECT examples

Retrieve a specific version of a toolbox. Retrieves the specified version of a toolbox by name and version identifier.

SELECT
id,
name,
created_at,
description,
metadata,
policies,
skills,
tools,
version
FROM azure.ai_projects.toolboxes
WHERE name = '{{ name }}' -- required
AND version = '{{ version }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

UPDATE examples

Update a toolbox to point to a specific version. Updates the toolbox's default version pointer to the specified version.

UPDATE azure.ai_projects.toolboxes
SET
-- No updatable properties
WHERE
name = '{{ name }}' --required
AND endpoint = '{{ endpoint }}' --required
RETURNING
id,
name,
default_version;

DELETE examples

Delete a toolbox. Removes the specified toolbox along with all of its versions.

DELETE FROM azure.ai_projects.toolboxes
WHERE name = '{{ name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

List toolbox versions. Returns the available versions for the specified toolbox.

EXEC azure.ai_projects.toolboxes.list_versions 
@name='{{ name }}' --required,
@endpoint='{{ endpoint }}' --required,
@limit='{{ limit }}',
@order='{{ order }}',
@after='{{ after }}',
@before='{{ before }}'
;