fabricatio 0.4.5.dev3__cp312-cp312-manylinux_2_34_x86_64.whl → 0.5.0__cp312-cp312-manylinux_2_34_x86_64.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.
@@ -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
+ ]
@@ -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"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fabricatio
3
- Version: 0.4.5.dev3
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
- import asyncio
121
- from fabricatio import Action, Role, Task, logger, WorkFlow, Event
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
- name: str = "hello"
130
+ """Action that says hello."""
131
+
127
132
  output_key: str = "task_output"
128
133
 
129
- async def _execute(self, task_input: Task[str], **_) -> Any:
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
- task = Task(name="say hello", goals=["say hello"], description="say hello to the world")
143
- result = await task.delegate("talk")
144
- logger.success(f"Result: {result}")
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,sha256=aQF9qrdNEftHmIId3K0WUxdAx-THEoUsq36qe0q29JE,5130216
2
+ fabricatio-0.5.0.dist-info/METADATA,sha256=irhY_pSvQQXXLUqJDJg5IHOhp-jAFYc7sxEcusqSbLI,7282
3
+ fabricatio-0.5.0.dist-info/WHEEL,sha256=MegmbKpmfItx05_jJ5VsxUKelo4nKw5OVeAu8XxdjGw,108
4
+ fabricatio-0.5.0.dist-info/licenses/LICENSE,sha256=yDZaTLnOi03bi3Dk6f5IjhLUc5old2yOsihHWU0z-i0,1067
5
+ fabricatio/__init__.py,sha256=RuDz5JHlGrYWvMm9H08prJxhwVQFr6-SpKWA3FB9JWg,694
6
+ fabricatio/actions/__init__.py,sha256=i-LBb4pF29XVnaKfdMJwcF914WPu2B_DdZVfba_T4kg,1990
7
+ fabricatio/capabilities/__init__.py,sha256=jFjEAlWYJcl60_hGogmT8s9RClil5xK-YiGgnk9xeh4,2090
8
+ fabricatio/models/__init__.py,sha256=bbfRfQhqXcgDXtGQOW2hGgVViOC_wOWylhy9kTQ4OwA,1551
9
+ fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ fabricatio/rust.cpython-312-x86_64-linux-gnu.so,sha256=yarxFV1iqORd-FIDk369l9C2xby-05BChhr4x3xIF3E,392864
11
+ fabricatio/toolboxes/__init__.py,sha256=_Snn7bB7pBsRYNgqzBzVL8jgka0FdgK6Lme8UnDsBjM,386
12
+ fabricatio/toolboxes/arithmetic.py,sha256=kiX83WRfFyqNavpz9Wd0fPxa2HQbi_VTMRNp4B8ErNQ,1312
13
+ fabricatio/toolboxes/fs.py,sha256=lipQP6I8HR08ujucsbMR_qBHxlLzMu4O38qPFitZtHc,715
14
+ fabricatio/workflows/__init__.py,sha256=sr-0tgpNPdN5t2pDQa-gp-KUE7K0QDtjP9QGvWYLZ9A,305
15
+ fabricatio-0.5.0.dist-info/RECORD,,
@@ -1,15 +0,0 @@
1
- fabricatio-0.4.5.dev3.data/scripts/tdown,sha256=VUCU-sDE4QFyHBQvzvSRbzcxZjTer393AEADjxV30ek,5111104
2
- fabricatio-0.4.5.dev3.dist-info/METADATA,sha256=8Mj4r1oWVmIuVsYf_1SdvtOzTcxBPKRtZ_Xp1rSCrVA,7374
3
- fabricatio-0.4.5.dev3.dist-info/WHEEL,sha256=MegmbKpmfItx05_jJ5VsxUKelo4nKw5OVeAu8XxdjGw,108
4
- fabricatio-0.4.5.dev3.dist-info/licenses/LICENSE,sha256=yDZaTLnOi03bi3Dk6f5IjhLUc5old2yOsihHWU0z-i0,1067
5
- fabricatio/__init__.py,sha256=RuDz5JHlGrYWvMm9H08prJxhwVQFr6-SpKWA3FB9JWg,694
6
- fabricatio/actions/__init__.py,sha256=i-LBb4pF29XVnaKfdMJwcF914WPu2B_DdZVfba_T4kg,1990
7
- fabricatio/capabilities/__init__.py,sha256=o8WD6NVPhA4Hd5JViRVDT7cHRpdcZXeVdZC4H2dO-dc,1866
8
- fabricatio/models/__init__.py,sha256=56QmmRdxGjrHWqK4RargA7YKSToOtn0-oRrudt-ibrU,1421
9
- fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- fabricatio/rust.cpython-312-x86_64-linux-gnu.so,sha256=eICQGKSlGgtmLvom-ybJrMCCdo8hMdt8ReZHC9cue1Q,392864
11
- fabricatio/toolboxes/__init__.py,sha256=_Snn7bB7pBsRYNgqzBzVL8jgka0FdgK6Lme8UnDsBjM,386
12
- fabricatio/toolboxes/arithmetic.py,sha256=kiX83WRfFyqNavpz9Wd0fPxa2HQbi_VTMRNp4B8ErNQ,1312
13
- fabricatio/toolboxes/fs.py,sha256=lipQP6I8HR08ujucsbMR_qBHxlLzMu4O38qPFitZtHc,715
14
- fabricatio/workflows/__init__.py,sha256=sr-0tgpNPdN5t2pDQa-gp-KUE7K0QDtjP9QGvWYLZ9A,305
15
- fabricatio-0.4.5.dev3.dist-info/RECORD,,