Repository navigation
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>
Contributor
|
Comment from a Claude Code session, not from Theo. Closing: replaced by #40, which carries all of this PR's changes and brings the library up to date with the current API. |
twindebank
added a commit
that referenced
this pull request
Nov 27, 2026
Brings the client in line with public API contract 3e9c6fa0a27454d8d5300c42e4215c475c3954b085dae9901f429d0c531e50f3 and records it in PUBLIC_API_VERSION. New operations: customer memories (list, batch create v2, deprecated v1 batch create), files (begin upload, create, list), knowledge bases (list, create, read, update), notes (list, read), the conversation read endpoint, and reading a given tool version. New webhook events: conversation.start and the three back-office task events; unknown event types now come back as UNKNOWN instead of throwing. Fixes on main: requests now go to the configured base URL, query parameters are sent and encoded, readConversation uses the /read endpoint, the tool and terminology substitution lists read their wrapped responses, deleting a hand-off target sends its ID as a query parameter, timestamps are sent as RFC 3339 strings, participant types use the API's values, unknown response fields no longer fail parsing, and conversation.hand_off webhooks parse again. Carries over the customer memories batch-create work from #34.
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).