fabricatio 0.4.5.dev3__cp313-cp313-win_amd64.whl → 0.5.0__cp313-cp313-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/capabilities/__init__.py +9 -0
- fabricatio/models/__init__.py +6 -0
- fabricatio/rust.cp313-win_amd64.pyd +0 -0
- fabricatio-0.5.0.data/scripts/tdown.exe +0 -0
- {fabricatio-0.4.5.dev3.dist-info → fabricatio-0.5.0.dist-info}/METADATA +16 -17
- fabricatio-0.5.0.dist-info/RECORD +15 -0
- fabricatio-0.4.5.dev3.data/scripts/tdown.exe +0 -0
- fabricatio-0.4.5.dev3.dist-info/RECORD +0 -15
- {fabricatio-0.4.5.dev3.dist-info → fabricatio-0.5.0.dist-info}/WHEEL +0 -0
- {fabricatio-0.4.5.dev3.dist-info → fabricatio-0.5.0.dist-info}/licenses/LICENSE +0 -0
@@ -61,3 +61,12 @@ if find_spec("fabricatio_question"):
|
|
61
61
|
from fabricatio_question.capabilities.questioning import Questioning
|
62
62
|
|
63
63
|
__all__ += ["Questioning"]
|
64
|
+
|
65
|
+
if find_spec("fabricatio_yue"):
|
66
|
+
from fabricatio_yue.capabilities.genre import SelectGenre
|
67
|
+
from fabricatio_yue.capabilities.lyricize import Lyricize
|
68
|
+
|
69
|
+
__all__ += [
|
70
|
+
"Lyricize",
|
71
|
+
"SelectGenre",
|
72
|
+
]
|
fabricatio/models/__init__.py
CHANGED
@@ -49,3 +49,9 @@ if find_spec("fabricatio_question"):
|
|
49
49
|
from fabricatio_question.models.questions import SelectionQuestion
|
50
50
|
|
51
51
|
__all__ += ["SelectionQuestion"]
|
52
|
+
|
53
|
+
|
54
|
+
if find_spec("fabricatio_yue"):
|
55
|
+
from fabricatio_yue.models.segment import Segment, Song
|
56
|
+
|
57
|
+
__all__ += ["Segment", "Song"]
|
Binary file
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: fabricatio
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.5.0
|
4
4
|
Classifier: License :: OSI Approved :: MIT License
|
5
5
|
Classifier: Programming Language :: Rust
|
6
6
|
Classifier: Programming Language :: Python :: 3.12
|
@@ -10,7 +10,7 @@ Classifier: Framework :: AsyncIO
|
|
10
10
|
Classifier: Framework :: Pydantic :: 2
|
11
11
|
Classifier: Typing :: Typed
|
12
12
|
Requires-Dist: fabricatio-core
|
13
|
-
Requires-Dist: fabricatio[rag,cli,typst,rule,judge,capabilities,actions,improve,digest,memory,anki,question,tagging,improve,rag] ; extra == 'full'
|
13
|
+
Requires-Dist: fabricatio[rag,cli,typst,rule,judge,capabilities,actions,improve,digest,memory,anki,question,tagging,improve,rag,yue] ; extra == 'full'
|
14
14
|
Requires-Dist: fabricatio-anki ; extra == 'anki'
|
15
15
|
Requires-Dist: fabricatio-memory ; extra == 'memory'
|
16
16
|
Requires-Dist: fabricatio-digest ; extra == 'digest'
|
@@ -24,6 +24,7 @@ Requires-Dist: fabricatio-capabilities ; extra == 'capabilities'
|
|
24
24
|
Requires-Dist: fabricatio-actions ; extra == 'actions'
|
25
25
|
Requires-Dist: fabricatio-question ; extra == 'question'
|
26
26
|
Requires-Dist: fabricatio-tagging ; extra == 'tagging'
|
27
|
+
Requires-Dist: fabricatio-yue ; extra == 'yue'
|
27
28
|
Provides-Extra: full
|
28
29
|
Provides-Extra: anki
|
29
30
|
Provides-Extra: memory
|
@@ -38,6 +39,7 @@ Provides-Extra: capabilities
|
|
38
39
|
Provides-Extra: actions
|
39
40
|
Provides-Extra: question
|
40
41
|
Provides-Extra: tagging
|
42
|
+
Provides-Extra: yue
|
41
43
|
License-File: LICENSE
|
42
44
|
Summary: A LLM multi-agent framework.
|
43
45
|
Keywords: ai,agents,multi-agent,llm,pyo3
|
@@ -117,35 +119,32 @@ make bdist
|
|
117
119
|
### Basic Example
|
118
120
|
|
119
121
|
```python
|
120
|
-
|
121
|
-
|
122
|
+
"""Example of a simple hello world program using fabricatio."""
|
123
|
+
|
122
124
|
from typing import Any
|
123
125
|
|
126
|
+
from fabricatio import Action, Event, Role, Task, WorkFlow, logger
|
127
|
+
|
124
128
|
|
125
129
|
class Hello(Action):
|
126
|
-
|
130
|
+
"""Action that says hello."""
|
131
|
+
|
127
132
|
output_key: str = "task_output"
|
128
133
|
|
129
|
-
async def _execute(self,
|
134
|
+
async def _execute(self, **_) -> Any:
|
130
135
|
ret = "Hello fabricatio!"
|
131
136
|
logger.info("executing talk action")
|
132
137
|
return ret
|
133
138
|
|
139
|
+
"""Main function."""
|
134
140
|
|
135
|
-
async def main() -> None:
|
136
|
-
Role(
|
137
|
-
name="talker",
|
138
|
-
description="talker role",
|
139
|
-
registry={Event.quick_instantiate("talk"): WorkFlow(name="talk", steps=(Hello,))}
|
140
|
-
)
|
141
141
|
|
142
|
-
|
143
|
-
|
144
|
-
|
142
|
+
(Role()
|
143
|
+
.register_workflow(Event.quick_instantiate("talk"), WorkFlow(name="talk", steps=(Hello,)))
|
144
|
+
.dispatch())
|
145
145
|
|
146
|
+
assert Task(name="say hello").delegate_blocking("talk") == "Hello fabricatio!"
|
146
147
|
|
147
|
-
if __name__ == "__main__":
|
148
|
-
asyncio.run(main())
|
149
148
|
```
|
150
149
|
|
151
150
|
### Examples
|
@@ -0,0 +1,15 @@
|
|
1
|
+
fabricatio-0.5.0.data/scripts/tdown.exe,sha256=oLTL5QmFj8sdrGvNATfMyvt9xd5lRuSET6mG0pfPdpQ,3819008
|
2
|
+
fabricatio-0.5.0.dist-info/METADATA,sha256=XhEwzqOplFHqQNJ1_Cf924InYR-EwNY2ACD7sOxZHjk,7449
|
3
|
+
fabricatio-0.5.0.dist-info/WHEEL,sha256=ytqMf9WG07PnhABcuCaM0FS5I6L0C68oa4fNwJoBI5k,96
|
4
|
+
fabricatio-0.5.0.dist-info/licenses/LICENSE,sha256=do7J7EiCGbq0QPbMAL_FqLYufXpHnCnXBOuqVPwSV8Y,1088
|
5
|
+
fabricatio/__init__.py,sha256=t2-WdrUOcaDZbGr9PxMvxrOUXpIyXHcNeD1Rzkm4ffY,722
|
6
|
+
fabricatio/actions/__init__.py,sha256=wdgHUFWQtWfvsxAcIFNxtLEw2HVyS0U4cw9x1q5NuhA,2059
|
7
|
+
fabricatio/capabilities/__init__.py,sha256=oXzwXPfTqEpR4_CvcqBYctVKW-qPPrNQO5ltlMHL6_M,2162
|
8
|
+
fabricatio/models/__init__.py,sha256=KthRBjM9H4EMALRMdkxdr8EUFzyf2elM7AnQoGKSxPQ,1608
|
9
|
+
fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
+
fabricatio/rust.cp313-win_amd64.pyd,sha256=fmE0v1rPf-wEs2uta9LMnGcNlIbSP32NhGvoEZdWDSM,174592
|
11
|
+
fabricatio/toolboxes/__init__.py,sha256=fxi4KOg-nmX_cmJCA6tG1j1hav-O95KelO2gCVwdLSY,402
|
12
|
+
fabricatio/toolboxes/arithmetic.py,sha256=tcaHLzGQvnlbxG57IANpZ2vTRO5QpSt366RckBlBIOg,1374
|
13
|
+
fabricatio/toolboxes/fs.py,sha256=fpSfU6YkCVJzSXsbT9WT3m80tH8i6mhLWnu9u7yhV-w,746
|
14
|
+
fabricatio/workflows/__init__.py,sha256=Twr7FaI7scUhz0LOlPktB6lf_k3VdcHNabCjpTsw938,315
|
15
|
+
fabricatio-0.5.0.dist-info/RECORD,,
|
Binary file
|
@@ -1,15 +0,0 @@
|
|
1
|
-
fabricatio-0.4.5.dev3.data/scripts/tdown.exe,sha256=OgAoPdztfMkgTd0dyh4nJRr74WlbbOrfzM6_jmPjXiI,3796480
|
2
|
-
fabricatio-0.4.5.dev3.dist-info/METADATA,sha256=4hNbb6DrU8_YmY-JTk7LqtiW9FdyMXkV45h_ZZaypyw,7544
|
3
|
-
fabricatio-0.4.5.dev3.dist-info/WHEEL,sha256=ytqMf9WG07PnhABcuCaM0FS5I6L0C68oa4fNwJoBI5k,96
|
4
|
-
fabricatio-0.4.5.dev3.dist-info/licenses/LICENSE,sha256=do7J7EiCGbq0QPbMAL_FqLYufXpHnCnXBOuqVPwSV8Y,1088
|
5
|
-
fabricatio/__init__.py,sha256=t2-WdrUOcaDZbGr9PxMvxrOUXpIyXHcNeD1Rzkm4ffY,722
|
6
|
-
fabricatio/actions/__init__.py,sha256=wdgHUFWQtWfvsxAcIFNxtLEw2HVyS0U4cw9x1q5NuhA,2059
|
7
|
-
fabricatio/capabilities/__init__.py,sha256=RY2TVzujQJcJCDJHJEMabVB1AVQBokKnCfdNM_ZnMwo,1929
|
8
|
-
fabricatio/models/__init__.py,sha256=Yx3ZLK8NdrdlLu335iE2QR8E9yIh-wNe_hhgElY7TxQ,1472
|
9
|
-
fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
-
fabricatio/rust.cp313-win_amd64.pyd,sha256=73fT4TYKAuHP-LPVqg1UOEVlzGU4n_5V6F22IoAbSUI,174592
|
11
|
-
fabricatio/toolboxes/__init__.py,sha256=fxi4KOg-nmX_cmJCA6tG1j1hav-O95KelO2gCVwdLSY,402
|
12
|
-
fabricatio/toolboxes/arithmetic.py,sha256=tcaHLzGQvnlbxG57IANpZ2vTRO5QpSt366RckBlBIOg,1374
|
13
|
-
fabricatio/toolboxes/fs.py,sha256=fpSfU6YkCVJzSXsbT9WT3m80tH8i6mhLWnu9u7yhV-w,746
|
14
|
-
fabricatio/workflows/__init__.py,sha256=Twr7FaI7scUhz0LOlPktB6lf_k3VdcHNabCjpTsw938,315
|
15
|
-
fabricatio-0.4.5.dev3.dist-info/RECORD,,
|
File without changes
|
File without changes
|