Skip to main content

beta_skills

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

Overview

Namebeta_skills
TypeResource
Idazure.ai_projects.beta_skills

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the skill version. Required.
namestringThe name of the skill version. Required.
skill_idstringThe identifier of the parent skill. Required.
created_atstring (date-time)The Unix timestamp (seconds) when the skill version was created. Required.
descriptionstringA human-readable description of the skill version. Required.
versionstringThe version identifier. Skill versions are immutable. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_versionselectname, version, endpointRetrieve a specific version of a skill. Retrieves the specified version of a skill by name and version identifier.
getselectname, endpointRetrieve a skill. Retrieves the specified skill and its current configuration.
listselectendpointlimit, order, after, beforeList skills. Returns the skills available in the current project.
createinsertname, endpointCreate a new version of a skill. Creates a new version of a skill. If the skill does not exist, it will be created.
deletedeletename, endpointDelete a skill. Removes the specified skill and its associated versions.
updateexecname, endpointUpdate a skill. Modifies the specified skill's configuration.
list_versionsexecname, endpointlimit, order, after, beforeList skill versions. Returns the available versions for the specified skill.
delete_versionexecname, version, endpointDelete a specific version of a skill. Removes the specified version of a skill.
downloadexecname, endpointDownload the zip content for the default version of a skill. Downloads the zip content for the default version of a skill.
download_versionexecname, version, endpointDownload the zip content for a specific version of a skill. Downloads the zip content for a specific version of a skill.

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 skill. Required.
versionstringThe version to download content for. 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 skill. Retrieves the specified version of a skill by name and version identifier.

SELECT
id,
name,
skill_id,
created_at,
description,
version
FROM azure.ai_projects.beta_skills
WHERE name = '{{ name }}' -- required
AND version = '{{ version }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Create a new version of a skill. Creates a new version of a skill. If the skill does not exist, it will be created.

INSERT INTO azure.ai_projects.beta_skills (
name,
endpoint
)
SELECT
'{{ name }}',
'{{ endpoint }}'
RETURNING
id,
name,
skill_id,
created_at,
description,
version
;

DELETE examples

Delete a skill. Removes the specified skill and its associated versions.

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

Lifecycle Methods

Update a skill. Modifies the specified skill's configuration.

EXEC azure.ai_projects.beta_skills.update 
@name='{{ name }}' --required,
@endpoint='{{ endpoint }}' --required
;