fabricatio-novel 0.1.1__cp312-cp312-win_amd64.whl → 0.1.2__cp312-cp312-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.

Potentially problematic release.


This version of fabricatio-novel might be problematic. Click here for more details.

@@ -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
- narrative: str
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
1
  Metadata-Version: 2.4
2
2
  Name: fabricatio-novel
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Classifier: License :: OSI Approved :: MIT License
5
5
  Classifier: Programming Language :: Python :: 3.12
6
6
  Classifier: Programming Language :: Python :: 3.13
@@ -1,6 +1,6 @@
1
- fabricatio_novel-0.1.1.dist-info/METADATA,sha256=MmTevCkKPL_vXQZmr7MnVcQQm6uLhFLTI_nCOpF4_Bk,2619
2
- fabricatio_novel-0.1.1.dist-info/WHEEL,sha256=4hYCffp0RsSVQAuv2PMtXQ9QS7YSHeZi4PrSg-wi2q0,96
3
- fabricatio_novel-0.1.1.dist-info/entry_points.txt,sha256=Yv1aMQSZeRVHkj1KGkwUrYmNBdIt0F0a_rCdW0KxUco,49
1
+ fabricatio_novel-0.1.2.dist-info/METADATA,sha256=5kwkGAEjKh-Qm-kWb46K0gunGdliZhNKKebbuLi5ZeY,2619
2
+ fabricatio_novel-0.1.2.dist-info/WHEEL,sha256=4hYCffp0RsSVQAuv2PMtXQ9QS7YSHeZi4PrSg-wi2q0,96
3
+ fabricatio_novel-0.1.2.dist-info/entry_points.txt,sha256=Yv1aMQSZeRVHkj1KGkwUrYmNBdIt0F0a_rCdW0KxUco,49
4
4
  fabricatio_novel/__init__.py,sha256=gumbL2CwfKm4bnxOVpyhYxAIwfVldHTB30OCZBtxxMw,35
5
5
  fabricatio_novel/actions/__init__.py,sha256=51yoYj8CX5mf8bRNlyWo_1_d_duCkWNmh1P85lQ1iow,44
6
6
  fabricatio_novel/actions/novel.py,sha256=disJXRlzHVgiC3xjboiCLcKPGILIpjWLb0I3WejcsQ0,11528
@@ -10,10 +10,10 @@ fabricatio_novel/cli.py,sha256=XCeoXaJnrIuWwHNGecRAz3bLuC1RDRhcRIeQUgxYZ_Y,5252
10
10
  fabricatio_novel/config.py,sha256=AlJPrW7lXnQHd7V4rlwUV2sMd_rAdjHLpfRwvCu-OLg,1035
11
11
  fabricatio_novel/models/__init__.py,sha256=olnoHX_uyVSsNniJibjBvdcKc70s1qMMULOG7dwWp0s,43
12
12
  fabricatio_novel/models/novel.py,sha256=M3bKy1Yy_U-3xSFPkC9EzzlgODjKxSczHe2OH3zipHs,4224
13
- fabricatio_novel/models/scripting.py,sha256=3fVf16m8nPHH5opb8XRhVzphUBG0ffXAoQnBslLYifQ,2529
13
+ fabricatio_novel/models/scripting.py,sha256=hjijr6E20qYT-2pG0pr-ejVcObLHFG8wTmUxWXgqYvE,2593
14
14
  fabricatio_novel/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- fabricatio_novel/rust.cp312-win_amd64.pyd,sha256=T4PZeLOIQaTkNqYM0C9u7xXaWAusmyGA6M2C2az1Sl8,6124544
15
+ fabricatio_novel/rust.cp312-win_amd64.pyd,sha256=AgieMHstTaP6O2kdcKacmHx0WzjLwKVB_pUAOJC7ghA,6137344
16
16
  fabricatio_novel/rust.pyi,sha256=vEnCYqisFanxPoFPzHRqV87cg_WmNlzvwmMkOYRc1zw,3509
17
17
  fabricatio_novel/workflows/__init__.py,sha256=G3uMeM4y-ZEoO7KwJ4ssMoCuxY8Hw0IjOvLBBwJdy3c,46
18
18
  fabricatio_novel/workflows/novel.py,sha256=piRAhw_UVcMvdJY69E4BZVGo1Ok1kz94wQaucq5UNWw,4767
19
- fabricatio_novel-0.1.1.dist-info/RECORD,,
19
+ fabricatio_novel-0.1.2.dist-info/RECORD,,