MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / should_insert

Function should_insert

scripts/plan_figure_table_decisions.py:135–140  ·  view source on GitHub ↗
(caption: dict[str, Any], plan_item: dict[str, Any], status: str)

Source from the content-addressed store, hash-verified

133
134
135def should_insert(caption: dict[str, Any], plan_item: dict[str, Any], status: str) -> bool:
136 if status != "usable_candidate":
137 return False
138 if caption.get("kind") not in INSERTABLE_KINDS:
139 return False
140 return bool(source_image_path(plan_item))
141
142
143def decide(caption: dict[str, Any], plan_item: dict[str, Any] | None) -> dict[str, Any]:

Callers 1

decideFunction · 0.85

Calls 1

source_image_pathFunction · 0.85

Tested by

no test coverage detected