Skip to content

[api-sync 2026-07-22] gradientlabs-java: sync to OpenAPI spec#34

Open
jafrog wants to merge 2 commits into
mainfrom
api-client-sync/2026-07-22
Open

[api-sync 2026-07-22] gradientlabs-java: sync to OpenAPI spec#34
jafrog wants to merge 2 commits into
mainfrom
api-client-sync/2026-07-22

Conversation

@jafrog

@jafrog jafrog commented Jul 22, 2026

Copy link
Copy Markdown

What changed

Syncs the Java SDK to the current Gradient Labs public OpenAPI spec. The only drift was a single new endpoint.

  • New endpoint POST /conversations/{id}/memories (ConversationMemoriesBulkUpload, Integration role): bulk-uploads a batch of memories scoped to a conversation for the agent to search over on demand.
    • GradientLabsClient.bulkUploadConversationMemories(String conversationId, ConversationMemoriesBulkUploadRequest request) returning ConversationMemoriesBulkUploadResponse.
    • ConversationMemoriesBulkUploadRequest: idempotencyKey (required), memories (required, List<Map<String, Object>> — arbitrary JSON objects stored verbatim), createdAtKeys (optional, List<String>).
    • ConversationMemoriesBulkUploadResponse: uploadId (String), memoriesInserted (long).
    • Follows the existing conversation-method + builder + Jackson @JsonProperty/@JsonInclude(NON_NULL) style. No new dependencies.
  • Added serialization/validation tests mirroring the existing request-test style.
  • The Spring Boot starter only exposes a configured GradientLabsClient bean (it does not mirror the method surface), so no starter changes were needed.

Version

Minor bump 1.0.1-SNAPSHOT1.1.0-SNAPSHOT across the root and both module poms (separate commit). -SNAPSHOT retained; dropping it is a release-time step. The User-Agent version is derived from the package implementation version, so no separate constant needed updating. No CHANGELOG file exists in the repo.

How verified

mvn verifyBUILD SUCCESS, Tests run: 11, Failures: 0, Errors: 0, Skipped: 0 (including the 4 new tests).

jafrog and others added 2 commits July 22, 2026 13:27
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant