Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
马一丁
2025-12-12 16:12:40 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2025-12-12 16:12:40 +0800
Commit
80593a5ba3b85204d880c1aa69afe876123306b0
80593a5b
2 parents
ff28c092
65d4217f
Merge pull request #491 from 666ghj/Blocked-HTML
Fix error "文档设计 缺少预期的键: toc"
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
ReportEngine/agent.py
ReportEngine/nodes/document_layout_node.py
ReportEngine/agent.py
View file @
80593a5
...
...
@@ -483,7 +483,8 @@ class ReportAgent:
query
,
template_overview
,
),
expected_keys
=
[
"title"
,
"hero"
,
"toc"
,
"tocPlan"
],
# toc 字段已被 tocPlan 取代,这里按最新Schema挑选/校验
expected_keys
=
[
"title"
,
"hero"
,
"tocPlan"
,
"tocTitle"
],
)
emit
(
'stage'
,
{
'stage'
:
'layout_designed'
,
...
...
ReportEngine/nodes/document_layout_node.py
View file @
80593a5
...
...
@@ -108,7 +108,8 @@ class DocumentLayoutNode(BaseNode):
result
=
self
.
json_parser
.
parse
(
raw
,
context_name
=
"文档设计"
,
expected_keys
=
[
"title"
,
"toc"
,
"hero"
],
# 目录字段已更名为 tocPlan,这里跟随最新Schema校验
expected_keys
=
[
"title"
,
"tocPlan"
,
"hero"
],
)
# 验证关键字段的类型
if
not
isinstance
(
result
.
get
(
"title"
),
str
):
...
...
Please
register
or
login
to post a comment