- schemas: Idea/IdeaListResult(脑洞生成器结构化产出,纯预览不入库) - specs: brainstorm_spec(light 档,reads=[projects] writes=[]) - orchestrator: build_brief_context(brief_only 策略)+ 通用 run_generator (据 spec.output_schema 校验 parsed,不绑定具体类型,任一声明式生成器共用) - 新增 13 测;两包 ruff/format/mypy 干净、252 passed 无回归 P1 第一波(@llm):证实「加生成器=加一份声明」。@backend T6.2/T6.3 待续。
79 lines
1.6 KiB
Python
79 lines
1.6 KiB
Python
"""ww-agents:内置 Agent 声明(AgentSpec)+ 结构化输出 schema(C6)。
|
||
|
||
对齐 ARCH §5.1(AgentSpec)/ §5.4(I/O 契约)/ §6.1(冲突分类)/ §6.2 §6.4(伏笔/节奏)。
|
||
"""
|
||
|
||
from __future__ import annotations
|
||
|
||
from .schemas import (
|
||
CharacterCard,
|
||
CharacterGenResult,
|
||
CharacterRelation,
|
||
Conflict,
|
||
ConflictType,
|
||
ContinuityReview,
|
||
ForeshadowReview,
|
||
ForeshadowSuggestion,
|
||
ForeshadowWindow,
|
||
Idea,
|
||
IdeaListResult,
|
||
OutlineChapter,
|
||
OutlineResult,
|
||
PaceIssue,
|
||
PaceReview,
|
||
StyleDimension,
|
||
StyleDriftReview,
|
||
StyleDriftSegment,
|
||
StyleFingerprintResult,
|
||
WorldEntityCard,
|
||
WorldGenResult,
|
||
)
|
||
from .specs import (
|
||
AgentSpec,
|
||
brainstorm_spec,
|
||
character_gen_spec,
|
||
continuity_spec,
|
||
foreshadow_spec,
|
||
outliner_spec,
|
||
pace_spec,
|
||
refiner_spec,
|
||
style_drift_spec,
|
||
style_extract_spec,
|
||
worldbuilder_spec,
|
||
)
|
||
|
||
__all__ = [
|
||
"AgentSpec",
|
||
"CharacterCard",
|
||
"CharacterGenResult",
|
||
"CharacterRelation",
|
||
"Conflict",
|
||
"ConflictType",
|
||
"ContinuityReview",
|
||
"ForeshadowReview",
|
||
"ForeshadowSuggestion",
|
||
"ForeshadowWindow",
|
||
"Idea",
|
||
"IdeaListResult",
|
||
"OutlineChapter",
|
||
"OutlineResult",
|
||
"PaceIssue",
|
||
"PaceReview",
|
||
"StyleDimension",
|
||
"StyleDriftReview",
|
||
"StyleDriftSegment",
|
||
"StyleFingerprintResult",
|
||
"WorldEntityCard",
|
||
"WorldGenResult",
|
||
"brainstorm_spec",
|
||
"character_gen_spec",
|
||
"continuity_spec",
|
||
"foreshadow_spec",
|
||
"outliner_spec",
|
||
"pace_spec",
|
||
"refiner_spec",
|
||
"style_drift_spec",
|
||
"style_extract_spec",
|
||
"worldbuilder_spec",
|
||
]
|