Uh oh!
There was an error while loading. Please reload this page.
feat: enhance sdk-python and docs with document management endpoints - #29
Merged
Merged
Conversation
…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.
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
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.pyto add/demo new endpoints:Improve error handling and logging in
packages/sdk-python/example.pyfor new featuresExpand
packages/sdk-python/README.mdwith usage and examples for new methods/endpointsExtend
packages/sdk-python/tinyhumansai/client.pyto support new API endpointsUpdate
packages/sdk-python/tinyhumansai/types.pydefault base URL to staging API (for testing)Testing
python example.pypackages/sdk-pythonRequired environment variables:
TINYHUMANS_TOKENOPENAI_API_KEY(only if using recall_with_llm)Optional environment variables:
TINYHUMANS_WORKSPACE_IDTINYHUMANS_AGENT_ID(required for sync_memory)Notes
sync_memoryis optional and backend-specific; it will be skipped unless workspace/agent environment variables are setTINYHUMANS_BASE_URL(if provided) overrides the staging default defined intypes.py