kyros-sdk 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of kyros-sdk might be problematic. Click here for more details.
- kyros_sdk-0.1.0/.gitignore +141 -0
- kyros_sdk-0.1.0/CHANGELOG.md +114 -0
- kyros_sdk-0.1.0/LICENSE +21 -0
- kyros_sdk-0.1.0/PKG-INFO +621 -0
- kyros_sdk-0.1.0/README.md +563 -0
- kyros_sdk-0.1.0/kyros/__init__.py +133 -0
- kyros_sdk-0.1.0/kyros/cli.py +161 -0
- kyros_sdk-0.1.0/kyros/client.py +823 -0
- kyros_sdk-0.1.0/kyros/debug.py +479 -0
- kyros_sdk-0.1.0/kyros/exceptions.py +187 -0
- kyros_sdk-0.1.0/kyros/integrations/__init__.py +1 -0
- kyros_sdk-0.1.0/kyros/integrations/autogen.py +73 -0
- kyros_sdk-0.1.0/kyros/integrations/crewai.py +94 -0
- kyros_sdk-0.1.0/kyros/integrations/langchain.py +75 -0
- kyros_sdk-0.1.0/kyros/integrations/llama_index.py +92 -0
- kyros_sdk-0.1.0/kyros/proxy.py +484 -0
- kyros_sdk-0.1.0/kyros/testing.py +625 -0
- kyros_sdk-0.1.0/kyros/types.py +207 -0
- kyros_sdk-0.1.0/pyproject.toml +109 -0
- kyros_sdk-0.1.0/tests/__init__.py +1 -0
- kyros_sdk-0.1.0/tests/conftest.py +34 -0
- kyros_sdk-0.1.0/tests/test_client.py +121 -0
- kyros_sdk-0.1.0/tests/test_debug.py +275 -0
- kyros_sdk-0.1.0/tests/test_proxy.py +452 -0
- kyros_sdk-0.1.0/uv.lock +5014 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
*.manifest
|
|
32
|
+
*.spec
|
|
33
|
+
|
|
34
|
+
# Installer logs
|
|
35
|
+
pip-log.txt
|
|
36
|
+
pip-delete-this-directory.txt
|
|
37
|
+
|
|
38
|
+
# Unit test / coverage reports
|
|
39
|
+
htmlcov/
|
|
40
|
+
.tox/
|
|
41
|
+
.nox/
|
|
42
|
+
.coverage
|
|
43
|
+
.coverage.*
|
|
44
|
+
.cache
|
|
45
|
+
nosetests.xml
|
|
46
|
+
coverage.xml
|
|
47
|
+
*.cover
|
|
48
|
+
*.py,cover
|
|
49
|
+
.hypothesis/
|
|
50
|
+
.pytest_cache/
|
|
51
|
+
|
|
52
|
+
# Translations
|
|
53
|
+
*.mo
|
|
54
|
+
*.pot
|
|
55
|
+
|
|
56
|
+
# Django stuff:
|
|
57
|
+
*.log
|
|
58
|
+
local_settings.py
|
|
59
|
+
db.sqlite3
|
|
60
|
+
db.sqlite3-journal
|
|
61
|
+
|
|
62
|
+
# Flask stuff:
|
|
63
|
+
instance/
|
|
64
|
+
.webassets-cache
|
|
65
|
+
|
|
66
|
+
# Scrapy stuff:
|
|
67
|
+
.scrapy
|
|
68
|
+
|
|
69
|
+
# Sphinx documentation
|
|
70
|
+
docs/_build/
|
|
71
|
+
|
|
72
|
+
# PyBuilder
|
|
73
|
+
target/
|
|
74
|
+
|
|
75
|
+
# Jupyter Notebook
|
|
76
|
+
.ipynb_checkpoints
|
|
77
|
+
|
|
78
|
+
# IPython
|
|
79
|
+
profile_default/
|
|
80
|
+
ipython_config.py
|
|
81
|
+
|
|
82
|
+
# pyenv
|
|
83
|
+
.python-version
|
|
84
|
+
|
|
85
|
+
# pipenv
|
|
86
|
+
Pipfile.lock
|
|
87
|
+
|
|
88
|
+
# PEP 582
|
|
89
|
+
__pypackages__/
|
|
90
|
+
|
|
91
|
+
# Celery stuff
|
|
92
|
+
celerybeat-schedule
|
|
93
|
+
celerybeat.pid
|
|
94
|
+
|
|
95
|
+
# SageMath parsed files
|
|
96
|
+
*.sage.py
|
|
97
|
+
|
|
98
|
+
# Environments
|
|
99
|
+
.env
|
|
100
|
+
.venv
|
|
101
|
+
env/
|
|
102
|
+
venv/
|
|
103
|
+
ENV/
|
|
104
|
+
env.bak/
|
|
105
|
+
venv.bak/
|
|
106
|
+
|
|
107
|
+
# Spyder project settings
|
|
108
|
+
.spyderproject
|
|
109
|
+
.spyproject
|
|
110
|
+
|
|
111
|
+
# Rope project settings
|
|
112
|
+
.ropeproject
|
|
113
|
+
|
|
114
|
+
# mkdocs documentation
|
|
115
|
+
/site
|
|
116
|
+
|
|
117
|
+
# mypy
|
|
118
|
+
.mypy_cache/
|
|
119
|
+
.dmypy.json
|
|
120
|
+
dmypy.json
|
|
121
|
+
|
|
122
|
+
# Pyre type checker
|
|
123
|
+
.pyre/
|
|
124
|
+
|
|
125
|
+
# Ruff
|
|
126
|
+
.ruff_cache/
|
|
127
|
+
|
|
128
|
+
# IDEs
|
|
129
|
+
.vscode/
|
|
130
|
+
.idea/
|
|
131
|
+
*.swp
|
|
132
|
+
*.swo
|
|
133
|
+
*~
|
|
134
|
+
|
|
135
|
+
# OS
|
|
136
|
+
.DS_Store
|
|
137
|
+
Thumbs.db
|
|
138
|
+
|
|
139
|
+
# Project specific
|
|
140
|
+
*.log
|
|
141
|
+
.pytest_cache/
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the Kyros Python SDK will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.1.0] - 2026-05-03
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
#### Core Features
|
|
13
|
+
- **KyrosClient**: Main client class for interacting with Kyros API
|
|
14
|
+
- **Episodic Memory**: Store and recall conversation history, actions, observations
|
|
15
|
+
- `remember()` - Store episodic memories
|
|
16
|
+
- `recall()` - Search memories with semantic similarity
|
|
17
|
+
- `forget()` - Delete memories (soft delete)
|
|
18
|
+
- **Semantic Memory**: Store and query facts as subject-predicate-object triples
|
|
19
|
+
- `store_fact()` - Store semantic facts
|
|
20
|
+
- `query_facts()` - Query facts with semantic search
|
|
21
|
+
- **Procedural Memory**: Store and match workflows, skills, procedures
|
|
22
|
+
- `store_procedure()` - Store procedures
|
|
23
|
+
- `match_procedure()` - Find matching procedures for tasks
|
|
24
|
+
- `report_outcome()` - Report execution outcomes
|
|
25
|
+
- **Unified Search**: Search across all memory types
|
|
26
|
+
- `search()` - Unified semantic search
|
|
27
|
+
|
|
28
|
+
#### Advanced Features
|
|
29
|
+
- **Causal Reasoning**: Get causal explanations for memories
|
|
30
|
+
- `explain()` - Get causal ancestry chain
|
|
31
|
+
- **Integrity Verification**: Cryptographic integrity proofs
|
|
32
|
+
- `get_memory_proof()` - Get integrity proof for memory
|
|
33
|
+
- `audit_integrity()` - Audit all memories for agent
|
|
34
|
+
- **Memory Decay**: Ebbinghaus forgetting curves
|
|
35
|
+
- `get_staleness_report()` - Get decay statistics
|
|
36
|
+
- `get_decay_rates()` - Get decay rate configuration
|
|
37
|
+
- `set_decay_rates()` - Update decay rates
|
|
38
|
+
- **Export/Import**: Backup and restore memories
|
|
39
|
+
- `export_memories()` - Export all memories
|
|
40
|
+
- `import_memories()` - Import memories
|
|
41
|
+
- **Embedding Migration**: Migrate between embedding models
|
|
42
|
+
- `migrate_embeddings()` - Migrate embeddings
|
|
43
|
+
|
|
44
|
+
#### Framework Integrations
|
|
45
|
+
- **LangChain**: `KyrosChatMemory` for LangChain chains
|
|
46
|
+
- **LlamaIndex**: `KyrosMemory` for LlamaIndex chat engines
|
|
47
|
+
- **AutoGen**: `inject_kyros_memory()` for AutoGen agents
|
|
48
|
+
- **CrewAI**: `get_kyros_tools()` for CrewAI agents
|
|
49
|
+
|
|
50
|
+
#### Error Handling
|
|
51
|
+
- `KyrosError` - Base exception class
|
|
52
|
+
- `AuthenticationError` - 401/403 errors
|
|
53
|
+
- `RateLimitError` - 429 errors with retry metadata
|
|
54
|
+
- `NotFoundError` - 404 errors
|
|
55
|
+
- `ValidationError` - 422 errors
|
|
56
|
+
- `ServerError` - 5xx errors
|
|
57
|
+
- `TimeoutError` - Request timeout errors
|
|
58
|
+
- `ConnectionError` - Connection failure errors
|
|
59
|
+
|
|
60
|
+
#### Type Safety
|
|
61
|
+
- Full Pydantic models for all request/response types
|
|
62
|
+
- Type hints throughout the codebase
|
|
63
|
+
- Strict MyPy type checking
|
|
64
|
+
|
|
65
|
+
#### Developer Experience
|
|
66
|
+
- Comprehensive documentation
|
|
67
|
+
- Code examples for all features
|
|
68
|
+
- Context manager support (`with` statement)
|
|
69
|
+
- Environment variable configuration
|
|
70
|
+
- Custom base URL support (for self-hosted)
|
|
71
|
+
- Configurable timeout
|
|
72
|
+
|
|
73
|
+
### Technical Details
|
|
74
|
+
|
|
75
|
+
- **Python Version**: 3.11+
|
|
76
|
+
- **Dependencies**: httpx, pydantic
|
|
77
|
+
- **HTTP Client**: httpx (modern, async-capable)
|
|
78
|
+
- **Data Validation**: Pydantic v2
|
|
79
|
+
- **Type Checking**: MyPy strict mode
|
|
80
|
+
- **Code Quality**: Ruff linting and formatting
|
|
81
|
+
|
|
82
|
+
### Documentation
|
|
83
|
+
|
|
84
|
+
- Comprehensive README with examples
|
|
85
|
+
- API reference documentation
|
|
86
|
+
- Framework integration guides
|
|
87
|
+
- Error handling guide
|
|
88
|
+
- Development setup guide
|
|
89
|
+
|
|
90
|
+
### Testing
|
|
91
|
+
|
|
92
|
+
- Unit tests for core functionality
|
|
93
|
+
- Integration tests for API endpoints
|
|
94
|
+
- Test fixtures and utilities
|
|
95
|
+
- pytest configuration
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## [Unreleased]
|
|
100
|
+
|
|
101
|
+
### Planned Features
|
|
102
|
+
|
|
103
|
+
- Async client support (`AsyncKyrosClient`)
|
|
104
|
+
- Batch operations for bulk memory storage
|
|
105
|
+
- Streaming responses for large exports
|
|
106
|
+
- Retry logic with exponential backoff
|
|
107
|
+
- Request/response logging
|
|
108
|
+
- Metrics collection
|
|
109
|
+
- Connection pooling
|
|
110
|
+
- More framework integrations (Haystack, Semantic Kernel, etc.)
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
[0.1.0]: https://github.com/Kyros-494/kyros-ai/releases/tag/sdk-v0.1.0
|
kyros_sdk-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kyros
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|