Skip to main content

ai_gateway_agent_services

Creates, updates, deletes, gets or lists an ai_gateway_agent_services resource.

Overview

Nameai_gateway_agent_services
TypeResource
Iddatabricks_workspace.catalog.ai_gateway_agent_services

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringResource name of the agent service. Format: ``agent-services/{catalog}.{schema}.{agent_service}``. Each ``{...}`` component is capped at 255 characters individually. Server-derived on Create from ``parent`` + ``agent_service_id``; required and immutable on Update/Get/Delete.
metastore_idstringMetastore hosting the agent service.
agent_service_typestringType of agent service. Required on create. Immutable after creation. For future internal / genie / app kinds, determines how the backing agent surface is provisioned. (AGENT_SERVICE_TYPE_EXTERNAL)
browse_onlybooleanWhether the caller sees only metadata available through the BROWSE privilege.
commentstringUser-provided description.
configobjectOperational configuration: connection, base_path, system_prompt, model_service, optional inference table, optional rate limits. Required on CreateAgentService; on UpdateAgentService it is required only when ``config`` (or a ``config.*`` subpath) appears in ``update_mask``.
create_timestring (date-time)When the agent service was created.
created_bystringCreator identity.
effective_ownerstringThe resolved owner of the agent service. Falls back to the caller's identity when ``owner`` is not explicitly set on creation.
etagstringOptimistic concurrency control token. Server-generated from the entity's state and returned on every read. To use it as an if-match precondition on a mutation, echo the last-read value back via the dedicated ``etag`` field on the Update / Delete request; the server rejects the mutation if the stored etag differs.
ownerstringThe owner of the agent service. Write-only; read owner via effective_owner.
update_timestring (date-time)When the agent service was last modified.
updated_bystringIdentity of the last updater.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectdeployment_nameinclude_browse, page_size, page_token, parentLists the agent services in a Unity Catalog schema. Provide parent as
createinsertparent, agent_service_id, deployment_name, agent_serviceCreates an agent service in a Unity Catalog schema. An agent service is a governed securable that

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
agent_service_idstringLeaf identifier for the agent service (the unqualified name within the parent schema, e.g. "support_agent").
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
parentstringResource name of the parent schema. Format: schemas/{catalog}.{schema}. Each {...} component is capped at 255 characters individually.
include_browsebooleanWhether to include agent services for which the principal can only access selective metadata.
page_sizeintegerMaximum number of agent services to return. Defaults to 100 when unset or 0; the maximum is 1000. Use next_page_token to retrieve additional pages.
page_tokenstringOpaque pagination token from a previous request.
parentstringResource name of the parent schema to list within, as schemas/{catalog}.{schema}. Each {...} component is capped at 255 characters individually.

SELECT examples

Lists the agent services in a Unity Catalog schema. Provide parent as

SELECT
name,
metastore_id,
agent_service_type,
browse_only,
comment,
config,
create_time,
created_by,
effective_owner,
etag,
owner,
update_time,
updated_by
FROM databricks_workspace.catalog.ai_gateway_agent_services
WHERE deployment_name = '{{ deployment_name }}' -- required
AND include_browse = '{{ include_browse }}'
AND page_size = '{{ page_size }}'
AND page_token = '{{ page_token }}'
AND parent = '{{ parent }}'
;

INSERT examples

Creates an agent service in a Unity Catalog schema. An agent service is a governed securable that

INSERT INTO databricks_workspace.catalog.ai_gateway_agent_services (
agent_service,
parent,
agent_service_id,
deployment_name
)
SELECT
'{{ agent_service }}' /* required */,
'{{ parent }}',
'{{ agent_service_id }}',
'{{ deployment_name }}'
RETURNING
name,
metastore_id,
agent_service_type,
browse_only,
comment,
config,
create_time,
created_by,
effective_owner,
etag,
owner,
update_time,
updated_by
;