Files
TextNLPClassifierApp/graphify-out/cache/ast/v0.9.47-s2/de938021593301aa420b3175a71e7bd1581649917e30018282a6504505922d57.json
T

1 line
14 KiB
JSON

{"nodes": [{"id": "$graphify-root$_src_adapters_llm_py", "label": "llm.py", "file_type": "code", "source_file": "src/adapters/llm.py", "source_location": "L1"}, {"id": "$graphify-root$_src_adapters_llm_llmfallbackadapter", "label": "LLMFallbackAdapter", "file_type": "code", "source_file": "src/adapters/llm.py", "source_location": "L17", "_callable": true, "_callable_class": true}, {"id": "basenlpadapter", "label": "BaseNLPAdapter", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/src/adapters/llm.py"}, {"id": "$graphify-root$_src_adapters_llm_llmfallbackadapter_init", "label": ".__init__()", "file_type": "code", "source_file": "src/adapters/llm.py", "source_location": "L20", "_callable": true}, {"id": "$graphify-root$_src_adapters_llm_llmfallbackadapter_is_available", "label": ".is_available()", "file_type": "code", "source_file": "src/adapters/llm.py", "source_location": "L30", "_callable": true}, {"id": "$graphify-root$_src_adapters_llm_llmfallbackadapter_evaluate_similarity", "label": ".evaluate_similarity()", "file_type": "code", "source_file": "src/adapters/llm.py", "source_location": "L34", "_callable": true}, {"id": "$graphify-root$_src_adapters_llm_llmfallbackadapter_build_prompt", "label": ".build_prompt()", "file_type": "code", "source_file": "src/adapters/llm.py", "source_location": "L37", "_callable": true}, {"id": "ecpsnapshot", "label": "ECPSnapshot", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/src/adapters/llm.py"}, {"id": "classificationresult", "label": "ClassificationResult", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/src/adapters/llm.py"}, {"id": "$graphify-root$_src_adapters_llm_llmfallbackadapter_disambiguate", "label": ".disambiguate()", "file_type": "code", "source_file": "src/adapters/llm.py", "source_location": "L52", "_callable": true}, {"id": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "label": "._parse_llm_response()", "file_type": "code", "source_file": "src/adapters/llm.py", "source_location": "L75", "_callable": true}, {"id": "$graphify-root$_src_adapters_llm_rationale_1", "label": "Optional LLM fallback adapter (Tier 3). Disabled by default. Provides fallback\u2026", "file_type": "rationale", "source_file": "src/adapters/llm.py", "source_location": "L1"}, {"id": "$graphify-root$_src_adapters_llm_rationale_18", "label": "Optional adapter for LLM fallback boundary disambiguation.", "file_type": "rationale", "source_file": "src/adapters/llm.py", "source_location": "L18"}, {"id": "$graphify-root$_src_adapters_llm_rationale_31", "label": "Returns True if an API key or custom provider function is configured.", "file_type": "rationale", "source_file": "src/adapters/llm.py", "source_location": "L31"}, {"id": "$graphify-root$_src_adapters_llm_rationale_40", "label": "Constructs a structured disambiguation prompt for the LLM.", "file_type": "rationale", "source_file": "src/adapters/llm.py", "source_location": "L40"}, {"id": "$graphify-root$_src_adapters_llm_rationale_58", "label": "Executes LLM fallback for ambiguous boundary cases. Returns a refined\u2026", "file_type": "rationale", "source_file": "src/adapters/llm.py", "source_location": "L58"}, {"id": "$graphify-root$_src_adapters_llm_rationale_80", "label": "Parses and validates structured JSON response from LLM.", "file_type": "rationale", "source_file": "src/adapters/llm.py", "source_location": "L80"}], "edges": [{"source": "$graphify-root$_src_adapters_llm_py", "target": "json", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L9", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L10", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L11", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_py", "target": "src_adapters_base", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L13", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_py", "target": "src_models", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L14", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_py", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L17", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter", "target": "basenlpadapter", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L17", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L20", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_is_available", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L30", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_evaluate_similarity", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L34", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_build_prompt", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L37", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter_build_prompt", "target": "ecpsnapshot", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L37", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter_build_prompt", "target": "classificationresult", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L37", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_disambiguate", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L52", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter_disambiguate", "target": "ecpsnapshot", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L52", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter_disambiguate", "target": "classificationresult", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L52", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter_disambiguate", "target": "classificationresult", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L52", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L75", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "target": "classificationresult", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L75", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "target": "classificationresult", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L75", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter_disambiguate", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_is_available", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L62", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter_disambiguate", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_build_prompt", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L65", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter_disambiguate", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L70", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "target": "classificationresult", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L109", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_rationale_1", "target": "$graphify-root$_src_adapters_llm_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_rationale_18", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L18", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_rationale_31", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_is_available", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L31", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_rationale_40", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_build_prompt", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L40", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_rationale_58", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_disambiguate", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L58", "weight": 1.0}, {"source": "$graphify-root$_src_adapters_llm_rationale_80", "target": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "src/adapters/llm.py", "source_location": "L80", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_init", "callee": "get", "is_member_call": true, "source_file": "src/adapters/llm.py", "source_location": "L27", "receiver": null}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_build_prompt", "callee": "join", "is_member_call": true, "source_file": "src/adapters/llm.py", "source_location": "L43", "receiver": null}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_disambiguate", "callee": "provider_fn", "is_member_call": true, "source_file": "src/adapters/llm.py", "source_location": "L69", "receiver": "self"}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "callee": "strip", "is_member_call": true, "source_file": "src/adapters/llm.py", "source_location": "L83", "receiver": "raw_response"}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "callee": "startswith", "is_member_call": true, "source_file": "src/adapters/llm.py", "source_location": "L84", "receiver": "clean_str"}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "callee": "startswith", "is_member_call": true, "source_file": "src/adapters/llm.py", "source_location": "L86", "receiver": "clean_str"}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "callee": "endswith", "is_member_call": true, "source_file": "src/adapters/llm.py", "source_location": "L88", "receiver": "clean_str"}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "callee": "strip", "is_member_call": true, "source_file": "src/adapters/llm.py", "source_location": "L90", "receiver": "clean_str"}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "callee": "loads", "is_member_call": true, "source_file": "src/adapters/llm.py", "source_location": "L92", "receiver": "json"}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "src/adapters/llm.py", "source_location": "L93"}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "callee": "get", "is_member_call": true, "source_file": "src/adapters/llm.py", "source_location": "L96", "receiver": "parsed"}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "callee": "DecisionCategory", "is_member_call": false, "source_file": "src/adapters/llm.py", "source_location": "L100", "receiver": null}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "callee": "get", "is_member_call": true, "source_file": "src/adapters/llm.py", "source_location": "L101", "receiver": "parsed"}, {"caller_nid": "$graphify-root$_src_adapters_llm_llmfallbackadapter_parse_llm_response", "callee": "get", "is_member_call": true, "source_file": "src/adapters/llm.py", "source_location": "L103", "receiver": "parsed"}]}