Skip to content

fix: require documentId for insert operations across all SDKs - #41

Merged
senamakel merged 6 commits into
tinyhumansai:mainfrom
oxoxDev:fix/require-documentid
Mar 25, 2026
Merged

senamakel merged 6 commits into
tinyhumansai:mainfrom
oxoxDev:fix/require-documentid

Conversation

@oxoxDev

@oxoxDev oxoxDev commented Mar 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

SDKs updated

SDK Commit
Go fix(sdk-golang): require documentId for insert operations
Java fix(sdk-java): require documentId for insert operations
Dart fix(sdk-dart): require documentId for insert operations
C++ fix(sdk-cpp): require documentId for insertMemory
C# fix(sdk-csharp): require documentId for insertMemory
Rust fix(sdk-rust): require documentId for insert operations

Test plan

  • Go: go test ./... — passed
  • Java: ./gradlew test — BUILD SUCCESSFUL
  • Dart: dart test — 52 passed
  • C#: dotnet test — 52 passed
  • Rust: cargo test — 10 passed
  • Each SDK has a dedicated test for missing/empty documentId validation

🤖 Generated with Claude Code

oxoxDev and others added 6 commits March 25, 2026 17:49
Make documentId a required field for IngestMemory, InsertDocument, and
InsertDocumentsBatch. Add runtime validation that rejects empty documentId.
Update tests, example, and integration test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Make documentId a required field in InsertMemoryParams and
InsertDocumentParams with validation in validate(). Always include
documentId in toMap() output. Update tests, example, and integration test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Make documentId required in InsertMemoryParams (via validate()) and
InsertDocumentParams (via required named parameter). Add validation
tests. Update example and integration test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change document_id from std::optional<std::string> to std::string in
InsertMemoryParams. Add validation and always serialize. Update tests,
example, and integration test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add validation for DocumentId in InsertMemoryParams.Validate() and
always include it in ToJsonObject(). Update tests, example, and
integration test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change document_id from Option<String> to String in InsertMemoryParams,
IngestDocumentParams, and BatchDocumentItem. Add validation in
insert_memory, ingest_document, and ingest_documents_batch. Update tests
and examples.

Co-Authored-By: Claude Opus 4.6 <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.

2 participants