Skip to content

feat: require documentId for SDK inserts and add update e2e test/examples - #38

Merged
Al629176 merged 3 commits into
tinyhumansai:mainfrom
YellowSnnowmann:feat/sdk
Mar 25, 2026
Merged

feat: require documentId for SDK inserts and add update e2e test/examples#38
Al629176 merged 3 commits into
tinyhumansai:mainfrom
YellowSnnowmann:feat/sdk

Conversation

@YellowSnnowmann

@YellowSnnowmannYellowSnnowmann commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Overview

Enforces documentId as a required field for TypeScript and Python SDK insertion routes and adds an end-to-end script to validate core memory + document workflows.


Changes

  • Make documentId required for:

    • insertMemory
    • insertDocument
    • insertDocumentsBatch
      (includes types + runtime validation)
  • Add end-to-end script:

    • packages/sdk-typescript/e2e.ts
    • Includes ingestion job checks
  • Update SDK README.md and adjust unit tests for:

    • new requirement
    • naming consistency

Testing

  • Run: cd packages/sdk-typescript && npm test

  • Run:
    cd packages/sdk-typescript && TINYHUMANS_TOKEN=... npx tsx e2e.ts

… method to require documentId
- Introduced a new file to implement end-to-end tests for the Alphahuman Memory SDK, covering key functionalities such as inserting, querying, and recalling memories.
- Updated the README to reflect the new SDK name and included detailed usage examples for various operations.
- Enhanced the client interface to require for memory operations, ensuring better validation and consistency across methods.
- Adjusted test cases to validate the new requirement and updated references from to throughout the test suite.
- Improved error handling and response validation in the client methods to align with the updated API structure.
…lient' and remove unused document_id field in client tests for improved clarity and consistency.
…ations
- Introduced a function to streamline error handling for memory operations.
- Updated the example to use the new requirement for document insertion.
- Enhanced the README to clarify SDK capabilities, including core memory, documents, and ingestion jobs.
- Improved examples for inserting and recalling memories, ensuring consistency with the updated API structure.
@YellowSnnowmannYellowSnnowmann changed the title feat: require documentId for SDK inserts and add update e2e testfeat: require documentId for SDK inserts and add update e2e test/examplesMar 25, 2026
@Al629176
Al629176 merged commit 19b1aaa into tinyhumansai:mainMar 25, 2026
Sign up for freeto 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

@YellowSnnowmann@Al629176