[api-sync 2026-07-22] gradientlabs-java: sync to OpenAPI spec - #34
Open
jafrog wants to merge 3 commits into
Open
[api-sync 2026-07-22] gradientlabs-java: sync to OpenAPI spec#34jafrog wants to merge 3 commits into
jafrog wants to merge 3 commits into
Conversation
Add bulkUploadConversationMemories for POST /conversations/{id}/memories,
with request/response models and serialization tests.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Minor bump for the new conversation memories bulk-upload endpoint. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syncs the Java SDK to the reworked public API memories endpoint.
What changed
The old conversation-scoped bulk-upload endpoint was replaced (it was never released) with a customer-scoped batch-create endpoint.
Removed (
POST /conversations/{id}/memories):GradientLabsClient.bulkUploadConversationMemories(...)ConversationMemoriesBulkUploadRequest(withidempotency_key,created_at_keys, etc.)ConversationMemoriesBulkUploadResponse(upload_id,memories_inserted)Added (
POST /customers/{customer_id}/memories, operationCustomerMemoriesBatchCreate, Integration role):void batchCreateCustomerMemories(String customerId, BatchCreateCustomerMemoriesRequest request)— customer-scoped, returns nothing. The batch is created asynchronously (fire-and-forget); the call returns as soon as the job is accepted.BatchCreateCustomerMemoriesRequest—memories(required, non-emptyList<Memory>).Memorymodel —externalId(required, wireexternal_id),customType(optional, wirecustom_type),createdAt(required, wirecreated_at),data(required, arbitrary JSON asMap<String, Object>).Both types follow the existing builder + Jackson
@JsonProperty/@JsonInclude(NON_NULL)style with required-field validation inbuild().Notes
GradientLabsExceptionerror propagation — no special client handling.1.1.0-SNAPSHOTacross the root and module poms (first release of this endpoint).Verification
mvn verify— BUILD SUCCESS, 13 tests run, 0 failures (6 new tests coveringMemory/ request serialization and required-field validation).