Uh oh!
There was an error while loading. Please reload this page.
feat: require documentId for SDK inserts and add update e2e test/examples - #38
Merged
Merged
Conversation
… 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.
6 tasks
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 freeto 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.
Overview
Enforces
documentIdas 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
documentIdrequired for:insertMemoryinsertDocumentinsertDocumentsBatch(includes types + runtime validation)
Add end-to-end script:
packages/sdk-typescript/e2e.tsUpdate SDK
README.mdand adjust unit tests for:Testing
Run:
cd packages/sdk-typescript && npm testRun:
cd packages/sdk-typescript && TINYHUMANS_TOKEN=... npx tsx e2e.ts