← Về thư mục
skills/literature-review/scripts/generate_schematic_ai.py
- ReviewResult · class · L38-L56 — class ReviewResult(NamedTuple)
- _normalize_review_text · function · L76-L78 — def _normalize_review_text(text: str) -> str
- _parse_score · function · L81-L95 — def _parse_score(text: str) -> Optional[float]
- _parse_verdict · function · L98-L110 — def _parse_verdict(text: str) -> Optional[str]
- _resolve_api_key · function · L113-L148 — def _resolve_api_key(explicit: Optional[str] = None) -> Optional[str]
- ScientificSchematicGenerator · class · L151-L849 — class ScientificSchematicGenerator
- init · method · L218-L247 — def init(self, api_key: Optional[str] = None, verbose: bool = False)
- _log · method · L249-L252 — def _log(self, message: str)
- _make_request · method · L254-L308 — def _make_request(self, model: str, messages: List[Dict[str, Any]], modalities: Optional[List[str]] = None) -> Dict[str, Any]
- _extract_image_from_response · method · L310-L388 — def _extract_image_from_response(self, response: Dict[str, Any]) -> Optional[bytes]
- _image_to_base64 · method · L390-L414 — def _image_to_base64(self, image_path: str) -> str
- generate_image · method · L416-L492 — def generate_image(self, prompt: str) -> Optional[bytes]
- review_image · method · L494-L656 — def review_image(self, image_path: str, original_prompt: str, iteration: int, doc_type: str = "default", max_iterations: int = 2) -> ReviewResult
- improve_prompt · method · L658-L680 — def improve_prompt(self, original_prompt: str, critique: str, iteration: int) -> str
- generate_iterative · method · L682-L849 — def generate_iterative(self, user_prompt: str, output_path: str, iterations: int = 2, doc_type: str = "default") -> Dict[str, Any]
- main · function · L852-L945 — def main()