Skip to content

feat: enhance sdk-python and docs with document management endpoints - #29

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

feat: enhance sdk-python and docs with document management endpoints#29
senamakel merged 1 commit into
tinyhumansai:mainfrom
YellowSnnowmann:feat/sdk-python

Conversation

@YellowSnnowmann

Copy link
Copy Markdown
Contributor

Overview

Enhances the sdk-python package by adding new document and memory management endpoints to the Python example and client, along with expanded README documentation.


Changes

  • Update packages/sdk-python/example.py to add/demo new endpoints:

    • insert_document
    • insert_documents_batch
    • list_documents
    • get_document
    • delete_document
    • query_memory_context
    • chat_memory_context
    • record_interactions
    • recall_thoughts
    • sync_memory
    • recall_memories
  • Improve error handling and logging in packages/sdk-python/example.py for new features

  • Expand packages/sdk-python/README.md with usage and examples for new methods/endpoints

  • Extend packages/sdk-python/tinyhumansai/client.py to support new API endpoints

  • Update packages/sdk-python/tinyhumansai/types.py default base URL to staging API (for testing)


Testing

  • Run: python example.py
  • From directory: packages/sdk-python

Required environment variables:

  • TINYHUMANS_TOKEN
  • OPENAI_API_KEY (only if using recall_with_llm)

Optional environment variables:

  • TINYHUMANS_WORKSPACE_ID
  • TINYHUMANS_AGENT_ID (required for sync_memory)

Notes

  • sync_memory is optional and backend-specific; it will be skipped unless workspace/agent environment variables are set
  • TINYHUMANS_BASE_URL (if provided) overrides the staging default defined in types.py

…ment management features
- Updated example.py to include new document management endpoints: insert_document, insert_documents_batch, list_documents, get_document, delete_document, query_memory_context, chat_memory_context, record_interactions, recall_thoughts, sync_memory, and recall_memories.
- Improved error handling and logging for new features in example.py.
- Expanded README.md to document new methods and usage examples for document management and memory interactions.
- Updated client.py to support new API endpoints for document and memory management.
- Changed default base URL in types.py to staging API for testing purposes.
@senamakel
senamakel merged commit ce11f2b 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