Skip to content

feat: expand TypeScript SDK with memory chat, thoughts, interactions, and document endpoints - #28

Merged
senamakel merged 1 commit into
tinyhumansai:mainfrom
YellowSnnowmann:feat/sdk-ts
Mar 20, 2026
Merged

feat: expand TypeScript SDK with memory chat, thoughts, interactions, and document endpoints#28
senamakel merged 1 commit into
tinyhumansai:mainfrom
YellowSnnowmann:feat/sdk-ts

Conversation

@YellowSnnowmann

Copy link
Copy Markdown
Contributor

Overview

Updates the sdk-typescript package to expose additional Alphahuman Memory API capabilities, including:

  • chat
  • thoughts
  • interactions
  • sync
  • documents

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)
    • Include related document methods
  • Update packages/sdk-typescript/README.md to document new endpoints

  • Expand packages/sdk-typescript/.gitignore to ignore additional artifact types/directories

  • Add unit tests for:

    • chatMemory
    • listDocuments

Testing

  • Run: npm test
  • In directory: packages/sdk-typescript

- 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.
@senamakel
senamakel merged commit 8efc4b7 into tinyhumansai:mainMar 20, 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@senamakel