beekeeper-core 1.0.12__py3-none-any.whl → 1.0.12.post1__py3-none-any.whl
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.
beekeeper/core/prompts/base.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from typing import Optional
|
|
1
2
|
from beekeeper.core.prompts.utils import SafeFormatter
|
|
2
3
|
from pydantic import BaseModel
|
|
3
4
|
|
|
@@ -23,7 +24,12 @@ class PromptTemplate(BaseModel):
|
|
|
23
24
|
super().__init__(template=template)
|
|
24
25
|
|
|
25
26
|
@classmethod
|
|
26
|
-
def from_value(
|
|
27
|
+
def from_value(
|
|
28
|
+
cls, value: Optional[str | "PromptTemplate"]
|
|
29
|
+
) -> Optional["PromptTemplate"]:
|
|
30
|
+
if value is None:
|
|
31
|
+
return None
|
|
32
|
+
|
|
27
33
|
if isinstance(value, cls):
|
|
28
34
|
return value
|
|
29
35
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: beekeeper-core
|
|
3
|
-
Version: 1.0.12
|
|
3
|
+
Version: 1.0.12.post1
|
|
4
4
|
Summary: Load any data in one line of code and connect with AI applications
|
|
5
5
|
Project-URL: Repository, https://github.com/beekeeper-ai/beekeeper
|
|
6
6
|
Author-email: Leonardo Furnielis <leonardofurnielis@outlook.com>
|
|
@@ -22,7 +22,7 @@ beekeeper/core/observers/__init__.py,sha256=Z5sDAajai4QLdGIrjq-vr5eJEBhriMMCw5u4
|
|
|
22
22
|
beekeeper/core/observers/base.py,sha256=y1SE_0WQusKhVomFuZCkk42Jb7r93ZS6r_j8vs_Y_r4,1203
|
|
23
23
|
beekeeper/core/observers/types.py,sha256=s-4tB8OdeaCUIRvi6FLuib2u4Yl9evqQdCundNREXQY,217
|
|
24
24
|
beekeeper/core/prompts/__init__.py,sha256=kFp2N5giNEMA4hc3eZqstqaZu0c0BRAnP0NuF5aUaqI,85
|
|
25
|
-
beekeeper/core/prompts/base.py,sha256=
|
|
25
|
+
beekeeper/core/prompts/base.py,sha256=EZ_x52kDsR-7cMmu1qPoHyu0446yFpdVcfAIIY88EI8,1238
|
|
26
26
|
beekeeper/core/prompts/utils.py,sha256=Cqpefzzxd6DxPbOKVyUCsIs-ibBGKhYU6ppYqhPT9vM,1378
|
|
27
27
|
beekeeper/core/readers/__init__.py,sha256=vPCmWmK92LYL-R0LFcPqjOKFHqxW0xUP5r6M9GNxoqY,157
|
|
28
28
|
beekeeper/core/readers/base.py,sha256=46VRNkCmKP2RWJT1-kRTSHG9SjY1xbhKUy1a7-OrgPg,418
|
|
@@ -38,6 +38,6 @@ beekeeper/core/tools/base.py,sha256=A6TXn7g3DAZMREYAobfVlyOBuJn_8mIeCByc5412L9Y,
|
|
|
38
38
|
beekeeper/core/utils/pairwise.py,sha256=cpi8GItPFSYP4sjB5zgTFHi6JfBVWsMnNu8koA9VYQU,536
|
|
39
39
|
beekeeper/core/vector_stores/__init__.py,sha256=R5SRG3YpOZqRwIfBLB8KVV6FALWqhIzIhCjRGj-bwPc,93
|
|
40
40
|
beekeeper/core/vector_stores/base.py,sha256=YFW1ioZbFEcJovAh0ZCpHnj0eiXtZvqy_pj2lxPS92k,1652
|
|
41
|
-
beekeeper_core-1.0.12.dist-info/METADATA,sha256=
|
|
42
|
-
beekeeper_core-1.0.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
43
|
-
beekeeper_core-1.0.12.dist-info/RECORD,,
|
|
41
|
+
beekeeper_core-1.0.12.post1.dist-info/METADATA,sha256=7AVnXsB891daoNzCr4jKefWltAIiYQNglQ4Mv8nBtW0,1337
|
|
42
|
+
beekeeper_core-1.0.12.post1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
43
|
+
beekeeper_core-1.0.12.post1.dist-info/RECORD,,
|
|
File without changes
|