fabricatio 0.4.1.dev3__cp313-cp313-win_amd64.whl → 0.4.4__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/__init__.py +2 -3
- fabricatio/actions/__init__.py +12 -16
- fabricatio/capabilities/__init__.py +20 -4
- fabricatio/models/__init__.py +20 -4
- fabricatio/rust.cp313-win_amd64.pyd +0 -0
- fabricatio/workflows/__init__.py +2 -5
- fabricatio-0.4.4.data/scripts/tdown.exe +0 -0
- {fabricatio-0.4.1.dev3.dist-info → fabricatio-0.4.4.dist-info}/METADATA +28 -11
- fabricatio-0.4.4.dist-info/RECORD +15 -0
- fabricatio-0.4.1.dev3.data/scripts/tdown.exe +0 -0
- fabricatio-0.4.1.dev3.dist-info/RECORD +0 -15
- {fabricatio-0.4.1.dev3.dist-info → fabricatio-0.4.4.dist-info}/WHEEL +0 -0
- {fabricatio-0.4.1.dev3.dist-info → fabricatio-0.4.4.dist-info}/licenses/LICENSE +0 -0
fabricatio/__init__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"""Fabricatio is a Python library for building llm app using event-based agent structure."""
|
2
2
|
|
3
|
-
from fabricatio_core import fs,
|
3
|
+
from fabricatio_core import fs, parser, utils
|
4
4
|
from fabricatio_core.journal import logger
|
5
5
|
from fabricatio_core.models.action import Action, WorkFlow
|
6
6
|
from fabricatio_core.models.role import Role
|
@@ -8,8 +8,6 @@ from fabricatio_core.models.task import Task
|
|
8
8
|
from fabricatio_core.models.tool import ToolBox
|
9
9
|
from fabricatio_core.rust import CONFIG, TEMPLATE_MANAGER, Event
|
10
10
|
|
11
|
-
from fabricatio import toolboxes, workflows
|
12
|
-
|
13
11
|
__all__ = [
|
14
12
|
"CONFIG",
|
15
13
|
"TEMPLATE_MANAGER",
|
@@ -19,6 +17,7 @@ __all__ = [
|
|
19
17
|
"Task",
|
20
18
|
"ToolBox",
|
21
19
|
"WorkFlow",
|
20
|
+
"actions",
|
22
21
|
"fs",
|
23
22
|
"logger",
|
24
23
|
"models",
|
fabricatio/actions/__init__.py
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
"""This is the initialization file for the 'fabricatio.actions' package.
|
2
|
+
|
3
|
+
It imports various action classes from different modules based on the availability of certain packages.
|
4
|
+
The imported classes are then added to the '__all__' list, making them accessible when the package is imported.
|
5
|
+
"""
|
6
|
+
|
1
7
|
from importlib.util import find_spec
|
2
8
|
|
3
9
|
__all__ = []
|
@@ -22,8 +28,7 @@ if find_spec("fabricatio_typst"):
|
|
22
28
|
"GenerateArticleProposal",
|
23
29
|
"GenerateInitialOutline",
|
24
30
|
"WriteChapterSummary",
|
25
|
-
"WriteResearchContentSummary"
|
26
|
-
|
31
|
+
"WriteResearchContentSummary",
|
27
32
|
]
|
28
33
|
|
29
34
|
if find_spec("fabricatio_rag"):
|
@@ -34,23 +39,14 @@ if find_spec("fabricatio_typst"):
|
|
34
39
|
WriteArticleContentRAG,
|
35
40
|
)
|
36
41
|
|
37
|
-
__all__ += [
|
38
|
-
|
39
|
-
"ArticleConsultRAG",
|
40
|
-
"ChunkArticle",
|
41
|
-
"TweakArticleRAG",
|
42
|
-
"WriteArticleContentRAG"
|
43
|
-
|
44
|
-
]
|
42
|
+
__all__ += ["ArticleConsultRAG", "ChunkArticle", "TweakArticleRAG", "WriteArticleContentRAG"]
|
45
43
|
if find_spec("fabricatio_rag"):
|
46
44
|
from fabricatio_rag.actions.rag import InjectToDB, RAGTalk
|
47
45
|
|
48
|
-
__all__ += [
|
49
|
-
"InjectToDB",
|
50
|
-
"RAGTalk"
|
51
|
-
]
|
46
|
+
__all__ += ["InjectToDB", "RAGTalk"]
|
52
47
|
|
53
48
|
if find_spec("fabricatio_actions"):
|
49
|
+
from fabricatio_actions.actions.fs import ReadText
|
54
50
|
from fabricatio_actions.actions.output import (
|
55
51
|
DumpFinalizedOutput,
|
56
52
|
Forward,
|
@@ -62,12 +58,12 @@ if find_spec("fabricatio_actions"):
|
|
62
58
|
)
|
63
59
|
|
64
60
|
__all__ += [
|
65
|
-
|
66
61
|
"DumpFinalizedOutput",
|
67
62
|
"Forward",
|
68
63
|
"GatherAsList",
|
69
64
|
"PersistentAll",
|
65
|
+
"ReadText",
|
70
66
|
"RenderedDump",
|
71
67
|
"RetrieveFromLatest",
|
72
|
-
"RetrieveFromPersistent"
|
68
|
+
"RetrieveFromPersistent",
|
73
69
|
]
|
@@ -33,11 +33,27 @@ if find_spec("fabricatio_improve"):
|
|
33
33
|
from fabricatio_improve.capabilities.correct import Correct
|
34
34
|
from fabricatio_improve.capabilities.review import Review
|
35
35
|
|
36
|
-
__all__ += [
|
37
|
-
|
38
|
-
|
36
|
+
__all__ += [
|
37
|
+
"Correct",
|
38
|
+
"Review",
|
39
|
+
]
|
39
40
|
|
40
|
-
if find_spec():
|
41
|
+
if find_spec("fabricatio_judge"):
|
41
42
|
from fabricatio_judge.capabilities.advanced_judge import AdvancedJudge
|
42
43
|
|
43
44
|
__all__ += ["AdvancedJudge"]
|
45
|
+
|
46
|
+
if find_spec("fabricatio_digest"):
|
47
|
+
from fabricatio_digest.capabilities.digest import Digest
|
48
|
+
|
49
|
+
__all__ += ["Digest"]
|
50
|
+
|
51
|
+
if find_spec("fabricatio_anki"):
|
52
|
+
from fabricatio_anki.capabilities.generate_deck import GenerateDeck
|
53
|
+
|
54
|
+
__all__ += ["GenerateDeck"]
|
55
|
+
|
56
|
+
if find_spec("fabricatio_tagging"):
|
57
|
+
from fabricatio_tagging.capabilities.tagging import Tagging
|
58
|
+
|
59
|
+
__all__ += ["Tagging"]
|
fabricatio/models/__init__.py
CHANGED
@@ -12,7 +12,8 @@ __all__ = [
|
|
12
12
|
|
13
13
|
if find_spec("fabricatio_typst"):
|
14
14
|
from fabricatio_typst.models.article_essence import ArticleEssence
|
15
|
-
from fabricatio_typst.models.article_main import Article
|
15
|
+
from fabricatio_typst.models.article_main import Article
|
16
|
+
from fabricatio_typst.models.article_outline import ArticleOutline
|
16
17
|
from fabricatio_typst.models.article_proposal import ArticleProposal
|
17
18
|
|
18
19
|
__all__ += [
|
@@ -25,7 +26,22 @@ if find_spec("fabricatio_typst"):
|
|
25
26
|
if find_spec("fabricatio_typst"):
|
26
27
|
from fabricatio_typst.models.aricle_rag import ArticleChunk
|
27
28
|
|
28
|
-
__all__ += [
|
29
|
-
|
29
|
+
__all__ += ["ArticleChunk"]
|
30
|
+
|
31
|
+
if find_spec("fabricatio_judge"):
|
32
|
+
from fabricatio_judge.models.advanced_judge import JudgeMent
|
33
|
+
|
34
|
+
__all__ += ["JudgeMent"]
|
35
|
+
|
36
|
+
if find_spec("fabricatio_digest"):
|
37
|
+
from fabricatio_digest.models.tasklist import TaskList
|
38
|
+
|
39
|
+
__all__ += ["TaskList"]
|
40
|
+
|
41
|
+
|
42
|
+
if find_spec("fabricatio_anki"):
|
43
|
+
from fabricatio_anki.models.deck import Deck, Model
|
44
|
+
from fabricatio_anki.models.template import Template
|
45
|
+
|
46
|
+
__all__ += ["Deck","Model","Template"]
|
30
47
|
|
31
|
-
]
|
Binary file
|
fabricatio/workflows/__init__.py
CHANGED
@@ -4,10 +4,7 @@ __all__ = []
|
|
4
4
|
|
5
5
|
from importlib.util import find_spec
|
6
6
|
|
7
|
-
if find_spec("fabricatio_typst"):
|
7
|
+
if find_spec("fabricatio_typst") and find_spec("fabricatio_actions"):
|
8
8
|
from fabricatio_typst.workflows.articles import WriteOutlineCorrectedWorkFlow
|
9
9
|
|
10
|
-
__all__ += [
|
11
|
-
|
12
|
-
"WriteOutlineCorrectedWorkFlow"
|
13
|
-
]
|
10
|
+
__all__ += ["WriteOutlineCorrectedWorkFlow"]
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: fabricatio
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.4
|
4
4
|
Classifier: License :: OSI Approved :: MIT License
|
5
5
|
Classifier: Programming Language :: Rust
|
6
6
|
Classifier: Programming Language :: Python :: 3.12
|
@@ -10,28 +10,34 @@ Classifier: Framework :: AsyncIO
|
|
10
10
|
Classifier: Framework :: Pydantic :: 2
|
11
11
|
Classifier: Typing :: Typed
|
12
12
|
Requires-Dist: fabricatio-core
|
13
|
-
Requires-Dist: fabricatio[
|
13
|
+
Requires-Dist: fabricatio[rag,cli,typst,rule,judge,capabilities,actions,improve,digest,memory,anki,question,tagging] ; extra == 'full'
|
14
|
+
Requires-Dist: fabricatio-anki ; extra == 'anki'
|
15
|
+
Requires-Dist: fabricatio-memory ; extra == 'memory'
|
16
|
+
Requires-Dist: fabricatio-digest ; extra == 'digest'
|
14
17
|
Requires-Dist: fabricatio-rag ; extra == 'rag'
|
15
18
|
Requires-Dist: fabricatio-judge ; extra == 'judge'
|
16
19
|
Requires-Dist: fabricatio-rule ; extra == 'rule'
|
17
|
-
Requires-Dist: questionary>=2.1.0 ; extra == 'qa'
|
18
|
-
Requires-Dist: magika>=0.6.1 ; extra == 'ftd'
|
19
20
|
Requires-Dist: typer-slim[standard]>=0.15.2 ; extra == 'cli'
|
20
21
|
Requires-Dist: fabricatio-typst ; extra == 'typst'
|
21
22
|
Requires-Dist: fabricatio-improve ; extra == 'improve'
|
22
23
|
Requires-Dist: fabricatio-capabilities ; extra == 'capabilities'
|
23
24
|
Requires-Dist: fabricatio-actions ; extra == 'actions'
|
25
|
+
Requires-Dist: fabricatio-question ; extra == 'question'
|
26
|
+
Requires-Dist: fabricatio-tagging ; extra == 'tagging'
|
24
27
|
Provides-Extra: full
|
28
|
+
Provides-Extra: anki
|
29
|
+
Provides-Extra: memory
|
30
|
+
Provides-Extra: digest
|
25
31
|
Provides-Extra: rag
|
26
32
|
Provides-Extra: judge
|
27
33
|
Provides-Extra: rule
|
28
|
-
Provides-Extra: qa
|
29
|
-
Provides-Extra: ftd
|
30
34
|
Provides-Extra: cli
|
31
35
|
Provides-Extra: typst
|
32
36
|
Provides-Extra: improve
|
33
37
|
Provides-Extra: capabilities
|
34
38
|
Provides-Extra: actions
|
39
|
+
Provides-Extra: question
|
40
|
+
Provides-Extra: tagging
|
35
41
|
License-File: LICENSE
|
36
42
|
Summary: A LLM multi-agent framework.
|
37
43
|
Keywords: ai,agents,multi-agent,llm,pyo3
|
@@ -44,7 +50,22 @@ Project-URL: Issues, https://github.com/Whth/fabricatio/issues
|
|
44
50
|
|
45
51
|
# Fabricatio
|
46
52
|
|
47
|
-

|
53
|
+
[](LICENSE)
|
54
|
+
[](https://pypi.org/project/fabricatio/)
|
55
|
+
[](https://pypi.org/project/fabricatio/)
|
56
|
+
[](https://deepwiki.com/Whth/fabricatio)
|
57
|
+
[](https://pepy.tech/projects/fabricatio)
|
58
|
+
[](https://pepy.tech/projects/fabricatio)
|
59
|
+
[](https://github.com/PyO3/pyo3)
|
60
|
+
[](https://github.com/BerriAI/litellm)
|
61
|
+
[](https://github.com/astral-sh/uv)
|
62
|
+
[](https://github.com/Whth/fabricatio/actions/workflows/build-package.yaml)
|
63
|
+
[](https://github.com/Whth/fabricatio/actions/workflows/ruff.yaml)
|
64
|
+
[](https://github.com/Whth/fabricatio/actions/workflows/tests.yaml)
|
65
|
+

|
66
|
+

|
67
|
+

|
68
|
+
---
|
48
69
|
|
49
70
|
## Overview
|
50
71
|
|
@@ -167,10 +188,6 @@ max_tokens = 8192
|
|
167
188
|
make test
|
168
189
|
```
|
169
190
|
|
170
|
-
## TODO
|
171
|
-
|
172
|
-
- Add an element based format strategy
|
173
|
-
|
174
191
|
## Contributing
|
175
192
|
|
176
193
|
Contributions are welcome! Follow these steps:
|
@@ -0,0 +1,15 @@
|
|
1
|
+
fabricatio-0.4.4.data/scripts/tdown.exe,sha256=WQ-gKiYu_P-ANo9QKrW3uhG4NHug4x2Qsj2-1Li8rRk,3814912
|
2
|
+
fabricatio-0.4.4.dist-info/METADATA,sha256=kEvbblp_wfj-LXvuOakGWbFEchx6NObLLSSgI__Zy1w,7238
|
3
|
+
fabricatio-0.4.4.dist-info/WHEEL,sha256=Fk195VgSS-LCRRJAxz6O39eu2NdDhBCq3h9q4zoTguY,96
|
4
|
+
fabricatio-0.4.4.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=8YpFq-xcsrwbeLa6fNNYhEmI1ws2PwEc0M6EondIfKQ,1783
|
8
|
+
fabricatio/models/__init__.py,sha256=HscpNwnptnzqnVLlOisCWh6W3lsQR97pFXIlCqd84AE,1320
|
9
|
+
fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
+
fabricatio/rust.cp313-win_amd64.pyd,sha256=Il-9r9EgT4K6nLtEGH7HZOsDyGjEh42pOJid80dGbYk,176640
|
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.4.dist-info/RECORD,,
|
Binary file
|
@@ -1,15 +0,0 @@
|
|
1
|
-
fabricatio-0.4.1.dev3.data/scripts/tdown.exe,sha256=CknuR-ux_D0TLfFPS5ciBdsheg4cbiJAV9BjoRm_w1s,3378176
|
2
|
-
fabricatio-0.4.1.dev3.dist-info/METADATA,sha256=yp2Zx6h1G6B1qeZdvZmZQ9hBUTdyD1UrXlEwCtzQ9c0,5428
|
3
|
-
fabricatio-0.4.1.dev3.dist-info/WHEEL,sha256=Fk195VgSS-LCRRJAxz6O39eu2NdDhBCq3h9q4zoTguY,96
|
4
|
-
fabricatio-0.4.1.dev3.dist-info/licenses/LICENSE,sha256=do7J7EiCGbq0QPbMAL_FqLYufXpHnCnXBOuqVPwSV8Y,1088
|
5
|
-
fabricatio/__init__.py,sha256=Citu14Cr2ZWeV6M0TTW8e_ydu8XvH_-WH85sQ76KSA0,761
|
6
|
-
fabricatio/actions/__init__.py,sha256=pEC7ninvGytIKeIJLdYaGzwNwnG1tOPziR3H-oUkwTU,1775
|
7
|
-
fabricatio/capabilities/__init__.py,sha256=hB2rI6xBrQp4zZjdinWVDKpEN3MoIaOqd2Y4eSBdG_I,1368
|
8
|
-
fabricatio/models/__init__.py,sha256=NLWNitqYW67hDWsZhUwp3v3gQVP0w1ovCy6DnPOFG_Q,825
|
9
|
-
fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
-
fabricatio/rust.cp313-win_amd64.pyd,sha256=pSWwReZHBusqh6sAg6afe04tYAeOytFb1zN2Txs08Vs,176128
|
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=cR2yioLXzA4_icwSfnE-D2xU4GFNQSXa51cHsXQZgo8,297
|
15
|
-
fabricatio-0.4.1.dev3.dist-info/RECORD,,
|
File without changes
|
File without changes
|