fabricatio 0.2.5.dev3__cp312-cp312-win_amd64.whl → 0.2.5.dev4__cp312-cp312-win_amd64.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.
- fabricatio/_rust.cp312-win_amd64.pyd +0 -0
- fabricatio/models/kwargs_types.py +6 -3
- fabricatio/models/usages.py +10 -0
- {fabricatio-0.2.5.dev3.data → fabricatio-0.2.5.dev4.data}/scripts/tdown.exe +0 -0
- {fabricatio-0.2.5.dev3.dist-info → fabricatio-0.2.5.dev4.dist-info}/METADATA +1 -1
- {fabricatio-0.2.5.dev3.dist-info → fabricatio-0.2.5.dev4.dist-info}/RECORD +8 -8
- {fabricatio-0.2.5.dev3.dist-info → fabricatio-0.2.5.dev4.dist-info}/WHEEL +0 -0
- {fabricatio-0.2.5.dev3.dist-info → fabricatio-0.2.5.dev4.dist-info}/licenses/LICENSE +0 -0
Binary file
|
@@ -74,7 +74,8 @@ class ValidateKwargs[T](LLMKwargs):
|
|
74
74
|
max_validations: NotRequired[PositiveInt]
|
75
75
|
|
76
76
|
|
77
|
-
|
77
|
+
# noinspection PyTypedDict
|
78
|
+
class GenerateKwargs[T](ValidateKwargs[T]):
|
78
79
|
"""Arguments for content generation operations.
|
79
80
|
|
80
81
|
Extends ValidateKwargs with parameters specific to text generation,
|
@@ -84,7 +85,8 @@ class GenerateKwargs(ValidateKwargs):
|
|
84
85
|
system_message: NotRequired[str]
|
85
86
|
|
86
87
|
|
87
|
-
|
88
|
+
# noinspection PyTypedDict
|
89
|
+
class ReviewKwargs[T](GenerateKwargs[T]):
|
88
90
|
"""Arguments for content review operations.
|
89
91
|
|
90
92
|
Extends GenerateKwargs with parameters for evaluating content against
|
@@ -95,7 +97,8 @@ class ReviewKwargs(GenerateKwargs):
|
|
95
97
|
criteria: NotRequired[Set[str]]
|
96
98
|
|
97
99
|
|
98
|
-
|
100
|
+
# noinspection PyTypedDict
|
101
|
+
class ChooseKwargs[T](GenerateKwargs[T]):
|
99
102
|
"""Arguments for selection operations.
|
100
103
|
|
101
104
|
Extends GenerateKwargs with parameters for selecting among options,
|
fabricatio/models/usages.py
CHANGED
@@ -188,6 +188,16 @@ class LLMUsage(ScopedConfig):
|
|
188
188
|
system_message: str = "",
|
189
189
|
**kwargs: Unpack[LLMKwargs],
|
190
190
|
) -> T: ...
|
191
|
+
@overload
|
192
|
+
async def aask_validate[T](
|
193
|
+
self,
|
194
|
+
question: str,
|
195
|
+
validator: Callable[[str], T | None],
|
196
|
+
default: None = None,
|
197
|
+
max_validations: PositiveInt = 2,
|
198
|
+
system_message: str = "",
|
199
|
+
**kwargs: Unpack[LLMKwargs],
|
200
|
+
) -> Optional[T]: ...
|
191
201
|
|
192
202
|
async def aask_validate[T](
|
193
203
|
self,
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
|
-
fabricatio-0.2.5.
|
2
|
-
fabricatio-0.2.5.
|
3
|
-
fabricatio-0.2.5.
|
1
|
+
fabricatio-0.2.5.dev4.dist-info/METADATA,sha256=qH-LvoH22Lf4rR2kk29GsYDKpDq1PLuD9m1HCet01rk,8861
|
2
|
+
fabricatio-0.2.5.dev4.dist-info/WHEEL,sha256=tpW5AN9B-9qsM9WW2FXG2r193YXiqexDadpKp0A2daI,96
|
3
|
+
fabricatio-0.2.5.dev4.dist-info/licenses/LICENSE,sha256=do7J7EiCGbq0QPbMAL_FqLYufXpHnCnXBOuqVPwSV8Y,1088
|
4
4
|
fabricatio/actions/article.py,sha256=PFO7QJw0SXryReA2kGJgd35NeIxCodpudNQxlXNg8xA,2785
|
5
5
|
fabricatio/actions/output.py,sha256=RWXulsfN_qrCFik0B6lGwXf6MMtgK3CaF1ENbK0l85o,684
|
6
6
|
fabricatio/actions/rag.py,sha256=lZfw9SZ8oxbWPK_bvWsEpVkWJbGP8HUnlNbxLh11Wdg,821
|
@@ -20,11 +20,11 @@ fabricatio/models/action.py,sha256=XT7u3fDw7EdN___qsbUGGdhj8-RnNEpqbLbmST8SC-g,6
|
|
20
20
|
fabricatio/models/events.py,sha256=pt-WkFhhA5SXmp6-3Vb_o_7I5xbKoTCJ22GAK7YYwpA,4101
|
21
21
|
fabricatio/models/extra.py,sha256=1vmtnE0n15ZSRVKmPmtChA34y0y-G07uTywXek_oGzs,7463
|
22
22
|
fabricatio/models/generic.py,sha256=wzFoZIUDrrk1eXEpjw2a-T48c9_dB7KTVUnYuMDstKo,12560
|
23
|
-
fabricatio/models/kwargs_types.py,sha256=
|
23
|
+
fabricatio/models/kwargs_types.py,sha256=8OvlMzK5glmzCX1lA0a-2lunT_W6oIhHRR0KZtjSdHY,5017
|
24
24
|
fabricatio/models/role.py,sha256=M9JVDmLLvJhY3G0hHMdcs1ywJ0eoAb6CLYbzhv-l_8s,1839
|
25
25
|
fabricatio/models/task.py,sha256=sbC0EAZC4rPL2GCJ9i9GlFcZUJ96g39SQ2QP8bbgdqs,10492
|
26
26
|
fabricatio/models/tool.py,sha256=JdpldDqlXZ0TZc9eh6IrdHB3FAldEPxsSxeSm4naJhA,7025
|
27
|
-
fabricatio/models/usages.py,sha256=
|
27
|
+
fabricatio/models/usages.py,sha256=u-MfB2B-oJp6rBnV8nN04O24evyzCkB_G5EAEHdBf6U,26779
|
28
28
|
fabricatio/models/utils.py,sha256=QI3bYrKBbzLbKvyzVrZXGcWq3trOOTE-hQAC_WNvjMg,4457
|
29
29
|
fabricatio/parser.py,sha256=qNYshYtuwbZHZG1kQKYYHZOzYhDO4DZJJYh2k4Imz3s,4911
|
30
30
|
fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -36,6 +36,6 @@ fabricatio/workflows/rag.py,sha256=-YYp2tlE9Vtfgpg6ROpu6QVO8j8yVSPa6yDzlN3qVxs,5
|
|
36
36
|
fabricatio/_rust.pyi,sha256=pI747rOciunGuQZDvfC3O0A6pLyOiaHSa3A5kHuQO0E,3169
|
37
37
|
fabricatio/_rust_instances.py,sha256=RybIzB2kCoMeU_1kMm2JTz1ka8i524hAra66joDf--s,314
|
38
38
|
fabricatio/__init__.py,sha256=22KLRAVoJZUrK7gsDjU1NfiLCnZtV-qgx6TO2YMbuH8,1930
|
39
|
-
fabricatio/_rust.cp312-win_amd64.pyd,sha256=
|
40
|
-
fabricatio-0.2.5.
|
41
|
-
fabricatio-0.2.5.
|
39
|
+
fabricatio/_rust.cp312-win_amd64.pyd,sha256=tDlqCUS34WV9cNuXnd6OMsJGHuptnodQY3WAROnPF6o,1816064
|
40
|
+
fabricatio-0.2.5.dev4.data/scripts/tdown.exe,sha256=TUHa62i_6gpAYxQ1qImUl3araoORpKEAOscXPRF-DjQ,3395072
|
41
|
+
fabricatio-0.2.5.dev4.dist-info/RECORD,,
|
File without changes
|
File without changes
|