1 line
12 KiB
JSON
1 line
12 KiB
JSON
{"nodes": [{"id": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "label": "_mcp_utils.py", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L1"}, {"id": "mcp_utils_mcp_to_gemini_tool", "label": "mcp_to_gemini_tool()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L39"}, {"id": "mcp_utils_mcp_to_gemini_tools", "label": "mcp_to_gemini_tools()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L54"}, {"id": "mcp_utils_has_mcp_tool_usage", "label": "has_mcp_tool_usage()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L59"}, {"id": "mcp_utils_has_mcp_session_usage", "label": "has_mcp_session_usage()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L69"}, {"id": "mcp_utils_set_mcp_usage_header", "label": "set_mcp_usage_header()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L79"}, {"id": "mcp_utils_filter_to_supported_schema", "label": "_filter_to_supported_schema()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L93"}, {"id": "mcp_utils_rationale_40", "label": "Translates an MCP tool to a Google GenAI tool.", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L40"}, {"id": "mcp_utils_rationale_55", "label": "Translates a list of MCP tools to a list of Google GenAI tools.", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L55"}, {"id": "mcp_utils_rationale_60", "label": "Checks whether the list of tools contains any MCP tools or sessions.", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L60"}, {"id": "mcp_utils_rationale_70", "label": "Checks whether the list of tools contains any MCP sessions.", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L70"}, {"id": "mcp_utils_rationale_80", "label": "Sets the MCP version label in the Google API client header.", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L80"}, {"id": "mcp_utils_rationale_96", "label": "Filters the schema to only include fields that are supported by JSONSchema.", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L96"}], "edges": [{"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "importlib_metadata", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L18", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "typing", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L19", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L20", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "backend_venv_lib_python3_12_site_packages_google_genai_init_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L22", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "backend_venv_lib_python3_12_site_packages_google_genai_init_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L23", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "mcp_types", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L26", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "mcp", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L27", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "mcp_types", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L32", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "mcp", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L33", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "mcp_utils_mcp_to_gemini_tool", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L39", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "mcp_utils_mcp_to_gemini_tools", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L54", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "mcp_utils_has_mcp_tool_usage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L59", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "mcp_utils_has_mcp_session_usage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L69", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "mcp_utils_set_mcp_usage_header", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L79", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_google_genai_mcp_utils_py", "target": "mcp_utils_filter_to_supported_schema", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L93", "weight": 1.0}, {"source": "mcp_utils_mcp_to_gemini_tool", "target": "mcp_utils_filter_to_supported_schema", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L47", "weight": 1.0}, {"source": "mcp_utils_mcp_to_gemini_tools", "target": "mcp_utils_mcp_to_gemini_tool", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L56", "weight": 1.0}, {"source": "mcp_utils_rationale_40", "target": "mcp_utils_mcp_to_gemini_tool", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L40", "weight": 1.0}, {"source": "mcp_utils_rationale_55", "target": "mcp_utils_mcp_to_gemini_tools", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L55", "weight": 1.0}, {"source": "mcp_utils_rationale_60", "target": "mcp_utils_has_mcp_tool_usage", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L60", "weight": 1.0}, {"source": "mcp_utils_rationale_70", "target": "mcp_utils_has_mcp_session_usage", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L70", "weight": 1.0}, {"source": "mcp_utils_rationale_80", "target": "mcp_utils_set_mcp_usage_header", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L80", "weight": 1.0}, {"source": "mcp_utils_rationale_96", "target": "mcp_utils_filter_to_supported_schema", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L96", "weight": 1.0}], "raw_calls": [{"caller_nid": "mcp_utils_mcp_to_gemini_tool", "callee": "Tool", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L41"}, {"caller_nid": "mcp_utils_mcp_to_gemini_tool", "callee": "from_json_schema", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L45"}, {"caller_nid": "mcp_utils_mcp_to_gemini_tool", "callee": "JSONSchema", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L46"}, {"caller_nid": "mcp_utils_has_mcp_tool_usage", "callee": "isinstance", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L64"}, {"caller_nid": "mcp_utils_has_mcp_tool_usage", "callee": "isinstance", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L64"}, {"caller_nid": "mcp_utils_has_mcp_session_usage", "callee": "isinstance", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L74"}, {"caller_nid": "mcp_utils_set_mcp_usage_header", "callee": "version", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L84"}, {"caller_nid": "mcp_utils_set_mcp_usage_header", "callee": "get", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L87"}, {"caller_nid": "mcp_utils_set_mcp_usage_header", "callee": "lstrip", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L88"}, {"caller_nid": "mcp_utils_filter_to_supported_schema", "callee": "set", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L97"}, {"caller_nid": "mcp_utils_filter_to_supported_schema", "callee": "keys", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L97"}, {"caller_nid": "mcp_utils_filter_to_supported_schema", "callee": "items", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L103"}, {"caller_nid": "mcp_utils_filter_to_supported_schema", "callee": "items", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L113"}, {"caller_nid": "mcp_utils_filter_to_supported_schema", "callee": "items", "source_file": "backend/venv/lib/python3.12/site-packages/google/genai/_mcp_utils.py", "source_location": "L116"}]} |