MCPcopy Create free account
hub / github.com/Open-Quant/openquant / pick_hit_in_chapter

Function pick_hit_in_chapter

scripts/afml_docs_loop.py:123–128  ·  view source on GitHub ↗
(results: list[dict[str, Any]], chapter: str)

Source from the content-addressed store, hash-verified

121
122
123def pick_hit_in_chapter(results: list[dict[str, Any]], chapter: str) -> dict[str, Any]:
124 target = chapter.strip().upper()
125 for hit in results:
126 if str(hit.get("chapter", "")).strip().upper() == target:
127 return hit
128 return {}
129
130
131def chapter_prompt(

Callers 1

build_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected