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
51 changes: 0 additions & 51 deletions .codegen.json

This file was deleted.

2 changes: 1 addition & 1 deletion .codegen/_last_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
64023bb8acefdd6c8861e4ebb9238af23f134471
53e4c6273d2874b13429a178dbbc57b5aac59fbb
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Version changelog

## Release v0.186.0 (2026-11-25)

### API Changes
* Add `com.databricks.sdk.service.geniemigrate` package.
* Add `workspaceClient.genieMigrate()` service.
* Add `resources` field for `com.databricks.sdk.service.genieagents.GenieAgentDefinition`.
* Add `textInstruction` field for `com.databricks.sdk.service.genieagents.GenieAgentInstructions`.
* Add `ASSET_TYPE_METRIC_VIEW` and `ASSET_TYPE_AGENT_SKILL` enum values for `com.databricks.sdk.service.marketplace.AssetType`.
* [Breaking] Remove `dataSources` field for `com.databricks.sdk.service.genieagents.GenieAgentDefinition`.
* [Breaking] Remove `sqlFunctions` and `textInstructions` fields for `com.databricks.sdk.service.genieagents.GenieAgentInstructions`.
* [Breaking] Remove `notifications` field for `com.databricks.sdk.service.ml.MaterializationSet`.

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

### API Changes
Expand Down
2 changes: 1 addition & 1 deletion databricks-sdk-java/lockfile.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"artifactId": "databricks-sdk-java",
"groupId": "com.databricks",
"version": "0.185.0",
"version": "0.186.0",
"lockFileVersion": 1,
"dependencies": [
{
Expand Down
2 changes: 1 addition & 1 deletion databricks-sdk-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.databricks</groupId>
<artifactId>databricks-sdk-parent</artifactId>
<version>0.185.0</version>
<version>0.186.0</version>
</parent>
<artifactId>databricks-sdk-java</artifactId>
<name>Databricks SDK for Java</name>
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public String getValue() {
// TODO: check if reading from
// /META-INF/maven/com.databricks/databrics-sdk-java/pom.properties
// or getClass().getPackage().getImplementationVersion() is enough.
private static final String version = "0.185.0";
private static final String version = "0.186.0";

public static void withProduct(String product, String productVersion) {
UserAgent.product = product;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public ManagedMemoryEntry getMemory(String name) {
}

/**
* Retrieves a memory entry by resource name. `view` controls whether the response includes memory
* content. Returns `NOT_FOUND` when the entry does not exist in the caller's workspace.
* Retrieves a memory entry by resource name. Returns `NOT_FOUND` when the entry does not exist in
* the caller's workspace.
*/
public ManagedMemoryEntry getMemory(GetManagedMemoryEntryRequest request) {
return impl.getMemory(request);
Expand Down Expand Up @@ -378,7 +378,7 @@ public RevokeSessionStorePermissionResponse revokeSessionStorePermission(

/**
* Searches memory entries by text query for one actor. Returns matching entries and scores ranked
* by relevance; `view` controls whether each returned entry includes content.
* by relevance.
*/
public Iterable<ManagedMemoryEntrySearchResult> searchMemories(
SearchManagedMemoryEntriesRequest request) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ ManagedMemoryStore createMemoryStore(
ForkSessionResponse forkSession(ForkSessionRequest forkSessionRequest);

/**
* Retrieves a memory entry by resource name. `view` controls whether the response includes memory
* content. Returns `NOT_FOUND` when the entry does not exist in the caller's workspace.
* Retrieves a memory entry by resource name. Returns `NOT_FOUND` when the entry does not exist in
* the caller's workspace.
*/
ManagedMemoryEntry getMemory(GetManagedMemoryEntryRequest getManagedMemoryEntryRequest);

Expand Down Expand Up @@ -178,7 +178,7 @@ RevokeSessionStorePermissionResponse revokeSessionStorePermission(

/**
* Searches memory entries by text query for one actor. Returns matching entries and scores ranked
* by relevance; `view` controls whether each returned entry includes content.
* by relevance.
*/
SearchManagedMemoryEntriesResponse searchMemories(
SearchManagedMemoryEntriesRequest searchManagedMemoryEntriesRequest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ public class CreateManagedMemoryEntryRequest {
@JsonProperty("managed_memory_entry")
private ManagedMemoryEntry managedMemoryEntry;

/** Optional caller-selected memory entry ID. The service generates an ID when omitted. */
/**
* Caller-selected memory entry ID. It must contain 1-255 letters, digits, hyphens, or
* underscores, and it becomes the last segment of the entry's `name`. The service generates a
* UUID when it is omitted.
*/
@JsonIgnore
@QueryParam("managed_memory_entry_id")
private String managedMemoryEntryId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ public class ListManagedMemoryEntriesRequest {
@QueryParam("page_size")
private Long pageSize;

/** Opaque pagination token from a previous ListManagedMemoryEntries response. */
/**
* Opaque pagination token, taken from the `next_page_token` of a previous response. The other
* request parameters must match the request that returned the token.
*/
@JsonIgnore
@QueryParam("page_token")
private String pageToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
/** Response containing memory entries. */
@Generated
public class ListManagedMemoryEntriesResponse {
/** Memory entries matching the request and selected response view. */
/**
* Memory entries matching the request and selected response view, ordered by creation time,
* oldest first.
*/
@JsonProperty("managed_memory_entries")
private Collection<ManagedMemoryEntry> managedMemoryEntries;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
import com.google.protobuf.Timestamp;
import java.util.Objects;

/** A workspace-scoped entry in a memory store. */
/**
* A workspace-scoped entry in a memory store. Each entry belongs to one actor and, optionally, one
* session, and its `path` is unique within that actor and session.
*/
@Generated
public class ManagedMemoryEntry {
/** Customer-provided identifier for the actor whose memory this entry represents. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public class SearchManagedMemoryEntriesRequest {
@JsonProperty("path_prefix")
private String pathPrefix;

/** Free-form search query. */
/**
* Free-form search query. Entries are ranked by how well their `content` and `description` match
* it.
*/
@JsonProperty("query")
private String query;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
@Generated
public class AiDecideOptions {
/**
* The function API version to invoke. If unset, version 1.0 is used. Supported versions: ["1.0"].
* Set to `"2.0"`. If unset, the deprecated version 1.0 is used during the [migration
* period](/api/ai-functions/v1#aidecide).
*/
@JsonProperty("version")
private String version;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,28 @@ public class AiDecideRequest {
private AiDecideOptions options;

/**
* A JSON object mapping question IDs to their definitions. Each ID must contain non-whitespace
* text; its answer is returned with the same ID in `response.answers`.
* A JSON object mapping up to 256 question IDs to their definitions. Each ID must be nonblank;
* its answer is returned with the same ID in `response.answers`.
*
* <p>Each definition is an object with the required fields `type` and `instructions`. The
* `criteria` field is optional for the type `noul` but is required for the types `choice` and
* `score`.
*
* <p>The `instructions` field describes the judgment to make and can be a string, object, or
* array. Use an object or array to include supporting context alongside the instructions.
* <p>In AI Decide v2, `instructions` and each criteria description must be nonblank strings. Each
* question may contain at most 20,000 characters across its ID, instructions, and criteria.
*
* <p>The `type` can be one of:
*
* <p>- `choice`: Selects one option from a defined set. Requires `criteria` to be an object
* mapping 1 to 255 nonempty option names to descriptions. The criteria description can be a
* string, object, array, or null when the name needs no additional detail. For example:
* mapping 1 to 255 nonblank option names to nonblank string descriptions. For example:
*
* <p>```json { "team": { "type": "choice", "instructions": "Which team should handle this
* ticket?", "criteria": { "billing": "Payments, charges, and refunds", "technical_support": null
* } } } ```
* ticket?", "criteria": { "billing": "Payments, charges, and refunds", "technical_support":
* "Product errors and troubleshooting" } } } ```
*
* <p>- `noul`: Estimates the probability that the answer to a true-or-false question is true.
* `criteria` can take the fields `true` or `false`, or both, with descriptions that are strings,
* objects, or arrays. Omit `criteria` to use the question alone. The instructions or at least one
* criteria description must contain non-whitespace text, a nonempty object, or a nonempty array.
* For example, both of the following are valid:
* `criteria` can take the fields `true` or `false`, or both, with nonblank string descriptions.
* Omit `criteria` to use the question alone. For example, both of the following are valid:
*
* <p>```json { "escalate": { "type": "noul", "instructions": "Does this ticket need escalation?",
* "criteria": { "true": "Suspected fraud or an exception to standard policy", "false": "A routine
Expand All @@ -51,9 +48,8 @@ public class AiDecideRequest {
* } } ```
*
* <p>- `score`: Rates the state on an ordered scale. Requires `criteria` to be an array of 2 to
* 10 level descriptions, ordered from low to high. Descriptions must contain non-whitespace text,
* a nonempty object, or a nonempty array. Array positions define levels starting at 0. For
* example:
* 10 unique, nonblank string descriptions, ordered from low to high. Array positions define
* levels starting at 0. For example:
*
* <p>```json { "urgency": { "type": "score", "instructions": "How urgent is this ticket?",
* "criteria": [ "Routine: can wait a few days", "Time-sensitive: needs attention today",
Expand All @@ -63,9 +59,20 @@ public class AiDecideRequest {
private JsonNode questions;

/**
* A string, JSON object, or array containing the content, related context, and examples needed to
* answer the provided questions. For example, provide a support message, a conversation, or
* records describing the current state of an application. All questions receive this same state.
* A nonempty array of typed content objects shared by all questions. Set `options.version` to
* `"2.0"` to use this format. Text and JSON content plus questions must fit within 32 KiB as
* compact UTF-8 JSON, excluding image parts.
*
* <p>| type | Content field | Value | | --- | --- | --- | | `text` | `text` | A nonblank string.
* | | `json` | `data` | A JSON object or array. | | `image` | `image_url` | An inline base64 PNG
* or JPEG data URL: `data:image/png;base64,<base64-encoded image bytes>` or
* `data:image/jpeg;base64,<base64-encoded image bytes>`. HTTP URLs and file paths are not
* supported. Each image must be at most 4 MiB after base64 decoding, with a resolution up to
* 1,568 × 1,568 pixels (or an equivalent pixel count). A request supports up to five images.
* Images are only supported in [select regions]. |
*
* <p>[select regions]:
* https://docs.databricks.com/aws/en/resources/feature-region-support#ai-function-availability
*/
@JsonProperty("state")
private JsonNode state;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ public class AiDecideResponse {
*
* <p>```json { "answers": { "escalate": { "type": "noul", "probability": 0.8 } } } ```
*
* <p>- `score`: score is the probability-weighted mean of the zero-based level indices. It can
* <p>- `score`: score is a numeric rating on the zero-based scale defined by `criteria`. It can
* fall between levels, from 0 to the number of levels minus 1. `probabilities` maps each level
* index to its probability, and `legend` maps each index to its original description. Both maps
* use string keys such as "0", "1", and "2". `confidence` is a number from 0 to 1 indicating how
* well the state supports the assessment. The `probabilities` values sum to 1. For example:
* well the state supports the assessment. The `probabilities` values sum to 1. Depending on the
* model, `score` may be truncated and `probabilities` rounded to 2 decimal places while
* preserving a sum of 1, so the score can differ slightly from the probability-weighted mean
* computed from the returned probabilities. For example:
*
* <p>```json { "answers": { "urgency": { "type": "score", "score": 1.6, "probabilities": { "0":
* 0.1, "1": 0.2, "2": 0.7 }, "legend": { "0": "Routine: can wait a few days", "1":
Expand Down
Loading
Loading