File size: 957 Bytes
bc2a98e
 
 
 
 
 
e5bcce8
bc2a98e
 
 
 
 
 
 
 
 
e5bcce8
 
 
 
bc2a98e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""LangGraph state definition for MOF screening pipeline."""
from typing import TypedDict


class ScreeningState(TypedDict, total=False):
    cif_path: str
    user_request: str
    mof_id: str
    task_card: dict | None
    execution_plan: dict | None
    tool_execution_plan: dict | None
    scm_meta: dict | None
    adsorption: dict | None
    linker: dict | None
    toxicity: dict | None
    safety: dict | None
    six_step: dict | None
    gate_status: str | None
    failed_at_step: int | None
    row: dict | None
    evidence_ledger: list[dict]
    audit_report: dict | None
    repair_report: dict | None
    safety_review: dict | None
    reviewer_reports: list[dict]
    decision_record: dict | None
    repair_actions: list[str]
    agent_trace: list[dict]
    final_score: float | None
    recommendation: str | None
    explanation: str | None
    llm_provider: str
    llm_api_key: str | None
    warnings: list[str]
    errors: list[str]