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 @@
69022510973c61d3e8427d95baa4c140aa49a951
3fe38876198dc0eb5355c51cc3b52a3182d5525f
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Version changelog

## Release v0.166.0 (2026-10-13)

### API Changes
* Add `view` field for `com.databricks.sdk.service.agentkit.GetManagedMemoryEntryRequest`.
* Add `view` field for `com.databricks.sdk.service.agentkit.ListManagedMemoryEntriesRequest`.
* Add `view` field for `com.databricks.sdk.service.agentkit.SearchManagedMemoryEntriesRequest`.
* Add `showDeleted` field for `com.databricks.sdk.service.bundledeployments.ListDeploymentsRequest`.
* Add `scopes` field for `com.databricks.sdk.service.oauth2.CreateServicePrincipalSecretRequest`.
* Add `scopes` field for `com.databricks.sdk.service.oauth2.CreateServicePrincipalSecretResponse`.
* Add `scopes` field for `com.databricks.sdk.service.oauth2.SecretInfo`.
* Add `databricksAppSlack` and `databricksAppTeams` fields for `com.databricks.sdk.service.settings.Config`.
* Add `DATABRICKS_APP_SLACK` and `DATABRICKS_APP_TEAMS` enum values for `com.databricks.sdk.service.settings.DestinationType`.
* [Breaking] Remove `readMask` field for `com.databricks.sdk.service.agentkit.GetManagedMemoryEntryRequest`.
* [Breaking] Remove `readMask` field for `com.databricks.sdk.service.agentkit.ListManagedMemoryEntriesRequest`.
* [Breaking] Remove `readMask` field for `com.databricks.sdk.service.agentkit.SearchManagedMemoryEntriesRequest`.

## Release v0.165.0 (2026-10-10)

### 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.165.0",
"version": "0.166.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.165.0</version>
<version>0.166.0</version>
</parent>
<artifactId>databricks-sdk-java</artifactId>
<name>Databricks SDK for Java</name>
Expand Down
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.165.0";
private static final String version = "0.166.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 @@ -129,8 +129,9 @@ public ManagedMemoryEntry getMemory(String name) {
}

/**
* Retrieves a managed memory entry, including its content, by resource name. Returns `NOT_FOUND`
* when the entry does not exist in the caller's workspace.
* Retrieves a managed 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.
*/
public ManagedMemoryEntry getMemory(GetManagedMemoryEntryRequest request) {
return impl.getMemory(request);
Expand Down Expand Up @@ -174,7 +175,7 @@ public Iterable<ManagedMemoryEntry> listMemories(String parent, String actorId)
/**
* Lists managed memory entries for one actor. An exact `path` filters entries across sessions,
* ignoring session metadata. Otherwise, `session_id` and `path_prefix` restrict the actor
* partition. `read_mask` selects fields in each returned entry.
* partition. `view` controls whether each returned entry includes memory content.
*/
public Iterable<ManagedMemoryEntry> listMemories(ListManagedMemoryEntriesRequest request) {
return Paginator.newTokenPagination(
Expand Down Expand Up @@ -265,7 +266,7 @@ public PopSessionItemResponse popSessionItem(PopSessionItemRequest request) {

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

/**
* Retrieves a managed memory entry, including its content, by resource name. Returns `NOT_FOUND`
* when the entry does not exist in the caller's workspace.
* Retrieves a managed 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.
*/
ManagedMemoryEntry getMemory(GetManagedMemoryEntryRequest getManagedMemoryEntryRequest);

Expand All @@ -93,7 +94,7 @@ ManagedMemoryStore createMemoryStore(
/**
* Lists managed memory entries for one actor. An exact `path` filters entries across sessions,
* ignoring session metadata. Otherwise, `session_id` and `path_prefix` restrict the actor
* partition. `read_mask` selects fields in each returned entry.
* partition. `view` controls whether each returned entry includes memory content.
*/
ListManagedMemoryEntriesResponse listMemories(
ListManagedMemoryEntriesRequest listManagedMemoryEntriesRequest);
Expand All @@ -116,7 +117,7 @@ ListManagedMemoryStoresResponse listMemoryStores(

/**
* Searches managed memory entries by text query for one actor. Returns matching entries and
* scores ranked by relevance; `read_mask` selects fields in each returned entry.
* scores ranked by relevance; `view` controls whether each returned entry includes content.
*/
SearchManagedMemoryEntriesResponse searchMemories(
SearchManagedMemoryEntriesRequest searchManagedMemoryEntriesRequest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.databricks.sdk.support.QueryParam;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.protobuf.FieldMask;
import java.util.Objects;

@Generated
Expand All @@ -17,14 +16,10 @@ public class GetManagedMemoryEntryRequest {
*/
@JsonIgnore private String name;

/**
* Fields to return, using proto field names such as `content` (not `contents`). An omitted or
* empty mask returns the full entry, including `content`; a non-empty mask returns only the
* requested fields.
*/
/** Controls whether the response includes memory content. Defaults to `FULL`. */
@JsonIgnore
@QueryParam("read_mask")
private FieldMask readMask;
@QueryParam("view")
private ManagedMemoryEntryView view;

public GetManagedMemoryEntryRequest setName(String name) {
this.name = name;
Expand All @@ -35,33 +30,33 @@ public String getName() {
return name;
}

public GetManagedMemoryEntryRequest setReadMask(FieldMask readMask) {
this.readMask = readMask;
public GetManagedMemoryEntryRequest setView(ManagedMemoryEntryView view) {
this.view = view;
return this;
}

public FieldMask getReadMask() {
return readMask;
public ManagedMemoryEntryView getView() {
return view;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetManagedMemoryEntryRequest that = (GetManagedMemoryEntryRequest) o;
return Objects.equals(name, that.name) && Objects.equals(readMask, that.readMask);
return Objects.equals(name, that.name) && Objects.equals(view, that.view);
}

@Override
public int hashCode() {
return Objects.hash(name, readMask);
return Objects.hash(name, view);
}

@Override
public String toString() {
return new ToStringer(GetManagedMemoryEntryRequest.class)
.add("name", name)
.add("readMask", readMask)
.add("view", view)
.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.databricks.sdk.support.QueryParam;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.protobuf.FieldMask;
import java.util.Objects;

@Generated
Expand Down Expand Up @@ -40,15 +39,6 @@ public class ListManagedMemoryEntriesRequest {
@QueryParam("path_prefix")
private String pathPrefix;

/**
* Fields to return in each entry, using proto field names such as `content` (not `contents`). An
* omitted or empty mask returns each full entry, including `content`; a non-empty mask returns
* only the requested fields.
*/
@JsonIgnore
@QueryParam("read_mask")
private FieldMask readMask;

/**
* Optional session identifier. When set, only entries with this exact `session_id` are returned.
* Omitted-session (cross-session) entries are not included. Ignored when path is set.
Expand All @@ -57,6 +47,11 @@ public class ListManagedMemoryEntriesRequest {
@QueryParam("session_id")
private String sessionId;

/** Controls whether each returned entry includes memory content. Defaults to `FULL`. */
@JsonIgnore
@QueryParam("view")
private ManagedMemoryEntryView view;

public ListManagedMemoryEntriesRequest setActorId(String actorId) {
this.actorId = actorId;
return this;
Expand Down Expand Up @@ -102,22 +97,22 @@ public String getPathPrefix() {
return pathPrefix;
}

public ListManagedMemoryEntriesRequest setReadMask(FieldMask readMask) {
this.readMask = readMask;
public ListManagedMemoryEntriesRequest setSessionId(String sessionId) {
this.sessionId = sessionId;
return this;
}

public FieldMask getReadMask() {
return readMask;
public String getSessionId() {
return sessionId;
}

public ListManagedMemoryEntriesRequest setSessionId(String sessionId) {
this.sessionId = sessionId;
public ListManagedMemoryEntriesRequest setView(ManagedMemoryEntryView view) {
this.view = view;
return this;
}

public String getSessionId() {
return sessionId;
public ManagedMemoryEntryView getView() {
return view;
}

@Override
Expand All @@ -130,13 +125,13 @@ public boolean equals(Object o) {
&& Objects.equals(pageToken, that.pageToken)
&& Objects.equals(parent, that.parent)
&& Objects.equals(pathPrefix, that.pathPrefix)
&& Objects.equals(readMask, that.readMask)
&& Objects.equals(sessionId, that.sessionId);
&& Objects.equals(sessionId, that.sessionId)
&& Objects.equals(view, that.view);
}

@Override
public int hashCode() {
return Objects.hash(actorId, pageSize, pageToken, parent, pathPrefix, readMask, sessionId);
return Objects.hash(actorId, pageSize, pageToken, parent, pathPrefix, sessionId, view);
}

@Override
Expand All @@ -147,8 +142,8 @@ public String toString() {
.add("pageToken", pageToken)
.add("parent", parent)
.add("pathPrefix", pathPrefix)
.add("readMask", readMask)
.add("sessionId", sessionId)
.add("view", view)
.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/** Response containing managed memory entries. */
@Generated
public class ListManagedMemoryEntriesResponse {
/** Managed memory entries matching the request and its read mask. */
/** Managed memory entries matching the request and selected response view. */
@JsonProperty("managed_memory_entries")
private Collection<ManagedMemoryEntry> managedMemoryEntries;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.agentkit;

import com.databricks.sdk.support.Generated;

/** Controls how much managed memory entry data is returned. */
@Generated
public enum ManagedMemoryEntryView {
MANAGED_MEMORY_ENTRY_VIEW_BASIC,
MANAGED_MEMORY_ENTRY_VIEW_FULL,
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.protobuf.FieldMask;
import java.util.Objects;

/**
Expand Down Expand Up @@ -55,27 +54,20 @@ public class SearchManagedMemoryEntriesRequest {
@JsonProperty("query")
private String query;

/**
* Fields to return in each matching entry, using proto field names such as `content` (not
* `contents`). An omitted or empty mask returns each full entry, including `content`; a non-empty
* mask returns only the requested fields. Search scores are always returned.
*
* <p>The field mask must be a single string, with multiple fields separated by commas (no
* spaces). The field path is relative to the resource object, using a dot (`.`) to navigate
* sub-fields (e.g., `author.given_name`). Specification of elements in sequence or map fields is
* not allowed, as only the entire collection field can be specified. Field names must exactly
* match the resource field names.
*/
@JsonProperty("read_mask")
private FieldMask readMask;

/**
* Optional session identifier. When set, only entries with this exact `session_id` are searched.
* Omitted-session (cross-session) entries are not included.
*/
@JsonProperty("session_id")
private String sessionId;

/**
* Controls whether each returned entry includes memory content. Search scores are always
* returned. Defaults to `FULL`.
*/
@JsonProperty("view")
private ManagedMemoryEntryView view;

public SearchManagedMemoryEntriesRequest setActorId(String actorId) {
this.actorId = actorId;
return this;
Expand Down Expand Up @@ -139,22 +131,22 @@ public String getQuery() {
return query;
}

public SearchManagedMemoryEntriesRequest setReadMask(FieldMask readMask) {
this.readMask = readMask;
public SearchManagedMemoryEntriesRequest setSessionId(String sessionId) {
this.sessionId = sessionId;
return this;
}

public FieldMask getReadMask() {
return readMask;
public String getSessionId() {
return sessionId;
}

public SearchManagedMemoryEntriesRequest setSessionId(String sessionId) {
this.sessionId = sessionId;
public SearchManagedMemoryEntriesRequest setView(ManagedMemoryEntryView view) {
this.view = view;
return this;
}

public String getSessionId() {
return sessionId;
public ManagedMemoryEntryView getView() {
return view;
}

@Override
Expand All @@ -169,14 +161,14 @@ public boolean equals(Object o) {
&& Objects.equals(parent, that.parent)
&& Objects.equals(pathPrefix, that.pathPrefix)
&& Objects.equals(query, that.query)
&& Objects.equals(readMask, that.readMask)
&& Objects.equals(sessionId, that.sessionId);
&& Objects.equals(sessionId, that.sessionId)
&& Objects.equals(view, that.view);
}

@Override
public int hashCode() {
return Objects.hash(
actorId, limit, pageSize, pageToken, parent, pathPrefix, query, readMask, sessionId);
actorId, limit, pageSize, pageToken, parent, pathPrefix, query, sessionId, view);
}

@Override
Expand All @@ -189,8 +181,8 @@ public String toString() {
.add("parent", parent)
.add("pathPrefix", pathPrefix)
.add("query", query)
.add("readMask", readMask)
.add("sessionId", sessionId)
.add("view", view)
.toString();
}
}
Loading
Loading