Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen/_last_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
874d8f1733df5029f169c35ed088d2f081eb6687
135055fc276ed13622fe66c430bcff841b35d825
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Version changelog

## Release v0.170.0 (2026-11-23)

### API Changes
* Add `create_compute_policy()`, `delete_compute_policy()`, `get_compute_policy()` and `update_compute_policy()` methods for [w.serverless_compute_service](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/compute/serverless_compute_service.html) workspace-level service.
* Add `rescan_catalog()` method for [w.data_classification](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/dataclassification/data_classification.html) workspace-level service.
* Add `url_configuration` field for `databricks.sdk.service.catalog.AccessRequestDestinations`.
* Add `streaming` field for `databricks.sdk.service.lakewatch.Rule`.
* Add `lookup` and `secondary_keys` fields for `databricks.sdk.service.ml.Function`.
* Add `compute_policy_id` field for `databricks.sdk.service.postgres.ProjectStatus`.
* Add `network` field for `databricks.sdk.service.sandbox.SandboxSpec`.
* Add `finalizing` enum value for `databricks.sdk.service.aisearch.EndpointScalingInfoPhase`.
* Add `google_ads` enum value for `databricks.sdk.service.catalog.ConnectionType`.
* Add `preemptable` enum value for `databricks.sdk.service.jobs.AiRuntimeTaskPriorityClass`.
* Add `finalizing` enum value for `databricks.sdk.service.vectorsearch.EndpointScalingInfoScalingPhase`.
* Change `schedule` field for `databricks.sdk.service.lakewatch.Rule` to no longer be required.
* [Breaking] Change `schedule` field for `databricks.sdk.service.lakewatch.Rule` to no longer be required.

## Release v0.169.0 (2026-11-19)

### API Changes
Expand Down
5 changes: 4 additions & 1 deletion databricks/sdk/service/agentkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,10 @@ def create_session_store(self, session_store: SessionStore, session_store_id: st

def delete_memory(self, name: str):
"""Deletes a memory entry by resource name. Returns ``NOT_FOUND`` when the entry does not exist in the
caller's workspace.
caller's workspace. The entry stops appearing in Get, List and Search. In a store that records memory
history, the versions written before the delete, including their content, stay readable through
``ListMemoryChanges`` and ``GetMemoryChange`` to anyone who can read the store, until the store itself
is deleted.

:param name: str
Resource name in the form
Expand Down
29 changes: 18 additions & 11 deletions databricks/sdk/service/aifunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ class AiDecideOptions:
"""ai_decide"""

version: Optional[str] = None
"""The function API version to invoke. If unset, the version is inferred per row. Supported
versions: ["1.0"]."""
"""The function API version to invoke. If unset, version 1.0 is used. Supported versions: ["1.0"]."""

def as_dict(self) -> dict:
"""Serializes the AiDecideOptions into a dictionary suitable for use as a JSON request body."""
Expand Down Expand Up @@ -782,7 +781,12 @@ def from_dict(cls, d: Dict[str, Any]) -> AiParseDocumentResponseMetadata:
class Batch:
"""The AI Functions Asynchronous API lets you process large volumes of requests as a batch in a
single call. It is in Beta: a workspace admin must turn on the **AI Functions Asynchronous API**
preview on the workspace Previews page before you can call it."""
preview on the workspace Previews page before you can call it.

For examples, see
[``ai_parse_document``](/agents/agent-bricks/document-parsing#asynchronous-api),
[``ai_extract``](/agents/agent-bricks/info-extraction#asynchronous-api), and
[``ai_classify``](/agents/agent-bricks/classification#asynchronous-api)."""

endpoint: str
"""The AI function, for example ``ai_parse_document``."""
Expand All @@ -796,13 +800,13 @@ class Batch:
"""Unity Catalog volume path to write the JSONL output file to. If the path is a directory, the
file is ``<path>/<name>_output.jsonl``. Each line is the result of one request, in the form
``{"custom_id": ..., "response": ...}``, or ``{"custom_id": ..., "error": {"type": ...,
"message": ...}}`` for a request that failed."""
"message": ...}}`` for a request that failed or did not finish."""

create_time: Optional[Timestamp] = None
"""Output only. The time when the batch was created."""

name: Optional[str] = None
"""Output only. Identifier. Resource name of the batch, returned by create. Format: ``batch_<id>``."""
"""Output only. Unique identifier of the batch, returned by create. Format: ``batch_<id>``."""

params: Optional[Dict[str, any]] = None
"""Parameters of the function other than its input, applied to every request in the batch, for
Expand All @@ -819,7 +823,10 @@ class Batch:
when you list batches."""

status: Optional[BatchStatus] = None
"""Output only. The status of the batch."""
"""Output only. The status of the batch. A batch starts as ``PENDING``, runs as ``IN_PROGRESS``, is
``FINALIZING`` while the output file is written, and ends as ``COMPLETED``. A running batch that
is cancelled is ``CANCELLING``, then ``CANCELLED``. A ``COMPLETED`` batch can include requests
that failed, and a ``FAILED`` batch has no ``output_ref``."""

def as_dict(self) -> dict:
"""Serializes the Batch into a dictionary suitable for use as a JSON request body."""
Expand Down Expand Up @@ -1005,7 +1012,7 @@ def ai_classify(
:param labels: any
The label set to classify as. Either a JSON array of label strings (e.g. ["spam", "not_spam"]), or a
JSON object mapping each label to a description (e.g. {"spam": "unsolicited bulk message",
"not_spam": "a legitimate message"}). Accepts 2 to 500 labels, each 1 to 100 characters. When
"not_spam": "a legitimate message"}). Accepts 2 to 5000 labels, each 1 to 100 characters. When
multilabel is true, a single label is also accepted.
:param options: :class:`AiClassifyOptions` (optional)
Function options. Omitted fields fall back to their documented defaults.
Expand Down Expand Up @@ -1219,11 +1226,11 @@ def ai_parse_document(
return AiParseDocumentResponse.from_dict(res)

def cancel_batch(self, name: str) -> CancelBatchResponse:
"""Starts the asynchronous cancellation of a batch. Requests in progress are drained first. Cancellation
is best effort, so the batch can still complete.
"""Starts the asynchronous cancellation of a batch. Requests in progress are stopped, and the results of
the requests that finished are kept. Cancellation is best effort, so the batch can still complete.

:param name: str
Resource name of the batch. Format: ``batch_<id>``.
Unique identifier of the batch. Format: ``batch_<id>``.

:returns: :class:`CancelBatchResponse`
"""
Expand Down Expand Up @@ -1269,7 +1276,7 @@ def get_batch(self, name: str) -> Batch:
"""Gets the latest status and progress of a batch.

:param name: str
Resource name of the batch. Format: ``batch_<id>``.
Unique identifier of the batch. Format: ``batch_<id>``.

:returns: :class:`Batch`
"""
Expand Down
1 change: 1 addition & 0 deletions databricks/sdk/service/aisearch.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 45 additions & 33 deletions databricks/sdk/service/apps.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading