1 line
20 KiB
JSON
1 line
20 KiB
JSON
{"nodes": [{"id": "users_gurpreet_github_odoo_modules_fusion_accounting_ai_services_adapters_openai_adapter_py", "label": "openai_adapter.py", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L1"}, {"id": "openai_adapter_openaiadapter", "label": "OpenAIAdapter", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L20"}, {"id": "llmprovider", "label": "LLMProvider", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "openai_adapter_openaiadapter_init", "label": ".__init__()", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L35"}, {"id": "openai_adapter_openaiadapter_complete", "label": ".complete()", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L59"}, {"id": "openai_adapter_fusionaccountingadapteropenai", "label": "FusionAccountingAdapterOpenAI", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L82"}, {"id": "openai_adapter_fusionaccountingadapteropenai_get_client", "label": "._get_client()", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L86"}, {"id": "openai_adapter_fusionaccountingadapteropenai_get_model_name", "label": "._get_model_name()", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L102"}, {"id": "openai_adapter_fusionaccountingadapteropenai_format_tools", "label": "._format_tools()", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L106"}, {"id": "openai_adapter_fusionaccountingadapteropenai_is_reasoning_model", "label": "._is_reasoning_model()", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L119"}, {"id": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "label": ".call_with_tools()", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L122"}, {"id": "openai_adapter_fusionaccountingadapteropenai_append_tool_results", "label": ".append_tool_results()", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L180"}, {"id": "openai_adapter_rationale_21", "label": "Plain-Python LLMProvider implementation backed by an OpenAI-compatible HTTP", "file_type": "rationale", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L21"}], "edges": [{"source": "users_gurpreet_github_odoo_modules_fusion_accounting_ai_services_adapters_openai_adapter_py", "target": "json", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L1", "weight": 1.0}, {"source": "users_gurpreet_github_odoo_modules_fusion_accounting_ai_services_adapters_openai_adapter_py", "target": "logging", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L2", "weight": 1.0}, {"source": "users_gurpreet_github_odoo_modules_fusion_accounting_ai_services_adapters_openai_adapter_py", "target": "odoo", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L4", "weight": 1.0}, {"source": "users_gurpreet_github_odoo_modules_fusion_accounting_ai_services_adapters_openai_adapter_py", "target": "odoo_exceptions", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L5", "weight": 1.0}, {"source": "users_gurpreet_github_odoo_modules_fusion_accounting_ai_services_adapters_openai_adapter_py", "target": "users_gurpreet_github_odoo_modules_fusion_accounting_ai_services_adapters_base_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L7", "weight": 1.0}, {"source": "users_gurpreet_github_odoo_modules_fusion_accounting_ai_services_adapters_openai_adapter_py", "target": "openai", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L12", "weight": 1.0}, {"source": "users_gurpreet_github_odoo_modules_fusion_accounting_ai_services_adapters_openai_adapter_py", "target": "openai_adapter_openaiadapter", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L20", "weight": 1.0}, {"source": "openai_adapter_openaiadapter", "target": "llmprovider", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L20", "weight": 1.0}, {"source": "openai_adapter_openaiadapter", "target": "openai_adapter_openaiadapter_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L35", "weight": 1.0}, {"source": "openai_adapter_openaiadapter", "target": "openai_adapter_openaiadapter_complete", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L59", "weight": 1.0}, {"source": "users_gurpreet_github_odoo_modules_fusion_accounting_ai_services_adapters_openai_adapter_py", "target": "openai_adapter_fusionaccountingadapteropenai", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L82", "weight": 1.0}, {"source": "openai_adapter_fusionaccountingadapteropenai", "target": "openai_adapter_fusionaccountingadapteropenai_get_client", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L86", "weight": 1.0}, {"source": "openai_adapter_fusionaccountingadapteropenai", "target": "openai_adapter_fusionaccountingadapteropenai_get_model_name", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L102", "weight": 1.0}, {"source": "openai_adapter_fusionaccountingadapteropenai", "target": "openai_adapter_fusionaccountingadapteropenai_format_tools", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L106", "weight": 1.0}, {"source": "openai_adapter_fusionaccountingadapteropenai", "target": "openai_adapter_fusionaccountingadapteropenai_is_reasoning_model", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L119", "weight": 1.0}, {"source": "openai_adapter_fusionaccountingadapteropenai", "target": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L122", "weight": 1.0}, {"source": "openai_adapter_fusionaccountingadapteropenai", "target": "openai_adapter_fusionaccountingadapteropenai_append_tool_results", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L180", "weight": 1.0}, {"source": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "target": "openai_adapter_fusionaccountingadapteropenai_get_client", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L123", "weight": 1.0}, {"source": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "target": "openai_adapter_fusionaccountingadapteropenai_get_model_name", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L124", "weight": 1.0}, {"source": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "target": "openai_adapter_fusionaccountingadapteropenai_is_reasoning_model", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L125", "weight": 1.0}, {"source": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "target": "openai_adapter_fusionaccountingadapteropenai_format_tools", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L146", "weight": 1.0}, {"source": "openai_adapter_rationale_21", "target": "openai_adapter_openaiadapter", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L21", "weight": 1.0}], "raw_calls": [{"caller_nid": "openai_adapter_openaiadapter_init", "callee": "super", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L36"}, {"caller_nid": "openai_adapter_openaiadapter_init", "callee": "UserError", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L38"}, {"caller_nid": "openai_adapter_openaiadapter_init", "callee": "_", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L38"}, {"caller_nid": "openai_adapter_openaiadapter_init", "callee": "sudo", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L39"}, {"caller_nid": "openai_adapter_openaiadapter_init", "callee": "get_param", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L40"}, {"caller_nid": "openai_adapter_openaiadapter_init", "callee": "get_api_key", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L44"}, {"caller_nid": "openai_adapter_openaiadapter_init", "callee": "get_param", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L50"}, {"caller_nid": "openai_adapter_openaiadapter_init", "callee": "OpenAI", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L56"}, {"caller_nid": "openai_adapter_openaiadapter_init", "callee": "get_param", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L57"}, {"caller_nid": "openai_adapter_openaiadapter_complete", "callee": "get", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L62"}, {"caller_nid": "openai_adapter_openaiadapter_complete", "callee": "append", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L63"}, {"caller_nid": "openai_adapter_openaiadapter_complete", "callee": "create", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L65"}, {"caller_nid": "openai_adapter_openaiadapter_complete", "callee": "error", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L72"}, {"caller_nid": "openai_adapter_openaiadapter_complete", "callee": "UserError", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L73"}, {"caller_nid": "openai_adapter_openaiadapter_complete", "callee": "_", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L73"}, {"caller_nid": "openai_adapter_openaiadapter_complete", "callee": "str", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L73"}, {"caller_nid": "openai_adapter_openaiadapter_complete", "callee": "getattr", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L77"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_get_client", "callee": "UserError", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L88"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_get_client", "callee": "_", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L88"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_get_client", "callee": "get_api_key", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L90"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_get_client", "callee": "sudo", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L96"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_get_client", "callee": "get_param", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L97"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_get_client", "callee": "UserError", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L99"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_get_client", "callee": "_", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L99"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_get_client", "callee": "OpenAI", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L100"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_get_model_name", "callee": "sudo", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L103"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_get_model_name", "callee": "get_param", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L104"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_format_tools", "callee": "append", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L109"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_format_tools", "callee": "get", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L114"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_is_reasoning_model", "callee": "startswith", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L120"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_is_reasoning_model", "callee": "startswith", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L120"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_is_reasoning_model", "callee": "startswith", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L120"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "callee": "append", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L133"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "callee": "create", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L149"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "callee": "error", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L151"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "callee": "UserError", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L152"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "callee": "_", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L152"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "callee": "str", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L152"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "callee": "loads", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L161"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "callee": "warning", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L163"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_call_with_tools", "callee": "append", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L165"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_append_tool_results", "callee": "get", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L181"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_append_tool_results", "callee": "append", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L195"}, {"caller_nid": "openai_adapter_fusionaccountingadapteropenai_append_tool_results", "callee": "append", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_accounting_ai/services/adapters/openai_adapter.py", "source_location": "L198"}]} |