cheshirecat-python-sdk 1.8.0__tar.gz → 1.8.1__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.
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/PKG-INFO +1 -1
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/builders/__init__.py +1 -1
- cheshirecat_python_sdk-1.8.1/cheshirecat_python_sdk/builders/memory.py +25 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/builders/why.py +8 -8
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/dtos.py +1 -5
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/pyproject.toml +1 -1
- cheshirecat_python_sdk-1.8.0/cheshirecat_python_sdk/builders/memory.py +0 -44
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/.gitignore +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/LICENSE +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/Makefile +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/README.md +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/__init__.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/builders/base.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/builders/settings_input.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/client.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/clients/__init__.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/clients/http_client.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/clients/websocket_client.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/configuration.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/__init__.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/admins.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/agentic_workflow.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/auth.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/auth_handler.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/base.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/chunker.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/conversation.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/custom_endpoint.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/embedder.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/file_manager.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/health_check.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/large_language_model.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/memory.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/message.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/plugins.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/rabbit_hole.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/users.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/utils.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/endpoints/vector_database.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/enums.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/api/admins.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/api/conversations.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/api/factories.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/api/file_managers.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/api/memories.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/api/messages.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/api/nested/memories.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/api/nested/plugins.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/api/plugins.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/api/rabbit_holes.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/api/tokens.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/api/users.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/utils.py +0 -0
- {cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/requirements.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cheshirecat-python-sdk
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.1
|
|
4
4
|
Summary: Python SDK for the Cloud-ready fork of the Cheshire Cat
|
|
5
5
|
Project-URL: Repository, https://github.com/matteocacciola/cheshirecat-python-sdk
|
|
6
6
|
Project-URL: Documentation, https://github.com/matteocacciola/cheshirecat-python-sdk#README
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
from cheshirecat_python_sdk.builders.memory import
|
|
1
|
+
from cheshirecat_python_sdk.builders.memory import MemoryPointBuilder
|
|
2
2
|
from cheshirecat_python_sdk.builders.settings_input import SettingInputBuilder
|
|
3
3
|
from cheshirecat_python_sdk.builders.why import WhyBuilder
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from typing import Dict, Any
|
|
2
|
+
|
|
3
|
+
from cheshirecat_python_sdk.builders.base import BaseBuilder
|
|
4
|
+
from cheshirecat_python_sdk.models.dtos import MemoryPoint
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MemoryPointBuilder(BaseBuilder):
|
|
8
|
+
def __init__(self):
|
|
9
|
+
self.content: str = ""
|
|
10
|
+
self.metadata: Dict[str, Any] = {}
|
|
11
|
+
|
|
12
|
+
@staticmethod
|
|
13
|
+
def create():
|
|
14
|
+
return MemoryPointBuilder()
|
|
15
|
+
|
|
16
|
+
def set_content(self, content: str):
|
|
17
|
+
self.content = content
|
|
18
|
+
return self
|
|
19
|
+
|
|
20
|
+
def set_metadata(self, metadata: Dict[str, Any]):
|
|
21
|
+
self.metadata = metadata
|
|
22
|
+
return self
|
|
23
|
+
|
|
24
|
+
def build(self):
|
|
25
|
+
return MemoryPoint(self.content, self.metadata)
|
{cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/builders/why.py
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
from typing import
|
|
1
|
+
from typing import List
|
|
2
2
|
|
|
3
3
|
from cheshirecat_python_sdk.builders.base import BaseBuilder
|
|
4
|
-
from cheshirecat_python_sdk.models.dtos import
|
|
4
|
+
from cheshirecat_python_sdk.models.dtos import Why
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class WhyBuilder(BaseBuilder):
|
|
8
8
|
def __init__(self):
|
|
9
9
|
self.input: str | None = None
|
|
10
|
-
self.intermediate_steps:
|
|
11
|
-
self.memory:
|
|
10
|
+
self.intermediate_steps: List | None = []
|
|
11
|
+
self.memory: List | None = []
|
|
12
12
|
|
|
13
13
|
@staticmethod
|
|
14
14
|
def create() -> "WhyBuilder":
|
|
@@ -18,12 +18,12 @@ class WhyBuilder(BaseBuilder):
|
|
|
18
18
|
self.input = input
|
|
19
19
|
return self
|
|
20
20
|
|
|
21
|
-
def set_intermediate_steps(self, intermediate_steps:
|
|
22
|
-
self.intermediate_steps = intermediate_steps
|
|
21
|
+
def set_intermediate_steps(self, intermediate_steps: List | None = None) -> "WhyBuilder":
|
|
22
|
+
self.intermediate_steps = intermediate_steps or []
|
|
23
23
|
return self
|
|
24
24
|
|
|
25
|
-
def set_memory(self, memory:
|
|
26
|
-
self.memory = memory
|
|
25
|
+
def set_memory(self, memory: List | None = None) -> "WhyBuilder":
|
|
26
|
+
self.memory = memory or []
|
|
27
27
|
return self
|
|
28
28
|
|
|
29
29
|
def build(self) -> Why:
|
{cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/models/dtos.py
RENAMED
|
@@ -2,10 +2,6 @@ from typing import Dict, List, Any
|
|
|
2
2
|
from pydantic import BaseModel, Field
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
class Memory(BaseModel):
|
|
6
|
-
declarative: List | None = Field(default_factory=list)
|
|
7
|
-
|
|
8
|
-
|
|
9
5
|
class MemoryPoint(BaseModel):
|
|
10
6
|
content: str
|
|
11
7
|
metadata: Dict[str, Any]
|
|
@@ -29,4 +25,4 @@ class SettingInput(BaseModel):
|
|
|
29
25
|
class Why(BaseModel):
|
|
30
26
|
input: str | None = None
|
|
31
27
|
intermediate_steps: List | None = Field(default_factory=list)
|
|
32
|
-
memory:
|
|
28
|
+
memory: List | None = Field(default_factory=list)
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
from typing import Dict, Any
|
|
2
|
-
|
|
3
|
-
from cheshirecat_python_sdk.builders.base import BaseBuilder
|
|
4
|
-
from cheshirecat_python_sdk.models.dtos import Memory, MemoryPoint
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class MemoryBuilder(BaseBuilder):
|
|
8
|
-
def __init__(self):
|
|
9
|
-
self.declarative: Dict[str, Any] | None = None
|
|
10
|
-
|
|
11
|
-
@staticmethod
|
|
12
|
-
def create():
|
|
13
|
-
return MemoryBuilder()
|
|
14
|
-
|
|
15
|
-
def set_declarative(self, declarative: Dict[str, Any] | None = None):
|
|
16
|
-
self.declarative = declarative or {}
|
|
17
|
-
return self
|
|
18
|
-
|
|
19
|
-
def build(self):
|
|
20
|
-
memory = Memory()
|
|
21
|
-
memory.declarative = self.declarative
|
|
22
|
-
|
|
23
|
-
return memory
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class MemoryPointBuilder(BaseBuilder):
|
|
27
|
-
def __init__(self):
|
|
28
|
-
self.content: str = ""
|
|
29
|
-
self.metadata: Dict[str, Any] = {}
|
|
30
|
-
|
|
31
|
-
@staticmethod
|
|
32
|
-
def create():
|
|
33
|
-
return MemoryPointBuilder()
|
|
34
|
-
|
|
35
|
-
def set_content(self, content: str):
|
|
36
|
-
self.content = content
|
|
37
|
-
return self
|
|
38
|
-
|
|
39
|
-
def set_metadata(self, metadata: Dict[str, Any]):
|
|
40
|
-
self.metadata = metadata
|
|
41
|
-
return self
|
|
42
|
-
|
|
43
|
-
def build(self):
|
|
44
|
-
return MemoryPoint(self.content, self.metadata)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/enums.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cheshirecat_python_sdk-1.8.0 → cheshirecat_python_sdk-1.8.1}/cheshirecat_python_sdk/utils.py
RENAMED
|
File without changes
|
|
File without changes
|