fabricatio 0.4.0.dev0__cp313-cp313-win_amd64.whl → 0.4.0.dev5__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 -1
- fabricatio/actions/__init__.py +57 -0
- fabricatio/capabilities/__init__.py +40 -0
- fabricatio/models/__init__.py +23 -0
- fabricatio/rust.cp313-win_amd64.pyd +0 -0
- fabricatio/toolboxes/__init__.py +2 -1
- {fabricatio-0.4.0.dev0.dist-info → fabricatio-0.4.0.dev5.dist-info}/METADATA +1 -1
- fabricatio-0.4.0.dev5.dist-info/RECORD +15 -0
- fabricatio/workflows/rag.py +0 -12
- fabricatio-0.4.0.dev0.dist-info/RECORD +0 -13
- {fabricatio-0.4.0.dev0.data → fabricatio-0.4.0.dev5.data}/scripts/tdown.exe +0 -0
- {fabricatio-0.4.0.dev0.dist-info → fabricatio-0.4.0.dev5.dist-info}/WHEEL +0 -0
- {fabricatio-0.4.0.dev0.dist-info → fabricatio-0.4.0.dev5.dist-info}/licenses/LICENSE +0 -0
fabricatio/__init__.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
"""Fabricatio is a Python library for building llm app using event-based agent structure."""
|
2
2
|
|
3
|
-
from fabricatio import toolboxes, workflows
|
4
3
|
from fabricatio_core import fs, models, parser, utils
|
5
4
|
from fabricatio_core.journal import logger
|
6
5
|
from fabricatio_core.models.action import Action, WorkFlow
|
@@ -9,6 +8,8 @@ from fabricatio_core.models.task import Task
|
|
9
8
|
from fabricatio_core.models.tool import ToolBox
|
10
9
|
from fabricatio_core.rust import CONFIG, TEMPLATE_MANAGER, Event
|
11
10
|
|
11
|
+
from fabricatio import toolboxes, workflows
|
12
|
+
|
12
13
|
__all__ = [
|
13
14
|
"CONFIG",
|
14
15
|
"TEMPLATE_MANAGER",
|
@@ -0,0 +1,57 @@
|
|
1
|
+
from importlib.util import find_spec
|
2
|
+
|
3
|
+
__all__ = []
|
4
|
+
|
5
|
+
if find_spec("fabricatio_typst"):
|
6
|
+
from fabricatio_typst.actions.article import (
|
7
|
+
ExtractArticleEssence,
|
8
|
+
ExtractOutlineFromRaw,
|
9
|
+
GenerateArticle,
|
10
|
+
GenerateArticleProposal,
|
11
|
+
GenerateInitialOutline,
|
12
|
+
WriteChapterSummary,
|
13
|
+
WriteResearchContentSummary,
|
14
|
+
)
|
15
|
+
|
16
|
+
__all__ += [
|
17
|
+
"ExtractArticleEssence",
|
18
|
+
"ExtractOutlineFromRaw",
|
19
|
+
"GenerateArticle",
|
20
|
+
"GenerateArticleProposal",
|
21
|
+
"GenerateInitialOutline",
|
22
|
+
"WriteChapterSummary",
|
23
|
+
"WriteResearchContentSummary"
|
24
|
+
|
25
|
+
]
|
26
|
+
|
27
|
+
if find_spec("fabricatio_rag"):
|
28
|
+
from fabricatio_typst.actions.article_rag import ArticleConsultRAG, TweakArticleRAG, WriteArticleContentRAG
|
29
|
+
|
30
|
+
__all__ += [
|
31
|
+
|
32
|
+
"ArticleConsultRAG",
|
33
|
+
"TweakArticleRAG",
|
34
|
+
"WriteArticleContentRAG"
|
35
|
+
]
|
36
|
+
|
37
|
+
if find_spec("fabricatio_actions"):
|
38
|
+
from fabricatio_actions.actions.output import (
|
39
|
+
DumpFinalizedOutput,
|
40
|
+
Forward,
|
41
|
+
GatherAsList,
|
42
|
+
PersistentAll,
|
43
|
+
RenderedDump,
|
44
|
+
RetrieveFromLatest,
|
45
|
+
RetrieveFromPersistent,
|
46
|
+
)
|
47
|
+
|
48
|
+
__all__ += [
|
49
|
+
|
50
|
+
"DumpFinalizedOutput",
|
51
|
+
"Forward",
|
52
|
+
"GatherAsList",
|
53
|
+
"PersistentAll",
|
54
|
+
"RenderedDump",
|
55
|
+
"RetrieveFromLatest",
|
56
|
+
"RetrieveFromPersistent"
|
57
|
+
]
|
@@ -0,0 +1,40 @@
|
|
1
|
+
"""A module containing all the capabilities of the Fabricatio framework."""
|
2
|
+
|
3
|
+
from importlib.util import find_spec
|
4
|
+
|
5
|
+
__all__ = []
|
6
|
+
|
7
|
+
if find_spec("fabricatio_capabilities"):
|
8
|
+
from fabricatio_capabilities.capabilities.extract import Extract
|
9
|
+
from fabricatio_capabilities.capabilities.propose import Propose
|
10
|
+
from fabricatio_capabilities.capabilities.rating import Rating
|
11
|
+
from fabricatio_capabilities.capabilities.task import ProposeTask
|
12
|
+
|
13
|
+
__all__ += ["Extract", "Propose", "ProposeTask", "Rating"]
|
14
|
+
|
15
|
+
if find_spec("fabricatio_rag"):
|
16
|
+
from fabricatio_rag.capabilities.rag import RAG
|
17
|
+
|
18
|
+
__all__ += ["RAG"]
|
19
|
+
if find_spec("fabricatio_write"):
|
20
|
+
from fabricatio_typst.capabilities.citation_rag import CitationRAG
|
21
|
+
|
22
|
+
__all__ += [
|
23
|
+
"CitationRAG",
|
24
|
+
]
|
25
|
+
|
26
|
+
if find_spec("fabricatio_rule"):
|
27
|
+
from fabricatio_rule.capabilities.censor import Censor
|
28
|
+
from fabricatio_rule.capabilities.check import Check
|
29
|
+
|
30
|
+
__all__ += ["Censor", "Check"]
|
31
|
+
|
32
|
+
if find_spec("fabricatio_improve"):
|
33
|
+
from fabricatio_improve.capabilities.correct import Correct
|
34
|
+
|
35
|
+
__all__ += ["Correct"]
|
36
|
+
|
37
|
+
if find_spec():
|
38
|
+
from fabricatio_judge.capabilities.advanced_judge import AdvancedJudge
|
39
|
+
|
40
|
+
__all__ += ["AdvancedJudge"]
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"""A module for the usage of the fabricatio package."""
|
2
|
+
|
3
|
+
from importlib.util import find_spec
|
4
|
+
|
5
|
+
from fabricatio_core.models.usages import EmbeddingUsage, LLMUsage, ToolBoxUsage
|
6
|
+
|
7
|
+
__all__ = [
|
8
|
+
"EmbeddingUsage",
|
9
|
+
"LLMUsage",
|
10
|
+
"ToolBoxUsage",
|
11
|
+
]
|
12
|
+
|
13
|
+
if find_spec("fabricatio_typst"):
|
14
|
+
from fabricatio_typst.models.article_essence import ArticleEssence
|
15
|
+
from fabricatio_typst.models.article_main import Article, ArticleOutline
|
16
|
+
from fabricatio_typst.models.article_proposal import ArticleProposal
|
17
|
+
|
18
|
+
__all__ += [
|
19
|
+
"Article",
|
20
|
+
"ArticleEssence",
|
21
|
+
"ArticleOutline",
|
22
|
+
"ArticleProposal",
|
23
|
+
]
|
Binary file
|
fabricatio/toolboxes/__init__.py
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
fabricatio-0.4.0.dev5.data/scripts/tdown.exe,sha256=CknuR-ux_D0TLfFPS5ciBdsheg4cbiJAV9BjoRm_w1s,3378176
|
2
|
+
fabricatio-0.4.0.dev5.dist-info/METADATA,sha256=2iztUVIbOppuqW5vZApwPg4LS-ka44DkRVuAeLVoTwQ,5428
|
3
|
+
fabricatio-0.4.0.dev5.dist-info/WHEEL,sha256=Fk195VgSS-LCRRJAxz6O39eu2NdDhBCq3h9q4zoTguY,96
|
4
|
+
fabricatio-0.4.0.dev5.dist-info/licenses/LICENSE,sha256=do7J7EiCGbq0QPbMAL_FqLYufXpHnCnXBOuqVPwSV8Y,1088
|
5
|
+
fabricatio/__init__.py,sha256=Citu14Cr2ZWeV6M0TTW8e_ydu8XvH_-WH85sQ76KSA0,761
|
6
|
+
fabricatio/actions/__init__.py,sha256=gjYHXAMD6tccVgUKcfew-bQDDnNFEggWQ2R3wawAbVQ,1440
|
7
|
+
fabricatio/capabilities/__init__.py,sha256=_e_VOAFfVbpc4mS-a7xF6IHELGF_vXHb3Fk_Ew1bNJM,1259
|
8
|
+
fabricatio/models/__init__.py,sha256=RJm3rrss6TrAXhIRi6jnnnaxvXyaEr9gZU_53sDEp-U,650
|
9
|
+
fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
+
fabricatio/rust.cp313-win_amd64.pyd,sha256=mqpCHykECSiUC4VJEz76AInIi92nIfU-XZYMo4QLORM,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=5ScFSTA-bvhCesj3U9Mnmi6Law6N1fmh5UKyh58L3u8,51
|
15
|
+
fabricatio-0.4.0.dev5.dist-info/RECORD,,
|
fabricatio/workflows/rag.py
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
"""The workflow for extracting the essence of an article and storing it in the database."""
|
2
|
-
|
3
|
-
from fabricatio_core.models.action import WorkFlow
|
4
|
-
|
5
|
-
from fabricatio.actions.article import ExtractArticleEssence
|
6
|
-
from fabricatio.actions.rag import InjectToDB
|
7
|
-
|
8
|
-
StoreArticle = WorkFlow(
|
9
|
-
name="Extract Article Essence",
|
10
|
-
description="Extract the essence of an article in the given path, and store it in the database.",
|
11
|
-
steps=(ExtractArticleEssence(output_key="to_inject"), InjectToDB(output_key="task_output")),
|
12
|
-
)
|
@@ -1,13 +0,0 @@
|
|
1
|
-
fabricatio-0.4.0.dev0.data/scripts/tdown.exe,sha256=CknuR-ux_D0TLfFPS5ciBdsheg4cbiJAV9BjoRm_w1s,3378176
|
2
|
-
fabricatio-0.4.0.dev0.dist-info/METADATA,sha256=e2CWOqor1_NCKIPX0iLwzs_PU5sDOg-vgssE03c8Adw,5428
|
3
|
-
fabricatio-0.4.0.dev0.dist-info/WHEEL,sha256=Fk195VgSS-LCRRJAxz6O39eu2NdDhBCq3h9q4zoTguY,96
|
4
|
-
fabricatio-0.4.0.dev0.dist-info/licenses/LICENSE,sha256=do7J7EiCGbq0QPbMAL_FqLYufXpHnCnXBOuqVPwSV8Y,1088
|
5
|
-
fabricatio/__init__.py,sha256=lRDjxg_ZZwE9GTASwUOuHc6asov0JRJHJ4PqI2rph_g,759
|
6
|
-
fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
-
fabricatio/rust.cp313-win_amd64.pyd,sha256=jlL8yq1Uk8ApCYOFFlfwDZpGHl7Num2V-KIJwW5PuVY,176128
|
8
|
-
fabricatio/toolboxes/__init__.py,sha256=KBJi5OG_pExscdlM7Bnt_UF43j4I3Lv6G71kPVu4KQU,395
|
9
|
-
fabricatio/toolboxes/arithmetic.py,sha256=tcaHLzGQvnlbxG57IANpZ2vTRO5QpSt366RckBlBIOg,1374
|
10
|
-
fabricatio/toolboxes/fs.py,sha256=fpSfU6YkCVJzSXsbT9WT3m80tH8i6mhLWnu9u7yhV-w,746
|
11
|
-
fabricatio/workflows/__init__.py,sha256=5ScFSTA-bvhCesj3U9Mnmi6Law6N1fmh5UKyh58L3u8,51
|
12
|
-
fabricatio/workflows/rag.py,sha256=O8qCLhZTJTEj72R7W6Nq3WFg2I42arzQJkIGaeDdpss,527
|
13
|
-
fabricatio-0.4.0.dev0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|