fabricatio-novel 0.1.1__cp313-cp313-manylinux_2_34_x86_64.whl → 0.1.2__cp313-cp313-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.
Potentially problematic release.
This version of fabricatio-novel might be problematic. Click here for more details.
- fabricatio_novel/models/scripting.py +4 -4
- fabricatio_novel/rust.cpython-313-x86_64-linux-gnu.so +0 -0
- {fabricatio_novel-0.1.1.dist-info → fabricatio_novel-0.1.2.dist-info}/METADATA +1 -1
- {fabricatio_novel-0.1.1.dist-info → fabricatio_novel-0.1.2.dist-info}/RECORD +6 -6
- {fabricatio_novel-0.1.1.dist-info → fabricatio_novel-0.1.2.dist-info}/WHEEL +0 -0
- {fabricatio_novel-0.1.1.dist-info → fabricatio_novel-0.1.2.dist-info}/entry_points.txt +0 -0
|
@@ -6,13 +6,13 @@ Together, these classes form a foundation for creating structured yet flexible n
|
|
|
6
6
|
from typing import Any, ClassVar, Dict, List, Self
|
|
7
7
|
|
|
8
8
|
from fabricatio_capabilities.models.generic import AsPrompt, PersistentAble, WordCount
|
|
9
|
-
from fabricatio_core.models.generic import SketchedAble, Titled
|
|
9
|
+
from fabricatio_core.models.generic import Described, SketchedAble, Titled
|
|
10
10
|
from pydantic import Field
|
|
11
11
|
|
|
12
12
|
from fabricatio_novel.config import novel_config
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
class Scene(PersistentAble, SketchedAble, WordCount):
|
|
15
|
+
class Scene(PersistentAble, SketchedAble, WordCount, Described):
|
|
16
16
|
"""The most basic narrative unit."""
|
|
17
17
|
|
|
18
18
|
expected_word_count: int
|
|
@@ -24,7 +24,7 @@ class Scene(PersistentAble, SketchedAble, WordCount):
|
|
|
24
24
|
prompt: str
|
|
25
25
|
"""natural language guidance for tone, style, or constraint."""
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
description: str = Field(alias="narrative")
|
|
28
28
|
"""dialogue, description, log, poem, monologue, etc."""
|
|
29
29
|
|
|
30
30
|
def append_prompt(self, prompt: str) -> Self:
|
|
@@ -55,7 +55,7 @@ class Script(SketchedAble, PersistentAble, Titled, AsPrompt, WordCount):
|
|
|
55
55
|
rendering_template: ClassVar[str] = novel_config.render_script_template
|
|
56
56
|
|
|
57
57
|
def _as_prompt_inner(self) -> Dict[str, str] | Dict[str, Any] | Any:
|
|
58
|
-
return self.model_dump()
|
|
58
|
+
return self.model_dump(by_alias=True)
|
|
59
59
|
|
|
60
60
|
def append_global_prompt(self, prompt: str) -> Self:
|
|
61
61
|
"""Add a global prompt to the script.
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
fabricatio_novel-0.1.
|
|
2
|
-
fabricatio_novel-0.1.
|
|
3
|
-
fabricatio_novel-0.1.
|
|
1
|
+
fabricatio_novel-0.1.2.dist-info/METADATA,sha256=I2g2T_OntU501yfR2ylt_x6fDeFAw2kBqY63SAhku5Q,2560
|
|
2
|
+
fabricatio_novel-0.1.2.dist-info/WHEEL,sha256=dMy2teuP-PSJJ9D8IjLXBMRWYNMh-F_X_I-9plY-tIo,108
|
|
3
|
+
fabricatio_novel-0.1.2.dist-info/entry_points.txt,sha256=Yv1aMQSZeRVHkj1KGkwUrYmNBdIt0F0a_rCdW0KxUco,49
|
|
4
4
|
fabricatio_novel/__init__.py,sha256=2gnAk79LxfdFJxrioPkl-DyZJ4mm9CnYVZNz7o7iz4g,34
|
|
5
5
|
fabricatio_novel/actions/__init__.py,sha256=HBG2V0J0RgYrqWygcA5VV39y33JwRHyeYMTxnrNJkZs,43
|
|
6
6
|
fabricatio_novel/actions/novel.py,sha256=Jnrz9D2CYrLkSAVXiNfW7C8hKSdMOnI7GT3Poj-5BEY,11191
|
|
@@ -10,10 +10,10 @@ fabricatio_novel/cli.py,sha256=AbFeavbJ9HMYzMq8sLUCwzvifW8vvpkyI3xMCUsHy0w,5104
|
|
|
10
10
|
fabricatio_novel/config.py,sha256=tquQs21El4YrEx5Hmxdzx5aMAV8ruKvTXBnHQ0n1M_s,1005
|
|
11
11
|
fabricatio_novel/models/__init__.py,sha256=spyN6xd8hHPIuFhU_QDAxMDapD4yO5NQjiXqOAeY2fA,42
|
|
12
12
|
fabricatio_novel/models/novel.py,sha256=AppZ9_4woxh5-fzvh7EyPcNDAAxfPUmhDVXCMwmDhYc,4128
|
|
13
|
-
fabricatio_novel/models/scripting.py,sha256=
|
|
13
|
+
fabricatio_novel/models/scripting.py,sha256=SrpI2sovFPG8zrpnsQo3qy8pOVfiNIQXeXExmGc9CIY,2517
|
|
14
14
|
fabricatio_novel/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
fabricatio_novel/rust.cpython-313-x86_64-linux-gnu.so,sha256=
|
|
15
|
+
fabricatio_novel/rust.cpython-313-x86_64-linux-gnu.so,sha256=fEvpGgSQhvtE-LTDGdhHuHRMyjbzM26b9IRibKDwvMc,7168624
|
|
16
16
|
fabricatio_novel/rust.pyi,sha256=bPhZMS5Zdkvh1o2ghaI2RiUWqEWZ3iXVxNjzHfgjUkc,3389
|
|
17
17
|
fabricatio_novel/workflows/__init__.py,sha256=NGOA4UgpPkUjKtXrzh4JDhRb6P7VqpCUqzxh-eduj9Y,45
|
|
18
18
|
fabricatio_novel/workflows/novel.py,sha256=rKuuqnMptq9F4nbOOZJZU_O1GxI4UlJJvliFcEoDji0,4632
|
|
19
|
-
fabricatio_novel-0.1.
|
|
19
|
+
fabricatio_novel-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|