Files
writer-work-flow/packages/agents/ww_agents/__init__.py
Yaojia Wang e8cccf7389 feat: T6.1 创作工具箱通用生成器框架地基 — 脑洞生成器 + run_generator
- 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 待续。
2026-06-20 11:31:59 +02:00

79 lines
1.6 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""ww-agents内置 Agent 声明AgentSpec+ 结构化输出 schemaC6
对齐 ARCH §5.1AgentSpec/ §5.4I/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",
]