Uh oh!
There was an error while loading. Please reload this page.
feat: expand TypeScript SDK with memory chat, thoughts, interactions, and document endpoints - #28
Merged
Conversation
- Updated README.md to include additional API functionalities: chat, thoughts, and interactions. - Expanded .gitignore to cover more file types and directories, including Python and Rust artifacts, improving project cleanliness. - Added new interfaces and methods in src/index.ts for chat and sync functionalities, enhancing SDK capabilities. - Introduced tests for the new chatMemory and listDocuments methods to ensure proper functionality.
4 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
Updates the sdk-typescript package to expose additional Alphahuman Memory API capabilities, including:
Also includes matching documentation and tests.
Changes
Add
client.chatMemory(POST /v1/memory/chat)Add
client.recallThoughts(POST /v1/memory/memories/thoughts)Add
client.syncMemory(POST /v1/memory/sync)Add interaction-related endpoints:
client.interactMemory(POST /v1/memory/interact)client.recordInteractions(POST /v1/memory/interactions)Add conversation/context chat:
client.chatMemoryContext(POST /v1/memory/conversations)Add document endpoints:
client.listDocuments(GET /v1/memory/documents)Update
packages/sdk-typescript/README.mdto document new endpointsExpand
packages/sdk-typescript/.gitignoreto ignore additional artifact types/directoriesAdd unit tests for:
chatMemorylistDocumentsTesting
npm testpackages/sdk-typescript