From d041b6290f7b7965388b13b9be407cb7da26714b Mon Sep 17 00:00:00 2001 From: yzlin Date: Wed, 3 Jan 2024 19:32:29 +0800 Subject: [PATCH 1/7] version and readme update --- README.md | 5 ++++- setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6a78a6c55..9c88c92a1 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,10 @@

Software Company Multi-Role Schematic (Gradually Implementing)

## News -- Dec 15: [v0.5.0](https://github.com/geekan/MetaGPT/releases/tag/v0.5.0) is released! We introduce **incremental development**, facilitating agents to build up larger projects on top of their previous efforts or existing codebase. We also launch a whole collection of important features, including **multilingual support** (experimental), multiple **programming languages support** (experimental), **incremental development** (experimental), CLI support, pip support, enhanced code review, documentation mechanism, and optimized messaging mechanism! +🚀 Jan 03: Here comes [v0.6.0](https://github.com/geekan/MetaGPT/releases/tag/v0.6.0)! In this version, we added serialization and deserialization of important objects and enabled breakpoint recovery. We upgraded OpenAI package to v1.6.0 and supported Gemini, ZhipuAI, Ollama, OpenLLM, etc. Moreover, we provided extremely simple examples where you need only 7 lines to implement a general election [debate](https://github.com/geekan/MetaGPT/blob/main/examples/debate_simple.py). Check out more details [here](https://github.com/geekan/MetaGPT/releases/tag/v0.6.0)! + + +🚀 Dec 15: [v0.5.0](https://github.com/geekan/MetaGPT/releases/tag/v0.5.0) is released! We introduced **incremental development**, facilitating agents to build up larger projects on top of their previous efforts or existing codebase. We also launched a whole collection of important features, including **multilingual support** (experimental), multiple **programming languages support** (experimental), **incremental development** (experimental), CLI support, pip support, enhanced code review, documentation mechanism, and optimized messaging mechanism! ## Install diff --git a/setup.py b/setup.py index a81be6115..ae0b0d8aa 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ def run(self): setup( name="metagpt", - version="0.5.2", + version="0.6.0", description="The Multi-Agent Framework", long_description=long_description, long_description_content_type="text/markdown", From 7bb7e37fd3a1d9ed2ee89dd93ccc5694bd64e640 Mon Sep 17 00:00:00 2001 From: shenchucheng <60704484+shenchucheng@users.noreply.github.com> Date: Wed, 3 Jan 2024 21:53:49 +0800 Subject: [PATCH 2/7] Update requirements.txt --- requirements.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 9c90034cb..0a54236f0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,7 +22,7 @@ pandas==2.0.3 pydantic==2.5.3 #pygame==2.1.3 #pymilvus==2.2.8 -pytest==7.2.2 +# pytest==7.2.2 # test extras require python_docx==0.8.11 PyYAML==6.0.1 # sentence_transformers==2.2.2 @@ -38,7 +38,7 @@ typing-inspect==0.8.0 typing_extensions==4.9.0 libcst==1.0.1 qdrant-client==1.7.0 -pytest-mock==3.11.1 +# pytest-mock==3.11.1 # test extras require # open-interpreter==0.1.7; python_version>"3.9" # Conflict with openai 1.x ta==0.10.2 semantic-kernel==0.4.3.dev0 @@ -57,5 +57,5 @@ gitignore-parser==0.1.9 websockets~=12.0 networkx~=3.2.1 google-generativeai==0.3.2 -playwright==1.40.0 +# playwright==1.40.0 # playwright extras require anytree From d05193332418f0a0c2ab06e7c6f8d20496f29de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Thu, 4 Jan 2024 12:46:41 +0800 Subject: [PATCH 3/7] fixbug: recursive search for provider --- config/config.yaml | 1 + metagpt/config.py | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/config.yaml b/config/config.yaml index 5025a4977..e5f8f4573 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -16,6 +16,7 @@ MAX_TOKENS: 4096 RPM: 10 LLM_TYPE: OpenAI # Except for these three major models – OpenAI, MetaGPT LLM, and Azure – other large models can be distinguished based on the validity of the key. TIMEOUT: 60 # Timeout for llm invocation +DEFAULT_PROVIDER: openai #### if Spark #SPARK_APPID : "YOUR_APPID" diff --git a/metagpt/config.py b/metagpt/config.py index eb3636c9a..d633c7d28 100644 --- a/metagpt/config.py +++ b/metagpt/config.py @@ -50,6 +50,9 @@ class LLMProviderEnum(Enum): AZURE_OPENAI = "azure_openai" OLLAMA = "ollama" + def __missing__(self, key): + return self.OPENAI + class Config(metaclass=Singleton): """ @@ -108,6 +111,11 @@ def get_default_llm_provider_enum(self) -> LLMProviderEnum: if v: provider = k break + if provider is None: + if self.DEFAULT_PROVIDER: + provider = LLMProviderEnum(self.DEFAULT_PROVIDER) + else: + raise NotConfiguredException("You should config a LLM configuration first") if provider is LLMProviderEnum.GEMINI and not require_python_version(req_version=(3, 10)): warnings.warn("Use Gemini requires Python >= 3.10") @@ -117,7 +125,6 @@ def get_default_llm_provider_enum(self) -> LLMProviderEnum: if provider: logger.info(f"API: {provider}") return provider - raise NotConfiguredException("You should config a LLM configuration first") def get_model_name(self, provider=None) -> str: provider = provider or self.get_default_llm_provider_enum() From 039fa84ce46aec2c743e6d802c806efe398a97c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Thu, 4 Jan 2024 13:32:45 +0800 Subject: [PATCH 4/7] fixbug: recursive search for provider --- config/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.yaml b/config/config.yaml index e5f8f4573..28a312a9e 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -16,7 +16,7 @@ MAX_TOKENS: 4096 RPM: 10 LLM_TYPE: OpenAI # Except for these three major models – OpenAI, MetaGPT LLM, and Azure – other large models can be distinguished based on the validity of the key. TIMEOUT: 60 # Timeout for llm invocation -DEFAULT_PROVIDER: openai +#DEFAULT_PROVIDER: openai #### if Spark #SPARK_APPID : "YOUR_APPID" From c966138a74391b283eec85c0b19f2112b727dc4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Thu, 4 Jan 2024 14:27:25 +0800 Subject: [PATCH 5/7] feat: +unit test fixbug: Align to the same root directory in accordance with `class_views` fixbug: The class has lost namespace information. feat: + mock fixbug: project name invalid feat: +mermaid sequence diagram feat: translate from code to mermaid sequence feat: translate from code to mermaid sequence --- metagpt/actions/prepare_documents.py | 1 - metagpt/actions/rebuild_class_view.py | 26 +++++++- metagpt/actions/rebuild_class_view_an.py | 33 ---------- metagpt/actions/rebuild_sequence_view.py | 60 +++++++++++++++++++ metagpt/actions/rebuild_sequence_view_an.py | 16 +++++ metagpt/actions/write_prd.py | 5 +- metagpt/repo_parser.py | 10 ++-- metagpt/utils/common.py | 17 ++++++ metagpt/utils/graph_repository.py | 4 +- setup.py | 1 + tests/data/graph_db/networkx.json | 1 + .../actions/test_rebuild_class_view.py | 27 +++++++++ .../actions/test_rebuild_sequence_view.py | 55 +++++++++++++++++ tests/metagpt/learn/test_skill_loader.py | 5 +- 14 files changed, 216 insertions(+), 45 deletions(-) delete mode 100644 metagpt/actions/rebuild_class_view_an.py create mode 100644 metagpt/actions/rebuild_sequence_view.py create mode 100644 metagpt/actions/rebuild_sequence_view_an.py create mode 100644 tests/data/graph_db/networkx.json create mode 100644 tests/metagpt/actions/test_rebuild_sequence_view.py diff --git a/metagpt/actions/prepare_documents.py b/metagpt/actions/prepare_documents.py index a936ea655..5c5798d95 100644 --- a/metagpt/actions/prepare_documents.py +++ b/metagpt/actions/prepare_documents.py @@ -35,7 +35,6 @@ def _init_repo(self): if path.exists() and not CONFIG.inc: shutil.rmtree(path) CONFIG.project_path = path - CONFIG.project_name = path.name CONFIG.git_repo = GitRepository(local_path=path, auto_init=True) async def run(self, with_messages, **kwargs): diff --git a/metagpt/actions/rebuild_class_view.py b/metagpt/actions/rebuild_class_view.py index dbc11d14b..5128b9fee 100644 --- a/metagpt/actions/rebuild_class_view.py +++ b/metagpt/actions/rebuild_class_view.py @@ -33,11 +33,16 @@ async def run(self, with_messages=None, format=CONFIG.prompt_schema): graph_repo_pathname = CONFIG.git_repo.workdir / GRAPH_REPO_FILE_REPO / CONFIG.git_repo.workdir.name graph_db = await DiGraphRepository.load_from(str(graph_repo_pathname.with_suffix(".json"))) repo_parser = RepoParser(base_directory=Path(self.context)) - class_views, relationship_views = await repo_parser.rebuild_class_views(path=Path(self.context)) # use pylint + # use pylint + class_views, relationship_views, package_root = await repo_parser.rebuild_class_views(path=Path(self.context)) await GraphRepository.update_graph_db_with_class_views(graph_db, class_views) await GraphRepository.update_graph_db_with_class_relationship_views(graph_db, relationship_views) - symbols = repo_parser.generate_symbols() # use ast + # use ast + direction, diff_path = self._diff_path(path_root=Path(self.context).resolve(), package_root=package_root) + symbols = repo_parser.generate_symbols() for file_info in symbols: + # Align to the same root directory in accordance with `class_views`. + file_info.file = self._align_root(file_info.file, direction, diff_path) await GraphRepository.update_graph_db_with_file_info(graph_db, file_info) await self._create_mermaid_class_views(graph_db=graph_db) await graph_db.save() @@ -193,3 +198,20 @@ async def _parse_function_args(method: ClassMethod, ns_name: str, graph_db: Grap method.args.append(ClassAttribute(name=parts[0].strip())) continue method.args.append(ClassAttribute(name=parts[0].strip(), value_type=parts[-1].strip())) + + @staticmethod + def _diff_path(path_root: Path, package_root: Path) -> (str, str): + if len(str(path_root)) > len(str(package_root)): + return "+", str(path_root.relative_to(package_root)) + if len(str(path_root)) < len(str(package_root)): + return "-", str(package_root.relative_to(path_root)) + return "=", "." + + @staticmethod + def _align_root(path: str, direction: str, diff_path: str): + if direction == "=": + return path + if direction == "+": + return diff_path + "/" + path + else: + return path[len(diff_path) + 1 :] diff --git a/metagpt/actions/rebuild_class_view_an.py b/metagpt/actions/rebuild_class_view_an.py deleted file mode 100644 index da32a9b5e..000000000 --- a/metagpt/actions/rebuild_class_view_an.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -""" -@Time : 2023/12/19 -@Author : mashenquan -@File : rebuild_class_view_an.py -@Desc : Defines `ActionNode` objects used by rebuild_class_view.py -""" -from metagpt.actions.action_node import ActionNode - -CLASS_SOURCE_CODE_BLOCK = ActionNode( - key="Class View", - expected_type=str, - instruction='Generate the mermaid class diagram corresponding to source code in "context."', - example=""" - classDiagram - class A { - -int x - +int y - -int speed - -int direction - +__init__(x: int, y: int, speed: int, direction: int) - +change_direction(new_direction: int) None - +move() None - } - """, -) - -REBUILD_CLASS_VIEW_NODES = [ - CLASS_SOURCE_CODE_BLOCK, -] - -REBUILD_CLASS_VIEW_NODE = ActionNode.from_children("RebuildClassView", REBUILD_CLASS_VIEW_NODES) diff --git a/metagpt/actions/rebuild_sequence_view.py b/metagpt/actions/rebuild_sequence_view.py new file mode 100644 index 000000000..865050c93 --- /dev/null +++ b/metagpt/actions/rebuild_sequence_view.py @@ -0,0 +1,60 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" +@Time : 2024/1/4 +@Author : mashenquan +@File : rebuild_sequence_view.py +@Desc : Rebuild sequence view info +""" +from __future__ import annotations + +from pathlib import Path +from typing import List + +from metagpt.actions import Action +from metagpt.config import CONFIG +from metagpt.const import GRAPH_REPO_FILE_REPO +from metagpt.logs import logger +from metagpt.utils.common import aread, list_files +from metagpt.utils.di_graph_repository import DiGraphRepository +from metagpt.utils.graph_repository import GraphKeyword + + +class RebuildSequenceView(Action): + async def run(self, with_messages=None, format=CONFIG.prompt_schema): + graph_repo_pathname = CONFIG.git_repo.workdir / GRAPH_REPO_FILE_REPO / CONFIG.git_repo.workdir.name + graph_db = await DiGraphRepository.load_from(str(graph_repo_pathname.with_suffix(".json"))) + entries = await RebuildSequenceView._search_main_entry(graph_db) + for entry in entries: + await self._rebuild_sequence_view(entry, graph_db) + await graph_db.save() + + @staticmethod + async def _search_main_entry(graph_db) -> List: + rows = await graph_db.select(predicate=GraphKeyword.HAS_PAGE_INFO) + tag = "__name__:__main__" + entries = [] + for r in rows: + if tag in r.subject or tag in r.object_: + entries.append(r) + return entries + + async def _rebuild_sequence_view(self, entry, graph_db): + filename = entry.subject.split(":", 1)[0] + src_filename = RebuildSequenceView._get_full_filename(root=self.context, pathname=filename) + content = await aread(filename=src_filename, encoding="utf-8") + content = f"```python\n{content}\n```\n\n---\nTranslate the code above into Mermaid Sequence Diagram." + data = await self.llm.aask( + msg=content, system_msgs=["You are a python code to Mermaid Sequence Diagram translator in function detail"] + ) + await graph_db.insert(subject=filename, predicate=GraphKeyword.HAS_SEQUENCE_VIEW, object_=data) + logger.info(data) + + @staticmethod + def _get_full_filename(root: str | Path, pathname: str | Path) -> Path | None: + files = list_files(root=root) + postfix = "/" + str(pathname) + for i in files: + if str(i).endswith(postfix): + return i + return None diff --git a/metagpt/actions/rebuild_sequence_view_an.py b/metagpt/actions/rebuild_sequence_view_an.py new file mode 100644 index 000000000..f16431510 --- /dev/null +++ b/metagpt/actions/rebuild_sequence_view_an.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" +@Time : 2024/1/4 +@Author : mashenquan +@File : rebuild_sequence_view_an.py +""" +from metagpt.actions.action_node import ActionNode +from metagpt.utils.mermaid import MMC2 + +CODE_2_MERMAID_SEQUENCE_DIAGRAM = ActionNode( + key="Program call flow", + expected_type=str, + instruction='Translate the "context" content into "format example" format.', + example=MMC2, +) diff --git a/metagpt/actions/write_prd.py b/metagpt/actions/write_prd.py index d51c0a7be..073d8c076 100644 --- a/metagpt/actions/write_prd.py +++ b/metagpt/actions/write_prd.py @@ -14,6 +14,7 @@ from __future__ import annotations import json +import uuid from pathlib import Path from typing import Optional @@ -117,7 +118,7 @@ async def _run_new_requirement(self, requirements, schema=CONFIG.prompt_schema) # if sas.result: # logger.info(sas.result) # logger.info(rsp) - project_name = CONFIG.project_name if CONFIG.project_name else "" + project_name = CONFIG.project_name or "" context = CONTEXT_TEMPLATE.format(requirements=requirements, project_name=project_name) exclude = [PROJECT_NAME.key] if project_name else [] node = await WRITE_PRD_NODE.fill(context=context, llm=self.llm, exclude=exclude) # schema=schema @@ -183,6 +184,8 @@ async def _rename_workspace(prd): ws_name = CodeParser.parse_str(block="Project Name", text=prd) if ws_name: CONFIG.project_name = ws_name + if not CONFIG.project_name: # The LLM failed to provide a project name, and the user didn't provide one either. + CONFIG.project_name = "app" + uuid.uuid4().hex[:16] CONFIG.git_repo.rename_root(CONFIG.project_name) async def _is_bugfix(self, context) -> bool: diff --git a/metagpt/repo_parser.py b/metagpt/repo_parser.py index 9863a29ae..e91ebd215 100644 --- a/metagpt/repo_parser.py +++ b/metagpt/repo_parser.py @@ -240,12 +240,12 @@ async def rebuild_class_views(self, path: str | Path = None): class_views = await self._parse_classes(class_view_pathname) relationship_views = await self._parse_class_relationships(class_view_pathname) packages_pathname = path / "packages.dot" - class_views, relationship_views = RepoParser._repair_namespaces( + class_views, relationship_views, package_root = RepoParser._repair_namespaces( class_views=class_views, relationship_views=relationship_views, path=path ) class_view_pathname.unlink(missing_ok=True) packages_pathname.unlink(missing_ok=True) - return class_views, relationship_views + return class_views, relationship_views, package_root async def _parse_classes(self, class_view_pathname): class_views = [] @@ -364,9 +364,9 @@ def _create_path_mapping(path: str | Path) -> Dict[str, str]: @staticmethod def _repair_namespaces( class_views: List[ClassInfo], relationship_views: List[ClassRelationship], path: str | Path - ) -> (List[ClassInfo], List[ClassRelationship]): + ) -> (List[ClassInfo], List[ClassRelationship], str): if not class_views: - return [] + return [], [], "" c = class_views[0] full_key = str(path).lstrip("/").replace("/", ".") root_namespace = RepoParser._find_root(full_key, c.package) @@ -388,7 +388,7 @@ def _repair_namespaces( v.src = RepoParser._repair_ns(v.src, new_mappings) v.dest = RepoParser._repair_ns(v.dest, new_mappings) relationship_views[i] = v - return class_views, relationship_views + return class_views, relationship_views, root_path @staticmethod def _repair_ns(package, mappings): diff --git a/metagpt/utils/common.py b/metagpt/utils/common.py index 0032f0b0d..2943b5dce 100644 --- a/metagpt/utils/common.py +++ b/metagpt/utils/common.py @@ -550,3 +550,20 @@ async def read_file_block(filename: str | Path, lineno: int, end_lineno: int): break lines.append(line) return "".join(lines) + + +def list_files(root: str | Path) -> List[Path]: + files = [] + try: + directory_path = Path(root) + if not directory_path.exists(): + return [] + for file_path in directory_path.iterdir(): + if file_path.is_file(): + files.append(file_path) + else: + subfolder_files = list_files(root=file_path) + files.extend(subfolder_files) + except Exception as e: + logger.error(f"Error: {e}") + return files diff --git a/metagpt/utils/graph_repository.py b/metagpt/utils/graph_repository.py index 88946c98e..1a6f29a6b 100644 --- a/metagpt/utils/graph_repository.py +++ b/metagpt/utils/graph_repository.py @@ -135,12 +135,12 @@ async def update_graph_db_with_file_info(graph_db: "GraphRepository", file_info: @staticmethod async def update_graph_db_with_class_views(graph_db: "GraphRepository", class_views: List[ClassInfo]): for c in class_views: - filename, class_name = c.package.split(":", 1) + filename, _ = c.package.split(":", 1) await graph_db.insert(subject=filename, predicate=GraphKeyword.IS, object_=GraphKeyword.SOURCE_CODE) file_types = {".py": "python", ".js": "javascript"} file_type = file_types.get(Path(filename).suffix, GraphKeyword.NULL) await graph_db.insert(subject=filename, predicate=GraphKeyword.IS, object_=file_type) - await graph_db.insert(subject=filename, predicate=GraphKeyword.HAS_CLASS, object_=class_name) + await graph_db.insert(subject=filename, predicate=GraphKeyword.HAS_CLASS, object_=c.package) await graph_db.insert( subject=c.package, predicate=GraphKeyword.IS, diff --git a/setup.py b/setup.py index ae0b0d8aa..42676c2e6 100644 --- a/setup.py +++ b/setup.py @@ -46,6 +46,7 @@ def run(self): "chromadb==0.4.14", "gradio==3.0.0", "grpcio-status==1.48.2", + "mock==5.1.0", ] extras_require["pyppeteer"] = [ diff --git a/tests/data/graph_db/networkx.json b/tests/data/graph_db/networkx.json new file mode 100644 index 000000000..9e8c38a8f --- /dev/null +++ b/tests/data/graph_db/networkx.json @@ -0,0 +1 @@ +{"directed": true, "multigraph": false, "graph": {}, "nodes": [{"id": "metagpt/schema.py"}, {"id": "source_code"}, {"id": "python"}, {"id": "metagpt/schema.py:AIMessage"}, {"id": "class"}, {"id": "metagpt/provider/general_api_base.py"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:api_key"}, {"id": "class_property"}, {"id": "api_key : NoneType"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:api_type"}, {"id": "api_type : AZURE_AD, OPEN_AI"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:api_version"}, {"id": "api_version"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:base_url"}, {"id": "base_url : NoneType"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:organization"}, {"id": "organization : NoneType"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:arequest"}, {"id": "class_function"}, {"id": "arequest(method, url, params, headers, files, stream: Literal[True], request_id: Optional[str], request_timeout: Optional[Union[float, Tuple[float, float]]]): Tuple[AsyncGenerator[OpenAIResponse, None], bool, str]"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:arequest_raw"}, {"id": "arequest_raw(method, url, session): aiohttp.ClientResponse"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:request"}, {"id": "request(method, url, params, headers, files, stream: Literal[True], request_id: Optional[str], request_timeout: Optional[Union[float, Tuple[float, float]]]): Tuple[Iterator[OpenAIResponse], bool, str]"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:request_headers"}, {"id": "request_headers(method: str, extra, request_id: Optional[str]): Dict[str, str]"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:request_raw"}, {"id": "request_raw(method, url): requests.Response"}, {"id": "metagpt/actions/action.py"}, {"id": "metagpt/actions/action.py:Action"}, {"id": "metagpt/actions/action.py:Action:context"}, {"id": "context : Union[dict, CodingContext, CodeSummarizeContext, TestingContext, RunCodeContext, str, None]"}, {"id": "metagpt/actions/action.py:Action:desc"}, {"id": "desc : str"}, {"id": "metagpt/actions/action.py:Action:llm"}, {"id": "llm"}, {"id": "metagpt/actions/action.py:Action:model_config"}, {"id": "model_config"}, {"id": "metagpt/actions/action.py:Action:name"}, {"id": "name : str"}, {"id": "metagpt/actions/action.py:Action:node"}, {"id": "node"}, {"id": "metagpt/actions/action.py:Action:prefix"}, {"id": "prefix : str"}, {"id": "metagpt/actions/action.py:Action:run"}, {"id": "run()"}, {"id": "metagpt/actions/action.py:Action:set_name_if_empty"}, {"id": "set_name_if_empty(values)"}, {"id": "metagpt/actions/action.py:Action:set_prefix"}, {"id": "set_prefix(prefix)"}, {"id": "metagpt/actions/action_node.py"}, {"id": "metagpt/actions/action_node.py:ActionNode"}, {"id": "metagpt/actions/action_node.py:ActionNode:children"}, {"id": "children : dict[str, 'ActionNode']"}, {"id": "metagpt/actions/action_node.py:ActionNode:content"}, {"id": "content : str"}, {"id": "metagpt/actions/action_node.py:ActionNode:context"}, {"id": "context : str"}, {"id": "metagpt/actions/action_node.py:ActionNode:example"}, {"id": "example"}, {"id": "metagpt/actions/action_node.py:ActionNode:expected_type"}, {"id": "expected_type : Type"}, {"id": "metagpt/actions/action_node.py:ActionNode:instruct_content"}, {"id": "instruct_content : BaseModel"}, {"id": "metagpt/actions/action_node.py:ActionNode:instruction"}, {"id": "instruction : str"}, {"id": "metagpt/actions/action_node.py:ActionNode:key"}, {"id": "key : str"}, {"id": "metagpt/actions/action_node.py:ActionNode:llm"}, {"id": "metagpt/actions/action_node.py:ActionNode:schema"}, {"id": "schema : str"}, {"id": "metagpt/actions/action_node.py:ActionNode:add_child"}, {"id": "add_child(node: 'ActionNode')"}, {"id": "metagpt/actions/action_node.py:ActionNode:add_children"}, {"id": "add_children(nodes: List['ActionNode'])"}, {"id": "metagpt/actions/action_node.py:ActionNode:compile"}, {"id": "compile(context, schema, mode, template, exclude): str"}, {"id": "metagpt/actions/action_node.py:ActionNode:compile_example"}, {"id": "compile_example(schema, mode, tag, exclude): str"}, {"id": "metagpt/actions/action_node.py:ActionNode:compile_instruction"}, {"id": "compile_instruction(schema, mode, tag, exclude): str"}, {"id": "metagpt/actions/action_node.py:ActionNode:compile_to"}, {"id": "compile_to(i: Dict, schema, kv_sep): str"}, {"id": "metagpt/actions/action_node.py:ActionNode:create_children_class"}, {"id": "create_children_class(exclude)"}, {"id": "metagpt/actions/action_node.py:ActionNode:create_model_class"}, {"id": "create_model_class(class_name: str, mapping: Dict[str, Tuple[Type, Any]])"}, {"id": "metagpt/actions/action_node.py:ActionNode:fill"}, {"id": "fill(context, llm, schema, mode, strgy, timeout, exclude)"}, {"id": "metagpt/actions/action_node.py:ActionNode:from_children"}, {"id": "from_children(key, nodes: List['ActionNode'])"}, {"id": "metagpt/actions/action_node.py:ActionNode:get"}, {"id": "get(key)"}, {"id": "metagpt/actions/action_node.py:ActionNode:get_children_mapping"}, {"id": "get_children_mapping(exclude): Dict[str, Tuple[Type, Any]]"}, {"id": "metagpt/actions/action_node.py:ActionNode:get_mapping"}, {"id": "get_mapping(mode, exclude): Dict[str, Tuple[Type, Any]]"}, {"id": "metagpt/actions/action_node.py:ActionNode:get_self_mapping"}, {"id": "get_self_mapping(): Dict[str, Tuple[Type, Any]]"}, {"id": "metagpt/actions/action_node.py:ActionNode:set_context"}, {"id": "set_context(context)"}, {"id": "metagpt/actions/action_node.py:ActionNode:set_llm"}, {"id": "set_llm(llm)"}, {"id": "metagpt/actions/action_node.py:ActionNode:set_recursive"}, {"id": "set_recursive(name, value)"}, {"id": "metagpt/actions/action_node.py:ActionNode:simple_fill"}, {"id": "simple_fill(schema, mode, timeout, exclude)"}, {"id": "metagpt/actions/action_node.py:ActionNode:tagging"}, {"id": "tagging(text, schema, tag): str"}, {"id": "metagpt/actions/action_node.py:ActionNode:to_dict"}, {"id": "to_dict(format_func, mode, exclude): Dict"}, {"id": "metagpt/actions/action_output.py"}, {"id": "metagpt/actions/action_output.py:ActionOutput"}, {"id": "metagpt/actions/action_output.py:ActionOutput:content"}, {"id": "metagpt/actions/action_output.py:ActionOutput:instruct_content"}, {"id": "metagpt/actions"}, {"id": ""}, {"id": "metagpt/actions:ActionType"}, {"id": "metagpt/actions:ActionType:name"}, {"id": "name"}, {"id": "metagpt/provider/general_api_base.py:ApiType"}, {"id": "metagpt/provider/general_api_base.py:ApiType:name"}, {"id": "metagpt/provider/general_api_base.py:ApiType:from_str"}, {"id": "from_str(label)"}, {"id": "metagpt/roles/architect.py"}, {"id": "metagpt/roles/architect.py:Architect"}, {"id": "metagpt/roles/architect.py:Architect:constraints"}, {"id": "constraints : str"}, {"id": "metagpt/roles/architect.py:Architect:goal"}, {"id": "goal : str"}, {"id": "metagpt/roles/architect.py:Architect:name"}, {"id": "metagpt/roles/architect.py:Architect:profile"}, {"id": "profile : str"}, {"id": "metagpt/actions/skill_action.py"}, {"id": "metagpt/actions/skill_action.py:ArgumentsParingAction"}, {"id": "metagpt/actions/skill_action.py:ArgumentsParingAction:args"}, {"id": "args : Optional[Dict]"}, {"id": "metagpt/actions/skill_action.py:ArgumentsParingAction:ask"}, {"id": "ask : str"}, {"id": "metagpt/actions/skill_action.py:ArgumentsParingAction:prompt"}, {"id": "prompt"}, {"id": "metagpt/actions/skill_action.py:ArgumentsParingAction:rsp"}, {"id": "rsp : Optional[Message]"}, {"id": "metagpt/actions/skill_action.py:ArgumentsParingAction:skill"}, {"id": "skill"}, {"id": "metagpt/actions/skill_action.py:ArgumentsParingAction:parse_arguments"}, {"id": "parse_arguments(skill_name, txt): dict"}, {"id": "metagpt/actions/skill_action.py:ArgumentsParingAction:run"}, {"id": "run(with_message): Message"}, {"id": "metagpt/roles/assistant.py"}, {"id": "metagpt/roles/assistant.py:Assistant"}, {"id": "metagpt/roles/assistant.py:Assistant:constraints"}, {"id": "metagpt/roles/assistant.py:Assistant:desc"}, {"id": "metagpt/roles/assistant.py:Assistant:goal"}, {"id": "metagpt/roles/assistant.py:Assistant:memory"}, {"id": "memory"}, {"id": "metagpt/roles/assistant.py:Assistant:name"}, {"id": "metagpt/roles/assistant.py:Assistant:profile"}, {"id": "metagpt/roles/assistant.py:Assistant:skills"}, {"id": "skills : Optional[SkillsDeclaration]"}, {"id": "metagpt/roles/assistant.py:Assistant:act"}, {"id": "act(): Message"}, {"id": "metagpt/roles/assistant.py:Assistant:get_memory"}, {"id": "get_memory(): str"}, {"id": "metagpt/roles/assistant.py:Assistant:load_memory"}, {"id": "load_memory(m)"}, {"id": "metagpt/roles/assistant.py:Assistant:refine_memory"}, {"id": "refine_memory(): str"}, {"id": "metagpt/roles/assistant.py:Assistant:skill_handler"}, {"id": "skill_handler(text): bool"}, {"id": "metagpt/roles/assistant.py:Assistant:talk"}, {"id": "talk(text)"}, {"id": "metagpt/roles/assistant.py:Assistant:talk_handler"}, {"id": "talk_handler(text): bool"}, {"id": "metagpt/roles/assistant.py:Assistant:think"}, {"id": "think(): bool"}, {"id": "metagpt/provider/zhipuai/async_sse_client.py"}, {"id": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient"}, {"id": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient:async_events"}, {"id": "async_events()"}, {"id": "metagpt/tools/iflytek_tts.py"}, {"id": "metagpt/tools/iflytek_tts.py:AudioData"}, {"id": "metagpt/tools/iflytek_tts.py:AudioData:audio"}, {"id": "audio : str"}, {"id": "metagpt/tools/iflytek_tts.py:AudioData:ced"}, {"id": "ced : str"}, {"id": "metagpt/tools/iflytek_tts.py:AudioData:status"}, {"id": "status : int"}, {"id": "metagpt/provider/azure_openai_api.py"}, {"id": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM"}, {"id": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:aclient"}, {"id": "aclient : AsyncAzureOpenAI"}, {"id": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:model"}, {"id": "model"}, {"id": "metagpt/tools/azure_tts.py"}, {"id": "metagpt/tools/azure_tts.py:AzureTTS"}, {"id": "metagpt/tools/azure_tts.py:AzureTTS:region"}, {"id": "region"}, {"id": "metagpt/tools/azure_tts.py:AzureTTS:subscription_key"}, {"id": "subscription_key"}, {"id": "metagpt/tools/azure_tts.py:AzureTTS:role_style_text"}, {"id": "role_style_text(role, style, text)"}, {"id": "metagpt/tools/azure_tts.py:AzureTTS:role_text"}, {"id": "role_text(role, text)"}, {"id": "metagpt/tools/azure_tts.py:AzureTTS:style_text"}, {"id": "style_text(style, text)"}, {"id": "metagpt/tools/azure_tts.py:AzureTTS:synthesize_speech"}, {"id": "synthesize_speech(lang, voice, text, output_file)"}, {"id": "metagpt/tools/prompt_writer.py"}, {"id": "metagpt/tools/prompt_writer.py:BEAGECTemplate"}, {"id": "metagpt/tools/prompt_writer.py:BEAGECTemplate:gen"}, {"id": "gen()"}, {"id": "metagpt/strategy/tot.py"}, {"id": "metagpt/strategy/tot.py:BFSSolver"}, {"id": "metagpt/strategy/tot.py:BFSSolver:thought_tree"}, {"id": "thought_tree"}, {"id": "metagpt/strategy/tot.py:BFSSolver:generate_and_evaluate_nodes"}, {"id": "generate_and_evaluate_nodes(current_state, current_value, node)"}, {"id": "metagpt/strategy/tot.py:BFSSolver:solve"}, {"id": "solve(init_prompt)"}, {"id": "metagpt/schema.py:BaseContext"}, {"id": "metagpt/schema.py:BaseContext:loads"}, {"id": "loads(val: str): Optional[T]"}, {"id": "metagpt/strategy/base.py"}, {"id": "metagpt/strategy/base.py:BaseEvaluator"}, {"id": "metagpt/strategy/base.py:BaseEvaluator:status_verify"}, {"id": "status_verify()"}, {"id": "metagpt/provider/base_llm.py"}, {"id": "metagpt/provider/base_llm.py:BaseLLM"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:system_prompt"}, {"id": "system_prompt : str"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:use_system_prompt"}, {"id": "use_system_prompt : bool"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:aask"}, {"id": "aask(msg: str, system_msgs: Optional[list[str]], format_msgs: Optional[list[dict[str, str]]], timeout, stream): str"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:aask_batch"}, {"id": "aask_batch(msgs: list, timeout): str"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:aask_code"}, {"id": "aask_code(msgs: list[str], timeout): str"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:acompletion"}, {"id": "acompletion(messages: list[dict], timeout)"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:acompletion_text"}, {"id": "acompletion_text(messages: list[dict], stream, timeout): str"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:get_choice_function"}, {"id": "get_choice_function(rsp: dict): dict"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:get_choice_function_arguments"}, {"id": "get_choice_function_arguments(rsp: dict): dict"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:get_choice_text"}, {"id": "get_choice_text(rsp: dict): str"}, {"id": "metagpt/strategy/base.py:BaseParser"}, {"id": "metagpt/strategy/base.py:BaseParser:propose"}, {"id": "propose(current_state: str): str"}, {"id": "metagpt/strategy/base.py:BaseParser:sample"}, {"id": "sample(current_state: str): str"}, {"id": "metagpt/strategy/base.py:BaseParser:value"}, {"id": "value(input: str): str"}, {"id": "metagpt/provider/postprocess/base_postprocess_plugin.py"}, {"id": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin"}, {"id": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:model"}, {"id": "model : NoneType"}, {"id": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run"}, {"id": "run(output: str, schema: dict, req_key: str): Union[dict, list]"}, {"id": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_extract_content_from_output"}, {"id": "run_extract_content_from_output(content: str, right_key: str): str"}, {"id": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_repair_llm_output"}, {"id": "run_repair_llm_output(output: str, schema: dict, req_key: str): Union[dict, list]"}, {"id": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_repair_llm_raw_output"}, {"id": "run_repair_llm_raw_output(content: str, req_keys: list[str], repair_type: str): str"}, {"id": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_retry_parse_json_text"}, {"id": "run_retry_parse_json_text(content: str): Union[dict, list]"}, {"id": "metagpt/document_store/base_store.py"}, {"id": "metagpt/document_store/base_store.py:BaseStore"}, {"id": "metagpt/document_store/base_store.py:BaseStore:add"}, {"id": "add()"}, {"id": "metagpt/document_store/base_store.py:BaseStore:search"}, {"id": "search()"}, {"id": "metagpt/document_store/base_store.py:BaseStore:write"}, {"id": "write()"}, {"id": "metagpt/memory/brain_memory.py"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:cacheable"}, {"id": "cacheable : bool"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:historical_summary"}, {"id": "historical_summary : str"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:history"}, {"id": "history : List[Message]"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:history_text"}, {"id": "history_text"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:is_dirty"}, {"id": "is_dirty : bool"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:is_history_available"}, {"id": "is_history_available"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:knowledge"}, {"id": "knowledge : List[Message]"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:last_history_id"}, {"id": "last_history_id : str"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:last_talk"}, {"id": "last_talk : Optional[str]"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:llm"}, {"id": "llm : Optional[BaseLLM]"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:add_answer"}, {"id": "add_answer(msg: Message)"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:add_history"}, {"id": "add_history(msg: Message)"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:add_talk"}, {"id": "add_talk(msg: Message)"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:dumps"}, {"id": "dumps(redis_key: str, timeout_sec: int)"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:exists"}, {"id": "exists(text): bool"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:extract_info"}, {"id": "extract_info(input_string, pattern)"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:get_knowledge"}, {"id": "get_knowledge(): str"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:get_title"}, {"id": "get_title(llm, max_words): str"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:is_related"}, {"id": "is_related(text1, text2, llm)"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:loads"}, {"id": "loads(redis_key: str): 'BrainMemory'"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:pop_last_talk"}, {"id": "pop_last_talk()"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:rewrite"}, {"id": "rewrite(sentence: str, context: str, llm)"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:set_history_summary"}, {"id": "set_history_summary(history_summary, redis_key, redis_conf)"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:split_texts"}, {"id": "split_texts(text: str, window_size): List[str]"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:summarize"}, {"id": "summarize(llm, max_words, keep_language: bool, limit: int)"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:to_int"}, {"id": "to_int(v, default_value)"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:to_metagpt_history_format"}, {"id": "to_metagpt_history_format(history): str"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:to_redis_key"}, {"id": "to_redis_key(prefix: str, user_id: str, chat_id: str)"}, {"id": "metagpt/schema.py:BugFixContext"}, {"id": "metagpt/schema.py:BugFixContext:filename"}, {"id": "filename : str"}, {"id": "metagpt/utils/git_repository.py"}, {"id": "metagpt/utils/git_repository.py:ChangeType"}, {"id": "metagpt/utils/git_repository.py:ChangeType:name"}, {"id": "metagpt/document_store/chromadb_store.py"}, {"id": "metagpt/document_store/chromadb_store.py:ChromaStore"}, {"id": "metagpt/document_store/chromadb_store.py:ChromaStore:client"}, {"id": "client : FastAPI, LocalAPI"}, {"id": "metagpt/document_store/chromadb_store.py:ChromaStore:collection"}, {"id": "collection : Collection"}, {"id": "metagpt/document_store/chromadb_store.py:ChromaStore:add"}, {"id": "add(document, metadata, _id)"}, {"id": "metagpt/document_store/chromadb_store.py:ChromaStore:delete"}, {"id": "delete(_id)"}, {"id": "metagpt/document_store/chromadb_store.py:ChromaStore:persist"}, {"id": "persist()"}, {"id": "metagpt/document_store/chromadb_store.py:ChromaStore:search"}, {"id": "search(query, n_results, metadata_filter, document_filter)"}, {"id": "metagpt/document_store/chromadb_store.py:ChromaStore:write"}, {"id": "write(documents, metadatas, ids)"}, {"id": "metagpt/schema.py:ClassAttribute"}, {"id": "metagpt/schema.py:ClassAttribute:default_value"}, {"id": "default_value : str"}, {"id": "metagpt/schema.py:ClassAttribute:value_type"}, {"id": "value_type : str"}, {"id": "metagpt/schema.py:ClassAttribute:get_mermaid"}, {"id": "get_mermaid(align): str"}, {"id": "metagpt/repo_parser.py"}, {"id": "metagpt/repo_parser.py:ClassInfo"}, {"id": "metagpt/repo_parser.py:ClassInfo:attributes"}, {"id": "attributes : Dict[str, str]"}, {"id": "metagpt/repo_parser.py:ClassInfo:methods"}, {"id": "methods : Dict[str, str]"}, {"id": "metagpt/repo_parser.py:ClassInfo:name"}, {"id": "metagpt/repo_parser.py:ClassInfo:package"}, {"id": "package : Optional[str]"}, {"id": "metagpt/schema.py:ClassMeta"}, {"id": "metagpt/schema.py:ClassMeta:abstraction"}, {"id": "abstraction : bool"}, {"id": "metagpt/schema.py:ClassMeta:name"}, {"id": "metagpt/schema.py:ClassMeta:static"}, {"id": "static : bool"}, {"id": "metagpt/schema.py:ClassMeta:visibility"}, {"id": "visibility : str"}, {"id": "metagpt/schema.py:ClassMethod"}, {"id": "metagpt/schema.py:ClassMethod:args"}, {"id": "args : List[ClassAttribute]"}, {"id": "metagpt/schema.py:ClassMethod:return_type"}, {"id": "return_type : str"}, {"id": "metagpt/schema.py:ClassMethod:get_mermaid"}, {"id": "metagpt/repo_parser.py:ClassRelationship"}, {"id": "metagpt/repo_parser.py:ClassRelationship:dest"}, {"id": "dest : str"}, {"id": "metagpt/repo_parser.py:ClassRelationship:label"}, {"id": "label : Optional[str]"}, {"id": "metagpt/repo_parser.py:ClassRelationship:relationship"}, {"id": "relationship : str"}, {"id": "metagpt/repo_parser.py:ClassRelationship:src"}, {"id": "src : str"}, {"id": "metagpt/schema.py:ClassView"}, {"id": "metagpt/schema.py:ClassView:attributes"}, {"id": "attributes : List[ClassAttribute]"}, {"id": "metagpt/schema.py:ClassView:methods"}, {"id": "methods : List[ClassMethod]"}, {"id": "metagpt/schema.py:ClassView:get_mermaid"}, {"id": "metagpt/provider/anthropic_api.py"}, {"id": "metagpt/provider/anthropic_api.py:Claude2"}, {"id": "metagpt/provider/anthropic_api.py:Claude2:aask"}, {"id": "aask(prompt: str): str"}, {"id": "metagpt/provider/anthropic_api.py:Claude2:ask"}, {"id": "ask(prompt: str): str"}, {"id": "metagpt/repo_parser.py:CodeBlockInfo"}, {"id": "metagpt/repo_parser.py:CodeBlockInfo:end_lineno"}, {"id": "end_lineno : int"}, {"id": "metagpt/repo_parser.py:CodeBlockInfo:lineno"}, {"id": "lineno : int"}, {"id": "metagpt/repo_parser.py:CodeBlockInfo:properties"}, {"id": "properties : Dict"}, {"id": "metagpt/repo_parser.py:CodeBlockInfo:tokens"}, {"id": "tokens : List"}, {"id": "metagpt/repo_parser.py:CodeBlockInfo:type_name"}, {"id": "type_name : str"}, {"id": "metagpt/utils/common.py"}, {"id": "metagpt/utils/common.py:CodeParser"}, {"id": "metagpt/utils/common.py:CodeParser:parse_block"}, {"id": "parse_block(block: str, text: str): str"}, {"id": "metagpt/utils/common.py:CodeParser:parse_blocks"}, {"id": "parse_blocks(text: str)"}, {"id": "metagpt/utils/common.py:CodeParser:parse_code"}, {"id": "parse_code(block: str, text: str, lang: str): str"}, {"id": "metagpt/utils/common.py:CodeParser:parse_file_list"}, {"id": "parse_file_list(block: str, text: str, lang: str): list[str]"}, {"id": "metagpt/utils/common.py:CodeParser:parse_str"}, {"id": "parse_str(block: str, text: str, lang: str)"}, {"id": "metagpt/schema.py:CodeSummarizeContext"}, {"id": "metagpt/schema.py:CodeSummarizeContext:codes_filenames"}, {"id": "codes_filenames : List[str]"}, {"id": "metagpt/schema.py:CodeSummarizeContext:design_filename"}, {"id": "design_filename : str"}, {"id": "metagpt/schema.py:CodeSummarizeContext:reason"}, {"id": "reason : str"}, {"id": "metagpt/schema.py:CodeSummarizeContext:task_filename"}, {"id": "task_filename : str"}, {"id": "metagpt/schema.py:CodeSummarizeContext:loads"}, {"id": "loads(filenames: List): CodeSummarizeContext"}, {"id": "metagpt/schema.py:CodingContext"}, {"id": "metagpt/schema.py:CodingContext:code_doc"}, {"id": "code_doc : Optional[Document]"}, {"id": "metagpt/schema.py:CodingContext:design_doc"}, {"id": "design_doc : Optional[Document]"}, {"id": "metagpt/schema.py:CodingContext:filename"}, {"id": "metagpt/schema.py:CodingContext:task_doc"}, {"id": "task_doc : Optional[Document]"}, {"id": "metagpt/actions/research.py"}, {"id": "metagpt/actions/research.py:CollectLinks"}, {"id": "metagpt/actions/research.py:CollectLinks:context"}, {"id": "context : Optional[str]"}, {"id": "metagpt/actions/research.py:CollectLinks:desc"}, {"id": "metagpt/actions/research.py:CollectLinks:name"}, {"id": "metagpt/actions/research.py:CollectLinks:rank_func"}, {"id": "rank_func : Optional[Callable[[list[str]], None]]"}, {"id": "metagpt/actions/research.py:CollectLinks:search_engine"}, {"id": "search_engine"}, {"id": "metagpt/actions/research.py:CollectLinks:run"}, {"id": "run(topic: str, decomposition_nums: int, url_per_query: int, system_text: str \\| None): dict[str, list[str]]"}, {"id": "metagpt/learn/skill_loader.py"}, {"id": "metagpt/learn/skill_loader.py:Components"}, {"id": "metagpt/actions/research.py:ConductResearch"}, {"id": "metagpt/actions/research.py:ConductResearch:context"}, {"id": "metagpt/actions/research.py:ConductResearch:llm"}, {"id": "metagpt/actions/research.py:ConductResearch:name"}, {"id": "metagpt/actions/research.py:ConductResearch:run"}, {"id": "run(topic: str, content: str, system_text: str): str"}, {"id": "metagpt/config.py"}, {"id": "metagpt/config.py:Config"}, {"id": "metagpt/config.py:Config:anthropic_api_key"}, {"id": "anthropic_api_key"}, {"id": "metagpt/config.py:Config:calc_usage"}, {"id": "calc_usage"}, {"id": "metagpt/config.py:Config:claude_api_key"}, {"id": "claude_api_key"}, {"id": "metagpt/config.py:Config:code_review_k_times"}, {"id": "code_review_k_times : int"}, {"id": "metagpt/config.py:Config:cost_manager"}, {"id": "cost_manager"}, {"id": "metagpt/config.py:Config:default_yaml_file"}, {"id": "default_yaml_file"}, {"id": "metagpt/config.py:Config:deployment_name"}, {"id": "deployment_name"}, {"id": "metagpt/config.py:Config:domain"}, {"id": "domain"}, {"id": "metagpt/config.py:Config:fireworks_api_base"}, {"id": "fireworks_api_base"}, {"id": "metagpt/config.py:Config:fireworks_api_key"}, {"id": "fireworks_api_key"}, {"id": "metagpt/config.py:Config:fireworks_api_model"}, {"id": "fireworks_api_model"}, {"id": "metagpt/config.py:Config:gemini_api_key"}, {"id": "gemini_api_key"}, {"id": "metagpt/config.py:Config:git_reinit"}, {"id": "git_reinit : bool"}, {"id": "metagpt/config.py:Config:global_proxy"}, {"id": "global_proxy"}, {"id": "metagpt/config.py:Config:google_api_key"}, {"id": "google_api_key"}, {"id": "metagpt/config.py:Config:google_cse_id"}, {"id": "google_cse_id"}, {"id": "metagpt/config.py:Config:home_yaml_file"}, {"id": "home_yaml_file"}, {"id": "metagpt/config.py:Config:inc"}, {"id": "inc : bool"}, {"id": "metagpt/config.py:Config:key_yaml_file"}, {"id": "key_yaml_file"}, {"id": "metagpt/config.py:Config:long_term_memory"}, {"id": "long_term_memory"}, {"id": "metagpt/config.py:Config:max_auto_summarize_code"}, {"id": "max_auto_summarize_code : int"}, {"id": "metagpt/config.py:Config:max_tokens_rsp"}, {"id": "max_tokens_rsp"}, {"id": "metagpt/config.py:Config:mermaid_engine"}, {"id": "mermaid_engine"}, {"id": "metagpt/config.py:Config:mmdc"}, {"id": "mmdc"}, {"id": "metagpt/config.py:Config:model_for_researcher_report"}, {"id": "model_for_researcher_report"}, {"id": "metagpt/config.py:Config:model_for_researcher_summary"}, {"id": "model_for_researcher_summary"}, {"id": "metagpt/config.py:Config:ollama_api_base"}, {"id": "ollama_api_base"}, {"id": "metagpt/config.py:Config:ollama_api_model"}, {"id": "ollama_api_model"}, {"id": "metagpt/config.py:Config:open_llm_api_base"}, {"id": "open_llm_api_base"}, {"id": "metagpt/config.py:Config:open_llm_api_model"}, {"id": "open_llm_api_model"}, {"id": "metagpt/config.py:Config:openai_api_key"}, {"id": "openai_api_key"}, {"id": "metagpt/config.py:Config:openai_api_model"}, {"id": "openai_api_model"}, {"id": "metagpt/config.py:Config:openai_api_rpm"}, {"id": "openai_api_rpm"}, {"id": "metagpt/config.py:Config:openai_api_type"}, {"id": "openai_api_type"}, {"id": "metagpt/config.py:Config:openai_api_version"}, {"id": "openai_api_version"}, {"id": "metagpt/config.py:Config:openai_base_url"}, {"id": "openai_base_url"}, {"id": "metagpt/config.py:Config:openai_proxy"}, {"id": "openai_proxy"}, {"id": "metagpt/config.py:Config:options"}, {"id": "options"}, {"id": "metagpt/config.py:Config:playwright_browser_type"}, {"id": "playwright_browser_type"}, {"id": "metagpt/config.py:Config:project_name"}, {"id": "project_name : str"}, {"id": "metagpt/config.py:Config:project_path"}, {"id": "project_path : str"}, {"id": "metagpt/config.py:Config:prompt_schema"}, {"id": "prompt_schema"}, {"id": "metagpt/config.py:Config:puppeteer_config"}, {"id": "puppeteer_config"}, {"id": "metagpt/config.py:Config:pyppeteer_executable_path"}, {"id": "pyppeteer_executable_path"}, {"id": "metagpt/config.py:Config:repair_llm_output"}, {"id": "repair_llm_output"}, {"id": "metagpt/config.py:Config:reqa_file"}, {"id": "reqa_file : str"}, {"id": "metagpt/config.py:Config:search_engine"}, {"id": "metagpt/config.py:Config:selenium_browser_type"}, {"id": "selenium_browser_type"}, {"id": "metagpt/config.py:Config:serpapi_api_key"}, {"id": "serpapi_api_key"}, {"id": "metagpt/config.py:Config:serper_api_key"}, {"id": "serper_api_key"}, {"id": "metagpt/config.py:Config:spark_api_key"}, {"id": "spark_api_key"}, {"id": "metagpt/config.py:Config:spark_api_secret"}, {"id": "spark_api_secret"}, {"id": "metagpt/config.py:Config:spark_appid"}, {"id": "spark_appid"}, {"id": "metagpt/config.py:Config:spark_url"}, {"id": "spark_url"}, {"id": "metagpt/config.py:Config:timeout"}, {"id": "timeout : int"}, {"id": "metagpt/config.py:Config:web_browser_engine"}, {"id": "web_browser_engine"}, {"id": "metagpt/config.py:Config:workspace_path"}, {"id": "workspace_path : Path"}, {"id": "metagpt/config.py:Config:zhipuai_api_key"}, {"id": "zhipuai_api_key"}, {"id": "metagpt/config.py:Config:get"}, {"id": "metagpt/config.py:Config:get_default_llm_provider_enum"}, {"id": "get_default_llm_provider_enum(): LLMProviderEnum"}, {"id": "metagpt/config.py:Config:get_model_name"}, {"id": "get_model_name(provider): str"}, {"id": "metagpt/config.py:Config:new_environ"}, {"id": "new_environ()"}, {"id": "metagpt/config.py:Config:set_context"}, {"id": "set_context(options: dict)"}, {"id": "metagpt/config.py:Config:update_via_cli"}, {"id": "update_via_cli(project_path, project_name, inc, reqa_file, max_auto_summarize_code)"}, {"id": "metagpt/tools/openai_text_to_embedding.py"}, {"id": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:Config"}, {"id": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:Config:alias"}, {"id": "alias : dict"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:Config"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:Config:arbitrary_types_allowed"}, {"id": "arbitrary_types_allowed : bool"}, {"id": "metagpt/strategy/tot.py:TreeofThought:Config"}, {"id": "metagpt/strategy/tot.py:TreeofThought:Config:arbitrary_types_allowed"}, {"id": "metagpt/utils/cost_manager.py"}, {"id": "metagpt/utils/cost_manager.py:CostManager"}, {"id": "metagpt/utils/cost_manager.py:CostManager:max_budget"}, {"id": "max_budget : float"}, {"id": "metagpt/utils/cost_manager.py:CostManager:total_budget"}, {"id": "total_budget : float"}, {"id": "metagpt/utils/cost_manager.py:CostManager:total_completion_tokens"}, {"id": "total_completion_tokens : int"}, {"id": "metagpt/utils/cost_manager.py:CostManager:total_cost"}, {"id": "total_cost : float"}, {"id": "metagpt/utils/cost_manager.py:CostManager:total_prompt_tokens"}, {"id": "total_prompt_tokens : int"}, {"id": "metagpt/utils/cost_manager.py:CostManager:get_costs"}, {"id": "get_costs(): Costs"}, {"id": "metagpt/utils/cost_manager.py:CostManager:get_total_completion_tokens"}, {"id": "get_total_completion_tokens()"}, {"id": "metagpt/utils/cost_manager.py:CostManager:get_total_cost"}, {"id": "get_total_cost()"}, {"id": "metagpt/utils/cost_manager.py:CostManager:get_total_prompt_tokens"}, {"id": "get_total_prompt_tokens()"}, {"id": "metagpt/utils/cost_manager.py:CostManager:update_cost"}, {"id": "update_cost(prompt_tokens, completion_tokens, model)"}, {"id": "metagpt/utils/cost_manager.py:Costs"}, {"id": "metagpt/utils/cost_manager.py:Costs:total_budget"}, {"id": "metagpt/utils/cost_manager.py:Costs:total_completion_tokens"}, {"id": "metagpt/utils/cost_manager.py:Costs:total_cost"}, {"id": "metagpt/utils/cost_manager.py:Costs:total_prompt_tokens"}, {"id": "metagpt/utils/custom_decoder.py"}, {"id": "metagpt/utils/custom_decoder.py:CustomDecoder"}, {"id": "metagpt/utils/custom_decoder.py:CustomDecoder:parse_object"}, {"id": "parse_object"}, {"id": "metagpt/utils/custom_decoder.py:CustomDecoder:parse_string"}, {"id": "parse_string"}, {"id": "metagpt/utils/custom_decoder.py:CustomDecoder:scan_once"}, {"id": "scan_once"}, {"id": "metagpt/utils/custom_decoder.py:CustomDecoder:decode"}, {"id": "decode(s, _w)"}, {"id": "metagpt/roles/customer_service.py"}, {"id": "metagpt/roles/customer_service.py:CustomerService"}, {"id": "metagpt/roles/customer_service.py:CustomerService:desc"}, {"id": "metagpt/roles/customer_service.py:CustomerService:name"}, {"id": "metagpt/roles/customer_service.py:CustomerService:profile"}, {"id": "metagpt/roles/customer_service.py:CustomerService:store"}, {"id": "store : Optional[BaseStore]"}, {"id": "metagpt/tools/search_engine_ddg.py"}, {"id": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper"}, {"id": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:ddgs"}, {"id": "ddgs : DDGS"}, {"id": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:executor"}, {"id": "executor : NoneType"}, {"id": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:loop"}, {"id": "loop : NoneType"}, {"id": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:run"}, {"id": "run(query: str, max_results: int, as_string: Literal[True], focus: list[str] \\| None): str"}, {"id": "metagpt/strategy/tot.py:DFSSolver"}, {"id": "metagpt/strategy/tot.py:DFSSolver:thought_tree"}, {"id": "metagpt/strategy/tot.py:DFSSolver:solve"}, {"id": "solve(init_prompt, root)"}, {"id": "metagpt/tools/search_engine_meilisearch.py"}, {"id": "metagpt/tools/search_engine_meilisearch.py:DataSource"}, {"id": "metagpt/tools/search_engine_meilisearch.py:DataSource:name"}, {"id": "metagpt/tools/search_engine_meilisearch.py:DataSource:url"}, {"id": "url : str"}, {"id": "metagpt/actions/debug_error.py"}, {"id": "metagpt/actions/debug_error.py:DebugError"}, {"id": "metagpt/actions/debug_error.py:DebugError:context"}, {"id": "context"}, {"id": "metagpt/actions/debug_error.py:DebugError:name"}, {"id": "metagpt/actions/debug_error.py:DebugError:run"}, {"id": "run(): str"}, {"id": "metagpt/utils/dependency_file.py"}, {"id": "metagpt/utils/dependency_file.py:DependencyFile"}, {"id": "metagpt/utils/dependency_file.py:DependencyFile:exists"}, {"id": "exists"}, {"id": "metagpt/utils/dependency_file.py:DependencyFile:delete_file"}, {"id": "delete_file()"}, {"id": "metagpt/utils/dependency_file.py:DependencyFile:get"}, {"id": "get(filename: Path \\| str, persist)"}, {"id": "metagpt/utils/dependency_file.py:DependencyFile:load"}, {"id": "load()"}, {"id": "metagpt/utils/dependency_file.py:DependencyFile:save"}, {"id": "save()"}, {"id": "metagpt/utils/dependency_file.py:DependencyFile:update"}, {"id": "update(filename: Path \\| str, dependencies: Set[Path \\| str], persist)"}, {"id": "metagpt/actions/design_api_review.py"}, {"id": "metagpt/actions/design_api_review.py:DesignReview"}, {"id": "metagpt/actions/design_api_review.py:DesignReview:context"}, {"id": "metagpt/actions/design_api_review.py:DesignReview:name"}, {"id": "metagpt/actions/design_api_review.py:DesignReview:run"}, {"id": "run(prd, api_design)"}, {"id": "metagpt/utils/di_graph_repository.py"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:pathname"}, {"id": "pathname"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:root"}, {"id": "root"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:insert"}, {"id": "insert(subject: str, predicate: str, object_: str)"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:json"}, {"id": "json(): str"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:load"}, {"id": "load(pathname: str \\| Path)"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:load_from"}, {"id": "load_from(pathname: str \\| Path): GraphRepository"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:save"}, {"id": "save(path: str \\| Path)"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:select"}, {"id": "select(subject: str, predicate: str, object_: str): List[SPO]"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:update"}, {"id": "update(subject: str, predicate: str, object_: str)"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:upsert"}, {"id": "upsert(subject: str, predicate: str, object_: str)"}, {"id": "metagpt/utils/pycst.py"}, {"id": "metagpt/utils/pycst.py:DocstringCollector"}, {"id": "metagpt/utils/pycst.py:DocstringCollector:docstrings"}, {"id": "docstrings : dict[tuple[str, ...], cst.SimpleStatementLine]"}, {"id": "metagpt/utils/pycst.py:DocstringCollector:stack"}, {"id": "stack : list[str]"}, {"id": "metagpt/utils/pycst.py:DocstringCollector:leave_ClassDef"}, {"id": "leave_ClassDef(node: cst.ClassDef): None"}, {"id": "metagpt/utils/pycst.py:DocstringCollector:leave_FunctionDef"}, {"id": "leave_FunctionDef(node: cst.FunctionDef): None"}, {"id": "metagpt/utils/pycst.py:DocstringCollector:leave_Module"}, {"id": "leave_Module(node: cst.Module): None"}, {"id": "metagpt/utils/pycst.py:DocstringCollector:visit_ClassDef"}, {"id": "visit_ClassDef(node: cst.ClassDef): bool \\| None"}, {"id": "metagpt/utils/pycst.py:DocstringCollector:visit_FunctionDef"}, {"id": "visit_FunctionDef(node: cst.FunctionDef): bool \\| None"}, {"id": "metagpt/utils/pycst.py:DocstringCollector:visit_Module"}, {"id": "visit_Module(node: cst.Module): bool \\| None"}, {"id": "metagpt/utils/pycst.py:DocstringTransformer"}, {"id": "metagpt/utils/pycst.py:DocstringTransformer:docstrings"}, {"id": "metagpt/utils/pycst.py:DocstringTransformer:stack"}, {"id": "metagpt/utils/pycst.py:DocstringTransformer:leave_ClassDef"}, {"id": "leave_ClassDef(original_node: cst.ClassDef, updated_node: cst.ClassDef): cst.CSTNode"}, {"id": "metagpt/utils/pycst.py:DocstringTransformer:leave_FunctionDef"}, {"id": "leave_FunctionDef(original_node: cst.FunctionDef, updated_node: cst.FunctionDef): cst.CSTNode"}, {"id": "metagpt/utils/pycst.py:DocstringTransformer:leave_Module"}, {"id": "leave_Module(original_node: Module, updated_node: Module): Module"}, {"id": "metagpt/utils/pycst.py:DocstringTransformer:visit_ClassDef"}, {"id": "metagpt/utils/pycst.py:DocstringTransformer:visit_FunctionDef"}, {"id": "metagpt/utils/pycst.py:DocstringTransformer:visit_Module"}, {"id": "metagpt/document.py"}, {"id": "metagpt/document.py:Document"}, {"id": "metagpt/document.py:Document:author"}, {"id": "author : str"}, {"id": "metagpt/document.py:Document:content"}, {"id": "metagpt/document.py:Document:name"}, {"id": "metagpt/document.py:Document:path"}, {"id": "path : Path"}, {"id": "metagpt/document.py:Document:reviews"}, {"id": "reviews : list"}, {"id": "metagpt/document.py:Document:status"}, {"id": "status"}, {"id": "metagpt/document.py:Document:from_path"}, {"id": "from_path(path: Path)"}, {"id": "metagpt/document.py:Document:from_text"}, {"id": "from_text(text: str, path: Optional[Path])"}, {"id": "metagpt/document.py:Document:persist"}, {"id": "persist()"}, {"id": "metagpt/document.py:Document:to_path"}, {"id": "to_path(path: Optional[Path])"}, {"id": "metagpt/schema.py:Document"}, {"id": "metagpt/schema.py:Document:content"}, {"id": "metagpt/schema.py:Document:filename"}, {"id": "metagpt/schema.py:Document:full_path"}, {"id": "full_path"}, {"id": "metagpt/schema.py:Document:root_path"}, {"id": "root_path : str"}, {"id": "metagpt/schema.py:Document:root_relative_path"}, {"id": "root_relative_path"}, {"id": "metagpt/schema.py:Document:get_meta"}, {"id": "get_meta(): Document"}, {"id": "metagpt/document.py:DocumentStatus"}, {"id": "metagpt/document.py:DocumentStatus:name"}, {"id": "metagpt/schema.py:Documents"}, {"id": "metagpt/schema.py:Documents:docs"}, {"id": "docs : Dict[str, Document]"}, {"id": "metagpt/tools/openai_text_to_embedding.py:Embedding"}, {"id": "metagpt/tools/openai_text_to_embedding.py:Embedding:embedding"}, {"id": "embedding : List[float]"}, {"id": "metagpt/tools/openai_text_to_embedding.py:Embedding:index"}, {"id": "index : int"}, {"id": "metagpt/tools/openai_text_to_embedding.py:Embedding:object"}, {"id": "object : str"}, {"id": "metagpt/roles/engineer.py"}, {"id": "metagpt/roles/engineer.py:Engineer"}, {"id": "metagpt/roles/engineer.py:Engineer:code_todos"}, {"id": "code_todos : list"}, {"id": "metagpt/roles/engineer.py:Engineer:constraints"}, {"id": "metagpt/roles/engineer.py:Engineer:goal"}, {"id": "metagpt/roles/engineer.py:Engineer:n_borg"}, {"id": "n_borg : int"}, {"id": "metagpt/roles/engineer.py:Engineer:name"}, {"id": "metagpt/roles/engineer.py:Engineer:next_todo_action"}, {"id": "next_todo_action : str"}, {"id": "metagpt/roles/engineer.py:Engineer:profile"}, {"id": "metagpt/roles/engineer.py:Engineer:summarize_todos"}, {"id": "summarize_todos : list"}, {"id": "metagpt/roles/engineer.py:Engineer:todo"}, {"id": "todo"}, {"id": "metagpt/roles/engineer.py:Engineer:use_code_review"}, {"id": "use_code_review : bool"}, {"id": "metagpt/tools/prompt_writer.py:EnronTemplate"}, {"id": "metagpt/tools/prompt_writer.py:EnronTemplate:gen"}, {"id": "gen(subj)"}, {"id": "metagpt/learn/skill_loader.py:Entity"}, {"id": "metagpt/learn/skill_loader.py:Entity:name"}, {"id": "name : Optional[str]"}, {"id": "metagpt/learn/skill_loader.py:Entity:skills"}, {"id": "skills : List[Skill]"}, {"id": "metagpt/environment.py"}, {"id": "metagpt/environment.py:Environment"}, {"id": "metagpt/environment.py:Environment:desc"}, {"id": "metagpt/environment.py:Environment:history"}, {"id": "history : str"}, {"id": "metagpt/environment.py:Environment:is_idle"}, {"id": "is_idle"}, {"id": "metagpt/environment.py:Environment:members"}, {"id": "members : dict[Role, Set]"}, {"id": "metagpt/environment.py:Environment:model_config"}, {"id": "metagpt/environment.py:Environment:roles"}, {"id": "roles : dict[str, SerializeAsAny[Role]]"}, {"id": "metagpt/environment.py:Environment:add_role"}, {"id": "add_role(role: Role)"}, {"id": "metagpt/environment.py:Environment:add_roles"}, {"id": "add_roles(roles: Iterable[Role])"}, {"id": "metagpt/environment.py:Environment:archive"}, {"id": "archive(auto_archive)"}, {"id": "metagpt/environment.py:Environment:deserialize"}, {"id": "deserialize(stg_path: Path): 'Environment'"}, {"id": "metagpt/environment.py:Environment:get_role"}, {"id": "get_role(name: str): Role"}, {"id": "metagpt/environment.py:Environment:get_roles"}, {"id": "get_roles(): dict[str, Role]"}, {"id": "metagpt/environment.py:Environment:get_subscription"}, {"id": "get_subscription(obj)"}, {"id": "metagpt/environment.py:Environment:init_roles"}, {"id": "init_roles()"}, {"id": "metagpt/environment.py:Environment:publish_message"}, {"id": "publish_message(message: Message, peekable: bool): bool"}, {"id": "metagpt/environment.py:Environment:role_names"}, {"id": "role_names(): list[str]"}, {"id": "metagpt/environment.py:Environment:run"}, {"id": "run(k)"}, {"id": "metagpt/environment.py:Environment:serialize"}, {"id": "serialize(stg_path: Path)"}, {"id": "metagpt/environment.py:Environment:set_subscription"}, {"id": "set_subscription(obj, tags)"}, {"id": "metagpt/learn/skill_loader.py:Example"}, {"id": "metagpt/learn/skill_loader.py:Example:answer"}, {"id": "answer : str"}, {"id": "metagpt/learn/skill_loader.py:Example:ask"}, {"id": "metagpt/actions/execute_task.py"}, {"id": "metagpt/actions/execute_task.py:ExecuteTask"}, {"id": "metagpt/actions/execute_task.py:ExecuteTask:context"}, {"id": "context : list[Message]"}, {"id": "metagpt/actions/execute_task.py:ExecuteTask:name"}, {"id": "metagpt/actions/execute_task.py:ExecuteTask:run"}, {"id": "run()"}, {"id": "metagpt/document_store/faiss_store.py"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:content_col"}, {"id": "content_col : str"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:embedding"}, {"id": "embedding : OpenAIEmbeddings"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:meta_col"}, {"id": "meta_col : str"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:store"}, {"id": "store"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:add"}, {"id": "add(texts: list[str]): list[str]"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:asearch"}, {"id": "asearch()"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:delete"}, {"id": "delete()"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:persist"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:search"}, {"id": "search(query, expand_cols, sep)"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:write"}, {"id": "write()"}, {"id": "metagpt/utils/file.py"}, {"id": "metagpt/utils/file.py:File"}, {"id": "metagpt/utils/file.py:File:CHUNK_SIZE"}, {"id": "CHUNK_SIZE : int"}, {"id": "metagpt/utils/file.py:File:read"}, {"id": "read(file_path: Path, chunk_size: int): bytes"}, {"id": "metagpt/utils/file.py:File:write"}, {"id": "write(root_path: Path, filename: str, content: bytes): Path"}, {"id": "metagpt/utils/file_repository.py"}, {"id": "metagpt/utils/file_repository.py:FileRepository"}, {"id": "metagpt/utils/file_repository.py:FileRepository:all_files"}, {"id": "all_files"}, {"id": "metagpt/utils/file_repository.py:FileRepository:changed_files"}, {"id": "changed_files"}, {"id": "metagpt/utils/file_repository.py:FileRepository:root_path"}, {"id": "root_path"}, {"id": "metagpt/utils/file_repository.py:FileRepository:workdir"}, {"id": "workdir"}, {"id": "metagpt/utils/file_repository.py:FileRepository:delete"}, {"id": "delete(filename: Path \\| str)"}, {"id": "metagpt/utils/file_repository.py:FileRepository:delete_file"}, {"id": "delete_file(filename: Path \\| str, relative_path: Path \\| str)"}, {"id": "metagpt/utils/file_repository.py:FileRepository:get"}, {"id": "get(filename: Path \\| str): Document \\| None"}, {"id": "metagpt/utils/file_repository.py:FileRepository:get_all"}, {"id": "get_all(): List[Document]"}, {"id": "metagpt/utils/file_repository.py:FileRepository:get_all_files"}, {"id": "get_all_files(relative_path: Path \\| str): List[Document]"}, {"id": "metagpt/utils/file_repository.py:FileRepository:get_change_dir_files"}, {"id": "get_change_dir_files(dir: Path \\| str): List"}, {"id": "metagpt/utils/file_repository.py:FileRepository:get_changed_dependency"}, {"id": "get_changed_dependency(filename: Path \\| str): Set[str]"}, {"id": "metagpt/utils/file_repository.py:FileRepository:get_dependency"}, {"id": "get_dependency(filename: Path \\| str): Set[str]"}, {"id": "metagpt/utils/file_repository.py:FileRepository:get_file"}, {"id": "get_file(filename: Path \\| str, relative_path: Path \\| str): Document \\| None"}, {"id": "metagpt/utils/file_repository.py:FileRepository:new_filename"}, {"id": "new_filename()"}, {"id": "metagpt/utils/file_repository.py:FileRepository:save"}, {"id": "save(filename: Path \\| str, content, dependencies: List[str])"}, {"id": "metagpt/utils/file_repository.py:FileRepository:save_as"}, {"id": "save_as(doc: Document, with_suffix: str, dependencies: List[str], relative_path: Path \\| str)"}, {"id": "metagpt/utils/file_repository.py:FileRepository:save_doc"}, {"id": "save_doc(doc: Document, with_suffix: str, dependencies: List[str])"}, {"id": "metagpt/utils/file_repository.py:FileRepository:save_file"}, {"id": "save_file(filename: Path \\| str, content, dependencies: List[str], relative_path: Path \\| str)"}, {"id": "metagpt/provider/fireworks_api.py"}, {"id": "metagpt/provider/fireworks_api.py:FireworksCostManager"}, {"id": "metagpt/provider/fireworks_api.py:FireworksCostManager:total_completion_tokens"}, {"id": "metagpt/provider/fireworks_api.py:FireworksCostManager:total_cost"}, {"id": "total_cost"}, {"id": "metagpt/provider/fireworks_api.py:FireworksCostManager:total_prompt_tokens"}, {"id": "metagpt/provider/fireworks_api.py:FireworksCostManager:model_grade_token_costs"}, {"id": "model_grade_token_costs(model: str): dict[str, float]"}, {"id": "metagpt/provider/fireworks_api.py:FireworksCostManager:update_cost"}, {"id": "update_cost(prompt_tokens: int, completion_tokens: int, model: str)"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:auto_max_tokens"}, {"id": "auto_max_tokens : bool"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:config"}, {"id": "config"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:is_azure"}, {"id": "is_azure : bool"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:model"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:rpm"}, {"id": "rpm : int"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:acompletion_text"}, {"id": "acompletion_text(messages: list[dict], stream, timeout: int): str"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:get_costs"}, {"id": "metagpt/actions/fix_bug.py"}, {"id": "metagpt/actions/fix_bug.py:FixBug"}, {"id": "metagpt/actions/fix_bug.py:FixBug:name"}, {"id": "metagpt/tools/prompt_writer.py:GPTPromptGenerator"}, {"id": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen"}, {"id": "gen(example: str, style: str): Union[list[str], str]"}, {"id": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen_chatbot_style"}, {"id": "gen_chatbot_style(example)"}, {"id": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen_instruction_style"}, {"id": "gen_instruction_style(example)"}, {"id": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen_query_style"}, {"id": "gen_query_style(example)"}, {"id": "metagpt/provider/google_gemini_api.py"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel:count_tokens"}, {"id": "count_tokens(contents: content_types.ContentsType): glm.CountTokensResponse"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel:count_tokens_async"}, {"id": "count_tokens_async(contents: content_types.ContentsType): glm.CountTokensResponse"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:llm"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:model"}, {"id": "model : str"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:use_system_prompt"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:acompletion"}, {"id": "acompletion(messages: list[dict]): dict"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:acompletion_text"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:aget_usage"}, {"id": "aget_usage(messages: list[dict], resp_text: str): dict"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:completion"}, {"id": "completion(messages: list[dict]): 'GenerateContentResponse'"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:get_choice_text"}, {"id": "get_choice_text(resp: GenerateContentResponse): str"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:get_usage"}, {"id": "get_usage(messages: list[dict], resp_text: str): dict"}, {"id": "metagpt/provider/general_api_requestor.py"}, {"id": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor"}, {"id": "metagpt/actions/generate_questions.py"}, {"id": "metagpt/actions/generate_questions.py:GenerateQuestions"}, {"id": "metagpt/actions/generate_questions.py:GenerateQuestions:name"}, {"id": "metagpt/actions/generate_questions.py:GenerateQuestions:run"}, {"id": "run(context)"}, {"id": "metagpt/actions/invoice_ocr.py"}, {"id": "metagpt/actions/invoice_ocr.py:GenerateTable"}, {"id": "metagpt/actions/invoice_ocr.py:GenerateTable:context"}, {"id": "metagpt/actions/invoice_ocr.py:GenerateTable:language"}, {"id": "language : str"}, {"id": "metagpt/actions/invoice_ocr.py:GenerateTable:llm"}, {"id": "metagpt/actions/invoice_ocr.py:GenerateTable:name"}, {"id": "metagpt/actions/invoice_ocr.py:GenerateTable:run"}, {"id": "run(ocr_results: list, filename: str): dict[str, str]"}, {"id": "metagpt/provider/spark_api.py"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:domain"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:ret"}, {"id": "ret : str"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_api_key"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_api_secret"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_appid"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_url"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:text"}, {"id": "text"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:gen_params"}, {"id": "gen_params()"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_close"}, {"id": "on_close(ws, one, two)"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_error"}, {"id": "on_error(ws, error)"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_message"}, {"id": "on_message(ws, message)"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_open"}, {"id": "on_open(ws)"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:run"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:send"}, {"id": "send(ws)"}, {"id": "metagpt/utils/git_repository.py:GitRepository"}, {"id": "metagpt/utils/git_repository.py:GitRepository:changed_files"}, {"id": "metagpt/utils/git_repository.py:GitRepository:is_valid"}, {"id": "is_valid"}, {"id": "metagpt/utils/git_repository.py:GitRepository:status"}, {"id": "metagpt/utils/git_repository.py:GitRepository:workdir"}, {"id": "metagpt/utils/git_repository.py:GitRepository:add_change"}, {"id": "add_change(files: Dict)"}, {"id": "metagpt/utils/git_repository.py:GitRepository:archive"}, {"id": "archive(comments)"}, {"id": "metagpt/utils/git_repository.py:GitRepository:commit"}, {"id": "commit(comments)"}, {"id": "metagpt/utils/git_repository.py:GitRepository:delete_repository"}, {"id": "delete_repository()"}, {"id": "metagpt/utils/git_repository.py:GitRepository:filter_gitignore"}, {"id": "filter_gitignore(filenames: List[str], root_relative_path: Path \\| str): List[str]"}, {"id": "metagpt/utils/git_repository.py:GitRepository:get_dependency"}, {"id": "get_dependency(): DependencyFile"}, {"id": "metagpt/utils/git_repository.py:GitRepository:get_files"}, {"id": "get_files(relative_path: Path \\| str, root_relative_path: Path \\| str, filter_ignored): List"}, {"id": "metagpt/utils/git_repository.py:GitRepository:is_git_dir"}, {"id": "is_git_dir(local_path)"}, {"id": "metagpt/utils/git_repository.py:GitRepository:new_file_repository"}, {"id": "new_file_repository(relative_path: Path \\| str): FileRepository"}, {"id": "metagpt/utils/git_repository.py:GitRepository:open"}, {"id": "open(local_path: Path, auto_init)"}, {"id": "metagpt/utils/git_repository.py:GitRepository:rename_root"}, {"id": "rename_root(new_dir_name)"}, {"id": "metagpt/tools/search_engine_googleapi.py"}, {"id": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper"}, {"id": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:executor"}, {"id": "executor : Optional[futures.Executor]"}, {"id": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_api_client"}, {"id": "google_api_client"}, {"id": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_api_key"}, {"id": "google_api_key : Optional[str]"}, {"id": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_cse_id"}, {"id": "google_cse_id : Optional[str]"}, {"id": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:loop"}, {"id": "loop : Optional[asyncio.AbstractEventLoop]"}, {"id": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:model_config"}, {"id": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:check_google_api_key"}, {"id": "check_google_api_key(val: str)"}, {"id": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:check_google_cse_id"}, {"id": "check_google_cse_id(val: str)"}, {"id": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:run"}, {"id": "run(query: str, max_results: int, as_string: bool, focus: list[str] \\| None): str \\| list[dict]"}, {"id": "metagpt/utils/graph_repository.py"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:CLASS"}, {"id": "CLASS : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:CLASS_FUNCTION"}, {"id": "CLASS_FUNCTION : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:CLASS_PROPERTY"}, {"id": "CLASS_PROPERTY : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:FUNCTION"}, {"id": "FUNCTION : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:GLOBAL_VARIABLE"}, {"id": "GLOBAL_VARIABLE : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_ARGS_DESC"}, {"id": "HAS_ARGS_DESC : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS"}, {"id": "HAS_CLASS : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS_FUNCTION"}, {"id": "HAS_CLASS_FUNCTION : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS_PROPERTY"}, {"id": "HAS_CLASS_PROPERTY : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS_VIEW"}, {"id": "HAS_CLASS_VIEW : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_FUNCTION"}, {"id": "HAS_FUNCTION : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_PAGE_INFO"}, {"id": "HAS_PAGE_INFO : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_SEQUENCE_VIEW"}, {"id": "HAS_SEQUENCE_VIEW : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_TYPE_DESC"}, {"id": "HAS_TYPE_DESC : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:IS"}, {"id": "IS : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:NULL"}, {"id": "NULL : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:OF"}, {"id": "OF : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:ON"}, {"id": "ON : str"}, {"id": "metagpt/utils/graph_repository.py:GraphKeyword:SOURCE_CODE"}, {"id": "SOURCE_CODE : str"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:name"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:insert"}, {"id": "insert(subject: str, predicate: str, object_: str)"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:select"}, {"id": "select(subject: str, predicate: str, object_: str): List[SPO]"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:update"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:update_graph_db_with_class_relationship_views"}, {"id": "update_graph_db_with_class_relationship_views(graph_db: 'GraphRepository', relationship_views: List[ClassRelationship])"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:update_graph_db_with_class_views"}, {"id": "update_graph_db_with_class_views(graph_db: 'GraphRepository', class_views: List[ClassInfo])"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:update_graph_db_with_file_info"}, {"id": "update_graph_db_with_file_info(graph_db: 'GraphRepository', file_info: RepoFileInfo)"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:upsert"}, {"id": "metagpt/provider/human_provider.py"}, {"id": "metagpt/provider/human_provider.py:HumanProvider"}, {"id": "metagpt/provider/human_provider.py:HumanProvider:aask"}, {"id": "aask(msg: str, system_msgs: Optional[list[str]], format_msgs: Optional[list[dict[str, str]]], generator: bool, timeout): str"}, {"id": "metagpt/provider/human_provider.py:HumanProvider:acompletion"}, {"id": "acompletion(messages: list[dict], timeout)"}, {"id": "metagpt/provider/human_provider.py:HumanProvider:acompletion_text"}, {"id": "acompletion_text(messages: list[dict], stream, timeout): str"}, {"id": "metagpt/provider/human_provider.py:HumanProvider:ask"}, {"id": "ask(msg: str, timeout): str"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTS"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:api_key"}, {"id": "api_key"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:api_secret"}, {"id": "api_secret"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:app_id"}, {"id": "app_id"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:synthesize_speech"}, {"id": "synthesize_speech(text, output_file: str, voice)"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:code"}, {"id": "code : int"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:data"}, {"id": "data : Optional[AudioData]"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:message"}, {"id": "message : str"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:sid"}, {"id": "sid : str"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTSStatus"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTSStatus:name"}, {"id": "metagpt/tools/metagpt_text_to_image.py"}, {"id": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult"}, {"id": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult:images"}, {"id": "images : List"}, {"id": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult:parameters"}, {"id": "parameters : Dict"}, {"id": "metagpt/document.py:IndexableDocument"}, {"id": "metagpt/document.py:IndexableDocument:content_col"}, {"id": "content_col : Optional[str]"}, {"id": "metagpt/document.py:IndexableDocument:data"}, {"id": "data : Union[pd.DataFrame, list]"}, {"id": "metagpt/document.py:IndexableDocument:meta_col"}, {"id": "meta_col : Optional[str]"}, {"id": "metagpt/document.py:IndexableDocument:model_config"}, {"id": "metagpt/document.py:IndexableDocument:from_path"}, {"id": "from_path(data_path: Path, content_col, meta_col)"}, {"id": "metagpt/document.py:IndexableDocument:get_docs_and_metadatas"}, {"id": "get_docs_and_metadatas(): (list, list)"}, {"id": "metagpt/roles/invoice_ocr_assistant.py"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceData"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceData:invoice_data"}, {"id": "invoice_data : list[dict]"}, {"id": "metagpt/actions/invoice_ocr.py:InvoiceOCR"}, {"id": "metagpt/actions/invoice_ocr.py:InvoiceOCR:context"}, {"id": "metagpt/actions/invoice_ocr.py:InvoiceOCR:name"}, {"id": "metagpt/actions/invoice_ocr.py:InvoiceOCR:run"}, {"id": "run(file_path: Path): list"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:constraints"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:filename"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:goal"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:language"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:name"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:orc_data"}, {"id": "orc_data : Optional[list]"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:origin_query"}, {"id": "origin_query : str"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:profile"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoicePath"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoicePath:file_path"}, {"id": "file_path : Path"}, {"id": "metagpt/config.py:LLMProviderEnum"}, {"id": "metagpt/config.py:LLMProviderEnum:name"}, {"id": "metagpt/provider/llm_provider_registry.py"}, {"id": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry"}, {"id": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:providers"}, {"id": "providers : dict"}, {"id": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:get_provider"}, {"id": "get_provider(enum: LLMProviderEnum)"}, {"id": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:register"}, {"id": "register(key, provider_cls)"}, {"id": "metagpt/document_store/lancedb_store.py"}, {"id": "metagpt/document_store/lancedb_store.py:LanceStore"}, {"id": "metagpt/document_store/lancedb_store.py:LanceStore:db"}, {"id": "db : LanceDBConnection, RemoteDBConnection"}, {"id": "metagpt/document_store/lancedb_store.py:LanceStore:name"}, {"id": "metagpt/document_store/lancedb_store.py:LanceStore:table"}, {"id": "table : LanceTable, NoneType, RemoteTable"}, {"id": "metagpt/document_store/lancedb_store.py:LanceStore:add"}, {"id": "add(data, metadata, _id)"}, {"id": "metagpt/document_store/lancedb_store.py:LanceStore:delete"}, {"id": "metagpt/document_store/lancedb_store.py:LanceStore:drop"}, {"id": "drop(name)"}, {"id": "metagpt/document_store/lancedb_store.py:LanceStore:persist"}, {"id": "metagpt/document_store/lancedb_store.py:LanceStore:search"}, {"id": "search(query, n_results, metric, nprobes)"}, {"id": "metagpt/document_store/lancedb_store.py:LanceStore:write"}, {"id": "write(data, metadatas, ids)"}, {"id": "metagpt/document_store/base_store.py:LocalStore"}, {"id": "metagpt/document_store/base_store.py:LocalStore:cache_dir"}, {"id": "cache_dir : Optional[Path]"}, {"id": "metagpt/document_store/base_store.py:LocalStore:config"}, {"id": "metagpt/document_store/base_store.py:LocalStore:fname"}, {"id": "fname"}, {"id": "metagpt/document_store/base_store.py:LocalStore:raw_data_path"}, {"id": "raw_data_path : Path"}, {"id": "metagpt/document_store/base_store.py:LocalStore:store"}, {"id": "metagpt/memory/longterm_memory.py"}, {"id": "metagpt/memory/longterm_memory.py:LongTermMemory"}, {"id": "metagpt/memory/longterm_memory.py:LongTermMemory:memory_storage"}, {"id": "memory_storage"}, {"id": "metagpt/memory/longterm_memory.py:LongTermMemory:model_config"}, {"id": "metagpt/memory/longterm_memory.py:LongTermMemory:msg_from_recover"}, {"id": "msg_from_recover : bool"}, {"id": "metagpt/memory/longterm_memory.py:LongTermMemory:rc"}, {"id": "rc : Optional[RoleContext]"}, {"id": "metagpt/memory/longterm_memory.py:LongTermMemory:add"}, {"id": "add(message: Message)"}, {"id": "metagpt/memory/longterm_memory.py:LongTermMemory:clear"}, {"id": "clear()"}, {"id": "metagpt/memory/longterm_memory.py:LongTermMemory:delete"}, {"id": "delete(message: Message)"}, {"id": "metagpt/memory/longterm_memory.py:LongTermMemory:find_news"}, {"id": "find_news(observed: list[Message], k): list[Message]"}, {"id": "metagpt/memory/longterm_memory.py:LongTermMemory:recover_memory"}, {"id": "recover_memory(role_id: str, rc: RoleContext)"}, {"id": "metagpt/strategy/tot.py:MCTSSolver"}, {"id": "metagpt/strategy/tot.py:MCTSSolver:solve"}, {"id": "solve(init_prompt)"}, {"id": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine"}, {"id": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:client"}, {"id": "client : Client"}, {"id": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:add_documents"}, {"id": "add_documents(data_source: DataSource, documents: List[dict])"}, {"id": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:search"}, {"id": "search(query)"}, {"id": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:set_index"}, {"id": "set_index(index)"}, {"id": "metagpt/memory/memory.py"}, {"id": "metagpt/memory/memory.py:Memory"}, {"id": "metagpt/memory/memory.py:Memory:ignore_id"}, {"id": "ignore_id : bool"}, {"id": "metagpt/memory/memory.py:Memory:index"}, {"id": "index : DefaultDict[str, list[SerializeAsAny[Message]]]"}, {"id": "metagpt/memory/memory.py:Memory:storage"}, {"id": "storage : list[SerializeAsAny[Message]]"}, {"id": "metagpt/memory/memory.py:Memory:add"}, {"id": "metagpt/memory/memory.py:Memory:add_batch"}, {"id": "add_batch(messages: Iterable[Message])"}, {"id": "metagpt/memory/memory.py:Memory:clear"}, {"id": "metagpt/memory/memory.py:Memory:count"}, {"id": "count(): int"}, {"id": "metagpt/memory/memory.py:Memory:delete"}, {"id": "metagpt/memory/memory.py:Memory:delete_newest"}, {"id": "delete_newest(): 'Message'"}, {"id": "metagpt/memory/memory.py:Memory:deserialize"}, {"id": "deserialize(stg_path: Path): 'Memory'"}, {"id": "metagpt/memory/memory.py:Memory:find_news"}, {"id": "metagpt/memory/memory.py:Memory:get"}, {"id": "get(k): list[Message]"}, {"id": "metagpt/memory/memory.py:Memory:get_by_action"}, {"id": "get_by_action(action): list[Message]"}, {"id": "metagpt/memory/memory.py:Memory:get_by_actions"}, {"id": "get_by_actions(actions: Set): list[Message]"}, {"id": "metagpt/memory/memory.py:Memory:get_by_content"}, {"id": "get_by_content(content: str): list[Message]"}, {"id": "metagpt/memory/memory.py:Memory:get_by_role"}, {"id": "get_by_role(role: str): list[Message]"}, {"id": "metagpt/memory/memory.py:Memory:serialize"}, {"id": "metagpt/memory/memory.py:Memory:try_remember"}, {"id": "try_remember(keyword: str): list[Message]"}, {"id": "metagpt/memory/memory_storage.py"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:embedding"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:is_initialized"}, {"id": "is_initialized"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:mem_ttl"}, {"id": "mem_ttl : int"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:role_id"}, {"id": "role_id : Optional[str]"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:role_mem_path"}, {"id": "role_mem_path : Optional[str], Path"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:store"}, {"id": "store : NoneType, Optional[FAISS]"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:threshold"}, {"id": "threshold : float"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:add"}, {"id": "add(message: Message): bool"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:clean"}, {"id": "clean()"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:persist"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:recover_memory"}, {"id": "recover_memory(role_id: str): list[Message]"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:search_dissimilar"}, {"id": "search_dissimilar(message: Message, k): list[Message]"}, {"id": "metagpt/schema.py:Message"}, {"id": "metagpt/schema.py:Message:cause_by"}, {"id": "cause_by : str"}, {"id": "metagpt/schema.py:Message:content"}, {"id": "metagpt/schema.py:Message:id"}, {"id": "id : str"}, {"id": "metagpt/schema.py:Message:instruct_content"}, {"id": "instruct_content : Optional[BaseModel]"}, {"id": "metagpt/schema.py:Message:role"}, {"id": "role : str"}, {"id": "metagpt/schema.py:Message:send_to"}, {"id": "send_to : set[str]"}, {"id": "metagpt/schema.py:Message:sent_from"}, {"id": "sent_from : str"}, {"id": "metagpt/schema.py:Message:check_cause_by"}, {"id": "check_cause_by(cause_by: Any): str"}, {"id": "metagpt/schema.py:Message:check_id"}, {"id": "check_id(id: str): str"}, {"id": "metagpt/schema.py:Message:check_instruct_content"}, {"id": "check_instruct_content(ic: Any): BaseModel"}, {"id": "metagpt/schema.py:Message:check_send_to"}, {"id": "check_send_to(send_to: Any): set"}, {"id": "metagpt/schema.py:Message:check_sent_from"}, {"id": "check_sent_from(sent_from: Any): str"}, {"id": "metagpt/schema.py:Message:dump"}, {"id": "dump(): str"}, {"id": "metagpt/schema.py:Message:load"}, {"id": "load(val)"}, {"id": "metagpt/schema.py:Message:ser_instruct_content"}, {"id": "ser_instruct_content(ic: BaseModel): Union[str, None]"}, {"id": "metagpt/schema.py:Message:to_dict"}, {"id": "to_dict(): dict"}, {"id": "metagpt/schema.py:MessageQueue"}, {"id": "metagpt/schema.py:MessageQueue:model_config"}, {"id": "metagpt/schema.py:MessageQueue:dump"}, {"id": "metagpt/schema.py:MessageQueue:empty"}, {"id": "empty()"}, {"id": "metagpt/schema.py:MessageQueue:load"}, {"id": "load(data): 'MessageQueue'"}, {"id": "metagpt/schema.py:MessageQueue:pop"}, {"id": "pop(): Message \\| None"}, {"id": "metagpt/schema.py:MessageQueue:pop_all"}, {"id": "pop_all(): List[Message]"}, {"id": "metagpt/schema.py:MessageQueue:push"}, {"id": "push(msg: Message)"}, {"id": "metagpt/roles/assistant.py:MessageType"}, {"id": "metagpt/roles/assistant.py:MessageType:name"}, {"id": "metagpt/provider/metagpt_api.py"}, {"id": "metagpt/provider/metagpt_api.py:MetaGPTLLM"}, {"id": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image"}, {"id": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:model_url"}, {"id": "model_url"}, {"id": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image"}, {"id": "text_2_image(text, size_type)"}, {"id": "metagpt/strategy/tot_schema.py"}, {"id": "metagpt/strategy/tot_schema.py:MethodSelect"}, {"id": "metagpt/strategy/tot_schema.py:MethodSelect:name"}, {"id": "metagpt/tools/moderation.py"}, {"id": "metagpt/tools/moderation.py:Moderation"}, {"id": "metagpt/tools/moderation.py:Moderation:llm"}, {"id": "metagpt/tools/moderation.py:Moderation:amoderation"}, {"id": "amoderation(content: Union[str, list[str]])"}, {"id": "metagpt/tools/moderation.py:Moderation:amoderation_with_categories"}, {"id": "amoderation_with_categories(content: Union[str, list[str]])"}, {"id": "metagpt/tools/moderation.py:Moderation:handle_moderation_results"}, {"id": "handle_moderation_results(results)"}, {"id": "metagpt/utils/common.py:NoMoneyException"}, {"id": "metagpt/utils/common.py:NoMoneyException:amount"}, {"id": "amount"}, {"id": "metagpt/utils/common.py:NoMoneyException:message"}, {"id": "metagpt/config.py:NotConfiguredException"}, {"id": "metagpt/config.py:NotConfiguredException:message"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:OCRResults"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:OCRResults:ocr_result"}, {"id": "ocr_result : str"}, {"id": "metagpt/provider/ollama_api.py"}, {"id": "metagpt/provider/ollama_api.py:OllamaCostManager"}, {"id": "metagpt/provider/ollama_api.py:OllamaCostManager:total_completion_tokens"}, {"id": "total_completion_tokens"}, {"id": "metagpt/provider/ollama_api.py:OllamaCostManager:total_prompt_tokens"}, {"id": "total_prompt_tokens"}, {"id": "metagpt/provider/ollama_api.py:OllamaCostManager:update_cost"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:client"}, {"id": "client"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:http_method"}, {"id": "http_method : str"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:model"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:suffix_url"}, {"id": "suffix_url : str"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:use_system_prompt"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:acompletion"}, {"id": "acompletion(messages: list[dict], timeout): dict"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:acompletion_text"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:get_choice_text"}, {"id": "get_choice_text(resp: dict): str"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:get_usage"}, {"id": "get_usage(resp: dict): dict"}, {"id": "metagpt/provider/openai_api.py"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:aclient"}, {"id": "aclient : AsyncOpenAI"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:auto_max_tokens"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:config"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:model"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:aask_code"}, {"id": "aask_code(messages: Union[str, Message, list[dict]]): dict"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:acompletion"}, {"id": "acompletion(messages: list[dict], timeout): ChatCompletion"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:acompletion_text"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:amoderation"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:get_choice_function_arguments"}, {"id": "get_choice_function_arguments(rsp: ChatCompletion): dict"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:get_choice_text"}, {"id": "get_choice_text(rsp: ChatCompletion): str"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:get_costs"}, {"id": "metagpt/provider/general_api_base.py:OpenAIResponse"}, {"id": "metagpt/provider/general_api_base.py:OpenAIResponse:data"}, {"id": "data"}, {"id": "metagpt/provider/general_api_base.py:OpenAIResponse:operation_location"}, {"id": "operation_location"}, {"id": "metagpt/provider/general_api_base.py:OpenAIResponse:organization"}, {"id": "organization"}, {"id": "metagpt/provider/general_api_base.py:OpenAIResponse:request_id"}, {"id": "request_id"}, {"id": "metagpt/provider/general_api_base.py:OpenAIResponse:response_ms"}, {"id": "response_ms"}, {"id": "metagpt/provider/general_api_base.py:OpenAIResponse:retry_after"}, {"id": "retry_after"}, {"id": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding"}, {"id": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding:openai_api_key"}, {"id": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding:text_2_embedding"}, {"id": "text_2_embedding(text, model)"}, {"id": "metagpt/tools/openai_text_to_image.py"}, {"id": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image"}, {"id": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image:get_image_data"}, {"id": "get_image_data(url)"}, {"id": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image:text_2_image"}, {"id": "metagpt/provider/open_llm_api.py"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM:auto_max_tokens"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM:config"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM:is_azure"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM:model"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM:rpm"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM:get_costs"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLMCostManager"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLMCostManager:total_completion_tokens"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLMCostManager:total_prompt_tokens"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLMCostManager:update_cost"}, {"id": "metagpt/utils/common.py:OutputParser"}, {"id": "metagpt/utils/common.py:OutputParser:extract_content"}, {"id": "extract_content(text, tag)"}, {"id": "metagpt/utils/common.py:OutputParser:extract_struct"}, {"id": "extract_struct(text: str, data_type: Union[type(list), type(dict)]): Union[list, dict]"}, {"id": "metagpt/utils/common.py:OutputParser:parse_blocks"}, {"id": "metagpt/utils/common.py:OutputParser:parse_code"}, {"id": "parse_code(text: str, lang: str): str"}, {"id": "metagpt/utils/common.py:OutputParser:parse_data"}, {"id": "parse_data(data)"}, {"id": "metagpt/utils/common.py:OutputParser:parse_data_with_mapping"}, {"id": "parse_data_with_mapping(data, mapping)"}, {"id": "metagpt/utils/common.py:OutputParser:parse_file_list"}, {"id": "parse_file_list(text: str): list[str]"}, {"id": "metagpt/utils/common.py:OutputParser:parse_python_code"}, {"id": "parse_python_code(text: str): str"}, {"id": "metagpt/utils/common.py:OutputParser:parse_str"}, {"id": "parse_str(text: str)"}, {"id": "metagpt/learn/skill_loader.py:Parameter"}, {"id": "metagpt/learn/skill_loader.py:Parameter:description"}, {"id": "description : Optional[str]"}, {"id": "metagpt/learn/skill_loader.py:Parameter:type"}, {"id": "type : str"}, {"id": "metagpt/tools/web_browser_engine_playwright.py"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:browser_type"}, {"id": "browser_type : Literal['chromium', 'firefox', 'webkit'] \\| None"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:launch_kwargs"}, {"id": "launch_kwargs : dict \\| None"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:run"}, {"id": "run(url: str): WebPage \\| list[WebPage]"}, {"id": "metagpt/actions/prepare_documents.py"}, {"id": "metagpt/actions/prepare_documents.py:PrepareDocuments"}, {"id": "metagpt/actions/prepare_documents.py:PrepareDocuments:context"}, {"id": "metagpt/actions/prepare_documents.py:PrepareDocuments:name"}, {"id": "metagpt/actions/prepare_documents.py:PrepareDocuments:run"}, {"id": "run(with_messages)"}, {"id": "metagpt/actions/prepare_interview.py"}, {"id": "metagpt/actions/prepare_interview.py:PrepareInterview"}, {"id": "metagpt/actions/prepare_interview.py:PrepareInterview:name"}, {"id": "metagpt/actions/prepare_interview.py:PrepareInterview:run"}, {"id": "metagpt/roles/product_manager.py"}, {"id": "metagpt/roles/product_manager.py:ProductManager"}, {"id": "metagpt/roles/product_manager.py:ProductManager:constraints"}, {"id": "metagpt/roles/product_manager.py:ProductManager:goal"}, {"id": "metagpt/roles/product_manager.py:ProductManager:name"}, {"id": "metagpt/roles/product_manager.py:ProductManager:profile"}, {"id": "metagpt/roles/product_manager.py:ProductManager:todo"}, {"id": "metagpt/roles/product_manager.py:ProductManager:todo_action"}, {"id": "todo_action : str"}, {"id": "metagpt/roles/project_manager.py"}, {"id": "metagpt/roles/project_manager.py:ProjectManager"}, {"id": "metagpt/roles/project_manager.py:ProjectManager:constraints"}, {"id": "metagpt/roles/project_manager.py:ProjectManager:goal"}, {"id": "metagpt/roles/project_manager.py:ProjectManager:name"}, {"id": "metagpt/roles/project_manager.py:ProjectManager:profile"}, {"id": "metagpt/roles/prompt.py"}, {"id": "metagpt/roles/prompt.py:PromptString"}, {"id": "metagpt/roles/prompt.py:PromptString:name"}, {"id": "metagpt/roles/qa_engineer.py"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer:constraints"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer:goal"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer:name"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer:profile"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer:test_round"}, {"id": "test_round : int"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer:test_round_allowed"}, {"id": "test_round_allowed : int"}, {"id": "metagpt/document_store/qdrant_store.py"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantConnection"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantConnection:api_key"}, {"id": "api_key : Optional[str]"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantConnection:host"}, {"id": "host : Optional[str]"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantConnection:memory"}, {"id": "memory : bool"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantConnection:port"}, {"id": "port : Optional[int]"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantConnection:url"}, {"id": "url : Optional[str]"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantStore"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantStore:client"}, {"id": "client : QdrantClient"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantStore:add"}, {"id": "add(collection_name: str, points: List[PointStruct])"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantStore:create_collection"}, {"id": "create_collection(collection_name: str, vectors_config: VectorParams, force_recreate)"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantStore:delete_collection"}, {"id": "delete_collection(collection_name: str, timeout)"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantStore:has_collection"}, {"id": "has_collection(collection_name: str)"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantStore:search"}, {"id": "search(collection_name: str, query: List[float], query_filter: Filter, k, return_vector)"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantStore:write"}, {"id": "metagpt/actions/rebuild_class_view.py"}, {"id": "metagpt/actions/rebuild_class_view.py:RebuildClassView"}, {"id": "metagpt/actions/rebuild_class_view.py:RebuildClassView:run"}, {"id": "run(with_messages, format)"}, {"id": "metagpt/actions/rebuild_sequence_view.py"}, {"id": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView"}, {"id": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView:run"}, {"id": "metagpt/utils/redis.py"}, {"id": "metagpt/utils/redis.py:Redis"}, {"id": "metagpt/utils/redis.py:Redis:is_configured"}, {"id": "is_configured"}, {"id": "metagpt/utils/redis.py:Redis:is_valid"}, {"id": "metagpt/utils/redis.py:Redis:close"}, {"id": "close()"}, {"id": "metagpt/utils/redis.py:Redis:get"}, {"id": "get(key: str): bytes \\| None"}, {"id": "metagpt/utils/redis.py:Redis:set"}, {"id": "set(key: str, data: str, timeout_sec: int)"}, {"id": "metagpt/utils/repair_llm_raw_output.py"}, {"id": "metagpt/utils/repair_llm_raw_output.py:RepairType"}, {"id": "metagpt/utils/repair_llm_raw_output.py:RepairType:name"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:ReplyData"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:ReplyData:content"}, {"id": "metagpt/actions/invoice_ocr.py:ReplyQuestion"}, {"id": "metagpt/actions/invoice_ocr.py:ReplyQuestion:context"}, {"id": "metagpt/actions/invoice_ocr.py:ReplyQuestion:language"}, {"id": "metagpt/actions/invoice_ocr.py:ReplyQuestion:llm"}, {"id": "metagpt/actions/invoice_ocr.py:ReplyQuestion:name"}, {"id": "metagpt/actions/invoice_ocr.py:ReplyQuestion:run"}, {"id": "run(query: str, ocr_result: list): str"}, {"id": "metagpt/document.py:Repo"}, {"id": "metagpt/document.py:Repo:assets"}, {"id": "assets : dict[Path, Document]"}, {"id": "metagpt/document.py:Repo:codes"}, {"id": "codes : dict[Path, Document]"}, {"id": "metagpt/document.py:Repo:docs"}, {"id": "docs : dict[Path, Document]"}, {"id": "metagpt/document.py:Repo:name"}, {"id": "metagpt/document.py:Repo:path"}, {"id": "metagpt/document.py:Repo:eda"}, {"id": "eda(): RepoMetadata"}, {"id": "metagpt/document.py:Repo:from_path"}, {"id": "metagpt/document.py:Repo:get"}, {"id": "get(filename: str): Optional[Document]"}, {"id": "metagpt/document.py:Repo:get_text_documents"}, {"id": "get_text_documents(): list[Document]"}, {"id": "metagpt/document.py:Repo:set"}, {"id": "set(filename: str, content: str)"}, {"id": "metagpt/document.py:Repo:to_path"}, {"id": "to_path()"}, {"id": "metagpt/repo_parser.py:RepoFileInfo"}, {"id": "metagpt/repo_parser.py:RepoFileInfo:classes"}, {"id": "classes : List"}, {"id": "metagpt/repo_parser.py:RepoFileInfo:file"}, {"id": "file : str"}, {"id": "metagpt/repo_parser.py:RepoFileInfo:functions"}, {"id": "functions : List"}, {"id": "metagpt/repo_parser.py:RepoFileInfo:globals"}, {"id": "globals : List"}, {"id": "metagpt/repo_parser.py:RepoFileInfo:page_info"}, {"id": "page_info : List"}, {"id": "metagpt/document.py:RepoMetadata"}, {"id": "metagpt/document.py:RepoMetadata:n_chars"}, {"id": "n_chars : int"}, {"id": "metagpt/document.py:RepoMetadata:n_docs"}, {"id": "n_docs : int"}, {"id": "metagpt/document.py:RepoMetadata:name"}, {"id": "metagpt/document.py:RepoMetadata:symbols"}, {"id": "symbols : list"}, {"id": "metagpt/repo_parser.py:RepoParser"}, {"id": "metagpt/repo_parser.py:RepoParser:base_directory"}, {"id": "base_directory : Path"}, {"id": "metagpt/repo_parser.py:RepoParser:extract_class_and_function_info"}, {"id": "extract_class_and_function_info(tree, file_path): RepoFileInfo"}, {"id": "metagpt/repo_parser.py:RepoParser:generate_dataframe_structure"}, {"id": "generate_dataframe_structure(output_path)"}, {"id": "metagpt/repo_parser.py:RepoParser:generate_json_structure"}, {"id": "generate_json_structure(output_path)"}, {"id": "metagpt/repo_parser.py:RepoParser:generate_structure"}, {"id": "generate_structure(output_path, mode): Path"}, {"id": "metagpt/repo_parser.py:RepoParser:generate_symbols"}, {"id": "generate_symbols(): List[RepoFileInfo]"}, {"id": "metagpt/repo_parser.py:RepoParser:node_to_str"}, {"id": "node_to_str(node): CodeBlockInfo \\| None"}, {"id": "metagpt/repo_parser.py:RepoParser:rebuild_class_views"}, {"id": "rebuild_class_views(path: str \\| Path)"}, {"id": "metagpt/roles/researcher.py"}, {"id": "metagpt/roles/researcher.py:Report"}, {"id": "metagpt/roles/researcher.py:Report:content"}, {"id": "metagpt/roles/researcher.py:Report:links"}, {"id": "links : Optional[dict[str, list[str]]]"}, {"id": "metagpt/roles/researcher.py:Report:summaries"}, {"id": "summaries : Optional[list[tuple[str, str]]]"}, {"id": "metagpt/roles/researcher.py:Report:topic"}, {"id": "topic : str"}, {"id": "metagpt/roles/researcher.py:Researcher"}, {"id": "metagpt/roles/researcher.py:Researcher:constraints"}, {"id": "metagpt/roles/researcher.py:Researcher:goal"}, {"id": "metagpt/roles/researcher.py:Researcher:language"}, {"id": "metagpt/roles/researcher.py:Researcher:name"}, {"id": "metagpt/roles/researcher.py:Researcher:profile"}, {"id": "metagpt/roles/researcher.py:Researcher:react"}, {"id": "react(): Message"}, {"id": "metagpt/roles/researcher.py:Researcher:research_system_text"}, {"id": "research_system_text(topic, current_task: Action): str"}, {"id": "metagpt/roles/researcher.py:Researcher:write_report"}, {"id": "write_report(topic: str, content: str)"}, {"id": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding"}, {"id": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:data"}, {"id": "data : List[Embedding]"}, {"id": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:model"}, {"id": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:object_"}, {"id": "object_ : str"}, {"id": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:usage"}, {"id": "usage"}, {"id": "metagpt/learn/skill_loader.py:Returns"}, {"id": "metagpt/learn/skill_loader.py:Returns:format"}, {"id": "format : Optional[str]"}, {"id": "metagpt/learn/skill_loader.py:Returns:type"}, {"id": "metagpt/roles/role.py"}, {"id": "metagpt/roles/role.py:Role"}, {"id": "metagpt/roles/role.py:Role:action_count"}, {"id": "action_count"}, {"id": "metagpt/roles/role.py:Role:actions"}, {"id": "actions : list[SerializeAsAny[Action]]"}, {"id": "metagpt/roles/role.py:Role:constraints"}, {"id": "metagpt/roles/role.py:Role:desc"}, {"id": "metagpt/roles/role.py:Role:goal"}, {"id": "metagpt/roles/role.py:Role:is_human"}, {"id": "is_human : bool"}, {"id": "metagpt/roles/role.py:Role:is_idle"}, {"id": "metagpt/roles/role.py:Role:latest_observed_msg"}, {"id": "latest_observed_msg : Optional[Message]"}, {"id": "metagpt/roles/role.py:Role:llm"}, {"id": "metagpt/roles/role.py:Role:model_config"}, {"id": "metagpt/roles/role.py:Role:name"}, {"id": "metagpt/roles/role.py:Role:profile"}, {"id": "metagpt/roles/role.py:Role:rc"}, {"id": "rc"}, {"id": "metagpt/roles/role.py:Role:recovered"}, {"id": "recovered : bool"}, {"id": "metagpt/roles/role.py:Role:role_id"}, {"id": "role_id : str"}, {"id": "metagpt/roles/role.py:Role:states"}, {"id": "states : list[str]"}, {"id": "metagpt/roles/role.py:Role:subscription"}, {"id": "subscription : set[str]"}, {"id": "metagpt/roles/role.py:Role:todo"}, {"id": "metagpt/roles/role.py:Role:act"}, {"id": "act(): ActionOutput"}, {"id": "metagpt/roles/role.py:Role:check_subscription"}, {"id": "check_subscription()"}, {"id": "metagpt/roles/role.py:Role:deserialize"}, {"id": "deserialize(stg_path: Path): 'Role'"}, {"id": "metagpt/roles/role.py:Role:get_memories"}, {"id": "get_memories(k): list[Message]"}, {"id": "metagpt/roles/role.py:Role:init_actions"}, {"id": "init_actions(actions)"}, {"id": "metagpt/roles/role.py:Role:is_watch"}, {"id": "is_watch(caused_by: str)"}, {"id": "metagpt/roles/role.py:Role:publish_message"}, {"id": "publish_message(msg)"}, {"id": "metagpt/roles/role.py:Role:put_message"}, {"id": "put_message(message)"}, {"id": "metagpt/roles/role.py:Role:react"}, {"id": "metagpt/roles/role.py:Role:refresh_system_message"}, {"id": "refresh_system_message()"}, {"id": "metagpt/roles/role.py:Role:run"}, {"id": "run(with_message): Message \\| None"}, {"id": "metagpt/roles/role.py:Role:serialize"}, {"id": "metagpt/roles/role.py:Role:set_env"}, {"id": "set_env(env: 'Environment')"}, {"id": "metagpt/roles/role.py:Role:set_memory"}, {"id": "set_memory(memory: Memory)"}, {"id": "metagpt/roles/role.py:Role:set_recovered"}, {"id": "set_recovered(recovered: bool)"}, {"id": "metagpt/roles/role.py:Role:subscribe"}, {"id": "subscribe(tags: Set[str])"}, {"id": "metagpt/roles/role.py:Role:think"}, {"id": "think(): Action"}, {"id": "metagpt/roles/role.py:RoleContext"}, {"id": "metagpt/roles/role.py:RoleContext:env"}, {"id": "env : str"}, {"id": "metagpt/roles/role.py:RoleContext:history"}, {"id": "history"}, {"id": "metagpt/roles/role.py:RoleContext:important_memory"}, {"id": "important_memory"}, {"id": "metagpt/roles/role.py:RoleContext:max_react_loop"}, {"id": "max_react_loop : int"}, {"id": "metagpt/roles/role.py:RoleContext:memory"}, {"id": "metagpt/roles/role.py:RoleContext:model_config"}, {"id": "metagpt/roles/role.py:RoleContext:msg_buffer"}, {"id": "msg_buffer"}, {"id": "metagpt/roles/role.py:RoleContext:news"}, {"id": "news : list[Type[Message]]"}, {"id": "metagpt/roles/role.py:RoleContext:react_mode"}, {"id": "react_mode"}, {"id": "metagpt/roles/role.py:RoleContext:state"}, {"id": "state : int"}, {"id": "metagpt/roles/role.py:RoleContext:todo"}, {"id": "metagpt/roles/role.py:RoleContext:watch"}, {"id": "watch : set[str]"}, {"id": "metagpt/roles/role.py:RoleContext:check"}, {"id": "check(role_id: str)"}, {"id": "metagpt/roles/role.py:RoleReactMode"}, {"id": "metagpt/roles/role.py:RoleReactMode:name"}, {"id": "metagpt/roles/role.py:RoleReactMode:values"}, {"id": "values()"}, {"id": "metagpt/actions/run_code.py"}, {"id": "metagpt/actions/run_code.py:RunCode"}, {"id": "metagpt/actions/run_code.py:RunCode:context"}, {"id": "metagpt/actions/run_code.py:RunCode:name"}, {"id": "metagpt/actions/run_code.py:RunCode:run"}, {"id": "run(): RunCodeResult"}, {"id": "metagpt/actions/run_code.py:RunCode:run_script"}, {"id": "run_script(working_directory, additional_python_paths, command): Tuple[str, str]"}, {"id": "metagpt/actions/run_code.py:RunCode:run_text"}, {"id": "run_text(code): Tuple[str, str]"}, {"id": "metagpt/schema.py:RunCodeContext"}, {"id": "metagpt/schema.py:RunCodeContext:additional_python_paths"}, {"id": "additional_python_paths : List[str]"}, {"id": "metagpt/schema.py:RunCodeContext:code"}, {"id": "code : Optional[str]"}, {"id": "metagpt/schema.py:RunCodeContext:code_filename"}, {"id": "code_filename : str"}, {"id": "metagpt/schema.py:RunCodeContext:command"}, {"id": "command : List[str]"}, {"id": "metagpt/schema.py:RunCodeContext:mode"}, {"id": "mode : str"}, {"id": "metagpt/schema.py:RunCodeContext:output"}, {"id": "output : Optional[str]"}, {"id": "metagpt/schema.py:RunCodeContext:output_filename"}, {"id": "output_filename : Optional[str]"}, {"id": "metagpt/schema.py:RunCodeContext:test_code"}, {"id": "test_code : Optional[str]"}, {"id": "metagpt/schema.py:RunCodeContext:test_filename"}, {"id": "test_filename : str"}, {"id": "metagpt/schema.py:RunCodeContext:working_directory"}, {"id": "working_directory : str"}, {"id": "metagpt/schema.py:RunCodeResult"}, {"id": "metagpt/schema.py:RunCodeResult:stderr"}, {"id": "stderr : str"}, {"id": "metagpt/schema.py:RunCodeResult:stdout"}, {"id": "stdout : str"}, {"id": "metagpt/schema.py:RunCodeResult:summary"}, {"id": "summary : str"}, {"id": "metagpt/utils/s3.py"}, {"id": "metagpt/utils/s3.py:S3"}, {"id": "metagpt/utils/s3.py:S3:auth_config"}, {"id": "auth_config : dict"}, {"id": "metagpt/utils/s3.py:S3:is_configured"}, {"id": "metagpt/utils/s3.py:S3:is_valid"}, {"id": "metagpt/utils/s3.py:S3:session"}, {"id": "session : Session"}, {"id": "metagpt/utils/s3.py:S3:cache"}, {"id": "cache(data: str, file_ext: str, format: str): str"}, {"id": "metagpt/utils/s3.py:S3:download_file"}, {"id": "download_file(bucket: str, object_name: str, local_path: str, chunk_size: Optional[int]): None"}, {"id": "metagpt/utils/s3.py:S3:get_object"}, {"id": "get_object(bucket: str, object_name: str): bytes"}, {"id": "metagpt/utils/s3.py:S3:get_object_url"}, {"id": "get_object_url(bucket: str, object_name: str): str"}, {"id": "metagpt/utils/s3.py:S3:upload_file"}, {"id": "upload_file(bucket: str, local_path: str, object_name: str): None"}, {"id": "metagpt/tools/sd_engine.py"}, {"id": "metagpt/tools/sd_engine.py:SDEngine"}, {"id": "metagpt/tools/sd_engine.py:SDEngine:payload"}, {"id": "payload : dict"}, {"id": "metagpt/tools/sd_engine.py:SDEngine:sd_t2i_url"}, {"id": "sd_t2i_url"}, {"id": "metagpt/tools/sd_engine.py:SDEngine:sd_url"}, {"id": "sd_url"}, {"id": "metagpt/tools/sd_engine.py:SDEngine:construct_payload"}, {"id": "construct_payload(prompt, negtive_prompt, width, height, sd_model)"}, {"id": "metagpt/tools/sd_engine.py:SDEngine:run"}, {"id": "run(url, payload, session)"}, {"id": "metagpt/tools/sd_engine.py:SDEngine:run_i2i"}, {"id": "run_i2i()"}, {"id": "metagpt/tools/sd_engine.py:SDEngine:run_sam"}, {"id": "run_sam()"}, {"id": "metagpt/tools/sd_engine.py:SDEngine:run_t2i"}, {"id": "run_t2i(prompts: List)"}, {"id": "metagpt/utils/graph_repository.py:SPO"}, {"id": "metagpt/utils/graph_repository.py:SPO:object_"}, {"id": "metagpt/utils/graph_repository.py:SPO:predicate"}, {"id": "predicate : str"}, {"id": "metagpt/utils/graph_repository.py:SPO:subject"}, {"id": "subject : str"}, {"id": "metagpt/roles/sales.py"}, {"id": "metagpt/roles/sales.py:Sales"}, {"id": "metagpt/roles/sales.py:Sales:desc"}, {"id": "metagpt/roles/sales.py:Sales:name"}, {"id": "metagpt/roles/sales.py:Sales:profile"}, {"id": "metagpt/roles/sales.py:Sales:store"}, {"id": "metagpt/actions/search_and_summarize.py"}, {"id": "metagpt/actions/search_and_summarize.py:SearchAndSummarize"}, {"id": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:config"}, {"id": "config : NoneType"}, {"id": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:content"}, {"id": "content : Optional[str]"}, {"id": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:engine"}, {"id": "engine : Optional[SearchEngineType]"}, {"id": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:name"}, {"id": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:result"}, {"id": "result : str"}, {"id": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:search_engine"}, {"id": "search_engine : Optional[SearchEngine]"}, {"id": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:search_func"}, {"id": "search_func : Optional[Any]"}, {"id": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:run"}, {"id": "run(context: list[Message], system_text): str"}, {"id": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:validate_engine_and_run_func"}, {"id": "validate_engine_and_run_func(values)"}, {"id": "metagpt/tools/search_engine.py"}, {"id": "metagpt/tools/search_engine.py:SearchEngine"}, {"id": "metagpt/tools/search_engine.py:SearchEngine:engine"}, {"id": "metagpt/tools/search_engine.py:SearchEngine:run_func"}, {"id": "run_func : Optional[Callable[[str, int, bool], Coroutine[None, None, Union[str, list[str]]]]]"}, {"id": "metagpt/tools/search_engine.py:SearchEngine:run"}, {"id": "run(query: str, max_results: int, as_string: Literal[True]): str"}, {"id": "metagpt/tools"}, {"id": "metagpt/tools:SearchEngineType"}, {"id": "metagpt/tools:SearchEngineType:name"}, {"id": "metagpt/roles/searcher.py"}, {"id": "metagpt/roles/searcher.py:Searcher"}, {"id": "metagpt/roles/searcher.py:Searcher:constraints"}, {"id": "metagpt/roles/searcher.py:Searcher:engine"}, {"id": "engine"}, {"id": "metagpt/roles/searcher.py:Searcher:goal"}, {"id": "metagpt/roles/searcher.py:Searcher:name"}, {"id": "metagpt/roles/searcher.py:Searcher:profile"}, {"id": "metagpt/roles/searcher.py:Searcher:set_search_func"}, {"id": "set_search_func(search_func)"}, {"id": "metagpt/tools/web_browser_engine_selenium.py"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:browser_type"}, {"id": "browser_type : Literal['chrome', 'firefox', 'edge', 'ie'] \\| None"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:executable_path"}, {"id": "executable_path"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:executor"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:launch_args"}, {"id": "launch_args"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:loop"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:run"}, {"id": "metagpt/schema.py:SerializationMixin"}, {"id": "metagpt/tools/search_engine_serpapi.py"}, {"id": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper"}, {"id": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:aiosession"}, {"id": "aiosession : Optional[aiohttp.ClientSession]"}, {"id": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:model_config"}, {"id": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:params"}, {"id": "params : dict"}, {"id": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:search_engine"}, {"id": "search_engine : Optional[Any]"}, {"id": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:serpapi_api_key"}, {"id": "serpapi_api_key : Optional[str]"}, {"id": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:check_serpapi_api_key"}, {"id": "check_serpapi_api_key(val: str)"}, {"id": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:get_params"}, {"id": "get_params(query: str): Dict[str, str]"}, {"id": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:results"}, {"id": "results(query: str, max_results: int): dict"}, {"id": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:run"}, {"id": "run(query, max_results: int, as_string: bool): str"}, {"id": "metagpt/tools/search_engine_serper.py"}, {"id": "metagpt/tools/search_engine_serper.py:SerperWrapper"}, {"id": "metagpt/tools/search_engine_serper.py:SerperWrapper:aiosession"}, {"id": "metagpt/tools/search_engine_serper.py:SerperWrapper:model_config"}, {"id": "metagpt/tools/search_engine_serper.py:SerperWrapper:payload"}, {"id": "metagpt/tools/search_engine_serper.py:SerperWrapper:search_engine"}, {"id": "metagpt/tools/search_engine_serper.py:SerperWrapper:serper_api_key"}, {"id": "serper_api_key : Optional[str]"}, {"id": "metagpt/tools/search_engine_serper.py:SerperWrapper:check_serper_api_key"}, {"id": "check_serper_api_key(val: str)"}, {"id": "metagpt/tools/search_engine_serper.py:SerperWrapper:get_headers"}, {"id": "get_headers(): Dict[str, str]"}, {"id": "metagpt/tools/search_engine_serper.py:SerperWrapper:get_payloads"}, {"id": "get_payloads(queries: list[str], max_results: int): Dict[str, str]"}, {"id": "metagpt/tools/search_engine_serper.py:SerperWrapper:results"}, {"id": "results(queries: list[str], max_results: int): dict"}, {"id": "metagpt/tools/search_engine_serper.py:SerperWrapper:run"}, {"id": "run(query: str, max_results: int, as_string: bool): str"}, {"id": "metagpt/schema.py:SimpleMessage"}, {"id": "metagpt/schema.py:SimpleMessage:content"}, {"id": "metagpt/schema.py:SimpleMessage:role"}, {"id": "metagpt/utils/singleton.py"}, {"id": "metagpt/utils/singleton.py:Singleton"}, {"id": "metagpt/roles/sk_agent.py"}, {"id": "metagpt/roles/sk_agent.py:SkAgent"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:constraints"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:goal"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:import_semantic_skill_from_directory"}, {"id": "import_semantic_skill_from_directory : Callable"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:import_skill"}, {"id": "import_skill : Callable"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:kernel"}, {"id": "kernel : Kernel"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:llm"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:name"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:plan"}, {"id": "plan : Plan"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:planner"}, {"id": "planner : Optional[Union[BasicPlanner, SequentialPlanner, ActionPlanner]]"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:planner_cls"}, {"id": "planner_cls : Optional[Any]"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:profile"}, {"id": "metagpt/tools/search_engine.py:SkSearchEngine"}, {"id": "metagpt/tools/search_engine.py:SkSearchEngine:search_engine"}, {"id": "metagpt/tools/search_engine.py:SkSearchEngine:run"}, {"id": "run(query: str): str"}, {"id": "metagpt/learn/skill_loader.py:Skill"}, {"id": "metagpt/learn/skill_loader.py:Skill:arguments"}, {"id": "arguments"}, {"id": "metagpt/learn/skill_loader.py:Skill:description"}, {"id": "metagpt/learn/skill_loader.py:Skill:examples"}, {"id": "examples : List[Example]"}, {"id": "metagpt/learn/skill_loader.py:Skill:id"}, {"id": "id : Optional[str]"}, {"id": "metagpt/learn/skill_loader.py:Skill:name"}, {"id": "metagpt/learn/skill_loader.py:Skill:parameters"}, {"id": "parameters : Optional[Dict[str, Parameter]]"}, {"id": "metagpt/learn/skill_loader.py:Skill:returns"}, {"id": "returns"}, {"id": "metagpt/learn/skill_loader.py:Skill:x_prerequisite"}, {"id": "x_prerequisite : Dict"}, {"id": "metagpt/actions/skill_action.py:SkillAction"}, {"id": "metagpt/actions/skill_action.py:SkillAction:args"}, {"id": "args : Dict"}, {"id": "metagpt/actions/skill_action.py:SkillAction:rsp"}, {"id": "metagpt/actions/skill_action.py:SkillAction:skill"}, {"id": "metagpt/actions/skill_action.py:SkillAction:find_and_call_function"}, {"id": "find_and_call_function(function_name, args): str"}, {"id": "metagpt/actions/skill_action.py:SkillAction:run"}, {"id": "metagpt/management/skill_manager.py"}, {"id": "metagpt/management/skill_manager.py:SkillManager"}, {"id": "metagpt/management/skill_manager.py:SkillManager:add_skill"}, {"id": "add_skill(skill: Skill)"}, {"id": "metagpt/management/skill_manager.py:SkillManager:del_skill"}, {"id": "del_skill(skill_name: str)"}, {"id": "metagpt/management/skill_manager.py:SkillManager:generate_skill_desc"}, {"id": "generate_skill_desc(skill: Skill): str"}, {"id": "metagpt/management/skill_manager.py:SkillManager:get_skill"}, {"id": "get_skill(skill_name: str): Skill"}, {"id": "metagpt/management/skill_manager.py:SkillManager:retrieve_skill"}, {"id": "retrieve_skill(desc: str, n_results: int): list[Skill]"}, {"id": "metagpt/management/skill_manager.py:SkillManager:retrieve_skill_scored"}, {"id": "retrieve_skill_scored(desc: str, n_results: int): dict"}, {"id": "metagpt/learn/skill_loader.py:SkillsDeclaration"}, {"id": "metagpt/learn/skill_loader.py:SkillsDeclaration:components"}, {"id": "components : Optional[Components]"}, {"id": "metagpt/learn/skill_loader.py:SkillsDeclaration:entities"}, {"id": "entities : Dict[str, Entity]"}, {"id": "metagpt/learn/skill_loader.py:SkillsDeclaration:skillapi"}, {"id": "skillapi : str"}, {"id": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill"}, {"id": "get_skill(name, entity_name: str): Skill"}, {"id": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill_list"}, {"id": "get_skill_list(entity_name: str): Dict"}, {"id": "metagpt/learn/skill_loader.py:SkillsDeclaration:load"}, {"id": "load(skill_yaml_file_name: Path): 'SkillsDeclaration'"}, {"id": "metagpt/provider/spark_api.py:SparkLLM"}, {"id": "metagpt/provider/spark_api.py:SparkLLM:acompletion"}, {"id": "metagpt/provider/spark_api.py:SparkLLM:acompletion_text"}, {"id": "metagpt/provider/spark_api.py:SparkLLM:get_choice_text"}, {"id": "metagpt/strategy/tot_schema.py:Strategy"}, {"id": "metagpt/strategy/tot_schema.py:Strategy:name"}, {"id": "metagpt/subscription.py"}, {"id": "metagpt/subscription.py:SubscriptionRunner"}, {"id": "metagpt/subscription.py:SubscriptionRunner:model_config"}, {"id": "metagpt/subscription.py:SubscriptionRunner:tasks"}, {"id": "tasks : dict[Role, asyncio.Task]"}, {"id": "metagpt/subscription.py:SubscriptionRunner:run"}, {"id": "run(raise_exception: bool)"}, {"id": "metagpt/subscription.py:SubscriptionRunner:subscribe"}, {"id": "subscribe(role: Role, trigger: AsyncGenerator[Message, None], callback: Callable[[Message], Awaitable[None]])"}, {"id": "metagpt/subscription.py:SubscriptionRunner:unsubscribe"}, {"id": "unsubscribe(role: Role)"}, {"id": "metagpt/actions/summarize_code.py"}, {"id": "metagpt/actions/summarize_code.py:SummarizeCode"}, {"id": "metagpt/actions/summarize_code.py:SummarizeCode:context"}, {"id": "metagpt/actions/summarize_code.py:SummarizeCode:name"}, {"id": "metagpt/actions/summarize_code.py:SummarizeCode:run"}, {"id": "metagpt/actions/summarize_code.py:SummarizeCode:summarize_code"}, {"id": "summarize_code(prompt)"}, {"id": "metagpt/schema.py:SystemMessage"}, {"id": "metagpt/actions/talk_action.py"}, {"id": "metagpt/actions/talk_action.py:TalkAction"}, {"id": "metagpt/actions/talk_action.py:TalkAction:aask_args"}, {"id": "aask_args"}, {"id": "metagpt/actions/talk_action.py:TalkAction:context"}, {"id": "metagpt/actions/talk_action.py:TalkAction:history_summary"}, {"id": "history_summary : str"}, {"id": "metagpt/actions/talk_action.py:TalkAction:knowledge"}, {"id": "knowledge : str"}, {"id": "metagpt/actions/talk_action.py:TalkAction:prompt"}, {"id": "metagpt/actions/talk_action.py:TalkAction:prompt_gpt4"}, {"id": "prompt_gpt4"}, {"id": "metagpt/actions/talk_action.py:TalkAction:rsp"}, {"id": "metagpt/actions/talk_action.py:TalkAction:run"}, {"id": "metagpt/actions/talk_action.py:TalkActionPrompt"}, {"id": "metagpt/actions/talk_action.py:TalkActionPrompt:FORMATION"}, {"id": "FORMATION : str"}, {"id": "metagpt/actions/talk_action.py:TalkActionPrompt:FORMATION_LOOSE"}, {"id": "FORMATION_LOOSE : str"}, {"id": "metagpt/roles/teacher.py"}, {"id": "metagpt/roles/teacher.py:Teacher"}, {"id": "metagpt/roles/teacher.py:Teacher:constraints"}, {"id": "metagpt/roles/teacher.py:Teacher:course_title"}, {"id": "course_title"}, {"id": "metagpt/roles/teacher.py:Teacher:desc"}, {"id": "metagpt/roles/teacher.py:Teacher:goal"}, {"id": "metagpt/roles/teacher.py:Teacher:name"}, {"id": "metagpt/roles/teacher.py:Teacher:profile"}, {"id": "metagpt/roles/teacher.py:Teacher:new_file_name"}, {"id": "new_file_name(lesson_title, ext)"}, {"id": "metagpt/roles/teacher.py:Teacher:save"}, {"id": "save(content)"}, {"id": "metagpt/actions/write_teaching_plan.py"}, {"id": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock"}, {"id": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:COURSE_TITLE"}, {"id": "COURSE_TITLE : str"}, {"id": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:DATA_BEGIN_TAG"}, {"id": "DATA_BEGIN_TAG : str"}, {"id": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:DATA_END_TAG"}, {"id": "DATA_END_TAG : str"}, {"id": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:FORMATION"}, {"id": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:PROMPT_TEMPLATE"}, {"id": "PROMPT_TEMPLATE : str"}, {"id": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:PROMPT_TITLE_TEMPLATE"}, {"id": "PROMPT_TITLE_TEMPLATE : str"}, {"id": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:TOPICS"}, {"id": "TOPICS : list"}, {"id": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:TOPIC_STATEMENTS"}, {"id": "TOPIC_STATEMENTS : dict"}, {"id": "metagpt/team.py"}, {"id": "metagpt/team.py:Team"}, {"id": "metagpt/team.py:Team:env"}, {"id": "env"}, {"id": "metagpt/team.py:Team:idea"}, {"id": "idea : str"}, {"id": "metagpt/team.py:Team:investment"}, {"id": "investment : float"}, {"id": "metagpt/team.py:Team:model_config"}, {"id": "metagpt/team.py:Team:deserialize"}, {"id": "deserialize(stg_path: Path): 'Team'"}, {"id": "metagpt/team.py:Team:hire"}, {"id": "hire(roles: list[Role])"}, {"id": "metagpt/team.py:Team:invest"}, {"id": "invest(investment: float)"}, {"id": "metagpt/team.py:Team:run"}, {"id": "run(n_round, idea, send_to, auto_archive)"}, {"id": "metagpt/team.py:Team:run_project"}, {"id": "run_project(idea, send_to: str)"}, {"id": "metagpt/team.py:Team:serialize"}, {"id": "metagpt/team.py:Team:start_project"}, {"id": "start_project(idea, send_to: str)"}, {"id": "metagpt/schema.py:TestingContext"}, {"id": "metagpt/schema.py:TestingContext:code_doc"}, {"id": "code_doc"}, {"id": "metagpt/schema.py:TestingContext:filename"}, {"id": "metagpt/schema.py:TestingContext:test_doc"}, {"id": "test_doc : Optional[Document]"}, {"id": "metagpt/strategy/base.py:ThoughtNode"}, {"id": "metagpt/strategy/base.py:ThoughtNode:id"}, {"id": "id : int"}, {"id": "metagpt/strategy/base.py:ThoughtNode:name"}, {"id": "metagpt/strategy/base.py:ThoughtNode:valid_status"}, {"id": "valid_status : bool"}, {"id": "metagpt/strategy/base.py:ThoughtNode:value"}, {"id": "value : int"}, {"id": "metagpt/strategy/base.py:ThoughtNode:update_valid_status"}, {"id": "update_valid_status(status): None"}, {"id": "metagpt/strategy/base.py:ThoughtNode:update_value"}, {"id": "update_value(value): None"}, {"id": "metagpt/strategy/tot.py:ThoughtSolverBase"}, {"id": "metagpt/strategy/tot.py:ThoughtSolverBase:config"}, {"id": "metagpt/strategy/tot.py:ThoughtSolverBase:llm"}, {"id": "metagpt/strategy/tot.py:ThoughtSolverBase:model_config"}, {"id": "metagpt/strategy/tot.py:ThoughtSolverBase:thought_tree"}, {"id": "thought_tree : Optional[ThoughtTree]"}, {"id": "metagpt/strategy/tot.py:ThoughtSolverBase:evaluate_node"}, {"id": "evaluate_node(node, parent_value): None"}, {"id": "metagpt/strategy/tot.py:ThoughtSolverBase:generate_thoughts"}, {"id": "generate_thoughts(current_state, current_node): List[ThoughtNode]"}, {"id": "metagpt/strategy/tot.py:ThoughtSolverBase:select_nodes"}, {"id": "select_nodes(thought_nodes: List[ThoughtNode]): List[ThoughtNode]"}, {"id": "metagpt/strategy/tot.py:ThoughtSolverBase:solve"}, {"id": "metagpt/strategy/tot.py:ThoughtSolverBase:update_solution"}, {"id": "update_solution()"}, {"id": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig"}, {"id": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:evaluator"}, {"id": "evaluator"}, {"id": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:max_steps"}, {"id": "max_steps : int"}, {"id": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:method_select"}, {"id": "method_select : str"}, {"id": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:n_generate_sample"}, {"id": "n_generate_sample : int"}, {"id": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:n_select_sample"}, {"id": "n_select_sample : int"}, {"id": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:n_solution_sample"}, {"id": "n_solution_sample : int"}, {"id": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:parser"}, {"id": "parser"}, {"id": "metagpt/strategy/base.py:ThoughtTree"}, {"id": "metagpt/strategy/base.py:ThoughtTree:all_nodes"}, {"id": "all_nodes"}, {"id": "metagpt/strategy/base.py:ThoughtTree:parse_node_path"}, {"id": "parse_node_path(node): List[str]"}, {"id": "metagpt/strategy/base.py:ThoughtTree:show"}, {"id": "show(): None"}, {"id": "metagpt/strategy/base.py:ThoughtTree:update_node"}, {"id": "update_node(thought: List[dict], current_node: ThoughtNode): List[ThoughtNode]"}, {"id": "metagpt/tools/translator.py"}, {"id": "metagpt/tools/translator.py:Translator"}, {"id": "metagpt/tools/translator.py:Translator:translate_prompt"}, {"id": "translate_prompt(original, lang)"}, {"id": "metagpt/strategy/tot.py:TreeofThought"}, {"id": "metagpt/strategy/tot.py:TreeofThought:config"}, {"id": "metagpt/strategy/tot.py:TreeofThought:solver"}, {"id": "solver"}, {"id": "metagpt/strategy/tot.py:TreeofThought:strategy"}, {"id": "strategy"}, {"id": "metagpt/strategy/tot.py:TreeofThought:solve"}, {"id": "metagpt/roles/tutorial_assistant.py"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:constraints"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:goal"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:language"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:main_title"}, {"id": "main_title : str"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:name"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:profile"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:topic"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:total_content"}, {"id": "total_content : str"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:react"}, {"id": "metagpt/tools/ut_writer.py"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:chatgpt_method"}, {"id": "chatgpt_method : str"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:icl_sample"}, {"id": "icl_sample : str"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:questions_path"}, {"id": "questions_path : str"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:swagger_file"}, {"id": "swagger_file : str"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:template_prefix"}, {"id": "template_prefix : str"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:ut_py_path"}, {"id": "ut_py_path : str"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:ask_gpt_and_save"}, {"id": "ask_gpt_and_save(question: str, tag: str, fname: str)"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:build_api_doc"}, {"id": "build_api_doc(node: dict, path: str, method: str): str"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:build_object_properties"}, {"id": "build_object_properties(node, prop_object_required, level: int): str"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:generate_ut"}, {"id": "generate_ut(include_tags): bool"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:get_swagger_json"}, {"id": "get_swagger_json(): dict"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:get_tags_mapping"}, {"id": "get_tags_mapping(): dict"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:gpt_msgs_to_code"}, {"id": "gpt_msgs_to_code(messages: list): str"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:para_to_str"}, {"id": "para_to_str(name, prop, prop_object_required)"}, {"id": "metagpt/tools/openai_text_to_embedding.py:Usage"}, {"id": "metagpt/tools/openai_text_to_embedding.py:Usage:prompt_tokens"}, {"id": "prompt_tokens : int"}, {"id": "metagpt/tools/openai_text_to_embedding.py:Usage:total_tokens"}, {"id": "total_tokens : int"}, {"id": "metagpt/schema.py:UserMessage"}, {"id": "metagpt/actions/add_requirement.py"}, {"id": "metagpt/actions/add_requirement.py:UserRequirement"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:WDMHttpProxyClient"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:WDMHttpProxyClient:get"}, {"id": "get(url)"}, {"id": "metagpt/actions/research.py:WebBrowseAndSummarize"}, {"id": "metagpt/actions/research.py:WebBrowseAndSummarize:browse_func"}, {"id": "browse_func : Optional[Union[Callable[[list[str]], None], None]]"}, {"id": "metagpt/actions/research.py:WebBrowseAndSummarize:context"}, {"id": "metagpt/actions/research.py:WebBrowseAndSummarize:desc"}, {"id": "metagpt/actions/research.py:WebBrowseAndSummarize:llm"}, {"id": "metagpt/actions/research.py:WebBrowseAndSummarize:name"}, {"id": "metagpt/actions/research.py:WebBrowseAndSummarize:web_browser_engine"}, {"id": "web_browser_engine : Optional[WebBrowserEngine]"}, {"id": "metagpt/actions/research.py:WebBrowseAndSummarize:run"}, {"id": "run(url: str): dict[str, str]"}, {"id": "metagpt/tools/web_browser_engine.py"}, {"id": "metagpt/tools/web_browser_engine.py:WebBrowserEngine"}, {"id": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:engine"}, {"id": "engine : WebBrowserEngineType \\| None"}, {"id": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:run_func"}, {"id": "run_func : Callable[..., Coroutine[Any, Any, WebPage \\| list[WebPage]]] \\| None"}, {"id": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:run"}, {"id": "run(url: str): WebPage"}, {"id": "metagpt/tools:WebBrowserEngineType"}, {"id": "metagpt/tools:WebBrowserEngineType:name"}, {"id": "metagpt/utils/parse_html.py"}, {"id": "metagpt/utils/parse_html.py:WebPage"}, {"id": "metagpt/utils/parse_html.py:WebPage:html"}, {"id": "html : str"}, {"id": "metagpt/utils/parse_html.py:WebPage:inner_text"}, {"id": "inner_text : str"}, {"id": "metagpt/utils/parse_html.py:WebPage:soup"}, {"id": "soup"}, {"id": "metagpt/utils/parse_html.py:WebPage:title"}, {"id": "title"}, {"id": "metagpt/utils/parse_html.py:WebPage:url"}, {"id": "metagpt/utils/parse_html.py:WebPage:get_links"}, {"id": "get_links(): Generator[str, None, None]"}, {"id": "metagpt/tools/prompt_writer.py:WikiHowTemplate"}, {"id": "metagpt/tools/prompt_writer.py:WikiHowTemplate:gen"}, {"id": "gen(question: str, step: str): list[str]"}, {"id": "metagpt/actions/write_code.py"}, {"id": "metagpt/actions/write_code.py:WriteCode"}, {"id": "metagpt/actions/write_code.py:WriteCode:context"}, {"id": "metagpt/actions/write_code.py:WriteCode:name"}, {"id": "metagpt/actions/write_code.py:WriteCode:get_codes"}, {"id": "get_codes(task_doc, exclude): str"}, {"id": "metagpt/actions/write_code.py:WriteCode:run"}, {"id": "run(): CodingContext"}, {"id": "metagpt/actions/write_code.py:WriteCode:write_code"}, {"id": "write_code(prompt): str"}, {"id": "metagpt/actions/write_code_an_draft.py"}, {"id": "metagpt/actions/write_code_an_draft.py:WriteCodeAN"}, {"id": "metagpt/actions/write_code_an_draft.py:WriteCodeAN:run"}, {"id": "metagpt/actions/write_code_review.py"}, {"id": "metagpt/actions/write_code_review.py:WriteCodeReview"}, {"id": "metagpt/actions/write_code_review.py:WriteCodeReview:context"}, {"id": "metagpt/actions/write_code_review.py:WriteCodeReview:name"}, {"id": "metagpt/actions/write_code_review.py:WriteCodeReview:run"}, {"id": "metagpt/actions/write_code_review.py:WriteCodeReview:write_code_review_and_rewrite"}, {"id": "write_code_review_and_rewrite(context_prompt, cr_prompt, filename)"}, {"id": "metagpt/actions/write_tutorial.py"}, {"id": "metagpt/actions/write_tutorial.py:WriteContent"}, {"id": "metagpt/actions/write_tutorial.py:WriteContent:directory"}, {"id": "directory : dict"}, {"id": "metagpt/actions/write_tutorial.py:WriteContent:language"}, {"id": "metagpt/actions/write_tutorial.py:WriteContent:name"}, {"id": "metagpt/actions/write_tutorial.py:WriteContent:run"}, {"id": "run(topic: str): str"}, {"id": "metagpt/actions/design_api.py"}, {"id": "metagpt/actions/design_api.py:WriteDesign"}, {"id": "metagpt/actions/design_api.py:WriteDesign:context"}, {"id": "metagpt/actions/design_api.py:WriteDesign:desc"}, {"id": "metagpt/actions/design_api.py:WriteDesign:name"}, {"id": "metagpt/actions/design_api.py:WriteDesign:run"}, {"id": "run(with_messages: Message, schema: str)"}, {"id": "metagpt/actions/write_tutorial.py:WriteDirectory"}, {"id": "metagpt/actions/write_tutorial.py:WriteDirectory:language"}, {"id": "metagpt/actions/write_tutorial.py:WriteDirectory:name"}, {"id": "metagpt/actions/write_tutorial.py:WriteDirectory:run"}, {"id": "run(topic: str): Dict"}, {"id": "metagpt/actions/write_docstring.py"}, {"id": "metagpt/actions/write_docstring.py:WriteDocstring"}, {"id": "metagpt/actions/write_docstring.py:WriteDocstring:context"}, {"id": "metagpt/actions/write_docstring.py:WriteDocstring:desc"}, {"id": "metagpt/actions/write_docstring.py:WriteDocstring:run"}, {"id": "run(code: str, system_text: str, style: Literal['google', 'numpy', 'sphinx']): str"}, {"id": "metagpt/actions/write_docstring.py:WriteDocstring:write_docstring"}, {"id": "write_docstring(filename: str \\| Path, overwrite: bool, style: Literal['google', 'numpy', 'sphinx']): str"}, {"id": "metagpt/actions/write_prd.py"}, {"id": "metagpt/actions/write_prd.py:WritePRD"}, {"id": "metagpt/actions/write_prd.py:WritePRD:content"}, {"id": "metagpt/actions/write_prd.py:WritePRD:name"}, {"id": "metagpt/actions/write_prd.py:WritePRD:run"}, {"id": "run(with_messages, schema): ActionOutput \\| Message"}, {"id": "metagpt/actions/write_prd_review.py"}, {"id": "metagpt/actions/write_prd_review.py:WritePRDReview"}, {"id": "metagpt/actions/write_prd_review.py:WritePRDReview:context"}, {"id": "metagpt/actions/write_prd_review.py:WritePRDReview:desc"}, {"id": "metagpt/actions/write_prd_review.py:WritePRDReview:name"}, {"id": "metagpt/actions/write_prd_review.py:WritePRDReview:prd"}, {"id": "prd : Optional[str]"}, {"id": "metagpt/actions/write_prd_review.py:WritePRDReview:prd_review_prompt_template"}, {"id": "prd_review_prompt_template : str"}, {"id": "metagpt/actions/write_prd_review.py:WritePRDReview:run"}, {"id": "run(prd)"}, {"id": "metagpt/actions/write_review.py"}, {"id": "metagpt/actions/write_review.py:WriteReview"}, {"id": "metagpt/actions/write_review.py:WriteReview:name"}, {"id": "metagpt/actions/write_review.py:WriteReview:run"}, {"id": "metagpt/actions/project_management.py"}, {"id": "metagpt/actions/project_management.py:WriteTasks"}, {"id": "metagpt/actions/project_management.py:WriteTasks:context"}, {"id": "metagpt/actions/project_management.py:WriteTasks:name"}, {"id": "metagpt/actions/project_management.py:WriteTasks:run"}, {"id": "run(with_messages, schema)"}, {"id": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart"}, {"id": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:context"}, {"id": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:language"}, {"id": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:rsp"}, {"id": "rsp : Optional[str]"}, {"id": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:topic"}, {"id": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:format_value"}, {"id": "format_value(value)"}, {"id": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:run"}, {"id": "run(with_message)"}, {"id": "metagpt/actions/write_test.py"}, {"id": "metagpt/actions/write_test.py:WriteTest"}, {"id": "metagpt/actions/write_test.py:WriteTest:context"}, {"id": "context : Optional[TestingContext]"}, {"id": "metagpt/actions/write_test.py:WriteTest:name"}, {"id": "metagpt/actions/write_test.py:WriteTest:run"}, {"id": "run(): TestingContext"}, {"id": "metagpt/actions/write_test.py:WriteTest:write_code"}, {"id": "write_code(prompt)"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:api_key"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:api_secret"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:app_id"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:host"}, {"id": "host"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:message"}, {"id": "message : NoneType"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:path"}, {"id": "path"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:spark_url"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:create_url"}, {"id": "create_url()"}, {"id": "metagpt/provider/zhipuai_api.py"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:llm"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:model"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:use_system_prompt"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:acompletion"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:acompletion_text"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:completion"}, {"id": "completion(messages: list[dict], timeout): dict"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:get_choice_text"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuEvent"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuEvent:name"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:ainvoke"}, {"id": "ainvoke(): dict"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:arequest"}, {"id": "arequest(invoke_type: InvokeType, stream: bool, method: str, headers: dict, kwargs)"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:asse_invoke"}, {"id": "asse_invoke(): AsyncSSEClient"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:get_header"}, {"id": "get_header(): dict"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:get_sse_header"}, {"id": "get_sse_header(): dict"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:split_zhipu_api_url"}, {"id": "split_zhipu_api_url(invoke_type: InvokeType, kwargs)"}, {"id": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill_list:_AgentSkill"}, {"id": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill_list:_AgentSkill:name"}, {"id": "metagpt/management/skill_manager.py:SkillManager:_store"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:_cost_manager"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:_cost_manager"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM:_cost_manager"}, {"id": "metagpt/utils/git_repository.py:GitRepository:_dependency"}, {"id": "metagpt/repo_parser.py:RepoParser:_parse_file"}, {"id": "metagpt/repo_parser.py:RepoParser:_parse_expr"}, {"id": "metagpt/repo_parser.py:RepoParser:_parse_name"}, {"id": "metagpt/repo_parser.py:RepoParser:_parse_if"}, {"id": "metagpt/repo_parser.py:RepoParser:_parse_if_compare"}, {"id": "metagpt/repo_parser.py:RepoParser:_parse_variable"}, {"id": "metagpt/repo_parser.py:RepoParser:_parse_assign"}, {"id": "metagpt/repo_parser.py:RepoParser:_parse_classes"}, {"id": "metagpt/repo_parser.py:RepoParser:_parse_class_relationships"}, {"id": "metagpt/repo_parser.py:RepoParser:_split_class_line"}, {"id": "metagpt/repo_parser.py:RepoParser:_split_relationship_line"}, {"id": "metagpt/repo_parser.py:RepoParser:_get_label"}, {"id": "metagpt/repo_parser.py:RepoParser:_create_path_mapping"}, {"id": "metagpt/repo_parser.py:RepoParser:_repair_namespaces"}, {"id": "metagpt/repo_parser.py:RepoParser:_repair_ns"}, {"id": "metagpt/repo_parser.py:RepoParser:_find_root"}, {"id": "metagpt/repo_parser.py:is_func"}, {"id": "function"}, {"id": "metagpt/repo_parser.py:ast.Constant:\n@Time : 2023/11/17 17:58\n@Author : alexanderwu\n@File : repo_parser.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/11/17 17:58\\n@Author : alexanderwu\\n@File : repo_parser.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/repo_parser.py:module:__future__"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/repo_parser.py:names:['annotations']"}, {"id": "metagpt/repo_parser.py:ast"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"ast\"],\"properties\":{}}"}, {"id": "metagpt/repo_parser.py:json"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/repo_parser.py:re"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"id": "metagpt/repo_parser.py:subprocess"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"subprocess\"],\"properties\":{}}"}, {"id": "metagpt/repo_parser.py:module:pathlib"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/repo_parser.py:names:['Path']"}, {"id": "metagpt/repo_parser.py:module:typing"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\",\"Optional\"]}}"}, {"id": "metagpt/repo_parser.py:names:['Dict', 'List', 'Optional']"}, {"id": "metagpt/repo_parser.py:pandas as pd"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Import\",\"tokens\":[\"pandas as pd\"],\"properties\":{}}"}, {"id": "metagpt/repo_parser.py:module:pydantic"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"id": "metagpt/repo_parser.py:names:['BaseModel', 'Field']"}, {"id": "metagpt/repo_parser.py:module:metagpt.const"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"AGGREGATION\",\"COMPOSITION\",\"GENERALIZATION\"]}}"}, {"id": "metagpt/repo_parser.py:names:['AGGREGATION', 'COMPOSITION', 'GENERALIZATION']"}, {"id": "metagpt/repo_parser.py:module:metagpt.logs"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/repo_parser.py:names:['logger']"}, {"id": "metagpt/repo_parser.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str\",\"aread\"]}}"}, {"id": "metagpt/repo_parser.py:names:['any_to_str', 'aread']"}, {"id": "metagpt/repo_parser.py:module:metagpt.utils.exceptions"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"id": "metagpt/repo_parser.py:names:['handle_exception']"}, {"id": "{\"lineno\":26,\"end_lineno\":31,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RepoFileInfo\"],\"properties\":{}}"}, {"id": "{\"lineno\":34,\"end_lineno\":39,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CodeBlockInfo\"],\"properties\":{}}"}, {"id": "{\"lineno\":42,\"end_lineno\":46,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ClassInfo\"],\"properties\":{}}"}, {"id": "{\"lineno\":49,\"end_lineno\":53,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ClassRelationship\"],\"properties\":{}}"}, {"id": "{\"lineno\":56,\"end_lineno\":417,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RepoParser\"],\"properties\":{}}"}, {"id": "{\"lineno\":420,\"end_lineno\":421,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"is_func\"],\"properties\":{}}"}, {"id": "metagpt/startup.py"}, {"id": "metagpt/startup.py:startup"}, {"id": "metagpt/startup.py:app"}, {"id": "global_variable"}, {"id": "metagpt/startup.py:asyncio"}, {"id": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"id": "metagpt/startup.py:module:pathlib"}, {"id": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/startup.py:names:['Path']"}, {"id": "metagpt/startup.py:typer"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Import\",\"tokens\":[\"typer\"],\"properties\":{}}"}, {"id": "metagpt/startup.py:module:metagpt.config"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/startup.py:names:['CONFIG']"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Assign\",\"tokens\":[\"app\"],\"properties\":{}}"}, {"id": "{\"lineno\":14,\"end_lineno\":75,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"startup\"],\"properties\":{}}"}, {"id": "metagpt/startup.py:__name__:__main__"}, {"id": "{\"lineno\":78,\"end_lineno\":79,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/config.py:NotConfiguredException:__init__"}, {"id": "metagpt/config.py:LLMProviderEnum:__missing__"}, {"id": "metagpt/config.py:Config:__init__"}, {"id": "metagpt/config.py:Config:_is_valid_llm_key"}, {"id": "metagpt/config.py:Config:_update"}, {"id": "metagpt/config.py:Config:_ensure_workspace_exists"}, {"id": "metagpt/config.py:Config:_init_with_config_files_and_env"}, {"id": "metagpt/config.py:Config:_get"}, {"id": "metagpt/config.py:Config:__setattr__"}, {"id": "metagpt/config.py:Config:__getattr__"}, {"id": "metagpt/config.py:CONFIG"}, {"id": "metagpt/config.py:ast.Constant:\nProvide configuration, singleton\n@Modified By: mashenquan, 2023/11/27.\n 1. According to Section 2.2.3.11 of RFC 135, add git repository support.\n 2. Add the parameter `src_workspace` for the old version project path.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\nProvide configuration, singleton\\n@Modified By: mashenquan, 2023/11/27.\\n 1. According to Section 2.2.3.11 of RFC 135, add git repository support.\\n 2. Add the parameter `src_workspace` for the old version project path.\\n\"],\"properties\":{}}"}, {"id": "metagpt/config.py:datetime"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"datetime\"],\"properties\":{}}"}, {"id": "metagpt/config.py:json"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/config.py:os"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"id": "metagpt/config.py:warnings"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"warnings\"],\"properties\":{}}"}, {"id": "metagpt/config.py:module:copy"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"copy\",\"names\":[\"deepcopy\"]}}"}, {"id": "metagpt/config.py:names:['deepcopy']"}, {"id": "metagpt/config.py:module:enum"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"id": "metagpt/config.py:names:['Enum']"}, {"id": "metagpt/config.py:module:pathlib"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/config.py:names:['Path']"}, {"id": "metagpt/config.py:module:typing"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\"]}}"}, {"id": "metagpt/config.py:names:['Any']"}, {"id": "metagpt/config.py:module:uuid"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"uuid\",\"names\":[\"uuid4\"]}}"}, {"id": "metagpt/config.py:names:['uuid4']"}, {"id": "metagpt/config.py:yaml"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.Import\",\"tokens\":[\"yaml\"],\"properties\":{}}"}, {"id": "metagpt/config.py:module:metagpt.const"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DEFAULT_WORKSPACE_ROOT\",\"METAGPT_ROOT\",\"OPTIONS\"]}}"}, {"id": "metagpt/config.py:names:['DEFAULT_WORKSPACE_ROOT', 'METAGPT_ROOT', 'OPTIONS']"}, {"id": "metagpt/config.py:module:metagpt.logs"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/config.py:names:['logger']"}, {"id": "metagpt/config.py:module:metagpt.tools"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\",\"WebBrowserEngineType\"]}}"}, {"id": "metagpt/config.py:names:['SearchEngineType', 'WebBrowserEngineType']"}, {"id": "metagpt/config.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"require_python_version\"]}}"}, {"id": "metagpt/config.py:names:['require_python_version']"}, {"id": "metagpt/config.py:module:metagpt.utils.cost_manager"}, {"id": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"CostManager\"]}}"}, {"id": "metagpt/config.py:names:['CostManager']"}, {"id": "metagpt/config.py:module:metagpt.utils.singleton"}, {"id": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.singleton\",\"names\":[\"Singleton\"]}}"}, {"id": "metagpt/config.py:names:['Singleton']"}, {"id": "{\"lineno\":29,\"end_lineno\":38,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"NotConfiguredException\"],\"properties\":{}}"}, {"id": "{\"lineno\":41,\"end_lineno\":54,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"LLMProviderEnum\"],\"properties\":{}}"}, {"id": "{\"lineno\":57,\"end_lineno\":284,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Config\"],\"properties\":{}}"}, {"id": "{\"lineno\":287,\"end_lineno\":287,\"type_name\":\"ast.Assign\",\"tokens\":[\"CONFIG\"],\"properties\":{}}"}, {"id": "metagpt/subscription.py:asyncio"}, {"id": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"id": "metagpt/subscription.py:module:typing"}, {"id": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"AsyncGenerator\",\"Awaitable\",\"Callable\"]}}"}, {"id": "metagpt/subscription.py:names:['AsyncGenerator', 'Awaitable', 'Callable']"}, {"id": "metagpt/subscription.py:module:pydantic"}, {"id": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\"]}}"}, {"id": "metagpt/subscription.py:names:['BaseModel', 'ConfigDict', 'Field']"}, {"id": "metagpt/subscription.py:module:metagpt.logs"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/subscription.py:names:['logger']"}, {"id": "metagpt/subscription.py:module:metagpt.roles"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/subscription.py:names:['Role']"}, {"id": "metagpt/subscription.py:module:metagpt.schema"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"id": "metagpt/subscription.py:names:['Message']"}, {"id": "{\"lineno\":11,\"end_lineno\":100,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SubscriptionRunner\"],\"properties\":{}}"}, {"id": "metagpt/__init__.py"}, {"id": "metagpt/__init__.py:module:metagpt"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt\",\"names\":[\"_compat as _\"]}}"}, {"id": "metagpt/__init__.py:names:['_compat as _']"}, {"id": "metagpt/llm.py"}, {"id": "metagpt/llm.py:LLM"}, {"id": "metagpt/llm.py:_"}, {"id": "metagpt/llm.py:ast.Constant:\n@Time : 2023/5/11 14:45\n@Author : alexanderwu\n@File : llm.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:45\\n@Author : alexanderwu\\n@File : llm.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/llm.py:module:typing"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"id": "metagpt/llm.py:names:['Optional']"}, {"id": "metagpt/llm.py:module:metagpt.config"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"id": "metagpt/llm.py:names:['CONFIG', 'LLMProviderEnum']"}, {"id": "metagpt/llm.py:module:metagpt.provider.base_llm"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"id": "metagpt/llm.py:names:['BaseLLM']"}, {"id": "metagpt/llm.py:module:metagpt.provider.human_provider"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.human_provider\",\"names\":[\"HumanProvider\"]}}"}, {"id": "metagpt/llm.py:names:['HumanProvider']"}, {"id": "metagpt/llm.py:module:metagpt.provider.llm_provider_registry"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"LLM_REGISTRY\"]}}"}, {"id": "metagpt/llm.py:names:['LLM_REGISTRY']"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.Assign\",\"tokens\":[\"_\"],\"properties\":{}}"}, {"id": "{\"lineno\":19,\"end_lineno\":24,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"LLM\"],\"properties\":{}}"}, {"id": "metagpt/team.py:Team:__init__"}, {"id": "metagpt/team.py:Team:_check_balance"}, {"id": "metagpt/team.py:Team:_save"}, {"id": "metagpt/team.py:ast.Constant:\n@Time : 2023/5/12 00:30\n@Author : alexanderwu\n@File : team.py\n@Modified By: mashenquan, 2023/11/27. Add an archiving operation after completing the project, as specified in\n Section 2.2.3.3 of RFC 135.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/12 00:30\\n@Author : alexanderwu\\n@File : team.py\\n@Modified By: mashenquan, 2023/11/27. Add an archiving operation after completing the project, as specified in\\n Section 2.2.3.3 of RFC 135.\\n\"],\"properties\":{}}"}, {"id": "metagpt/team.py:warnings"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"warnings\"],\"properties\":{}}"}, {"id": "metagpt/team.py:module:pathlib"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/team.py:names:['Path']"}, {"id": "metagpt/team.py:module:typing"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\"]}}"}, {"id": "metagpt/team.py:names:['Any']"}, {"id": "metagpt/team.py:module:pydantic"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\"]}}"}, {"id": "metagpt/team.py:names:['BaseModel', 'ConfigDict', 'Field']"}, {"id": "metagpt/team.py:module:metagpt.actions"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"UserRequirement\"]}}"}, {"id": "metagpt/team.py:names:['UserRequirement']"}, {"id": "metagpt/team.py:module:metagpt.config"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/team.py:names:['CONFIG']"}, {"id": "metagpt/team.py:module:metagpt.const"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"MESSAGE_ROUTE_TO_ALL\",\"SERDESER_PATH\"]}}"}, {"id": "metagpt/team.py:names:['MESSAGE_ROUTE_TO_ALL', 'SERDESER_PATH']"}, {"id": "metagpt/team.py:module:metagpt.environment"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.environment\",\"names\":[\"Environment\"]}}"}, {"id": "metagpt/team.py:names:['Environment']"}, {"id": "metagpt/team.py:module:metagpt.logs"}, {"id": "metagpt/team.py:names:['logger']"}, {"id": "metagpt/team.py:module:metagpt.roles"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/team.py:names:['Role']"}, {"id": "metagpt/team.py:module:metagpt.schema"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"id": "metagpt/team.py:names:['Message']"}, {"id": "metagpt/team.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":24,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"NoMoneyException\",\"read_json_file\",\"serialize_decorator\",\"write_json_file\"]}}"}, {"id": "metagpt/team.py:names:['NoMoneyException', 'read_json_file', 'serialize_decorator', 'write_json_file']"}, {"id": "{\"lineno\":32,\"end_lineno\":135,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Team\"],\"properties\":{}}"}, {"id": "metagpt/logs.py"}, {"id": "metagpt/logs.py:define_log_level"}, {"id": "metagpt/logs.py:log_llm_stream"}, {"id": "metagpt/logs.py:set_llm_stream_logfunc"}, {"id": "metagpt/logs.py:logger"}, {"id": "metagpt/logs.py:_llm_stream_log"}, {"id": "metagpt/logs.py:ast.Constant:\n@Time : 2023/6/1 12:41\n@Author : alexanderwu\n@File : logs.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/6/1 12:41\\n@Author : alexanderwu\\n@File : logs.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/logs.py:sys"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"sys\"],\"properties\":{}}"}, {"id": "metagpt/logs.py:module:datetime"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"id": "metagpt/logs.py:names:['datetime']"}, {"id": "metagpt/logs.py:module:functools"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"functools\",\"names\":[\"partial\"]}}"}, {"id": "metagpt/logs.py:names:['partial']"}, {"id": "metagpt/logs.py:module:loguru"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"loguru\",\"names\":[\"logger as _logger\"]}}"}, {"id": "metagpt/logs.py:names:['logger as _logger']"}, {"id": "metagpt/logs.py:module:metagpt.const"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"METAGPT_ROOT\"]}}"}, {"id": "metagpt/logs.py:names:['METAGPT_ROOT']"}, {"id": "{\"lineno\":18,\"end_lineno\":26,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"define_log_level\"],\"properties\":{}}"}, {"id": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.Assign\",\"tokens\":[\"logger\"],\"properties\":{}}"}, {"id": "{\"lineno\":32,\"end_lineno\":33,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"log_llm_stream\"],\"properties\":{}}"}, {"id": "{\"lineno\":36,\"end_lineno\":38,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"set_llm_stream_logfunc\"],\"properties\":{}}"}, {"id": "{\"lineno\":41,\"end_lineno\":41,\"type_name\":\"ast.Assign\",\"tokens\":[\"_llm_stream_log\"],\"properties\":{}}"}, {"id": "metagpt/document.py:IndexableDocument:_get_docs_and_metadatas_by_df"}, {"id": "metagpt/document.py:IndexableDocument:_get_docs_and_metadatas_by_langchain"}, {"id": "metagpt/document.py:Repo:_path"}, {"id": "metagpt/document.py:Repo:_set"}, {"id": "metagpt/document.py:validate_cols"}, {"id": "metagpt/document.py:read_data"}, {"id": "metagpt/document.py:ast.Constant:\n@Time : 2023/6/8 14:03\n@Author : alexanderwu\n@File : document.py\n@Desc : Classes and Operations Related to Files in the File System.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/6/8 14:03\\n@Author : alexanderwu\\n@File : document.py\\n@Desc : Classes and Operations Related to Files in the File System.\\n\"],\"properties\":{}}"}, {"id": "metagpt/document.py:module:enum"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"id": "metagpt/document.py:names:['Enum']"}, {"id": "metagpt/document.py:module:pathlib"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/document.py:names:['Path']"}, {"id": "metagpt/document.py:module:typing"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\",\"Union\"]}}"}, {"id": "metagpt/document.py:names:['Optional', 'Union']"}, {"id": "metagpt/document.py:pandas as pd"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"pandas as pd\"],\"properties\":{}}"}, {"id": "metagpt/document.py:module:langchain.document_loaders"}, {"id": "{\"lineno\":14,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.document_loaders\",\"names\":[\"TextLoader\",\"UnstructuredPDFLoader\",\"UnstructuredWordDocumentLoader\"]}}"}, {"id": "metagpt/document.py:names:['TextLoader', 'UnstructuredPDFLoader', 'UnstructuredWordDocumentLoader']"}, {"id": "metagpt/document.py:module:langchain.text_splitter"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.text_splitter\",\"names\":[\"CharacterTextSplitter\"]}}"}, {"id": "metagpt/document.py:names:['CharacterTextSplitter']"}, {"id": "metagpt/document.py:module:pydantic"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\"]}}"}, {"id": "metagpt/document.py:names:['BaseModel', 'ConfigDict', 'Field']"}, {"id": "metagpt/document.py:module:tqdm"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tqdm\",\"names\":[\"tqdm\"]}}"}, {"id": "metagpt/document.py:names:['tqdm']"}, {"id": "metagpt/document.py:module:metagpt.repo_parser"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.repo_parser\",\"names\":[\"RepoParser\"]}}"}, {"id": "metagpt/document.py:names:['RepoParser']"}, {"id": "{\"lineno\":26,\"end_lineno\":28,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"validate_cols\"],\"properties\":{}}"}, {"id": "{\"lineno\":31,\"end_lineno\":50,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"read_data\"],\"properties\":{}}"}, {"id": "{\"lineno\":53,\"end_lineno\":59,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DocumentStatus\"],\"properties\":{}}"}, {"id": "{\"lineno\":62,\"end_lineno\":111,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Document\"],\"properties\":{}}"}, {"id": "{\"lineno\":114,\"end_lineno\":161,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"IndexableDocument\"],\"properties\":{}}"}, {"id": "{\"lineno\":164,\"end_lineno\":168,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RepoMetadata\"],\"properties\":{}}"}, {"id": "{\"lineno\":171,\"end_lineno\":235,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Repo\"],\"properties\":{}}"}, {"id": "metagpt/environment.py:ast.Constant:\n@Time : 2023/5/11 22:12\n@Author : alexanderwu\n@File : environment.py\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.2 of RFC 116:\n 1. Remove the functionality of `Environment` class as a public message buffer.\n 2. Standardize the message forwarding behavior of the `Environment` class.\n 3. Add the `is_idle` property.\n@Modified By: mashenquan, 2023-11-4. According to the routing feature plan in Chapter 2.2.3.2 of RFC 113, the routing\n functionality is to be consolidated into the `Environment` class.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":13,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 22:12\\n@Author : alexanderwu\\n@File : environment.py\\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.2 of RFC 116:\\n 1. Remove the functionality of `Environment` class as a public message buffer.\\n 2. Standardize the message forwarding behavior of the `Environment` class.\\n 3. Add the `is_idle` property.\\n@Modified By: mashenquan, 2023-11-4. According to the routing feature plan in Chapter 2.2.3.2 of RFC 113, the routing\\n functionality is to be consolidated into the `Environment` class.\\n\"],\"properties\":{}}"}, {"id": "metagpt/environment.py:asyncio"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"id": "metagpt/environment.py:module:pathlib"}, {"id": "metagpt/environment.py:names:['Path']"}, {"id": "metagpt/environment.py:module:typing"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Iterable\",\"Set\"]}}"}, {"id": "metagpt/environment.py:names:['Iterable', 'Set']"}, {"id": "metagpt/environment.py:module:pydantic"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"SerializeAsAny\",\"model_validator\"]}}"}, {"id": "metagpt/environment.py:names:['BaseModel', 'ConfigDict', 'Field', 'SerializeAsAny', 'model_validator']"}, {"id": "metagpt/environment.py:module:metagpt.config"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/environment.py:names:['CONFIG']"}, {"id": "metagpt/environment.py:module:metagpt.logs"}, {"id": "metagpt/environment.py:names:['logger']"}, {"id": "metagpt/environment.py:module:metagpt.roles.role"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/environment.py:names:['Role']"}, {"id": "metagpt/environment.py:module:metagpt.schema"}, {"id": "metagpt/environment.py:names:['Message']"}, {"id": "metagpt/environment.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"is_subscribed\",\"read_json_file\",\"write_json_file\"]}}"}, {"id": "metagpt/environment.py:names:['is_subscribed', 'read_json_file', 'write_json_file']"}, {"id": "{\"lineno\":27,\"end_lineno\":168,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Environment\"],\"properties\":{}}"}, {"id": "metagpt/_compat.py"}, {"id": "metagpt/_compat.py:platform"}, {"id": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.Import\",\"tokens\":[\"platform\"],\"properties\":{}}"}, {"id": "metagpt/_compat.py:sys"}, {"id": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.Import\",\"tokens\":[\"sys\"],\"properties\":{}}"}, {"id": "metagpt/_compat.py:warnings"}, {"id": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.Import\",\"tokens\":[\"warnings\"],\"properties\":{}}"}, {"id": "metagpt/_compat.py:n:a:m:e:p:l:a:t:f:o:r:m:.:s:y:s:t:e:m"}, {"id": "{\"lineno\":5,\"end_lineno\":23,\"type_name\":\"ast.If\",\"tokens\":[\"n\",\"a\",\"m\",\"e\",\"p\",\"l\",\"a\",\"t\",\"f\",\"o\",\"r\",\"m\",\".\",\"s\",\"y\",\"s\",\"t\",\"e\",\"m\"],\"properties\":{}}"}, {"id": "metagpt/const.py"}, {"id": "metagpt/const.py:get_metagpt_package_root"}, {"id": "metagpt/const.py:get_metagpt_root"}, {"id": "metagpt/const.py:OPTIONS"}, {"id": "metagpt/const.py:METAGPT_ROOT"}, {"id": "metagpt/const.py:DEFAULT_WORKSPACE_ROOT"}, {"id": "metagpt/const.py:EXAMPLE_PATH"}, {"id": "metagpt/const.py:DATA_PATH"}, {"id": "metagpt/const.py:TEST_DATA_PATH"}, {"id": "metagpt/const.py:RESEARCH_PATH"}, {"id": "metagpt/const.py:TUTORIAL_PATH"}, {"id": "metagpt/const.py:INVOICE_OCR_TABLE_PATH"}, {"id": "metagpt/const.py:UT_PATH"}, {"id": "metagpt/const.py:SWAGGER_PATH"}, {"id": "metagpt/const.py:UT_PY_PATH"}, {"id": "metagpt/const.py:API_QUESTIONS_PATH"}, {"id": "metagpt/const.py:SERDESER_PATH"}, {"id": "metagpt/const.py:TMP"}, {"id": "metagpt/const.py:SOURCE_ROOT"}, {"id": "metagpt/const.py:PROMPT_PATH"}, {"id": "metagpt/const.py:SKILL_DIRECTORY"}, {"id": "metagpt/const.py:MEM_TTL"}, {"id": "metagpt/const.py:MESSAGE_ROUTE_FROM"}, {"id": "metagpt/const.py:MESSAGE_ROUTE_TO"}, {"id": "metagpt/const.py:MESSAGE_ROUTE_CAUSE_BY"}, {"id": "metagpt/const.py:MESSAGE_META_ROLE"}, {"id": "metagpt/const.py:MESSAGE_ROUTE_TO_ALL"}, {"id": "metagpt/const.py:MESSAGE_ROUTE_TO_NONE"}, {"id": "metagpt/const.py:REQUIREMENT_FILENAME"}, {"id": "metagpt/const.py:BUGFIX_FILENAME"}, {"id": "metagpt/const.py:PACKAGE_REQUIREMENTS_FILENAME"}, {"id": "metagpt/const.py:DOCS_FILE_REPO"}, {"id": "metagpt/const.py:PRDS_FILE_REPO"}, {"id": "metagpt/const.py:SYSTEM_DESIGN_FILE_REPO"}, {"id": "metagpt/const.py:TASK_FILE_REPO"}, {"id": "metagpt/const.py:COMPETITIVE_ANALYSIS_FILE_REPO"}, {"id": "metagpt/const.py:DATA_API_DESIGN_FILE_REPO"}, {"id": "metagpt/const.py:SEQ_FLOW_FILE_REPO"}, {"id": "metagpt/const.py:SYSTEM_DESIGN_PDF_FILE_REPO"}, {"id": "metagpt/const.py:PRD_PDF_FILE_REPO"}, {"id": "metagpt/const.py:TASK_PDF_FILE_REPO"}, {"id": "metagpt/const.py:TEST_CODES_FILE_REPO"}, {"id": "metagpt/const.py:TEST_OUTPUTS_FILE_REPO"}, {"id": "metagpt/const.py:CODE_SUMMARIES_FILE_REPO"}, {"id": "metagpt/const.py:CODE_SUMMARIES_PDF_FILE_REPO"}, {"id": "metagpt/const.py:RESOURCES_FILE_REPO"}, {"id": "metagpt/const.py:SD_OUTPUT_FILE_REPO"}, {"id": "metagpt/const.py:GRAPH_REPO_FILE_REPO"}, {"id": "metagpt/const.py:CLASS_VIEW_FILE_REPO"}, {"id": "metagpt/const.py:YAPI_URL"}, {"id": "metagpt/const.py:DEFAULT_LANGUAGE"}, {"id": "metagpt/const.py:DEFAULT_MAX_TOKENS"}, {"id": "metagpt/const.py:COMMAND_TOKENS"}, {"id": "metagpt/const.py:BRAIN_MEMORY"}, {"id": "metagpt/const.py:SKILL_PATH"}, {"id": "metagpt/const.py:SERPER_API_KEY"}, {"id": "metagpt/const.py:DEFAULT_TOKEN_SIZE"}, {"id": "metagpt/const.py:BASE64_FORMAT"}, {"id": "metagpt/const.py:REDIS_KEY"}, {"id": "metagpt/const.py:LLM_API_TIMEOUT"}, {"id": "metagpt/const.py:IGNORED_MESSAGE_ID"}, {"id": "metagpt/const.py:GENERALIZATION"}, {"id": "metagpt/const.py:COMPOSITION"}, {"id": "metagpt/const.py:AGGREGATION"}, {"id": "metagpt/const.py:ast.Constant:\n@Time : 2023/5/1 11:59\n@Author : alexanderwu\n@File : const.py\n@Modified By: mashenquan, 2023-11-1. According to Section 2.2.1 and 2.2.2 of RFC 116, added key definitions for\n common properties in the Message.\n@Modified By: mashenquan, 2023-11-27. Defines file repository paths according to Section 2.2.3.4 of RFC 135.\n@Modified By: mashenquan, 2023/12/5. Add directories for code summarization..\n"}, {"id": "{\"lineno\":3,\"end_lineno\":11,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/1 11:59\\n@Author : alexanderwu\\n@File : const.py\\n@Modified By: mashenquan, 2023-11-1. According to Section 2.2.1 and 2.2.2 of RFC 116, added key definitions for\\n common properties in the Message.\\n@Modified By: mashenquan, 2023-11-27. Defines file repository paths according to Section 2.2.3.4 of RFC 135.\\n@Modified By: mashenquan, 2023/12/5. Add directories for code summarization..\\n\"],\"properties\":{}}"}, {"id": "metagpt/const.py:contextvars"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"contextvars\"],\"properties\":{}}"}, {"id": "metagpt/const.py:os"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"id": "metagpt/const.py:module:pathlib"}, {"id": "metagpt/const.py:names:['Path']"}, {"id": "metagpt/const.py:module:loguru"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"loguru\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/const.py:names:['logger']"}, {"id": "metagpt/const.py:metagpt"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.Import\",\"tokens\":[\"metagpt\"],\"properties\":{}}"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.Assign\",\"tokens\":[\"OPTIONS\"],\"properties\":{}}"}, {"id": "{\"lineno\":23,\"end_lineno\":33,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_metagpt_package_root\"],\"properties\":{}}"}, {"id": "{\"lineno\":36,\"end_lineno\":46,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_metagpt_root\"],\"properties\":{}}"}, {"id": "{\"lineno\":51,\"end_lineno\":51,\"type_name\":\"ast.Assign\",\"tokens\":[\"METAGPT_ROOT\"],\"properties\":{}}"}, {"id": "{\"lineno\":52,\"end_lineno\":52,\"type_name\":\"ast.Assign\",\"tokens\":[\"DEFAULT_WORKSPACE_ROOT\"],\"properties\":{}}"}, {"id": "{\"lineno\":54,\"end_lineno\":54,\"type_name\":\"ast.Assign\",\"tokens\":[\"EXAMPLE_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":55,\"end_lineno\":55,\"type_name\":\"ast.Assign\",\"tokens\":[\"DATA_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":56,\"end_lineno\":56,\"type_name\":\"ast.Assign\",\"tokens\":[\"TEST_DATA_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":57,\"end_lineno\":57,\"type_name\":\"ast.Assign\",\"tokens\":[\"RESEARCH_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":58,\"end_lineno\":58,\"type_name\":\"ast.Assign\",\"tokens\":[\"TUTORIAL_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":59,\"end_lineno\":59,\"type_name\":\"ast.Assign\",\"tokens\":[\"INVOICE_OCR_TABLE_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":61,\"end_lineno\":61,\"type_name\":\"ast.Assign\",\"tokens\":[\"UT_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":62,\"end_lineno\":62,\"type_name\":\"ast.Assign\",\"tokens\":[\"SWAGGER_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":63,\"end_lineno\":63,\"type_name\":\"ast.Assign\",\"tokens\":[\"UT_PY_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":64,\"end_lineno\":64,\"type_name\":\"ast.Assign\",\"tokens\":[\"API_QUESTIONS_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":66,\"end_lineno\":66,\"type_name\":\"ast.Assign\",\"tokens\":[\"SERDESER_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":68,\"end_lineno\":68,\"type_name\":\"ast.Assign\",\"tokens\":[\"TMP\"],\"properties\":{}}"}, {"id": "{\"lineno\":70,\"end_lineno\":70,\"type_name\":\"ast.Assign\",\"tokens\":[\"SOURCE_ROOT\"],\"properties\":{}}"}, {"id": "{\"lineno\":71,\"end_lineno\":71,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":72,\"end_lineno\":72,\"type_name\":\"ast.Assign\",\"tokens\":[\"SKILL_DIRECTORY\"],\"properties\":{}}"}, {"id": "{\"lineno\":77,\"end_lineno\":77,\"type_name\":\"ast.Assign\",\"tokens\":[\"MEM_TTL\"],\"properties\":{}}"}, {"id": "{\"lineno\":80,\"end_lineno\":80,\"type_name\":\"ast.Assign\",\"tokens\":[\"MESSAGE_ROUTE_FROM\"],\"properties\":{}}"}, {"id": "{\"lineno\":81,\"end_lineno\":81,\"type_name\":\"ast.Assign\",\"tokens\":[\"MESSAGE_ROUTE_TO\"],\"properties\":{}}"}, {"id": "{\"lineno\":82,\"end_lineno\":82,\"type_name\":\"ast.Assign\",\"tokens\":[\"MESSAGE_ROUTE_CAUSE_BY\"],\"properties\":{}}"}, {"id": "{\"lineno\":83,\"end_lineno\":83,\"type_name\":\"ast.Assign\",\"tokens\":[\"MESSAGE_META_ROLE\"],\"properties\":{}}"}, {"id": "{\"lineno\":84,\"end_lineno\":84,\"type_name\":\"ast.Assign\",\"tokens\":[\"MESSAGE_ROUTE_TO_ALL\"],\"properties\":{}}"}, {"id": "{\"lineno\":85,\"end_lineno\":85,\"type_name\":\"ast.Assign\",\"tokens\":[\"MESSAGE_ROUTE_TO_NONE\"],\"properties\":{}}"}, {"id": "{\"lineno\":87,\"end_lineno\":87,\"type_name\":\"ast.Assign\",\"tokens\":[\"REQUIREMENT_FILENAME\"],\"properties\":{}}"}, {"id": "{\"lineno\":88,\"end_lineno\":88,\"type_name\":\"ast.Assign\",\"tokens\":[\"BUGFIX_FILENAME\"],\"properties\":{}}"}, {"id": "{\"lineno\":89,\"end_lineno\":89,\"type_name\":\"ast.Assign\",\"tokens\":[\"PACKAGE_REQUIREMENTS_FILENAME\"],\"properties\":{}}"}, {"id": "{\"lineno\":91,\"end_lineno\":91,\"type_name\":\"ast.Assign\",\"tokens\":[\"DOCS_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":92,\"end_lineno\":92,\"type_name\":\"ast.Assign\",\"tokens\":[\"PRDS_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":93,\"end_lineno\":93,\"type_name\":\"ast.Assign\",\"tokens\":[\"SYSTEM_DESIGN_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":94,\"end_lineno\":94,\"type_name\":\"ast.Assign\",\"tokens\":[\"TASK_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":95,\"end_lineno\":95,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMPETITIVE_ANALYSIS_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":96,\"end_lineno\":96,\"type_name\":\"ast.Assign\",\"tokens\":[\"DATA_API_DESIGN_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":97,\"end_lineno\":97,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEQ_FLOW_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":98,\"end_lineno\":98,\"type_name\":\"ast.Assign\",\"tokens\":[\"SYSTEM_DESIGN_PDF_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":99,\"end_lineno\":99,\"type_name\":\"ast.Assign\",\"tokens\":[\"PRD_PDF_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":100,\"end_lineno\":100,\"type_name\":\"ast.Assign\",\"tokens\":[\"TASK_PDF_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":101,\"end_lineno\":101,\"type_name\":\"ast.Assign\",\"tokens\":[\"TEST_CODES_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":102,\"end_lineno\":102,\"type_name\":\"ast.Assign\",\"tokens\":[\"TEST_OUTPUTS_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":103,\"end_lineno\":103,\"type_name\":\"ast.Assign\",\"tokens\":[\"CODE_SUMMARIES_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":104,\"end_lineno\":104,\"type_name\":\"ast.Assign\",\"tokens\":[\"CODE_SUMMARIES_PDF_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":105,\"end_lineno\":105,\"type_name\":\"ast.Assign\",\"tokens\":[\"RESOURCES_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":106,\"end_lineno\":106,\"type_name\":\"ast.Assign\",\"tokens\":[\"SD_OUTPUT_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":107,\"end_lineno\":107,\"type_name\":\"ast.Assign\",\"tokens\":[\"GRAPH_REPO_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":108,\"end_lineno\":108,\"type_name\":\"ast.Assign\",\"tokens\":[\"CLASS_VIEW_FILE_REPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":110,\"end_lineno\":110,\"type_name\":\"ast.Assign\",\"tokens\":[\"YAPI_URL\"],\"properties\":{}}"}, {"id": "{\"lineno\":112,\"end_lineno\":112,\"type_name\":\"ast.Assign\",\"tokens\":[\"DEFAULT_LANGUAGE\"],\"properties\":{}}"}, {"id": "{\"lineno\":113,\"end_lineno\":113,\"type_name\":\"ast.Assign\",\"tokens\":[\"DEFAULT_MAX_TOKENS\"],\"properties\":{}}"}, {"id": "{\"lineno\":114,\"end_lineno\":114,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMMAND_TOKENS\"],\"properties\":{}}"}, {"id": "{\"lineno\":115,\"end_lineno\":115,\"type_name\":\"ast.Assign\",\"tokens\":[\"BRAIN_MEMORY\"],\"properties\":{}}"}, {"id": "{\"lineno\":116,\"end_lineno\":116,\"type_name\":\"ast.Assign\",\"tokens\":[\"SKILL_PATH\"],\"properties\":{}}"}, {"id": "{\"lineno\":117,\"end_lineno\":117,\"type_name\":\"ast.Assign\",\"tokens\":[\"SERPER_API_KEY\"],\"properties\":{}}"}, {"id": "{\"lineno\":118,\"end_lineno\":118,\"type_name\":\"ast.Assign\",\"tokens\":[\"DEFAULT_TOKEN_SIZE\"],\"properties\":{}}"}, {"id": "{\"lineno\":121,\"end_lineno\":121,\"type_name\":\"ast.Assign\",\"tokens\":[\"BASE64_FORMAT\"],\"properties\":{}}"}, {"id": "{\"lineno\":124,\"end_lineno\":124,\"type_name\":\"ast.Assign\",\"tokens\":[\"REDIS_KEY\"],\"properties\":{}}"}, {"id": "{\"lineno\":125,\"end_lineno\":125,\"type_name\":\"ast.Assign\",\"tokens\":[\"LLM_API_TIMEOUT\"],\"properties\":{}}"}, {"id": "{\"lineno\":128,\"end_lineno\":128,\"type_name\":\"ast.Assign\",\"tokens\":[\"IGNORED_MESSAGE_ID\"],\"properties\":{}}"}, {"id": "{\"lineno\":131,\"end_lineno\":131,\"type_name\":\"ast.Assign\",\"tokens\":[\"GENERALIZATION\"],\"properties\":{}}"}, {"id": "{\"lineno\":132,\"end_lineno\":132,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMPOSITION\"],\"properties\":{}}"}, {"id": "{\"lineno\":133,\"end_lineno\":133,\"type_name\":\"ast.Assign\",\"tokens\":[\"AGGREGATION\"],\"properties\":{}}"}, {"id": "metagpt/schema.py:SerializationMixin:__get_pydantic_core_schema__"}, {"id": "metagpt/schema.py:SerializationMixin:__serialize_add_class_type__"}, {"id": "metagpt/schema.py:SerializationMixin:__deserialize_with_real_type__"}, {"id": "metagpt/schema.py:SerializationMixin:__init_subclass__"}, {"id": "metagpt/schema.py:Document:__str__"}, {"id": "metagpt/schema.py:Document:__repr__"}, {"id": "metagpt/schema.py:Message:__init__"}, {"id": "metagpt/schema.py:Message:__setattr__"}, {"id": "metagpt/schema.py:Message:__str__"}, {"id": "metagpt/schema.py:Message:__repr__"}, {"id": "metagpt/schema.py:UserMessage:__init__"}, {"id": "metagpt/schema.py:SystemMessage:__init__"}, {"id": "metagpt/schema.py:AIMessage:__init__"}, {"id": "metagpt/schema.py:CodeSummarizeContext:__hash__"}, {"id": "metagpt/schema.py:T"}, {"id": "metagpt/schema.py:ast.Constant:\n@Time : 2023/5/8 22:12\n@Author : alexanderwu\n@File : schema.py\n@Modified By: mashenquan, 2023-10-31. According to Chapter 2.2.1 of RFC 116:\n Replanned the distribution of responsibilities and functional positioning of `Message` class attributes.\n@Modified By: mashenquan, 2023/11/22.\n 1. Add `Document` and `Documents` for `FileRepository` in Section 2.2.3.4 of RFC 135.\n 2. Encapsulate the common key-values set to pydantic structures to standardize and unify parameter passing\n between actions.\n 3. Add `id` to `Message` according to Section 2.2.3.1.1 of RFC 135.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":14,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/8 22:12\\n@Author : alexanderwu\\n@File : schema.py\\n@Modified By: mashenquan, 2023-10-31. According to Chapter 2.2.1 of RFC 116:\\n Replanned the distribution of responsibilities and functional positioning of `Message` class attributes.\\n@Modified By: mashenquan, 2023/11/22.\\n 1. Add `Document` and `Documents` for `FileRepository` in Section 2.2.3.4 of RFC 135.\\n 2. Encapsulate the common key-values set to pydantic structures to standardize and unify parameter passing\\n between actions.\\n 3. Add `id` to `Message` according to Section 2.2.3.1.1 of RFC 135.\\n\"],\"properties\":{}}"}, {"id": "metagpt/schema.py:module:__future__"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/schema.py:names:['annotations']"}, {"id": "metagpt/schema.py:asyncio"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"id": "metagpt/schema.py:json"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/schema.py:os.path"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.Import\",\"tokens\":[\"os.path\"],\"properties\":{}}"}, {"id": "metagpt/schema.py:uuid"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.Import\",\"tokens\":[\"uuid\"],\"properties\":{}}"}, {"id": "metagpt/schema.py:module:abc"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\"]}}"}, {"id": "metagpt/schema.py:names:['ABC']"}, {"id": "metagpt/schema.py:module:asyncio"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"asyncio\",\"names\":[\"Queue\",\"QueueEmpty\",\"wait_for\"]}}"}, {"id": "metagpt/schema.py:names:['Queue', 'QueueEmpty', 'wait_for']"}, {"id": "metagpt/schema.py:module:json"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"json\",\"names\":[\"JSONDecodeError\"]}}"}, {"id": "metagpt/schema.py:names:['JSONDecodeError']"}, {"id": "metagpt/schema.py:module:pathlib"}, {"id": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/schema.py:names:['Path']"}, {"id": "metagpt/schema.py:module:typing"}, {"id": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Callable\",\"Dict\",\"List\",\"Optional\",\"Type\",\"TypeVar\",\"Union\"]}}"}, {"id": "metagpt/schema.py:names:['Any', 'Callable', 'Dict', 'List', 'Optional', 'Type', 'TypeVar', 'Union']"}, {"id": "metagpt/schema.py:module:pydantic"}, {"id": "{\"lineno\":28,\"end_lineno\":35,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"PrivateAttr\",\"field_serializer\",\"field_validator\"]}}"}, {"id": "metagpt/schema.py:names:['BaseModel', 'ConfigDict', 'Field', 'PrivateAttr', 'field_serializer', 'field_validator']"}, {"id": "metagpt/schema.py:module:pydantic_core"}, {"id": "{\"lineno\":36,\"end_lineno\":36,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic_core\",\"names\":[\"core_schema\"]}}"}, {"id": "metagpt/schema.py:names:['core_schema']"}, {"id": "metagpt/schema.py:module:metagpt.config"}, {"id": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/schema.py:names:['CONFIG']"}, {"id": "metagpt/schema.py:module:metagpt.const"}, {"id": "{\"lineno\":39,\"end_lineno\":46,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"MESSAGE_ROUTE_CAUSE_BY\",\"MESSAGE_ROUTE_FROM\",\"MESSAGE_ROUTE_TO\",\"MESSAGE_ROUTE_TO_ALL\",\"SYSTEM_DESIGN_FILE_REPO\",\"TASK_FILE_REPO\"]}}"}, {"id": "metagpt/schema.py:names:['MESSAGE_ROUTE_CAUSE_BY', 'MESSAGE_ROUTE_FROM', 'MESSAGE_ROUTE_TO', 'MESSAGE_ROUTE_TO_ALL', 'SYSTEM_DESIGN_FILE_REPO', 'TASK_FILE_REPO']"}, {"id": "metagpt/schema.py:module:metagpt.logs"}, {"id": "{\"lineno\":47,\"end_lineno\":47,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/schema.py:names:['logger']"}, {"id": "metagpt/schema.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":48,\"end_lineno\":48,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str\",\"any_to_str_set\",\"import_class\"]}}"}, {"id": "metagpt/schema.py:names:['any_to_str', 'any_to_str_set', 'import_class']"}, {"id": "metagpt/schema.py:module:metagpt.utils.exceptions"}, {"id": "{\"lineno\":49,\"end_lineno\":49,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"id": "metagpt/schema.py:names:['handle_exception']"}, {"id": "metagpt/schema.py:module:metagpt.utils.serialize"}, {"id": "{\"lineno\":50,\"end_lineno\":54,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.serialize\",\"names\":[\"actionoutout_schema_to_mapping\",\"actionoutput_mapping_to_str\",\"actionoutput_str_to_mapping\"]}}"}, {"id": "metagpt/schema.py:names:['actionoutout_schema_to_mapping', 'actionoutput_mapping_to_str', 'actionoutput_str_to_mapping']"}, {"id": "{\"lineno\":57,\"end_lineno\":121,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SerializationMixin\"],\"properties\":{}}"}, {"id": "{\"lineno\":124,\"end_lineno\":126,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SimpleMessage\"],\"properties\":{}}"}, {"id": "{\"lineno\":129,\"end_lineno\":164,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Document\"],\"properties\":{}}"}, {"id": "{\"lineno\":167,\"end_lineno\":174,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Documents\"],\"properties\":{}}"}, {"id": "{\"lineno\":177,\"end_lineno\":284,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Message\"],\"properties\":{}}"}, {"id": "{\"lineno\":287,\"end_lineno\":293,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"UserMessage\"],\"properties\":{}}"}, {"id": "{\"lineno\":296,\"end_lineno\":302,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SystemMessage\"],\"properties\":{}}"}, {"id": "{\"lineno\":305,\"end_lineno\":311,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"AIMessage\"],\"properties\":{}}"}, {"id": "{\"lineno\":314,\"end_lineno\":383,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MessageQueue\"],\"properties\":{}}"}, {"id": "{\"lineno\":387,\"end_lineno\":387,\"type_name\":\"ast.Assign\",\"tokens\":[\"T\"],\"properties\":{}}"}, {"id": "{\"lineno\":390,\"end_lineno\":395,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BaseContext\"],\"properties\":{}}"}, {"id": "{\"lineno\":398,\"end_lineno\":402,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CodingContext\"],\"properties\":{}}"}, {"id": "{\"lineno\":405,\"end_lineno\":408,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"TestingContext\"],\"properties\":{}}"}, {"id": "{\"lineno\":411,\"end_lineno\":421,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RunCodeContext\"],\"properties\":{}}"}, {"id": "{\"lineno\":424,\"end_lineno\":427,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RunCodeResult\"],\"properties\":{}}"}, {"id": "{\"lineno\":430,\"end_lineno\":449,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CodeSummarizeContext\"],\"properties\":{}}"}, {"id": "{\"lineno\":452,\"end_lineno\":453,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BugFixContext\"],\"properties\":{}}"}, {"id": "{\"lineno\":457,\"end_lineno\":461,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ClassMeta\"],\"properties\":{}}"}, {"id": "{\"lineno\":464,\"end_lineno\":483,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ClassAttribute\"],\"properties\":{}}"}, {"id": "{\"lineno\":486,\"end_lineno\":499,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ClassMethod\"],\"properties\":{}}"}, {"id": "{\"lineno\":502,\"end_lineno\":513,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ClassView\"],\"properties\":{}}"}, {"id": "metagpt/learn/text_to_image.py"}, {"id": "metagpt/learn/text_to_image.py:text_to_image"}, {"id": "metagpt/learn/text_to_image.py:ast.Constant:\n@Time : 2023/8/18\n@Author : mashenquan\n@File : text_to_image.py\n@Desc : Text-to-Image skill, which provides text-to-image functionality.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/18\\n@Author : mashenquan\\n@File : text_to_image.py\\n@Desc : Text-to-Image skill, which provides text-to-image functionality.\\n\"],\"properties\":{}}"}, {"id": "metagpt/learn/text_to_image.py:base64"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"id": "metagpt/learn/text_to_image.py:module:metagpt.config"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/learn/text_to_image.py:names:['CONFIG']"}, {"id": "metagpt/learn/text_to_image.py:module:metagpt.const"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BASE64_FORMAT\"]}}"}, {"id": "metagpt/learn/text_to_image.py:names:['BASE64_FORMAT']"}, {"id": "metagpt/learn/text_to_image.py:module:metagpt.tools.metagpt_text_to_image"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.metagpt_text_to_image\",\"names\":[\"oas3_metagpt_text_to_image\"]}}"}, {"id": "metagpt/learn/text_to_image.py:names:['oas3_metagpt_text_to_image']"}, {"id": "metagpt/learn/text_to_image.py:module:metagpt.tools.openai_text_to_image"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.openai_text_to_image\",\"names\":[\"oas3_openai_text_to_image\"]}}"}, {"id": "metagpt/learn/text_to_image.py:names:['oas3_openai_text_to_image']"}, {"id": "metagpt/learn/text_to_image.py:module:metagpt.utils.s3"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.s3\",\"names\":[\"S3\"]}}"}, {"id": "metagpt/learn/text_to_image.py:names:['S3']"}, {"id": "{\"lineno\":18,\"end_lineno\":40,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"text_to_image\"],\"properties\":{}}"}, {"id": "metagpt/learn/__init__.py"}, {"id": "metagpt/learn/__init__.py:__all__"}, {"id": "metagpt/learn/__init__.py:ast.Constant:\n@Time : 2023/4/30 20:57\n@Author : alexanderwu\n@File : __init__.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/30 20:57\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/learn/__init__.py:module:metagpt.learn.text_to_image"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.text_to_image\",\"names\":[\"text_to_image\"]}}"}, {"id": "metagpt/learn/__init__.py:names:['text_to_image']"}, {"id": "metagpt/learn/__init__.py:module:metagpt.learn.text_to_speech"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.text_to_speech\",\"names\":[\"text_to_speech\"]}}"}, {"id": "metagpt/learn/__init__.py:names:['text_to_speech']"}, {"id": "metagpt/learn/__init__.py:module:metagpt.learn.google_search"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.google_search\",\"names\":[\"google_search\"]}}"}, {"id": "metagpt/learn/__init__.py:names:['google_search']"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"id": "metagpt/learn/google_search.py"}, {"id": "metagpt/learn/google_search.py:google_search"}, {"id": "metagpt/learn/google_search.py:module:metagpt.tools.search_engine"}, {"id": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.search_engine\",\"names\":[\"SearchEngine\"]}}"}, {"id": "metagpt/learn/google_search.py:names:['SearchEngine']"}, {"id": "{\"lineno\":4,\"end_lineno\":12,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"google_search\"],\"properties\":{}}"}, {"id": "metagpt/learn/text_to_speech.py"}, {"id": "metagpt/learn/text_to_speech.py:text_to_speech"}, {"id": "metagpt/learn/text_to_speech.py:ast.Constant:\n@Time : 2023/8/17\n@Author : mashenquan\n@File : text_to_speech.py\n@Desc : Text-to-Speech skill, which provides text-to-speech functionality\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/17\\n@Author : mashenquan\\n@File : text_to_speech.py\\n@Desc : Text-to-Speech skill, which provides text-to-speech functionality\\n\"],\"properties\":{}}"}, {"id": "metagpt/learn/text_to_speech.py:module:metagpt.config"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/learn/text_to_speech.py:names:['CONFIG']"}, {"id": "metagpt/learn/text_to_speech.py:module:metagpt.const"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BASE64_FORMAT\"]}}"}, {"id": "metagpt/learn/text_to_speech.py:names:['BASE64_FORMAT']"}, {"id": "metagpt/learn/text_to_speech.py:module:metagpt.tools.azure_tts"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.azure_tts\",\"names\":[\"oas3_azsure_tts\"]}}"}, {"id": "metagpt/learn/text_to_speech.py:names:['oas3_azsure_tts']"}, {"id": "metagpt/learn/text_to_speech.py:module:metagpt.tools.iflytek_tts"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.iflytek_tts\",\"names\":[\"oas3_iflytek_tts\"]}}"}, {"id": "metagpt/learn/text_to_speech.py:names:['oas3_iflytek_tts']"}, {"id": "metagpt/learn/text_to_speech.py:module:metagpt.utils.s3"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.s3\",\"names\":[\"S3\"]}}"}, {"id": "metagpt/learn/text_to_speech.py:names:['S3']"}, {"id": "{\"lineno\":17,\"end_lineno\":70,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"text_to_speech\"],\"properties\":{}}"}, {"id": "metagpt/learn/text_to_embedding.py"}, {"id": "metagpt/learn/text_to_embedding.py:text_to_embedding"}, {"id": "metagpt/learn/text_to_embedding.py:ast.Constant:\n@Time : 2023/8/18\n@Author : mashenquan\n@File : text_to_embedding.py\n@Desc : Text-to-Embedding skill, which provides text-to-embedding functionality.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/18\\n@Author : mashenquan\\n@File : text_to_embedding.py\\n@Desc : Text-to-Embedding skill, which provides text-to-embedding functionality.\\n\"],\"properties\":{}}"}, {"id": "metagpt/learn/text_to_embedding.py:module:metagpt.config"}, {"id": "metagpt/learn/text_to_embedding.py:names:['CONFIG']"}, {"id": "metagpt/learn/text_to_embedding.py:module:metagpt.tools.openai_text_to_embedding"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.openai_text_to_embedding\",\"names\":[\"oas3_openai_text_to_embedding\"]}}"}, {"id": "metagpt/learn/text_to_embedding.py:names:['oas3_openai_text_to_embedding']"}, {"id": "{\"lineno\":14,\"end_lineno\":24,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"text_to_embedding\"],\"properties\":{}}"}, {"id": "metagpt/learn/skill_loader.py:ast.Constant:\n@Time : 2023/8/18\n@Author : mashenquan\n@File : skill_loader.py\n@Desc : Skill YAML Configuration Loader.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/18\\n@Author : mashenquan\\n@File : skill_loader.py\\n@Desc : Skill YAML Configuration Loader.\\n\"],\"properties\":{}}"}, {"id": "metagpt/learn/skill_loader.py:module:pathlib"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/learn/skill_loader.py:names:['Path']"}, {"id": "metagpt/learn/skill_loader.py:module:typing"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\",\"Optional\"]}}"}, {"id": "metagpt/learn/skill_loader.py:names:['Dict', 'List', 'Optional']"}, {"id": "metagpt/learn/skill_loader.py:aiofiles"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"id": "metagpt/learn/skill_loader.py:yaml"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"yaml\"],\"properties\":{}}"}, {"id": "metagpt/learn/skill_loader.py:module:pydantic"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"id": "metagpt/learn/skill_loader.py:names:['BaseModel', 'Field']"}, {"id": "metagpt/learn/skill_loader.py:module:metagpt.config"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/learn/skill_loader.py:names:['CONFIG']"}, {"id": "{\"lineno\":19,\"end_lineno\":21,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Example\"],\"properties\":{}}"}, {"id": "{\"lineno\":24,\"end_lineno\":26,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Returns\"],\"properties\":{}}"}, {"id": "{\"lineno\":29,\"end_lineno\":31,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Parameter\"],\"properties\":{}}"}, {"id": "{\"lineno\":34,\"end_lineno\":50,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Skill\"],\"properties\":{}}"}, {"id": "{\"lineno\":53,\"end_lineno\":55,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Entity\"],\"properties\":{}}"}, {"id": "{\"lineno\":58,\"end_lineno\":59,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Components\"],\"properties\":{}}"}, {"id": "{\"lineno\":62,\"end_lineno\":100,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SkillsDeclaration\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:__init__"}, {"id": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:_search_from_ddgs"}, {"id": "metagpt/tools/search_engine_ddg.py:module:__future__"}, {"id": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/tools/search_engine_ddg.py:names:['annotations']"}, {"id": "metagpt/tools/search_engine_ddg.py:asyncio"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_ddg.py:json"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_ddg.py:module:concurrent"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"concurrent\",\"names\":[\"futures\"]}}"}, {"id": "metagpt/tools/search_engine_ddg.py:names:['futures']"}, {"id": "metagpt/tools/search_engine_ddg.py:module:typing"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Literal\",\"overload\"]}}"}, {"id": "metagpt/tools/search_engine_ddg.py:names:['Literal', 'overload']"}, {"id": "metagpt/tools/search_engine_ddg.py:module:metagpt.config"}, {"id": "metagpt/tools/search_engine_ddg.py:names:['CONFIG']"}, {"id": "{\"lineno\":21,\"end_lineno\":96,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DDGAPIWrapper\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_ddg.py:__name__:__main__"}, {"id": "{\"lineno\":99,\"end_lineno\":102,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/tools/metagpt_oas3_api_svc.py"}, {"id": "metagpt/tools/metagpt_oas3_api_svc.py:oas_http_svc"}, {"id": "metagpt/tools/metagpt_oas3_api_svc.py:ast.Constant:\n@Time : 2023/8/17\n@Author : mashenquan\n@File : metagpt_oas3_api_svc.py\n@Desc : MetaGPT OpenAPI Specification 3.0 REST API service\n\n curl -X 'POST' 'http://localhost:8080/openapi/greeting/dave' -H 'accept: text/plain' -H 'Content-Type: application/json' -d '{}'\n"}, {"id": "{\"lineno\":3,\"end_lineno\":14,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/17\\n@Author : mashenquan\\n@File : metagpt_oas3_api_svc.py\\n@Desc : MetaGPT OpenAPI Specification 3.0 REST API service\\n\\n curl -X 'POST' 'http://localhost:8080/openapi/greeting/dave' -H 'accept: text/plain' -H 'Content-Type: application/json' -d '{}'\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/metagpt_oas3_api_svc.py:module:pathlib"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/tools/metagpt_oas3_api_svc.py:names:['Path']"}, {"id": "metagpt/tools/metagpt_oas3_api_svc.py:connexion"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.Import\",\"tokens\":[\"connexion\"],\"properties\":{}}"}, {"id": "{\"lineno\":21,\"end_lineno\":28,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"oas_http_svc\"],\"properties\":{}}"}, {"id": "metagpt/tools/metagpt_oas3_api_svc.py:__name__:__main__"}, {"id": "{\"lineno\":31,\"end_lineno\":32,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_meilisearch.py:DataSource:__init__"}, {"id": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:__init__"}, {"id": "metagpt/tools/search_engine_meilisearch.py:ast.Constant:\n@Time : 2023/5/22 21:33\n@Author : alexanderwu\n@File : search_engine_meilisearch.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/22 21:33\\n@Author : alexanderwu\\n@File : search_engine_meilisearch.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_meilisearch.py:module:typing"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"id": "metagpt/tools/search_engine_meilisearch.py:names:['List']"}, {"id": "metagpt/tools/search_engine_meilisearch.py:meilisearch"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"meilisearch\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_meilisearch.py:module:meilisearch.index"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"meilisearch.index\",\"names\":[\"Index\"]}}"}, {"id": "metagpt/tools/search_engine_meilisearch.py:names:['Index']"}, {"id": "metagpt/tools/search_engine_meilisearch.py:module:metagpt.utils.exceptions"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"id": "metagpt/tools/search_engine_meilisearch.py:names:['handle_exception']"}, {"id": "{\"lineno\":17,\"end_lineno\":20,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DataSource\"],\"properties\":{}}"}, {"id": "{\"lineno\":23,\"end_lineno\":42,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MeilisearchEngine\"],\"properties\":{}}"}, {"id": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding:__init__"}, {"id": "metagpt/tools/openai_text_to_embedding.py:oas3_openai_text_to_embedding"}, {"id": "metagpt/tools/openai_text_to_embedding.py:ast.Constant:\n@Time : 2023/8/18\n@Author : mashenquan\n@File : openai_text_to_embedding.py\n@Desc : OpenAI Text-to-Embedding OAS3 api, which provides text-to-embedding functionality.\n For more details, checkout: `https://platform.openai.com/docs/api-reference/embeddings/object`\n"}, {"id": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/18\\n@Author : mashenquan\\n@File : openai_text_to_embedding.py\\n@Desc : OpenAI Text-to-Embedding OAS3 api, which provides text-to-embedding functionality.\\n For more details, checkout: `https://platform.openai.com/docs/api-reference/embeddings/object`\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/openai_text_to_embedding.py:module:typing"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"id": "metagpt/tools/openai_text_to_embedding.py:names:['List']"}, {"id": "metagpt/tools/openai_text_to_embedding.py:aiohttp"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"id": "metagpt/tools/openai_text_to_embedding.py:requests"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"requests\"],\"properties\":{}}"}, {"id": "metagpt/tools/openai_text_to_embedding.py:module:pydantic"}, {"id": "metagpt/tools/openai_text_to_embedding.py:names:['BaseModel', 'Field']"}, {"id": "metagpt/tools/openai_text_to_embedding.py:module:metagpt.config"}, {"id": "metagpt/tools/openai_text_to_embedding.py:names:['CONFIG']"}, {"id": "metagpt/tools/openai_text_to_embedding.py:module:metagpt.logs"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/tools/openai_text_to_embedding.py:names:['logger']"}, {"id": "{\"lineno\":20,\"end_lineno\":27,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Embedding\"],\"properties\":{}}"}, {"id": "{\"lineno\":30,\"end_lineno\":32,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Usage\"],\"properties\":{}}"}, {"id": "{\"lineno\":35,\"end_lineno\":42,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ResultEmbedding\"],\"properties\":{}}"}, {"id": "{\"lineno\":45,\"end_lineno\":71,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OpenAIText2Embedding\"],\"properties\":{}}"}, {"id": "{\"lineno\":75,\"end_lineno\":87,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"oas3_openai_text_to_embedding\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:_process_response"}, {"id": "metagpt/tools/search_engine_serpapi.py:ast.Constant:\n@Time : 2023/5/23 18:27\n@Author : alexanderwu\n@File : search_engine_serpapi.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/23 18:27\\n@Author : alexanderwu\\n@File : search_engine_serpapi.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_serpapi.py:module:typing"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Dict\",\"Optional\",\"Tuple\"]}}"}, {"id": "metagpt/tools/search_engine_serpapi.py:names:['Any', 'Dict', 'Optional', 'Tuple']"}, {"id": "metagpt/tools/search_engine_serpapi.py:aiohttp"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_serpapi.py:module:pydantic"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"field_validator\"]}}"}, {"id": "metagpt/tools/search_engine_serpapi.py:names:['BaseModel', 'ConfigDict', 'Field', 'field_validator']"}, {"id": "metagpt/tools/search_engine_serpapi.py:module:metagpt.config"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/tools/search_engine_serpapi.py:names:['CONFIG']"}, {"id": "{\"lineno\":16,\"end_lineno\":110,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SerpAPIWrapper\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_serpapi.py:__name__:__main__"}, {"id": "{\"lineno\":113,\"end_lineno\":116,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:__init__"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:_scrape"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:_run_precheck"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:_get_install_lock"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:_install_browsers"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:_log_stream"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:_install_lock"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:_install_cache"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:ast.Constant:\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\n"}, {"id": "{\"lineno\":2,\"end_lineno\":4,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:module:__future__"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:names:['annotations']"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:asyncio"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:sys"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:module:pathlib"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:names:['Path']"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:module:typing"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Literal\"]}}"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:names:['Literal']"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:module:playwright.async_api"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"playwright.async_api\",\"names\":[\"async_playwright\"]}}"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:names:['async_playwright']"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:module:metagpt.config"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:names:['CONFIG']"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:module:metagpt.logs"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:names:['logger']"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:module:metagpt.utils.parse_html"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.parse_html\",\"names\":[\"WebPage\"]}}"}, {"id": "metagpt/tools/web_browser_engine_playwright.py:names:['WebPage']"}, {"id": "{\"lineno\":20,\"end_lineno\":99,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"PlaywrightWrapper\"],\"properties\":{}}"}, {"id": "{\"lineno\":102,\"end_lineno\":106,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_get_install_lock\"],\"properties\":{}}"}, {"id": "{\"lineno\":109,\"end_lineno\":132,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"_install_browsers\"],\"properties\":{}}"}, {"id": "{\"lineno\":135,\"end_lineno\":140,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"_log_stream\"],\"properties\":{}}"}, {"id": "{\"lineno\":143,\"end_lineno\":143,\"type_name\":\"ast.AnnAssign\",\"tokens\":[\"_install_lock\"],\"properties\":{}}"}, {"id": "{\"lineno\":144,\"end_lineno\":144,\"type_name\":\"ast.Assign\",\"tokens\":[\"_install_cache\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine.py:SkSearchEngine:__init__"}, {"id": "metagpt/tools/search_engine.py:SearchEngine:__init__"}, {"id": "metagpt/tools/search_engine.py:ast.Constant:\n@Time : 2023/5/6 20:15\n@Author : alexanderwu\n@File : search_engine.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/6 20:15\\n@Author : alexanderwu\\n@File : search_engine.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine.py:importlib"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"importlib\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine.py:module:typing"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Callable\",\"Coroutine\",\"Literal\",\"Optional\",\"Union\",\"overload\"]}}"}, {"id": "metagpt/tools/search_engine.py:names:['Callable', 'Coroutine', 'Literal', 'Optional', 'Union', 'overload']"}, {"id": "metagpt/tools/search_engine.py:module:semantic_kernel.skill_definition"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.skill_definition\",\"names\":[\"sk_function\"]}}"}, {"id": "metagpt/tools/search_engine.py:names:['sk_function']"}, {"id": "metagpt/tools/search_engine.py:module:metagpt.config"}, {"id": "metagpt/tools/search_engine.py:names:['CONFIG']"}, {"id": "metagpt/tools/search_engine.py:module:metagpt.tools"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\"]}}"}, {"id": "metagpt/tools/search_engine.py:names:['SearchEngineType']"}, {"id": "{\"lineno\":17,\"end_lineno\":29,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SkSearchEngine\"],\"properties\":{}}"}, {"id": "{\"lineno\":32,\"end_lineno\":98,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SearchEngine\"],\"properties\":{}}"}, {"id": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:__init__"}, {"id": "metagpt/tools/web_browser_engine.py:ast.Constant:\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\n"}, {"id": "metagpt/tools/web_browser_engine.py:module:__future__"}, {"id": "metagpt/tools/web_browser_engine.py:names:['annotations']"}, {"id": "metagpt/tools/web_browser_engine.py:importlib"}, {"id": "metagpt/tools/web_browser_engine.py:module:typing"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Callable\",\"Coroutine\",\"overload\"]}}"}, {"id": "metagpt/tools/web_browser_engine.py:names:['Any', 'Callable', 'Coroutine', 'overload']"}, {"id": "metagpt/tools/web_browser_engine.py:module:metagpt.config"}, {"id": "metagpt/tools/web_browser_engine.py:names:['CONFIG']"}, {"id": "metagpt/tools/web_browser_engine.py:module:metagpt.tools"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"WebBrowserEngineType\"]}}"}, {"id": "metagpt/tools/web_browser_engine.py:names:['WebBrowserEngineType']"}, {"id": "metagpt/tools/web_browser_engine.py:module:metagpt.utils.parse_html"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.parse_html\",\"names\":[\"WebPage\"]}}"}, {"id": "metagpt/tools/web_browser_engine.py:names:['WebPage']"}, {"id": "{\"lineno\":16,\"end_lineno\":48,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WebBrowserEngine\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_serper.py:SerperWrapper:_process_response"}, {"id": "metagpt/tools/search_engine_serper.py:ast.Constant:\n@Time : 2023/5/23 18:27\n@Author : alexanderwu\n@File : search_engine_serpapi.py\n"}, {"id": "metagpt/tools/search_engine_serper.py:json"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_serper.py:module:typing"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Dict\",\"Optional\",\"Tuple\"]}}"}, {"id": "metagpt/tools/search_engine_serper.py:names:['Any', 'Dict', 'Optional', 'Tuple']"}, {"id": "metagpt/tools/search_engine_serper.py:aiohttp"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_serper.py:module:pydantic"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"field_validator\"]}}"}, {"id": "metagpt/tools/search_engine_serper.py:names:['BaseModel', 'ConfigDict', 'Field', 'field_validator']"}, {"id": "metagpt/tools/search_engine_serper.py:module:metagpt.config"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/tools/search_engine_serper.py:names:['CONFIG']"}, {"id": "{\"lineno\":17,\"end_lineno\":112,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SerperWrapper\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_serper.py:__name__:__main__"}, {"id": "{\"lineno\":115,\"end_lineno\":118,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/tools/moderation.py:Moderation:__init__"}, {"id": "metagpt/tools/moderation.py:ast.Constant:\n@Time : 2023/9/26 14:27\n@Author : zhanglei\n@File : moderation.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/26 14:27\\n@Author : zhanglei\\n@File : moderation.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/moderation.py:module:typing"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"id": "metagpt/tools/moderation.py:names:['Union']"}, {"id": "metagpt/tools/moderation.py:module:metagpt.llm"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"id": "metagpt/tools/moderation.py:names:['LLM']"}, {"id": "{\"lineno\":13,\"end_lineno\":40,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Moderation\"],\"properties\":{}}"}, {"id": "metagpt/tools/__init__.py"}, {"id": "metagpt/tools/__init__.py:SearchEngineType"}, {"id": "metagpt/tools/__init__.py:WebBrowserEngineType"}, {"id": "metagpt/tools/__init__.py:WebBrowserEngineType:__missing__"}, {"id": "metagpt/tools/__init__.py:ast.Constant:\n@Time : 2023/4/29 15:35\n@Author : alexanderwu\n@File : __init__.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/29 15:35\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/__init__.py:module:enum"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"id": "metagpt/tools/__init__.py:names:['Enum']"}, {"id": "{\"lineno\":13,\"end_lineno\":18,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SearchEngineType\"],\"properties\":{}}"}, {"id": "{\"lineno\":21,\"end_lineno\":29,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WebBrowserEngineType\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_googleapi.py:safe_google_results"}, {"id": "metagpt/tools/search_engine_googleapi.py:module:__future__"}, {"id": "metagpt/tools/search_engine_googleapi.py:names:['annotations']"}, {"id": "metagpt/tools/search_engine_googleapi.py:asyncio"}, {"id": "metagpt/tools/search_engine_googleapi.py:json"}, {"id": "metagpt/tools/search_engine_googleapi.py:module:concurrent"}, {"id": "metagpt/tools/search_engine_googleapi.py:names:['futures']"}, {"id": "metagpt/tools/search_engine_googleapi.py:module:typing"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"id": "metagpt/tools/search_engine_googleapi.py:names:['Optional']"}, {"id": "metagpt/tools/search_engine_googleapi.py:module:urllib.parse"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urlparse\"]}}"}, {"id": "metagpt/tools/search_engine_googleapi.py:names:['urlparse']"}, {"id": "metagpt/tools/search_engine_googleapi.py:httplib2"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"httplib2\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_googleapi.py:module:pydantic"}, {"id": "metagpt/tools/search_engine_googleapi.py:names:['BaseModel', 'ConfigDict', 'Field', 'field_validator']"}, {"id": "metagpt/tools/search_engine_googleapi.py:module:metagpt.config"}, {"id": "metagpt/tools/search_engine_googleapi.py:names:['CONFIG']"}, {"id": "metagpt/tools/search_engine_googleapi.py:module:metagpt.logs"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/tools/search_engine_googleapi.py:names:['logger']"}, {"id": "{\"lineno\":27,\"end_lineno\":117,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GoogleAPIWrapper\"],\"properties\":{}}"}, {"id": "{\"lineno\":120,\"end_lineno\":133,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"safe_google_results\"],\"properties\":{}}"}, {"id": "metagpt/tools/search_engine_googleapi.py:__name__:__main__"}, {"id": "{\"lineno\":136,\"end_lineno\":139,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:__init__"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:_run_precheck"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:_scrape_website"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:_gen_get_driver_func"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:_webdriver_manager_types"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:ast.Constant:\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\n"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:module:__future__"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:names:['annotations']"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:asyncio"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:importlib"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"importlib\"],\"properties\":{}}"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:module:concurrent"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"concurrent\",\"names\":[\"futures\"]}}"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:names:['futures']"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:module:copy"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"copy\",\"names\":[\"deepcopy\"]}}"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:names:['deepcopy']"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:module:typing"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Literal\"]}}"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:names:['Literal']"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:module:selenium.webdriver.common.by"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"selenium.webdriver.common.by\",\"names\":[\"By\"]}}"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:names:['By']"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:module:selenium.webdriver.support"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"selenium.webdriver.support\",\"names\":[\"expected_conditions as EC\"]}}"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:names:['expected_conditions as EC']"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:module:selenium.webdriver.support.wait"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"selenium.webdriver.support.wait\",\"names\":[\"WebDriverWait\"]}}"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:names:['WebDriverWait']"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:module:webdriver_manager.core.download_manager"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"webdriver_manager.core.download_manager\",\"names\":[\"WDMDownloadManager\"]}}"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:names:['WDMDownloadManager']"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:module:webdriver_manager.core.http"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"webdriver_manager.core.http\",\"names\":[\"WDMHttpClient\"]}}"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:names:['WDMHttpClient']"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:module:metagpt.config"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:names:['CONFIG']"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:module:metagpt.utils.parse_html"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.parse_html\",\"names\":[\"WebPage\"]}}"}, {"id": "metagpt/tools/web_browser_engine_selenium.py:names:['WebPage']"}, {"id": "{\"lineno\":24,\"end_lineno\":87,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SeleniumWrapper\"],\"properties\":{}}"}, {"id": "{\"lineno\":90,\"end_lineno\":95,\"type_name\":\"ast.Assign\",\"tokens\":[\"_webdriver_manager_types\"],\"properties\":{}}"}, {"id": "{\"lineno\":98,\"end_lineno\":102,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WDMHttpProxyClient\"],\"properties\":{}}"}, {"id": "{\"lineno\":105,\"end_lineno\":129,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_gen_get_driver_func\"],\"properties\":{}}"}, {"id": "metagpt/tools/openapi_v3_hello.py"}, {"id": "metagpt/tools/openapi_v3_hello.py:post_greeting"}, {"id": "metagpt/tools/openapi_v3_hello.py:ast.Constant:\n@Time : 2023/5/2 16:03\n@Author : mashenquan\n@File : openapi_v3_hello.py\n@Desc : Implement the OpenAPI Specification 3.0 demo and use the following command to test the HTTP service:\n\n curl -X 'POST' 'http://localhost:8082/openapi/greeting/dave' -H 'accept: text/plain' -H 'Content-Type: application/json' -d '{}'\n"}, {"id": "{\"lineno\":3,\"end_lineno\":14,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/2 16:03\\n@Author : mashenquan\\n@File : openapi_v3_hello.py\\n@Desc : Implement the OpenAPI Specification 3.0 demo and use the following command to test the HTTP service:\\n\\n curl -X 'POST' 'http://localhost:8082/openapi/greeting/dave' -H 'accept: text/plain' -H 'Content-Type: application/json' -d '{}'\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/openapi_v3_hello.py:module:pathlib"}, {"id": "metagpt/tools/openapi_v3_hello.py:names:['Path']"}, {"id": "metagpt/tools/openapi_v3_hello.py:connexion"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Import\",\"tokens\":[\"connexion\"],\"properties\":{}}"}, {"id": "{\"lineno\":21,\"end_lineno\":22,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"post_greeting\"],\"properties\":{}}"}, {"id": "metagpt/tools/openapi_v3_hello.py:__name__:__main__"}, {"id": "{\"lineno\":25,\"end_lineno\":29,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/tools/azure_tts.py:AzureTTS:__init__"}, {"id": "metagpt/tools/azure_tts.py:oas3_azsure_tts"}, {"id": "metagpt/tools/azure_tts.py:ast.Constant:\n@Time : 2023/6/9 22:22\n@Author : Leo Xiao\n@File : azure_tts.py\n@Modified by: mashenquan, 2023/8/17. Azure TTS OAS3 api, which provides text-to-speech functionality\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/6/9 22:22\\n@Author : Leo Xiao\\n@File : azure_tts.py\\n@Modified by: mashenquan, 2023/8/17. Azure TTS OAS3 api, which provides text-to-speech functionality\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/azure_tts.py:base64"}, {"id": "metagpt/tools/azure_tts.py:module:pathlib"}, {"id": "metagpt/tools/azure_tts.py:names:['Path']"}, {"id": "metagpt/tools/azure_tts.py:module:uuid"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"uuid\",\"names\":[\"uuid4\"]}}"}, {"id": "metagpt/tools/azure_tts.py:names:['uuid4']"}, {"id": "metagpt/tools/azure_tts.py:aiofiles"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"id": "metagpt/tools/azure_tts.py:module:azure.cognitiveservices.speech"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"azure.cognitiveservices.speech\",\"names\":[\"AudioConfig\",\"SpeechConfig\",\"SpeechSynthesizer\"]}}"}, {"id": "metagpt/tools/azure_tts.py:names:['AudioConfig', 'SpeechConfig', 'SpeechSynthesizer']"}, {"id": "metagpt/tools/azure_tts.py:module:metagpt.config"}, {"id": "metagpt/tools/azure_tts.py:names:['CONFIG']"}, {"id": "metagpt/tools/azure_tts.py:module:metagpt.logs"}, {"id": "metagpt/tools/azure_tts.py:names:['logger']"}, {"id": "{\"lineno\":20,\"end_lineno\":57,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"AzureTTS\"],\"properties\":{}}"}, {"id": "{\"lineno\":61,\"end_lineno\":105,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"oas3_azsure_tts\"],\"properties\":{}}"}, {"id": "metagpt/tools/sd_engine.py:SDEngine:__init__"}, {"id": "metagpt/tools/sd_engine.py:SDEngine:_save"}, {"id": "metagpt/tools/sd_engine.py:SDEngine:run_i2i"}, {"id": "metagpt/tools/sd_engine.py:SDEngine:run_sam"}, {"id": "metagpt/tools/sd_engine.py:decode_base64_to_image"}, {"id": "metagpt/tools/sd_engine.py:batch_decode_base64_to_image"}, {"id": "metagpt/tools/sd_engine.py:payload"}, {"id": "metagpt/tools/sd_engine.py:default_negative_prompt"}, {"id": "metagpt/tools/sd_engine.py:asyncio"}, {"id": "metagpt/tools/sd_engine.py:base64"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"id": "metagpt/tools/sd_engine.py:io"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"io\"],\"properties\":{}}"}, {"id": "metagpt/tools/sd_engine.py:json"}, {"id": "metagpt/tools/sd_engine.py:module:os.path"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"os.path\",\"names\":[\"join\"]}}"}, {"id": "metagpt/tools/sd_engine.py:names:['join']"}, {"id": "metagpt/tools/sd_engine.py:module:typing"}, {"id": "metagpt/tools/sd_engine.py:names:['List']"}, {"id": "metagpt/tools/sd_engine.py:module:aiohttp"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"aiohttp\",\"names\":[\"ClientSession\"]}}"}, {"id": "metagpt/tools/sd_engine.py:names:['ClientSession']"}, {"id": "metagpt/tools/sd_engine.py:module:PIL"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"PIL\",\"names\":[\"Image\",\"PngImagePlugin\"]}}"}, {"id": "metagpt/tools/sd_engine.py:names:['Image', 'PngImagePlugin']"}, {"id": "metagpt/tools/sd_engine.py:module:metagpt.config"}, {"id": "metagpt/tools/sd_engine.py:names:['CONFIG']"}, {"id": "metagpt/tools/sd_engine.py:module:metagpt.const"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"SD_OUTPUT_FILE_REPO\"]}}"}, {"id": "metagpt/tools/sd_engine.py:names:['SD_OUTPUT_FILE_REPO']"}, {"id": "metagpt/tools/sd_engine.py:module:metagpt.logs"}, {"id": "metagpt/tools/sd_engine.py:names:['logger']"}, {"id": "{\"lineno\":19,\"end_lineno\":48,\"type_name\":\"ast.Assign\",\"tokens\":[\"payload\"],\"properties\":{}}"}, {"id": "{\"lineno\":50,\"end_lineno\":50,\"type_name\":\"ast.Assign\",\"tokens\":[\"default_negative_prompt\"],\"properties\":{}}"}, {"id": "{\"lineno\":53,\"end_lineno\":109,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SDEngine\"],\"properties\":{}}"}, {"id": "{\"lineno\":112,\"end_lineno\":117,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"decode_base64_to_image\"],\"properties\":{}}"}, {"id": "{\"lineno\":120,\"end_lineno\":123,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"batch_decode_base64_to_image\"],\"properties\":{}}"}, {"id": "metagpt/tools/sd_engine.py:__name__:__main__"}, {"id": "{\"lineno\":126,\"end_lineno\":133,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image:__init__"}, {"id": "metagpt/tools/openai_text_to_image.py:oas3_openai_text_to_image"}, {"id": "metagpt/tools/openai_text_to_image.py:ast.Constant:\n@Time : 2023/8/17\n@Author : mashenquan\n@File : openai_text_to_image.py\n@Desc : OpenAI Text-to-Image OAS3 api, which provides text-to-image functionality.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/17\\n@Author : mashenquan\\n@File : openai_text_to_image.py\\n@Desc : OpenAI Text-to-Image OAS3 api, which provides text-to-image functionality.\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/openai_text_to_image.py:aiohttp"}, {"id": "metagpt/tools/openai_text_to_image.py:requests"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"requests\"],\"properties\":{}}"}, {"id": "metagpt/tools/openai_text_to_image.py:module:metagpt.llm"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"id": "metagpt/tools/openai_text_to_image.py:names:['LLM']"}, {"id": "metagpt/tools/openai_text_to_image.py:module:metagpt.logs"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/tools/openai_text_to_image.py:names:['logger']"}, {"id": "{\"lineno\":17,\"end_lineno\":56,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OpenAIText2Image\"],\"properties\":{}}"}, {"id": "{\"lineno\":60,\"end_lineno\":69,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"oas3_openai_text_to_image\"],\"properties\":{}}"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:__init__"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:__para_to_str"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:_para_to_str"}, {"id": "metagpt/tools/ut_writer.py:UTGenerator:_generate_ut"}, {"id": "metagpt/tools/ut_writer.py:ICL_SAMPLE"}, {"id": "metagpt/tools/ut_writer.py:ACT_PROMPT_PREFIX"}, {"id": "metagpt/tools/ut_writer.py:YFT_PROMPT_PREFIX"}, {"id": "metagpt/tools/ut_writer.py:OCR_API_DOC"}, {"id": "metagpt/tools/ut_writer.py:json"}, {"id": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/tools/ut_writer.py:module:pathlib"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/tools/ut_writer.py:names:['Path']"}, {"id": "metagpt/tools/ut_writer.py:module:metagpt.provider.openai_api"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM as GPTAPI\"]}}"}, {"id": "metagpt/tools/ut_writer.py:names:['OpenAILLM as GPTAPI']"}, {"id": "metagpt/tools/ut_writer.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"awrite\"]}}"}, {"id": "metagpt/tools/ut_writer.py:names:['awrite']"}, {"id": "{\"lineno\":10,\"end_lineno\":64,\"type_name\":\"ast.Assign\",\"tokens\":[\"ICL_SAMPLE\"],\"properties\":{}}"}, {"id": "{\"lineno\":66,\"end_lineno\":69,\"type_name\":\"ast.Assign\",\"tokens\":[\"ACT_PROMPT_PREFIX\"],\"properties\":{}}"}, {"id": "{\"lineno\":71,\"end_lineno\":75,\"type_name\":\"ast.Assign\",\"tokens\":[\"YFT_PROMPT_PREFIX\"],\"properties\":{}}"}, {"id": "{\"lineno\":77,\"end_lineno\":100,\"type_name\":\"ast.Assign\",\"tokens\":[\"OCR_API_DOC\"],\"properties\":{}}"}, {"id": "{\"lineno\":103,\"end_lineno\":286,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"UTGenerator\"],\"properties\":{}}"}, {"id": "metagpt/tools/translator.py:prompt"}, {"id": "metagpt/tools/translator.py:ast.Constant:\n@Time : 2023/4/29 15:36\n@Author : alexanderwu\n@File : translator.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/29 15:36\\n@Author : alexanderwu\\n@File : translator.py\\n\"],\"properties\":{}}"}, {"id": "{\"lineno\":9,\"end_lineno\":20,\"type_name\":\"ast.Assign\",\"tokens\":[\"prompt\"],\"properties\":{}}"}, {"id": "{\"lineno\":23,\"end_lineno\":26,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Translator\"],\"properties\":{}}"}, {"id": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:__init__"}, {"id": "metagpt/tools/metagpt_text_to_image.py:oas3_metagpt_text_to_image"}, {"id": "metagpt/tools/metagpt_text_to_image.py:ast.Constant:\n@Time : 2023/8/18\n@Author : mashenquan\n@File : metagpt_text_to_image.py\n@Desc : MetaGPT Text-to-Image OAS3 api, which provides text-to-image functionality.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/18\\n@Author : mashenquan\\n@File : metagpt_text_to_image.py\\n@Desc : MetaGPT Text-to-Image OAS3 api, which provides text-to-image functionality.\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/metagpt_text_to_image.py:base64"}, {"id": "metagpt/tools/metagpt_text_to_image.py:module:typing"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\"]}}"}, {"id": "metagpt/tools/metagpt_text_to_image.py:names:['Dict', 'List']"}, {"id": "metagpt/tools/metagpt_text_to_image.py:aiohttp"}, {"id": "metagpt/tools/metagpt_text_to_image.py:requests"}, {"id": "metagpt/tools/metagpt_text_to_image.py:module:pydantic"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"id": "metagpt/tools/metagpt_text_to_image.py:names:['BaseModel']"}, {"id": "metagpt/tools/metagpt_text_to_image.py:module:metagpt.config"}, {"id": "metagpt/tools/metagpt_text_to_image.py:names:['CONFIG']"}, {"id": "metagpt/tools/metagpt_text_to_image.py:module:metagpt.logs"}, {"id": "metagpt/tools/metagpt_text_to_image.py:names:['logger']"}, {"id": "{\"lineno\":20,\"end_lineno\":82,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MetaGPTText2Image\"],\"properties\":{}}"}, {"id": "{\"lineno\":86,\"end_lineno\":98,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"oas3_metagpt_text_to_image\"],\"properties\":{}}"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:__init__"}, {"id": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:_create_url"}, {"id": "metagpt/tools/iflytek_tts.py:oas3_iflytek_tts"}, {"id": "metagpt/tools/iflytek_tts.py:DEFAULT_IFLYTEK_VOICE"}, {"id": "metagpt/tools/iflytek_tts.py:ast.Constant:\n@Time : 2023/8/17\n@Author : mashenquan\n@File : iflytek_tts.py\n@Desc : iFLYTEK TTS OAS3 api, which provides text-to-speech functionality\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/17\\n@Author : mashenquan\\n@File : iflytek_tts.py\\n@Desc : iFLYTEK TTS OAS3 api, which provides text-to-speech functionality\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/iflytek_tts.py:base64"}, {"id": "metagpt/tools/iflytek_tts.py:hashlib"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"hashlib\"],\"properties\":{}}"}, {"id": "metagpt/tools/iflytek_tts.py:hmac"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"hmac\"],\"properties\":{}}"}, {"id": "metagpt/tools/iflytek_tts.py:json"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/tools/iflytek_tts.py:uuid"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"uuid\"],\"properties\":{}}"}, {"id": "metagpt/tools/iflytek_tts.py:module:datetime"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"id": "metagpt/tools/iflytek_tts.py:names:['datetime']"}, {"id": "metagpt/tools/iflytek_tts.py:module:enum"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"id": "metagpt/tools/iflytek_tts.py:names:['Enum']"}, {"id": "metagpt/tools/iflytek_tts.py:module:pathlib"}, {"id": "metagpt/tools/iflytek_tts.py:names:['Path']"}, {"id": "metagpt/tools/iflytek_tts.py:module:time"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"time\",\"names\":[\"mktime\"]}}"}, {"id": "metagpt/tools/iflytek_tts.py:names:['mktime']"}, {"id": "metagpt/tools/iflytek_tts.py:module:typing"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"id": "metagpt/tools/iflytek_tts.py:names:['Optional']"}, {"id": "metagpt/tools/iflytek_tts.py:module:urllib.parse"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urlencode\"]}}"}, {"id": "metagpt/tools/iflytek_tts.py:names:['urlencode']"}, {"id": "metagpt/tools/iflytek_tts.py:module:wsgiref.handlers"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"wsgiref.handlers\",\"names\":[\"format_date_time\"]}}"}, {"id": "metagpt/tools/iflytek_tts.py:names:['format_date_time']"}, {"id": "metagpt/tools/iflytek_tts.py:aiofiles"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"id": "metagpt/tools/iflytek_tts.py:websockets as websockets"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.Import\",\"tokens\":[\"websockets as websockets\"],\"properties\":{}}"}, {"id": "metagpt/tools/iflytek_tts.py:module:pydantic"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"id": "metagpt/tools/iflytek_tts.py:names:['BaseModel']"}, {"id": "metagpt/tools/iflytek_tts.py:module:metagpt.config"}, {"id": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/tools/iflytek_tts.py:names:['CONFIG']"}, {"id": "metagpt/tools/iflytek_tts.py:module:metagpt.logs"}, {"id": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/tools/iflytek_tts.py:names:['logger']"}, {"id": "{\"lineno\":30,\"end_lineno\":33,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"IFlyTekTTSStatus\"],\"properties\":{}}"}, {"id": "{\"lineno\":36,\"end_lineno\":39,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"AudioData\"],\"properties\":{}}"}, {"id": "{\"lineno\":42,\"end_lineno\":46,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"IFlyTekTTSResponse\"],\"properties\":{}}"}, {"id": "{\"lineno\":49,\"end_lineno\":49,\"type_name\":\"ast.Assign\",\"tokens\":[\"DEFAULT_IFLYTEK_VOICE\"],\"properties\":{}}"}, {"id": "{\"lineno\":52,\"end_lineno\":114,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"IFlyTekTTS\"],\"properties\":{}}"}, {"id": "{\"lineno\":118,\"end_lineno\":152,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"oas3_iflytek_tts\"],\"properties\":{}}"}, {"id": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:__init__"}, {"id": "metagpt/tools/prompt_writer.py:WikiHowTemplate:__init__"}, {"id": "metagpt/tools/prompt_writer.py:EnronTemplate:__init__"}, {"id": "metagpt/tools/prompt_writer.py:BEAGECTemplate:__init__"}, {"id": "metagpt/tools/prompt_writer.py:ast.Constant:\n@Time : 2023/5/2 16:03\n@Author : alexanderwu\n@File : prompt_writer.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/2 16:03\\n@Author : alexanderwu\\n@File : prompt_writer.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/tools/prompt_writer.py:module:typing"}, {"id": "metagpt/tools/prompt_writer.py:names:['Union']"}, {"id": "{\"lineno\":11,\"end_lineno\":49,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GPTPromptGenerator\"],\"properties\":{}}"}, {"id": "{\"lineno\":52,\"end_lineno\":74,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WikiHowTemplate\"],\"properties\":{}}"}, {"id": "{\"lineno\":77,\"end_lineno\":92,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"EnronTemplate\"],\"properties\":{}}"}, {"id": "{\"lineno\":95,\"end_lineno\":111,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BEAGECTemplate\"],\"properties\":{}}"}, {"id": "metagpt/memory/memory.py:ast.Constant:\n@Time : 2023/5/20 12:15\n@Author : alexanderwu\n@File : memory.py\n@Modified By: mashenquan, 2023-11-1. According to RFC 116: Updated the type of index key.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/20 12:15\\n@Author : alexanderwu\\n@File : memory.py\\n@Modified By: mashenquan, 2023-11-1. According to RFC 116: Updated the type of index key.\\n\"],\"properties\":{}}"}, {"id": "metagpt/memory/memory.py:module:collections"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"collections\",\"names\":[\"defaultdict\"]}}"}, {"id": "metagpt/memory/memory.py:names:['defaultdict']"}, {"id": "metagpt/memory/memory.py:module:pathlib"}, {"id": "metagpt/memory/memory.py:names:['Path']"}, {"id": "metagpt/memory/memory.py:module:typing"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"DefaultDict\",\"Iterable\",\"Set\"]}}"}, {"id": "metagpt/memory/memory.py:names:['DefaultDict', 'Iterable', 'Set']"}, {"id": "metagpt/memory/memory.py:module:pydantic"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\",\"SerializeAsAny\"]}}"}, {"id": "metagpt/memory/memory.py:names:['BaseModel', 'Field', 'SerializeAsAny']"}, {"id": "metagpt/memory/memory.py:module:metagpt.const"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"IGNORED_MESSAGE_ID\"]}}"}, {"id": "metagpt/memory/memory.py:names:['IGNORED_MESSAGE_ID']"}, {"id": "metagpt/memory/memory.py:module:metagpt.schema"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"id": "metagpt/memory/memory.py:names:['Message']"}, {"id": "metagpt/memory/memory.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":17,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str\",\"any_to_str_set\",\"read_json_file\",\"write_json_file\"]}}"}, {"id": "metagpt/memory/memory.py:names:['any_to_str', 'any_to_str_set', 'read_json_file', 'write_json_file']"}, {"id": "{\"lineno\":25,\"end_lineno\":128,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Memory\"],\"properties\":{}}"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:_openai_summarize"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:_metagpt_summarize"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:_metagpt_is_related"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:_openai_is_related"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:_metagpt_rewrite"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:_openai_rewrite"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:_summarize"}, {"id": "metagpt/memory/brain_memory.py:BrainMemory:_get_summary"}, {"id": "metagpt/memory/brain_memory.py:ast.Constant:\n@Time : 2023/8/18\n@Author : mashenquan\n@File : brain_memory.py\n@Desc : Used by AgentStore. Used for long-term storage and automatic compression.\n@Modified By: mashenquan, 2023/9/4. + redis memory cache.\n@Modified By: mashenquan, 2023/12/25. Simplify Functionality.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":10,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/18\\n@Author : mashenquan\\n@File : brain_memory.py\\n@Desc : Used by AgentStore. Used for long-term storage and automatic compression.\\n@Modified By: mashenquan, 2023/9/4. + redis memory cache.\\n@Modified By: mashenquan, 2023/12/25. Simplify Functionality.\\n\"],\"properties\":{}}"}, {"id": "metagpt/memory/brain_memory.py:json"}, {"id": "metagpt/memory/brain_memory.py:re"}, {"id": "metagpt/memory/brain_memory.py:module:typing"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\",\"Optional\"]}}"}, {"id": "metagpt/memory/brain_memory.py:names:['Dict', 'List', 'Optional']"}, {"id": "metagpt/memory/brain_memory.py:module:pydantic"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"id": "metagpt/memory/brain_memory.py:names:['BaseModel', 'Field']"}, {"id": "metagpt/memory/brain_memory.py:module:metagpt.config"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/memory/brain_memory.py:names:['CONFIG']"}, {"id": "metagpt/memory/brain_memory.py:module:metagpt.const"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DEFAULT_LANGUAGE\",\"DEFAULT_MAX_TOKENS\",\"DEFAULT_TOKEN_SIZE\"]}}"}, {"id": "metagpt/memory/brain_memory.py:names:['DEFAULT_LANGUAGE', 'DEFAULT_MAX_TOKENS', 'DEFAULT_TOKEN_SIZE']"}, {"id": "metagpt/memory/brain_memory.py:module:metagpt.logs"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/memory/brain_memory.py:names:['logger']"}, {"id": "metagpt/memory/brain_memory.py:module:metagpt.provider"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider\",\"names\":[\"MetaGPTLLM\"]}}"}, {"id": "metagpt/memory/brain_memory.py:names:['MetaGPTLLM']"}, {"id": "metagpt/memory/brain_memory.py:module:metagpt.provider.base_llm"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"id": "metagpt/memory/brain_memory.py:names:['BaseLLM']"}, {"id": "metagpt/memory/brain_memory.py:module:metagpt.schema"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\",\"SimpleMessage\"]}}"}, {"id": "metagpt/memory/brain_memory.py:names:['Message', 'SimpleMessage']"}, {"id": "metagpt/memory/brain_memory.py:module:metagpt.utils.redis"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.redis\",\"names\":[\"Redis\"]}}"}, {"id": "metagpt/memory/brain_memory.py:names:['Redis']"}, {"id": "{\"lineno\":26,\"end_lineno\":331,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BrainMemory\"],\"properties\":{}}"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:__init__"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:_load"}, {"id": "metagpt/memory/memory_storage.py:MemoryStorage:_get_index_and_store_fname"}, {"id": "metagpt/memory/memory_storage.py:ast.Constant:\n@Desc : the implement of memory storage\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":6,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Desc : the implement of memory storage\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\\n\"],\"properties\":{}}"}, {"id": "metagpt/memory/memory_storage.py:module:pathlib"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/memory/memory_storage.py:names:['Path']"}, {"id": "metagpt/memory/memory_storage.py:module:typing"}, {"id": "metagpt/memory/memory_storage.py:names:['Optional']"}, {"id": "metagpt/memory/memory_storage.py:module:langchain.embeddings"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.embeddings\",\"names\":[\"OpenAIEmbeddings\"]}}"}, {"id": "metagpt/memory/memory_storage.py:names:['OpenAIEmbeddings']"}, {"id": "metagpt/memory/memory_storage.py:module:langchain.vectorstores.faiss"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.vectorstores.faiss\",\"names\":[\"FAISS\"]}}"}, {"id": "metagpt/memory/memory_storage.py:names:['FAISS']"}, {"id": "metagpt/memory/memory_storage.py:module:langchain_core.embeddings"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain_core.embeddings\",\"names\":[\"Embeddings\"]}}"}, {"id": "metagpt/memory/memory_storage.py:names:['Embeddings']"}, {"id": "metagpt/memory/memory_storage.py:module:metagpt.const"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DATA_PATH\",\"MEM_TTL\"]}}"}, {"id": "metagpt/memory/memory_storage.py:names:['DATA_PATH', 'MEM_TTL']"}, {"id": "metagpt/memory/memory_storage.py:module:metagpt.document_store.faiss_store"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.faiss_store\",\"names\":[\"FaissStore\"]}}"}, {"id": "metagpt/memory/memory_storage.py:names:['FaissStore']"}, {"id": "metagpt/memory/memory_storage.py:module:metagpt.logs"}, {"id": "metagpt/memory/memory_storage.py:names:['logger']"}, {"id": "metagpt/memory/memory_storage.py:module:metagpt.schema"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"id": "metagpt/memory/memory_storage.py:names:['Message']"}, {"id": "metagpt/memory/memory_storage.py:module:metagpt.utils.serialize"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.serialize\",\"names\":[\"deserialize_message\",\"serialize_message\"]}}"}, {"id": "metagpt/memory/memory_storage.py:names:['deserialize_message', 'serialize_message']"}, {"id": "{\"lineno\":22,\"end_lineno\":118,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MemoryStorage\"],\"properties\":{}}"}, {"id": "metagpt/memory/__init__.py"}, {"id": "metagpt/memory/__init__.py:__all__"}, {"id": "metagpt/memory/__init__.py:ast.Constant:\n@Time : 2023/4/30 20:57\n@Author : alexanderwu\n@File : __init__.py\n"}, {"id": "metagpt/memory/__init__.py:module:metagpt.memory.memory"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory.memory\",\"names\":[\"Memory\"]}}"}, {"id": "metagpt/memory/__init__.py:names:['Memory']"}, {"id": "{\"lineno\":14,\"end_lineno\":17,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"id": "metagpt/memory/longterm_memory.py:ast.Constant:\n@Desc : the implement of Long-term memory\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":6,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Desc : the implement of Long-term memory\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\\n\"],\"properties\":{}}"}, {"id": "metagpt/memory/longterm_memory.py:module:typing"}, {"id": "metagpt/memory/longterm_memory.py:names:['Optional']"}, {"id": "metagpt/memory/longterm_memory.py:module:pydantic"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"ConfigDict\",\"Field\"]}}"}, {"id": "metagpt/memory/longterm_memory.py:names:['ConfigDict', 'Field']"}, {"id": "metagpt/memory/longterm_memory.py:module:metagpt.logs"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/memory/longterm_memory.py:names:['logger']"}, {"id": "metagpt/memory/longterm_memory.py:module:metagpt.memory"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory\",\"names\":[\"Memory\"]}}"}, {"id": "metagpt/memory/longterm_memory.py:names:['Memory']"}, {"id": "metagpt/memory/longterm_memory.py:module:metagpt.memory.memory_storage"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory.memory_storage\",\"names\":[\"MemoryStorage\"]}}"}, {"id": "metagpt/memory/longterm_memory.py:names:['MemoryStorage']"}, {"id": "metagpt/memory/longterm_memory.py:module:metagpt.roles.role"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"RoleContext\"]}}"}, {"id": "metagpt/memory/longterm_memory.py:names:['RoleContext']"}, {"id": "metagpt/memory/longterm_memory.py:module:metagpt.schema"}, {"id": "metagpt/memory/longterm_memory.py:names:['Message']"}, {"id": "{\"lineno\":19,\"end_lineno\":78,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"LongTermMemory\"],\"properties\":{}}"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantStore:__init__"}, {"id": "metagpt/document_store/qdrant_store.py:QdrantStore:write"}, {"id": "metagpt/document_store/qdrant_store.py:module:dataclasses"}, {"id": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"dataclasses\",\"names\":[\"dataclass\"]}}"}, {"id": "metagpt/document_store/qdrant_store.py:names:['dataclass']"}, {"id": "metagpt/document_store/qdrant_store.py:module:typing"}, {"id": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"id": "metagpt/document_store/qdrant_store.py:names:['List']"}, {"id": "metagpt/document_store/qdrant_store.py:module:qdrant_client"}, {"id": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"qdrant_client\",\"names\":[\"QdrantClient\"]}}"}, {"id": "metagpt/document_store/qdrant_store.py:names:['QdrantClient']"}, {"id": "metagpt/document_store/qdrant_store.py:module:qdrant_client.models"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"qdrant_client.models\",\"names\":[\"Filter\",\"PointStruct\",\"VectorParams\"]}}"}, {"id": "metagpt/document_store/qdrant_store.py:names:['Filter', 'PointStruct', 'VectorParams']"}, {"id": "metagpt/document_store/qdrant_store.py:module:metagpt.document_store.base_store"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.base_store\",\"names\":[\"BaseStore\"]}}"}, {"id": "metagpt/document_store/qdrant_store.py:names:['BaseStore']"}, {"id": "{\"lineno\":11,\"end_lineno\":25,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"QdrantConnection\"],\"properties\":{}}"}, {"id": "{\"lineno\":28,\"end_lineno\":124,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"QdrantStore\"],\"properties\":{}}"}, {"id": "metagpt/document_store/chromadb_store.py:ChromaStore:__init__"}, {"id": "metagpt/document_store/chromadb_store.py:ChromaStore:persist"}, {"id": "metagpt/document_store/chromadb_store.py:ast.Constant:\n@Time : 2023/5/29 14:46\n@Author : alexanderwu\n@File : chromadb_store.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/29 14:46\\n@Author : alexanderwu\\n@File : chromadb_store.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/document_store/chromadb_store.py:chromadb"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"chromadb\"],\"properties\":{}}"}, {"id": "{\"lineno\":11,\"end_lineno\":53,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ChromaStore\"],\"properties\":{}}"}, {"id": "metagpt/document_store/lancedb_store.py:LanceStore:__init__"}, {"id": "metagpt/document_store/lancedb_store.py:LanceStore:persist"}, {"id": "metagpt/document_store/lancedb_store.py:ast.Constant:\n@Time : 2023/8/9 15:42\n@Author : unkn-wn (Leon Yee)\n@File : lancedb_store.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/9 15:42\\n@Author : unkn-wn (Leon Yee)\\n@File : lancedb_store.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/document_store/lancedb_store.py:os"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"id": "metagpt/document_store/lancedb_store.py:shutil"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"shutil\"],\"properties\":{}}"}, {"id": "metagpt/document_store/lancedb_store.py:lancedb"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"lancedb\"],\"properties\":{}}"}, {"id": "{\"lineno\":14,\"end_lineno\":89,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"LanceStore\"],\"properties\":{}}"}, {"id": "metagpt/document_store/__init__.py"}, {"id": "metagpt/document_store/__init__.py:__all__"}, {"id": "metagpt/document_store/__init__.py:ast.Constant:\n@Time : 2023/5/25 10:20\n@Author : alexanderwu\n@File : __init__.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/25 10:20\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/document_store/__init__.py:module:metagpt.document_store.faiss_store"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.faiss_store\",\"names\":[\"FaissStore\"]}}"}, {"id": "metagpt/document_store/__init__.py:names:['FaissStore']"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:__init__"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:_load"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:_write"}, {"id": "metagpt/document_store/faiss_store.py:FaissStore:delete"}, {"id": "metagpt/document_store/faiss_store.py:ast.Constant:\n@Time : 2023/5/25 10:20\n@Author : alexanderwu\n@File : faiss_store.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/25 10:20\\n@Author : alexanderwu\\n@File : faiss_store.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/document_store/faiss_store.py:asyncio"}, {"id": "metagpt/document_store/faiss_store.py:module:pathlib"}, {"id": "metagpt/document_store/faiss_store.py:names:['Path']"}, {"id": "metagpt/document_store/faiss_store.py:module:typing"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"id": "metagpt/document_store/faiss_store.py:names:['Optional']"}, {"id": "metagpt/document_store/faiss_store.py:module:langchain.embeddings"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.embeddings\",\"names\":[\"OpenAIEmbeddings\"]}}"}, {"id": "metagpt/document_store/faiss_store.py:names:['OpenAIEmbeddings']"}, {"id": "metagpt/document_store/faiss_store.py:module:langchain.vectorstores"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.vectorstores\",\"names\":[\"FAISS\"]}}"}, {"id": "metagpt/document_store/faiss_store.py:names:['FAISS']"}, {"id": "metagpt/document_store/faiss_store.py:module:langchain_core.embeddings"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain_core.embeddings\",\"names\":[\"Embeddings\"]}}"}, {"id": "metagpt/document_store/faiss_store.py:names:['Embeddings']"}, {"id": "metagpt/document_store/faiss_store.py:module:metagpt.config"}, {"id": "metagpt/document_store/faiss_store.py:names:['CONFIG']"}, {"id": "metagpt/document_store/faiss_store.py:module:metagpt.document"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document\",\"names\":[\"IndexableDocument\"]}}"}, {"id": "metagpt/document_store/faiss_store.py:names:['IndexableDocument']"}, {"id": "metagpt/document_store/faiss_store.py:module:metagpt.document_store.base_store"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.base_store\",\"names\":[\"LocalStore\"]}}"}, {"id": "metagpt/document_store/faiss_store.py:names:['LocalStore']"}, {"id": "metagpt/document_store/faiss_store.py:module:metagpt.logs"}, {"id": "metagpt/document_store/faiss_store.py:names:['logger']"}, {"id": "{\"lineno\":22,\"end_lineno\":77,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"FaissStore\"],\"properties\":{}}"}, {"id": "metagpt/document_store/base_store.py:BaseStore:search"}, {"id": "metagpt/document_store/base_store.py:BaseStore:write"}, {"id": "metagpt/document_store/base_store.py:BaseStore:add"}, {"id": "metagpt/document_store/base_store.py:LocalStore:__init__"}, {"id": "metagpt/document_store/base_store.py:LocalStore:_get_index_and_store_fname"}, {"id": "metagpt/document_store/base_store.py:LocalStore:_load"}, {"id": "metagpt/document_store/base_store.py:LocalStore:_write"}, {"id": "metagpt/document_store/base_store.py:ast.Constant:\n@Time : 2023/5/28 00:01\n@Author : alexanderwu\n@File : base_store.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/28 00:01\\n@Author : alexanderwu\\n@File : base_store.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/document_store/base_store.py:module:abc"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\",\"abstractmethod\"]}}"}, {"id": "metagpt/document_store/base_store.py:names:['ABC', 'abstractmethod']"}, {"id": "metagpt/document_store/base_store.py:module:pathlib"}, {"id": "metagpt/document_store/base_store.py:names:['Path']"}, {"id": "metagpt/document_store/base_store.py:module:metagpt.config"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"Config\"]}}"}, {"id": "metagpt/document_store/base_store.py:names:['Config']"}, {"id": "{\"lineno\":14,\"end_lineno\":27,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BaseStore\"],\"properties\":{}}"}, {"id": "{\"lineno\":30,\"end_lineno\":55,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"LocalStore\"],\"properties\":{}}"}, {"id": "metagpt/provider/anthropic_api.py:ast.Constant:\n@Time : 2023/7/21 11:15\n@Author : Leo Xiao\n@File : anthropic_api.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/7/21 11:15\\n@Author : Leo Xiao\\n@File : anthropic_api.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/provider/anthropic_api.py:anthropic"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"anthropic\"],\"properties\":{}}"}, {"id": "metagpt/provider/anthropic_api.py:module:anthropic"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"anthropic\",\"names\":[\"Anthropic\",\"AsyncAnthropic\"]}}"}, {"id": "metagpt/provider/anthropic_api.py:names:['Anthropic', 'AsyncAnthropic']"}, {"id": "metagpt/provider/anthropic_api.py:module:metagpt.config"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/provider/anthropic_api.py:names:['CONFIG']"}, {"id": "{\"lineno\":15,\"end_lineno\":34,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Claude2\"],\"properties\":{}}"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:__init__"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:__init_gemini"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:_user_msg"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:_assistant_msg"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:_const_kwargs"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:_update_costs"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:_achat_completion"}, {"id": "metagpt/provider/google_gemini_api.py:GeminiLLM:_achat_completion_stream"}, {"id": "metagpt/provider/google_gemini_api.py:google.generativeai as genai"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"google.generativeai as genai\"],\"properties\":{}}"}, {"id": "metagpt/provider/google_gemini_api.py:module:google.ai"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"google.ai\",\"names\":[\"generativelanguage as glm\"]}}"}, {"id": "metagpt/provider/google_gemini_api.py:names:['generativelanguage as glm']"}, {"id": "metagpt/provider/google_gemini_api.py:module:google.generativeai.generative_models"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"google.generativeai.generative_models\",\"names\":[\"GenerativeModel\"]}}"}, {"id": "metagpt/provider/google_gemini_api.py:names:['GenerativeModel']"}, {"id": "metagpt/provider/google_gemini_api.py:module:google.generativeai.types"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"google.generativeai.types\",\"names\":[\"content_types\"]}}"}, {"id": "metagpt/provider/google_gemini_api.py:names:['content_types']"}, {"id": "metagpt/provider/google_gemini_api.py:module:google.generativeai.types.generation_types"}, {"id": "{\"lineno\":9,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"google.generativeai.types.generation_types\",\"names\":[\"AsyncGenerateContentResponse\",\"GenerateContentResponse\",\"GenerationConfig\"]}}"}, {"id": "metagpt/provider/google_gemini_api.py:names:['AsyncGenerateContentResponse', 'GenerateContentResponse', 'GenerationConfig']"}, {"id": "metagpt/provider/google_gemini_api.py:module:tenacity"}, {"id": "{\"lineno\":14,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"id": "metagpt/provider/google_gemini_api.py:names:['after_log', 'retry', 'retry_if_exception_type', 'stop_after_attempt', 'wait_random_exponential']"}, {"id": "metagpt/provider/google_gemini_api.py:module:metagpt.config"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"id": "metagpt/provider/google_gemini_api.py:names:['CONFIG', 'LLMProviderEnum']"}, {"id": "metagpt/provider/google_gemini_api.py:module:metagpt.logs"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"log_llm_stream\",\"logger\"]}}"}, {"id": "metagpt/provider/google_gemini_api.py:names:['log_llm_stream', 'logger']"}, {"id": "metagpt/provider/google_gemini_api.py:module:metagpt.provider.base_llm"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"id": "metagpt/provider/google_gemini_api.py:names:['BaseLLM']"}, {"id": "metagpt/provider/google_gemini_api.py:module:metagpt.provider.llm_provider_registry"}, {"id": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"id": "metagpt/provider/google_gemini_api.py:names:['register_provider']"}, {"id": "metagpt/provider/google_gemini_api.py:module:metagpt.provider.openai_api"}, {"id": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"log_and_reraise\"]}}"}, {"id": "metagpt/provider/google_gemini_api.py:names:['log_and_reraise']"}, {"id": "{\"lineno\":29,\"end_lineno\":41,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GeminiGenerativeModel\"],\"properties\":{}}"}, {"id": "{\"lineno\":45,\"end_lineno\":141,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GeminiLLM\"],\"properties\":{}}"}, {"id": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:_init_client"}, {"id": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:_make_client_kwargs"}, {"id": "metagpt/provider/azure_openai_api.py:ast.Constant:\n@Time : 2023/5/5 23:08\n@Author : alexanderwu\n@File : openai.py\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation;\n Change cost control from global to company level.\n@Modified By: mashenquan, 2023/11/21. Fix bug: ReadTimeout.\n@Modified By: mashenquan, 2023/12/1. Fix bug: Unclosed connection caused by openai 0.x.\n"}, {"id": "{\"lineno\":2,\"end_lineno\":10,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/5 23:08\\n@Author : alexanderwu\\n@File : openai.py\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation;\\n Change cost control from global to company level.\\n@Modified By: mashenquan, 2023/11/21. Fix bug: ReadTimeout.\\n@Modified By: mashenquan, 2023/12/1. Fix bug: Unclosed connection caused by openai 0.x.\\n\"],\"properties\":{}}"}, {"id": "metagpt/provider/azure_openai_api.py:module:openai"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai\",\"names\":[\"AsyncAzureOpenAI\"]}}"}, {"id": "metagpt/provider/azure_openai_api.py:names:['AsyncAzureOpenAI']"}, {"id": "metagpt/provider/azure_openai_api.py:module:openai._base_client"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai._base_client\",\"names\":[\"AsyncHttpxClientWrapper\"]}}"}, {"id": "metagpt/provider/azure_openai_api.py:names:['AsyncHttpxClientWrapper']"}, {"id": "metagpt/provider/azure_openai_api.py:module:metagpt.config"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"LLMProviderEnum\"]}}"}, {"id": "metagpt/provider/azure_openai_api.py:names:['LLMProviderEnum']"}, {"id": "metagpt/provider/azure_openai_api.py:module:metagpt.provider.llm_provider_registry"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"id": "metagpt/provider/azure_openai_api.py:names:['register_provider']"}, {"id": "metagpt/provider/azure_openai_api.py:module:metagpt.provider.openai_api"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM\"]}}"}, {"id": "metagpt/provider/azure_openai_api.py:names:['OpenAILLM']"}, {"id": "{\"lineno\":22,\"end_lineno\":45,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"AzureOpenAILLM\"],\"properties\":{}}"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:__init__"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:__init_fireworks"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:_make_client_kwargs"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:_update_costs"}, {"id": "metagpt/provider/fireworks_api.py:FireworksLLM:_achat_completion_stream"}, {"id": "metagpt/provider/fireworks_api.py:MODEL_GRADE_TOKEN_COSTS"}, {"id": "metagpt/provider/fireworks_api.py:re"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"id": "metagpt/provider/fireworks_api.py:module:openai"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai\",\"names\":[\"APIConnectionError\",\"AsyncStream\"]}}"}, {"id": "metagpt/provider/fireworks_api.py:names:['APIConnectionError', 'AsyncStream']"}, {"id": "metagpt/provider/fireworks_api.py:module:openai.types"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types\",\"names\":[\"CompletionUsage\"]}}"}, {"id": "metagpt/provider/fireworks_api.py:names:['CompletionUsage']"}, {"id": "metagpt/provider/fireworks_api.py:module:openai.types.chat"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types.chat\",\"names\":[\"ChatCompletionChunk\"]}}"}, {"id": "metagpt/provider/fireworks_api.py:names:['ChatCompletionChunk']"}, {"id": "metagpt/provider/fireworks_api.py:module:tenacity"}, {"id": "{\"lineno\":10,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"id": "metagpt/provider/fireworks_api.py:names:['after_log', 'retry', 'retry_if_exception_type', 'stop_after_attempt', 'wait_random_exponential']"}, {"id": "metagpt/provider/fireworks_api.py:module:metagpt.config"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"Config\",\"LLMProviderEnum\"]}}"}, {"id": "metagpt/provider/fireworks_api.py:names:['CONFIG', 'Config', 'LLMProviderEnum']"}, {"id": "metagpt/provider/fireworks_api.py:module:metagpt.logs"}, {"id": "metagpt/provider/fireworks_api.py:names:['logger']"}, {"id": "metagpt/provider/fireworks_api.py:module:metagpt.provider.llm_provider_registry"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"id": "metagpt/provider/fireworks_api.py:names:['register_provider']"}, {"id": "metagpt/provider/fireworks_api.py:module:metagpt.provider.openai_api"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM\",\"log_and_reraise\"]}}"}, {"id": "metagpt/provider/fireworks_api.py:names:['OpenAILLM', 'log_and_reraise']"}, {"id": "metagpt/provider/fireworks_api.py:module:metagpt.utils.cost_manager"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"CostManager\",\"Costs\"]}}"}, {"id": "metagpt/provider/fireworks_api.py:names:['CostManager', 'Costs']"}, {"id": "{\"lineno\":24,\"end_lineno\":29,\"type_name\":\"ast.Assign\",\"tokens\":[\"MODEL_GRADE_TOKEN_COSTS\"],\"properties\":{}}"}, {"id": "{\"lineno\":32,\"end_lineno\":72,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"FireworksCostManager\"],\"properties\":{}}"}, {"id": "{\"lineno\":76,\"end_lineno\":140,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"FireworksLLM\"],\"properties\":{}}"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:__init__"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:__init_ollama"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:_const_kwargs"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:_update_costs"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:_decode_and_load"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:_achat_completion"}, {"id": "metagpt/provider/ollama_api.py:OllamaLLM:_achat_completion_stream"}, {"id": "metagpt/provider/ollama_api.py:json"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/provider/ollama_api.py:module:requests"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"requests\",\"names\":[\"ConnectionError\"]}}"}, {"id": "metagpt/provider/ollama_api.py:names:['ConnectionError']"}, {"id": "metagpt/provider/ollama_api.py:module:tenacity"}, {"id": "{\"lineno\":8,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"id": "metagpt/provider/ollama_api.py:names:['after_log', 'retry', 'retry_if_exception_type', 'stop_after_attempt', 'wait_random_exponential']"}, {"id": "metagpt/provider/ollama_api.py:module:metagpt.config"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"id": "metagpt/provider/ollama_api.py:names:['CONFIG', 'LLMProviderEnum']"}, {"id": "metagpt/provider/ollama_api.py:module:metagpt.const"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"LLM_API_TIMEOUT\"]}}"}, {"id": "metagpt/provider/ollama_api.py:names:['LLM_API_TIMEOUT']"}, {"id": "metagpt/provider/ollama_api.py:module:metagpt.logs"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"log_llm_stream\",\"logger\"]}}"}, {"id": "metagpt/provider/ollama_api.py:names:['log_llm_stream', 'logger']"}, {"id": "metagpt/provider/ollama_api.py:module:metagpt.provider.base_llm"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"id": "metagpt/provider/ollama_api.py:names:['BaseLLM']"}, {"id": "metagpt/provider/ollama_api.py:module:metagpt.provider.general_api_requestor"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.general_api_requestor\",\"names\":[\"GeneralAPIRequestor\"]}}"}, {"id": "metagpt/provider/ollama_api.py:names:['GeneralAPIRequestor']"}, {"id": "metagpt/provider/ollama_api.py:module:metagpt.provider.llm_provider_registry"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"id": "metagpt/provider/ollama_api.py:names:['register_provider']"}, {"id": "metagpt/provider/ollama_api.py:module:metagpt.provider.openai_api"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"log_and_reraise\"]}}"}, {"id": "metagpt/provider/ollama_api.py:names:['log_and_reraise']"}, {"id": "metagpt/provider/ollama_api.py:module:metagpt.utils.cost_manager"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"CostManager\"]}}"}, {"id": "metagpt/provider/ollama_api.py:names:['CostManager']"}, {"id": "{\"lineno\":26,\"end_lineno\":38,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OllamaCostManager\"],\"properties\":{}}"}, {"id": "{\"lineno\":42,\"end_lineno\":139,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OllamaLLM\"],\"properties\":{}}"}, {"id": "metagpt/provider/__init__.py"}, {"id": "metagpt/provider/__init__.py:__all__"}, {"id": "metagpt/provider/__init__.py:ast.Constant:\n@Time : 2023/5/5 22:59\n@Author : alexanderwu\n@File : __init__.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/5 22:59\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/provider/__init__.py:module:metagpt.provider.fireworks_api"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.fireworks_api\",\"names\":[\"FireworksLLM\"]}}"}, {"id": "metagpt/provider/__init__.py:names:['FireworksLLM']"}, {"id": "metagpt/provider/__init__.py:module:metagpt.provider.google_gemini_api"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.google_gemini_api\",\"names\":[\"GeminiLLM\"]}}"}, {"id": "metagpt/provider/__init__.py:names:['GeminiLLM']"}, {"id": "metagpt/provider/__init__.py:module:metagpt.provider.ollama_api"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.ollama_api\",\"names\":[\"OllamaLLM\"]}}"}, {"id": "metagpt/provider/__init__.py:names:['OllamaLLM']"}, {"id": "metagpt/provider/__init__.py:module:metagpt.provider.open_llm_api"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.open_llm_api\",\"names\":[\"OpenLLM\"]}}"}, {"id": "metagpt/provider/__init__.py:names:['OpenLLM']"}, {"id": "metagpt/provider/__init__.py:module:metagpt.provider.openai_api"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM\"]}}"}, {"id": "metagpt/provider/__init__.py:names:['OpenAILLM']"}, {"id": "metagpt/provider/__init__.py:module:metagpt.provider.zhipuai_api"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.zhipuai_api\",\"names\":[\"ZhiPuAILLM\"]}}"}, {"id": "metagpt/provider/__init__.py:names:['ZhiPuAILLM']"}, {"id": "metagpt/provider/__init__.py:module:metagpt.provider.azure_openai_api"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.azure_openai_api\",\"names\":[\"AzureOpenAILLM\"]}}"}, {"id": "metagpt/provider/__init__.py:names:['AzureOpenAILLM']"}, {"id": "metagpt/provider/__init__.py:module:metagpt.provider.metagpt_api"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.metagpt_api\",\"names\":[\"MetaGPTLLM\"]}}"}, {"id": "metagpt/provider/__init__.py:names:['MetaGPTLLM']"}, {"id": "{\"lineno\":18,\"end_lineno\":27,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:__init__"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_init_openai"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_init_client"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_make_client_kwargs"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_get_proxy_params"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_achat_completion_stream"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_cons_kwargs"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_achat_completion"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_func_configs"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_achat_completion_function"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_process_message"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_calc_usage"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_update_costs"}, {"id": "metagpt/provider/openai_api.py:OpenAILLM:_get_max_tokens"}, {"id": "metagpt/provider/openai_api.py:log_and_reraise"}, {"id": "metagpt/provider/openai_api.py:ast.Constant:\n@Time : 2023/5/5 23:08\n@Author : alexanderwu\n@File : openai.py\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for isolation;\n Change cost control from global to company level.\n@Modified By: mashenquan, 2023/11/21. Fix bug: ReadTimeout.\n@Modified By: mashenquan, 2023/12/1. Fix bug: Unclosed connection caused by openai 0.x.\n"}, {"id": "{\"lineno\":2,\"end_lineno\":10,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/5 23:08\\n@Author : alexanderwu\\n@File : openai.py\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for isolation;\\n Change cost control from global to company level.\\n@Modified By: mashenquan, 2023/11/21. Fix bug: ReadTimeout.\\n@Modified By: mashenquan, 2023/12/1. Fix bug: Unclosed connection caused by openai 0.x.\\n\"],\"properties\":{}}"}, {"id": "metagpt/provider/openai_api.py:json"}, {"id": "metagpt/provider/openai_api.py:module:typing"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"AsyncIterator\",\"Union\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['AsyncIterator', 'Union']"}, {"id": "metagpt/provider/openai_api.py:module:openai"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai\",\"names\":[\"APIConnectionError\",\"AsyncOpenAI\",\"AsyncStream\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['APIConnectionError', 'AsyncOpenAI', 'AsyncStream']"}, {"id": "metagpt/provider/openai_api.py:module:openai._base_client"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai._base_client\",\"names\":[\"AsyncHttpxClientWrapper\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['AsyncHttpxClientWrapper']"}, {"id": "metagpt/provider/openai_api.py:module:openai.types"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types\",\"names\":[\"CompletionUsage\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['CompletionUsage']"}, {"id": "metagpt/provider/openai_api.py:module:openai.types.chat"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types.chat\",\"names\":[\"ChatCompletion\",\"ChatCompletionChunk\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['ChatCompletion', 'ChatCompletionChunk']"}, {"id": "metagpt/provider/openai_api.py:module:tenacity"}, {"id": "{\"lineno\":19,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['after_log', 'retry', 'retry_if_exception_type', 'stop_after_attempt', 'wait_random_exponential']"}, {"id": "metagpt/provider/openai_api.py:module:metagpt.config"}, {"id": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"Config\",\"LLMProviderEnum\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['CONFIG', 'Config', 'LLMProviderEnum']"}, {"id": "metagpt/provider/openai_api.py:module:metagpt.logs"}, {"id": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"log_llm_stream\",\"logger\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['log_llm_stream', 'logger']"}, {"id": "metagpt/provider/openai_api.py:module:metagpt.provider.base_llm"}, {"id": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['BaseLLM']"}, {"id": "metagpt/provider/openai_api.py:module:metagpt.provider.constant"}, {"id": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.constant\",\"names\":[\"GENERAL_FUNCTION_SCHEMA\",\"GENERAL_TOOL_CHOICE\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['GENERAL_FUNCTION_SCHEMA', 'GENERAL_TOOL_CHOICE']"}, {"id": "metagpt/provider/openai_api.py:module:metagpt.provider.llm_provider_registry"}, {"id": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['register_provider']"}, {"id": "metagpt/provider/openai_api.py:module:metagpt.schema"}, {"id": "{\"lineno\":32,\"end_lineno\":32,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['Message']"}, {"id": "metagpt/provider/openai_api.py:module:metagpt.utils.cost_manager"}, {"id": "{\"lineno\":33,\"end_lineno\":33,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"Costs\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['Costs']"}, {"id": "metagpt/provider/openai_api.py:module:metagpt.utils.exceptions"}, {"id": "{\"lineno\":34,\"end_lineno\":34,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['handle_exception']"}, {"id": "metagpt/provider/openai_api.py:module:metagpt.utils.token_counter"}, {"id": "{\"lineno\":35,\"end_lineno\":39,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"count_message_tokens\",\"count_string_tokens\",\"get_max_completion_tokens\"]}}"}, {"id": "metagpt/provider/openai_api.py:names:['count_message_tokens', 'count_string_tokens', 'get_max_completion_tokens']"}, {"id": "{\"lineno\":42,\"end_lineno\":50,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"log_and_reraise\"],\"properties\":{}}"}, {"id": "{\"lineno\":54,\"end_lineno\":235,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OpenAILLM\"],\"properties\":{}}"}, {"id": "metagpt/provider/spark_api.py:SparkLLM:__init__"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:__init__"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_close"}, {"id": "metagpt/provider/spark_api.py:GetMessageFromWeb:_run"}, {"id": "metagpt/provider/spark_api.py:ast.Constant:\n@File : spark_api.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":5,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@File : spark_api.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/provider/spark_api.py:_thread as thread"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Import\",\"tokens\":[\"_thread as thread\"],\"properties\":{}}"}, {"id": "metagpt/provider/spark_api.py:base64"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"id": "metagpt/provider/spark_api.py:datetime"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"datetime\"],\"properties\":{}}"}, {"id": "metagpt/provider/spark_api.py:hashlib"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"hashlib\"],\"properties\":{}}"}, {"id": "metagpt/provider/spark_api.py:hmac"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"hmac\"],\"properties\":{}}"}, {"id": "metagpt/provider/spark_api.py:json"}, {"id": "metagpt/provider/spark_api.py:ssl"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"ssl\"],\"properties\":{}}"}, {"id": "metagpt/provider/spark_api.py:module:time"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"time\",\"names\":[\"mktime\"]}}"}, {"id": "metagpt/provider/spark_api.py:names:['mktime']"}, {"id": "metagpt/provider/spark_api.py:module:urllib.parse"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urlencode\",\"urlparse\"]}}"}, {"id": "metagpt/provider/spark_api.py:names:['urlencode', 'urlparse']"}, {"id": "metagpt/provider/spark_api.py:module:wsgiref.handlers"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"wsgiref.handlers\",\"names\":[\"format_date_time\"]}}"}, {"id": "metagpt/provider/spark_api.py:names:['format_date_time']"}, {"id": "metagpt/provider/spark_api.py:websocket"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Import\",\"tokens\":[\"websocket\"],\"properties\":{}}"}, {"id": "metagpt/provider/spark_api.py:module:metagpt.config"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"id": "metagpt/provider/spark_api.py:names:['CONFIG', 'LLMProviderEnum']"}, {"id": "metagpt/provider/spark_api.py:module:metagpt.logs"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/provider/spark_api.py:names:['logger']"}, {"id": "metagpt/provider/spark_api.py:module:metagpt.provider.base_llm"}, {"id": "metagpt/provider/spark_api.py:names:['BaseLLM']"}, {"id": "metagpt/provider/spark_api.py:module:metagpt.provider.llm_provider_registry"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"id": "metagpt/provider/spark_api.py:names:['register_provider']"}, {"id": "{\"lineno\":26,\"end_lineno\":42,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SparkLLM\"],\"properties\":{}}"}, {"id": "{\"lineno\":45,\"end_lineno\":167,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GetMessageFromWeb\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor:_interpret_response_line"}, {"id": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor:_interpret_response"}, {"id": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor:_interpret_async_response"}, {"id": "metagpt/provider/general_api_requestor.py:parse_stream_helper"}, {"id": "metagpt/provider/general_api_requestor.py:parse_stream"}, {"id": "metagpt/provider/general_api_requestor.py:asyncio"}, {"id": "metagpt/provider/general_api_requestor.py:module:typing"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"AsyncGenerator\",\"Generator\",\"Iterator\",\"Tuple\",\"Union\"]}}"}, {"id": "metagpt/provider/general_api_requestor.py:names:['AsyncGenerator', 'Generator', 'Iterator', 'Tuple', 'Union']"}, {"id": "metagpt/provider/general_api_requestor.py:aiohttp"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_requestor.py:requests"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"requests\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_requestor.py:module:metagpt.logs"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/provider/general_api_requestor.py:names:['logger']"}, {"id": "metagpt/provider/general_api_requestor.py:module:metagpt.provider.general_api_base"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.general_api_base\",\"names\":[\"APIRequestor\"]}}"}, {"id": "metagpt/provider/general_api_requestor.py:names:['APIRequestor']"}, {"id": "{\"lineno\":15,\"end_lineno\":28,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"parse_stream_helper\"],\"properties\":{}}"}, {"id": "{\"lineno\":31,\"end_lineno\":35,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"parse_stream\"],\"properties\":{}}"}, {"id": "{\"lineno\":38,\"end_lineno\":106,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GeneralAPIRequestor\"],\"properties\":{}}"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:_user_msg"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:_assistant_msg"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:_system_msg"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:_system_msgs"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:_default_system_msg"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:_extract_assistant_rsp"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:acompletion"}, {"id": "metagpt/provider/base_llm.py:BaseLLM:acompletion_text"}, {"id": "metagpt/provider/base_llm.py:ast.Constant:\n@Time : 2023/5/5 23:04\n@Author : alexanderwu\n@File : base_llm.py\n@Desc : mashenquan, 2023/8/22. + try catch\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/5 23:04\\n@Author : alexanderwu\\n@File : base_llm.py\\n@Desc : mashenquan, 2023/8/22. + try catch\\n\"],\"properties\":{}}"}, {"id": "metagpt/provider/base_llm.py:json"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/provider/base_llm.py:module:abc"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\",\"abstractmethod\"]}}"}, {"id": "metagpt/provider/base_llm.py:names:['ABC', 'abstractmethod']"}, {"id": "metagpt/provider/base_llm.py:module:typing"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"id": "metagpt/provider/base_llm.py:names:['Optional']"}, {"id": "{\"lineno\":14,\"end_lineno\":128,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BaseLLM\"],\"properties\":{}}"}, {"id": "metagpt/provider/constant.py"}, {"id": "metagpt/provider/constant.py:GENERAL_FUNCTION_SCHEMA"}, {"id": "metagpt/provider/constant.py:GENERAL_TOOL_CHOICE"}, {"id": "{\"lineno\":3,\"end_lineno\":26,\"type_name\":\"ast.Assign\",\"tokens\":[\"GENERAL_FUNCTION_SCHEMA\"],\"properties\":{}}"}, {"id": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.Assign\",\"tokens\":[\"GENERAL_TOOL_CHOICE\"],\"properties\":{}}"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:__init__"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:__init_zhipuai"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:_const_kwargs"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:_update_costs"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:_achat_completion"}, {"id": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:_achat_completion_stream"}, {"id": "metagpt/provider/zhipuai_api.py:json"}, {"id": "metagpt/provider/zhipuai_api.py:module:enum"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"id": "metagpt/provider/zhipuai_api.py:names:['Enum']"}, {"id": "metagpt/provider/zhipuai_api.py:openai"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"openai\"],\"properties\":{}}"}, {"id": "metagpt/provider/zhipuai_api.py:zhipuai"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"zhipuai\"],\"properties\":{}}"}, {"id": "metagpt/provider/zhipuai_api.py:module:requests"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"requests\",\"names\":[\"ConnectionError\"]}}"}, {"id": "metagpt/provider/zhipuai_api.py:names:['ConnectionError']"}, {"id": "metagpt/provider/zhipuai_api.py:module:tenacity"}, {"id": "{\"lineno\":11,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"id": "metagpt/provider/zhipuai_api.py:names:['after_log', 'retry', 'retry_if_exception_type', 'stop_after_attempt', 'wait_random_exponential']"}, {"id": "metagpt/provider/zhipuai_api.py:module:metagpt.config"}, {"id": "metagpt/provider/zhipuai_api.py:names:['CONFIG', 'LLMProviderEnum']"}, {"id": "metagpt/provider/zhipuai_api.py:module:metagpt.logs"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"log_llm_stream\",\"logger\"]}}"}, {"id": "metagpt/provider/zhipuai_api.py:names:['log_llm_stream', 'logger']"}, {"id": "metagpt/provider/zhipuai_api.py:module:metagpt.provider.base_llm"}, {"id": "metagpt/provider/zhipuai_api.py:names:['BaseLLM']"}, {"id": "metagpt/provider/zhipuai_api.py:module:metagpt.provider.llm_provider_registry"}, {"id": "metagpt/provider/zhipuai_api.py:names:['register_provider']"}, {"id": "metagpt/provider/zhipuai_api.py:module:metagpt.provider.openai_api"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"log_and_reraise\"]}}"}, {"id": "metagpt/provider/zhipuai_api.py:names:['log_and_reraise']"}, {"id": "metagpt/provider/zhipuai_api.py:module:metagpt.provider.zhipuai.zhipu_model_api"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.zhipuai.zhipu_model_api\",\"names\":[\"ZhiPuModelAPI\"]}}"}, {"id": "metagpt/provider/zhipuai_api.py:names:['ZhiPuModelAPI']"}, {"id": "{\"lineno\":27,\"end_lineno\":31,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ZhiPuEvent\"],\"properties\":{}}"}, {"id": "{\"lineno\":35,\"end_lineno\":138,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ZhiPuAILLM\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_base.py:OpenAIResponse:__init__"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:__init__"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:request"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:arequest"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:_validate_headers"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:_prepare_request_raw"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:_interpret_response"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:_interpret_async_response"}, {"id": "metagpt/provider/general_api_base.py:APIRequestor:_interpret_response_line"}, {"id": "metagpt/provider/general_api_base.py:_console_log_level"}, {"id": "metagpt/provider/general_api_base.py:log_debug"}, {"id": "metagpt/provider/general_api_base.py:log_info"}, {"id": "metagpt/provider/general_api_base.py:log_warn"}, {"id": "metagpt/provider/general_api_base.py:logfmt"}, {"id": "metagpt/provider/general_api_base.py:_build_api_url"}, {"id": "metagpt/provider/general_api_base.py:_requests_proxies_arg"}, {"id": "metagpt/provider/general_api_base.py:_aiohttp_proxies_arg"}, {"id": "metagpt/provider/general_api_base.py:_make_session"}, {"id": "metagpt/provider/general_api_base.py:parse_stream_helper"}, {"id": "metagpt/provider/general_api_base.py:parse_stream"}, {"id": "metagpt/provider/general_api_base.py:parse_stream_async"}, {"id": "metagpt/provider/general_api_base.py:aiohttp_session"}, {"id": "metagpt/provider/general_api_base.py:logger"}, {"id": "metagpt/provider/general_api_base.py:TIMEOUT_SECS"}, {"id": "metagpt/provider/general_api_base.py:MAX_SESSION_LIFETIME_SECS"}, {"id": "metagpt/provider/general_api_base.py:MAX_CONNECTION_RETRIES"}, {"id": "metagpt/provider/general_api_base.py:_thread_context"}, {"id": "metagpt/provider/general_api_base.py:LLM_LOG"}, {"id": "metagpt/provider/general_api_base.py:api_key_to_header"}, {"id": "metagpt/provider/general_api_base.py:asyncio"}, {"id": "metagpt/provider/general_api_base.py:json"}, {"id": "metagpt/provider/general_api_base.py:os"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_base.py:platform"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"platform\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_base.py:re"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_base.py:sys"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"sys\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_base.py:threading"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"threading\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_base.py:time"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"time\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_base.py:module:contextlib"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"contextlib\",\"names\":[\"asynccontextmanager\"]}}"}, {"id": "metagpt/provider/general_api_base.py:names:['asynccontextmanager']"}, {"id": "metagpt/provider/general_api_base.py:module:enum"}, {"id": "metagpt/provider/general_api_base.py:names:['Enum']"}, {"id": "metagpt/provider/general_api_base.py:module:typing"}, {"id": "{\"lineno\":15,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"AsyncGenerator\",\"AsyncIterator\",\"Dict\",\"Iterator\",\"Optional\",\"Tuple\",\"Union\",\"overload\"]}}"}, {"id": "metagpt/provider/general_api_base.py:names:['AsyncGenerator', 'AsyncIterator', 'Dict', 'Iterator', 'Optional', 'Tuple', 'Union', 'overload']"}, {"id": "metagpt/provider/general_api_base.py:module:urllib.parse"}, {"id": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urlencode\",\"urlsplit\",\"urlunsplit\"]}}"}, {"id": "metagpt/provider/general_api_base.py:names:['urlencode', 'urlsplit', 'urlunsplit']"}, {"id": "metagpt/provider/general_api_base.py:aiohttp"}, {"id": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_base.py:requests"}, {"id": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.Import\",\"tokens\":[\"requests\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_base.py:sys.version_info"}, {"id": "{\"lineno\":30,\"end_lineno\":33,\"type_name\":\"ast.If\",\"tokens\":[\"sys.version_info\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_base.py:logging"}, {"id": "{\"lineno\":35,\"end_lineno\":35,\"type_name\":\"ast.Import\",\"tokens\":[\"logging\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_base.py:openai"}, {"id": "{\"lineno\":37,\"end_lineno\":37,\"type_name\":\"ast.Import\",\"tokens\":[\"openai\"],\"properties\":{}}"}, {"id": "metagpt/provider/general_api_base.py:module:openai"}, {"id": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai\",\"names\":[\"version\"]}}"}, {"id": "metagpt/provider/general_api_base.py:names:['version']"}, {"id": "{\"lineno\":40,\"end_lineno\":40,\"type_name\":\"ast.Assign\",\"tokens\":[\"logger\"],\"properties\":{}}"}, {"id": "{\"lineno\":42,\"end_lineno\":42,\"type_name\":\"ast.Assign\",\"tokens\":[\"TIMEOUT_SECS\"],\"properties\":{}}"}, {"id": "{\"lineno\":43,\"end_lineno\":43,\"type_name\":\"ast.Assign\",\"tokens\":[\"MAX_SESSION_LIFETIME_SECS\"],\"properties\":{}}"}, {"id": "{\"lineno\":44,\"end_lineno\":44,\"type_name\":\"ast.Assign\",\"tokens\":[\"MAX_CONNECTION_RETRIES\"],\"properties\":{}}"}, {"id": "{\"lineno\":47,\"end_lineno\":47,\"type_name\":\"ast.Assign\",\"tokens\":[\"_thread_context\"],\"properties\":{}}"}, {"id": "{\"lineno\":49,\"end_lineno\":49,\"type_name\":\"ast.Assign\",\"tokens\":[\"LLM_LOG\"],\"properties\":{}}"}, {"id": "{\"lineno\":52,\"end_lineno\":68,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ApiType\"],\"properties\":{}}"}, {"id": "{\"lineno\":71,\"end_lineno\":75,\"type_name\":\"ast.Assign\",\"tokens\":[\"api_key_to_header\"],\"properties\":{}}"}, {"id": "{\"lineno\":78,\"end_lineno\":82,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_console_log_level\"],\"properties\":{}}"}, {"id": "{\"lineno\":85,\"end_lineno\":89,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"log_debug\"],\"properties\":{}}"}, {"id": "{\"lineno\":92,\"end_lineno\":96,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"log_info\"],\"properties\":{}}"}, {"id": "{\"lineno\":99,\"end_lineno\":102,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"log_warn\"],\"properties\":{}}"}, {"id": "{\"lineno\":105,\"end_lineno\":120,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"logfmt\"],\"properties\":{}}"}, {"id": "{\"lineno\":123,\"end_lineno\":150,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OpenAIResponse\"],\"properties\":{}}"}, {"id": "{\"lineno\":153,\"end_lineno\":159,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_build_api_url\"],\"properties\":{}}"}, {"id": "{\"lineno\":162,\"end_lineno\":173,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_requests_proxies_arg\"],\"properties\":{}}"}, {"id": "{\"lineno\":176,\"end_lineno\":187,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_aiohttp_proxies_arg\"],\"properties\":{}}"}, {"id": "{\"lineno\":190,\"end_lineno\":196,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_make_session\"],\"properties\":{}}"}, {"id": "{\"lineno\":199,\"end_lineno\":210,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"parse_stream_helper\"],\"properties\":{}}"}, {"id": "{\"lineno\":213,\"end_lineno\":217,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"parse_stream\"],\"properties\":{}}"}, {"id": "{\"lineno\":220,\"end_lineno\":224,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"parse_stream_async\"],\"properties\":{}}"}, {"id": "{\"lineno\":227,\"end_lineno\":616,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"APIRequestor\"],\"properties\":{}}"}, {"id": "{\"lineno\":620,\"end_lineno\":622,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"aiohttp_session\"],\"properties\":{}}"}, {"id": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:__init__"}, {"id": "metagpt/provider/llm_provider_registry.py:register_provider"}, {"id": "metagpt/provider/llm_provider_registry.py:LLM_REGISTRY"}, {"id": "metagpt/provider/llm_provider_registry.py:ast.Constant:\n@Time : 2023/12/19 17:26\n@Author : alexanderwu\n@File : llm_provider_registry.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/19 17:26\\n@Author : alexanderwu\\n@File : llm_provider_registry.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/provider/llm_provider_registry.py:module:metagpt.config"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"LLMProviderEnum\"]}}"}, {"id": "metagpt/provider/llm_provider_registry.py:names:['LLMProviderEnum']"}, {"id": "{\"lineno\":11,\"end_lineno\":20,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"LLMProviderRegistry\"],\"properties\":{}}"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.Assign\",\"tokens\":[\"LLM_REGISTRY\"],\"properties\":{}}"}, {"id": "{\"lineno\":27,\"end_lineno\":34,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"register_provider\"],\"properties\":{}}"}, {"id": "metagpt/provider/metagpt_api.py:MetaGPTLLM:__init__"}, {"id": "metagpt/provider/metagpt_api.py:ast.Constant:\n@Time : 2023/5/5 23:08\n@Author : alexanderwu\n@File : metagpt_api.py\n@Desc : MetaGPT LLM provider.\n"}, {"id": "{\"lineno\":2,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/5 23:08\\n@Author : alexanderwu\\n@File : metagpt_api.py\\n@Desc : MetaGPT LLM provider.\\n\"],\"properties\":{}}"}, {"id": "metagpt/provider/metagpt_api.py:module:metagpt.config"}, {"id": "metagpt/provider/metagpt_api.py:names:['LLMProviderEnum']"}, {"id": "metagpt/provider/metagpt_api.py:module:metagpt.provider"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider\",\"names\":[\"OpenAILLM\"]}}"}, {"id": "metagpt/provider/metagpt_api.py:names:['OpenAILLM']"}, {"id": "metagpt/provider/metagpt_api.py:module:metagpt.provider.llm_provider_registry"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"id": "metagpt/provider/metagpt_api.py:names:['register_provider']"}, {"id": "{\"lineno\":14,\"end_lineno\":16,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MetaGPTLLM\"],\"properties\":{}}"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM:__init__"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM:__init_openllm"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM:_make_client_kwargs"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM:_calc_usage"}, {"id": "metagpt/provider/open_llm_api.py:OpenLLM:_update_costs"}, {"id": "metagpt/provider/open_llm_api.py:module:openai.types"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types\",\"names\":[\"CompletionUsage\"]}}"}, {"id": "metagpt/provider/open_llm_api.py:names:['CompletionUsage']"}, {"id": "metagpt/provider/open_llm_api.py:module:metagpt.config"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"Config\",\"LLMProviderEnum\"]}}"}, {"id": "metagpt/provider/open_llm_api.py:names:['CONFIG', 'Config', 'LLMProviderEnum']"}, {"id": "metagpt/provider/open_llm_api.py:module:metagpt.logs"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/provider/open_llm_api.py:names:['logger']"}, {"id": "metagpt/provider/open_llm_api.py:module:metagpt.provider.llm_provider_registry"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"id": "metagpt/provider/open_llm_api.py:names:['register_provider']"}, {"id": "metagpt/provider/open_llm_api.py:module:metagpt.provider.openai_api"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM\"]}}"}, {"id": "metagpt/provider/open_llm_api.py:names:['OpenAILLM']"}, {"id": "metagpt/provider/open_llm_api.py:module:metagpt.utils.cost_manager"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"CostManager\",\"Costs\"]}}"}, {"id": "metagpt/provider/open_llm_api.py:names:['CostManager', 'Costs']"}, {"id": "metagpt/provider/open_llm_api.py:module:metagpt.utils.token_counter"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"count_message_tokens\",\"count_string_tokens\"]}}"}, {"id": "metagpt/provider/open_llm_api.py:names:['count_message_tokens', 'count_string_tokens']"}, {"id": "{\"lineno\":15,\"end_lineno\":33,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OpenLLMCostManager\"],\"properties\":{}}"}, {"id": "{\"lineno\":37,\"end_lineno\":76,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OpenLLM\"],\"properties\":{}}"}, {"id": "metagpt/provider/human_provider.py:ast.Constant:\nFilename: MetaGPT/metagpt/provider/human_provider.py\nCreated Date: Wednesday, November 8th 2023, 11:55:46 pm\nAuthor: garylin2099\n"}, {"id": "{\"lineno\":1,\"end_lineno\":5,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\nFilename: MetaGPT/metagpt/provider/human_provider.py\\nCreated Date: Wednesday, November 8th 2023, 11:55:46 pm\\nAuthor: garylin2099\\n\"],\"properties\":{}}"}, {"id": "metagpt/provider/human_provider.py:module:typing"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"id": "metagpt/provider/human_provider.py:names:['Optional']"}, {"id": "metagpt/provider/human_provider.py:module:metagpt.logs"}, {"id": "metagpt/provider/human_provider.py:names:['logger']"}, {"id": "metagpt/provider/human_provider.py:module:metagpt.provider.base_llm"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"id": "metagpt/provider/human_provider.py:names:['BaseLLM']"}, {"id": "{\"lineno\":12,\"end_lineno\":40,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"HumanProvider\"],\"properties\":{}}"}, {"id": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient:_aread"}, {"id": "metagpt/provider/zhipuai/async_sse_client.py:module:zhipuai.utils.sse_client"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"zhipuai.utils.sse_client\",\"names\":[\"_FIELD_SEPARATOR\",\"Event\",\"SSEClient\"]}}"}, {"id": "metagpt/provider/zhipuai/async_sse_client.py:names:['_FIELD_SEPARATOR', 'Event', 'SSEClient']"}, {"id": "{\"lineno\":9,\"end_lineno\":75,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"AsyncSSEClient\"],\"properties\":{}}"}, {"id": "metagpt/provider/zhipuai/__init__.py"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:json"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:zhipuai"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"zhipuai\"],\"properties\":{}}"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:module:zhipuai.model_api.api"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"zhipuai.model_api.api\",\"names\":[\"InvokeType\",\"ModelAPI\"]}}"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:names:['InvokeType', 'ModelAPI']"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:module:zhipuai.utils.http_client"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"zhipuai.utils.http_client\",\"names\":[\"headers as zhipuai_default_headers\"]}}"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:names:['headers as zhipuai_default_headers']"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:module:metagpt.provider.general_api_requestor"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.general_api_requestor\",\"names\":[\"GeneralAPIRequestor\"]}}"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:names:['GeneralAPIRequestor']"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:module:metagpt.provider.zhipuai.async_sse_client"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.zhipuai.async_sse_client\",\"names\":[\"AsyncSSEClient\"]}}"}, {"id": "metagpt/provider/zhipuai/zhipu_model_api.py:names:['AsyncSSEClient']"}, {"id": "{\"lineno\":15,\"end_lineno\":75,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ZhiPuModelAPI\"],\"properties\":{}}"}, {"id": "metagpt/provider/postprocess/__init__.py"}, {"id": "metagpt/provider/postprocess/base_postprocess_plugin.py:module:typing"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"id": "metagpt/provider/postprocess/base_postprocess_plugin.py:names:['Union']"}, {"id": "metagpt/provider/postprocess/base_postprocess_plugin.py:module:metagpt.utils.repair_llm_raw_output"}, {"id": "{\"lineno\":7,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.repair_llm_raw_output\",\"names\":[\"RepairType\",\"extract_content_from_output\",\"repair_llm_raw_output\",\"retry_parse_json_text\"]}}"}, {"id": "metagpt/provider/postprocess/base_postprocess_plugin.py:names:['RepairType', 'extract_content_from_output', 'repair_llm_raw_output', 'retry_parse_json_text']"}, {"id": "{\"lineno\":15,\"end_lineno\":69,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BasePostProcessPlugin\"],\"properties\":{}}"}, {"id": "metagpt/provider/postprocess/llm_output_postprocess.py"}, {"id": "metagpt/provider/postprocess/llm_output_postprocess.py:llm_output_postprocess"}, {"id": "metagpt/provider/postprocess/llm_output_postprocess.py:module:typing"}, {"id": "metagpt/provider/postprocess/llm_output_postprocess.py:names:['Union']"}, {"id": "metagpt/provider/postprocess/llm_output_postprocess.py:module:metagpt.provider.postprocess.base_postprocess_plugin"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.postprocess.base_postprocess_plugin\",\"names\":[\"BasePostProcessPlugin\"]}}"}, {"id": "metagpt/provider/postprocess/llm_output_postprocess.py:names:['BasePostProcessPlugin']"}, {"id": "{\"lineno\":10,\"end_lineno\":20,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"llm_output_postprocess\"],\"properties\":{}}"}, {"id": "metagpt/management/__init__.py"}, {"id": "metagpt/management/__init__.py:ast.Constant:\n@Time : 2023/4/30 20:58\n@Author : alexanderwu\n@File : __init__.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/30 20:58\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/management/skill_manager.py:SkillManager:__init__"}, {"id": "metagpt/management/skill_manager.py:Skill"}, {"id": "metagpt/management/skill_manager.py:ast.Constant:\n@Time : 2023/6/5 01:44\n@Author : alexanderwu\n@File : skill_manager.py\n@Modified By: mashenquan, 2023/8/20. Remove useless `llm`\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/6/5 01:44\\n@Author : alexanderwu\\n@File : skill_manager.py\\n@Modified By: mashenquan, 2023/8/20. Remove useless `llm`\\n\"],\"properties\":{}}"}, {"id": "metagpt/management/skill_manager.py:module:metagpt.actions"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/management/skill_manager.py:names:['Action']"}, {"id": "metagpt/management/skill_manager.py:module:metagpt.const"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"PROMPT_PATH\"]}}"}, {"id": "metagpt/management/skill_manager.py:names:['PROMPT_PATH']"}, {"id": "metagpt/management/skill_manager.py:module:metagpt.document_store.chromadb_store"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.chromadb_store\",\"names\":[\"ChromaStore\"]}}"}, {"id": "metagpt/management/skill_manager.py:names:['ChromaStore']"}, {"id": "metagpt/management/skill_manager.py:module:metagpt.logs"}, {"id": "metagpt/management/skill_manager.py:names:['logger']"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.Assign\",\"tokens\":[\"Skill\"],\"properties\":{}}"}, {"id": "{\"lineno\":17,\"end_lineno\":74,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SkillManager\"],\"properties\":{}}"}, {"id": "metagpt/management/skill_manager.py:__name__:__main__"}, {"id": "{\"lineno\":77,\"end_lineno\":79,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/roles/engineer.py:Engineer:__init__"}, {"id": "metagpt/roles/engineer.py:Engineer:_parse_tasks"}, {"id": "metagpt/roles/engineer.py:Engineer:_act_sp_with_cr"}, {"id": "metagpt/roles/engineer.py:Engineer:_act"}, {"id": "metagpt/roles/engineer.py:Engineer:_act_write_code"}, {"id": "metagpt/roles/engineer.py:Engineer:_act_summarize"}, {"id": "metagpt/roles/engineer.py:Engineer:_is_pass"}, {"id": "metagpt/roles/engineer.py:Engineer:_think"}, {"id": "metagpt/roles/engineer.py:Engineer:_new_coding_context"}, {"id": "metagpt/roles/engineer.py:Engineer:_new_coding_doc"}, {"id": "metagpt/roles/engineer.py:Engineer:_new_code_actions"}, {"id": "metagpt/roles/engineer.py:Engineer:_new_summarize_actions"}, {"id": "metagpt/roles/engineer.py:IS_PASS_PROMPT"}, {"id": "metagpt/roles/engineer.py:ast.Constant:\n@Time : 2023/5/11 14:43\n@Author : alexanderwu\n@File : engineer.py\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116:\n 1. Modify the data type of the `cause_by` value in the `Message` to a string, and utilize the new message\n distribution feature for message filtering.\n 2. Consolidate message reception and processing logic within `_observe`.\n 3. Fix bug: Add logic for handling asynchronous message processing when messages are not ready.\n 4. Supplemented the external transmission of internal messages.\n@Modified By: mashenquan, 2023-11-27.\n 1. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\n 2. According to the design in Section 2.2.3.5.5 of RFC 135, add incremental iteration functionality.\n@Modified By: mashenquan, 2023-12-5. Enhance the workflow to navigate to WriteCode or QaEngineer based on the results\n of SummarizeCode.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":18,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:43\\n@Author : alexanderwu\\n@File : engineer.py\\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116:\\n 1. Modify the data type of the `cause_by` value in the `Message` to a string, and utilize the new message\\n distribution feature for message filtering.\\n 2. Consolidate message reception and processing logic within `_observe`.\\n 3. Fix bug: Add logic for handling asynchronous message processing when messages are not ready.\\n 4. Supplemented the external transmission of internal messages.\\n@Modified By: mashenquan, 2023-11-27.\\n 1. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\\n 2. According to the design in Section 2.2.3.5.5 of RFC 135, add incremental iteration functionality.\\n@Modified By: mashenquan, 2023-12-5. Enhance the workflow to navigate to WriteCode or QaEngineer based on the results\\n of SummarizeCode.\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/engineer.py:module:__future__"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['annotations']"}, {"id": "metagpt/roles/engineer.py:json"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/roles/engineer.py:module:collections"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"collections\",\"names\":[\"defaultdict\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['defaultdict']"}, {"id": "metagpt/roles/engineer.py:module:pathlib"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['Path']"}, {"id": "metagpt/roles/engineer.py:module:typing"}, {"id": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Set\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['Set']"}, {"id": "metagpt/roles/engineer.py:module:metagpt.actions"}, {"id": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"WriteCode\",\"WriteCodeReview\",\"WriteTasks\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['Action', 'WriteCode', 'WriteCodeReview', 'WriteTasks']"}, {"id": "metagpt/roles/engineer.py:module:metagpt.actions.fix_bug"}, {"id": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.fix_bug\",\"names\":[\"FixBug\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['FixBug']"}, {"id": "metagpt/roles/engineer.py:module:metagpt.actions.summarize_code"}, {"id": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.summarize_code\",\"names\":[\"SummarizeCode\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['SummarizeCode']"}, {"id": "metagpt/roles/engineer.py:module:metagpt.config"}, {"id": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['CONFIG']"}, {"id": "metagpt/roles/engineer.py:module:metagpt.const"}, {"id": "{\"lineno\":31,\"end_lineno\":36,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"CODE_SUMMARIES_FILE_REPO\",\"CODE_SUMMARIES_PDF_FILE_REPO\",\"SYSTEM_DESIGN_FILE_REPO\",\"TASK_FILE_REPO\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['CODE_SUMMARIES_FILE_REPO', 'CODE_SUMMARIES_PDF_FILE_REPO', 'SYSTEM_DESIGN_FILE_REPO', 'TASK_FILE_REPO']"}, {"id": "metagpt/roles/engineer.py:module:metagpt.logs"}, {"id": "{\"lineno\":37,\"end_lineno\":37,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['logger']"}, {"id": "metagpt/roles/engineer.py:module:metagpt.roles"}, {"id": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['Role']"}, {"id": "metagpt/roles/engineer.py:module:metagpt.schema"}, {"id": "{\"lineno\":39,\"end_lineno\":45,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodeSummarizeContext\",\"CodingContext\",\"Document\",\"Documents\",\"Message\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['CodeSummarizeContext', 'CodingContext', 'Document', 'Documents', 'Message']"}, {"id": "metagpt/roles/engineer.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":46,\"end_lineno\":46,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_name\",\"any_to_str\",\"any_to_str_set\"]}}"}, {"id": "metagpt/roles/engineer.py:names:['any_to_name', 'any_to_str', 'any_to_str_set']"}, {"id": "{\"lineno\":48,\"end_lineno\":55,\"type_name\":\"ast.Assign\",\"tokens\":[\"IS_PASS_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":58,\"end_lineno\":321,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Engineer\"],\"properties\":{}}"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer:__init__"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer:_write_test"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer:_run_code"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer:_debug_error"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer:_act"}, {"id": "metagpt/roles/qa_engineer.py:QaEngineer:_observe"}, {"id": "metagpt/roles/qa_engineer.py:ast.Constant:\n@Time : 2023/5/11 14:43\n@Author : alexanderwu\n@File : qa_engineer.py\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116, modify the data\n type of the `cause_by` value in the `Message` to a string, and utilize the new message filtering feature.\n@Modified By: mashenquan, 2023-11-27.\n 1. Following the think-act principle, solidify the task parameters when creating the\n WriteTest/RunCode/DebugError object, rather than passing them in when calling the run function.\n 2. According to Section 2.2.3.5.7 of RFC 135, change the method of transferring files from using the Message\n to using file references.\n@Modified By: mashenquan, 2023-12-5. Enhance the workflow to navigate to WriteCode or QaEngineer based on the results\n of SummarizeCode.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":16,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:43\\n@Author : alexanderwu\\n@File : qa_engineer.py\\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116, modify the data\\n type of the `cause_by` value in the `Message` to a string, and utilize the new message filtering feature.\\n@Modified By: mashenquan, 2023-11-27.\\n 1. Following the think-act principle, solidify the task parameters when creating the\\n WriteTest/RunCode/DebugError object, rather than passing them in when calling the run function.\\n 2. According to Section 2.2.3.5.7 of RFC 135, change the method of transferring files from using the Message\\n to using file references.\\n@Modified By: mashenquan, 2023-12-5. Enhance the workflow to navigate to WriteCode or QaEngineer based on the results\\n of SummarizeCode.\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/qa_engineer.py:module:metagpt.actions"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"DebugError\",\"RunCode\",\"WriteTest\"]}}"}, {"id": "metagpt/roles/qa_engineer.py:names:['DebugError', 'RunCode', 'WriteTest']"}, {"id": "metagpt/roles/qa_engineer.py:module:metagpt.actions.summarize_code"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.summarize_code\",\"names\":[\"SummarizeCode\"]}}"}, {"id": "metagpt/roles/qa_engineer.py:names:['SummarizeCode']"}, {"id": "metagpt/roles/qa_engineer.py:module:metagpt.config"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/roles/qa_engineer.py:names:['CONFIG']"}, {"id": "metagpt/roles/qa_engineer.py:module:metagpt.const"}, {"id": "{\"lineno\":22,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"MESSAGE_ROUTE_TO_NONE\",\"TEST_CODES_FILE_REPO\",\"TEST_OUTPUTS_FILE_REPO\"]}}"}, {"id": "metagpt/roles/qa_engineer.py:names:['MESSAGE_ROUTE_TO_NONE', 'TEST_CODES_FILE_REPO', 'TEST_OUTPUTS_FILE_REPO']"}, {"id": "metagpt/roles/qa_engineer.py:module:metagpt.logs"}, {"id": "metagpt/roles/qa_engineer.py:names:['logger']"}, {"id": "metagpt/roles/qa_engineer.py:module:metagpt.roles"}, {"id": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/roles/qa_engineer.py:names:['Role']"}, {"id": "metagpt/roles/qa_engineer.py:module:metagpt.schema"}, {"id": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\",\"Message\",\"RunCodeContext\",\"TestingContext\"]}}"}, {"id": "metagpt/roles/qa_engineer.py:names:['Document', 'Message', 'RunCodeContext', 'TestingContext']"}, {"id": "metagpt/roles/qa_engineer.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str_set\",\"parse_recipient\"]}}"}, {"id": "metagpt/roles/qa_engineer.py:names:['any_to_str_set', 'parse_recipient']"}, {"id": "metagpt/roles/qa_engineer.py:module:metagpt.utils.file_repository"}, {"id": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"id": "metagpt/roles/qa_engineer.py:names:['FileRepository']"}, {"id": "{\"lineno\":34,\"end_lineno\":186,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"QaEngineer\"],\"properties\":{}}"}, {"id": "metagpt/roles/teacher.py:Teacher:__init__"}, {"id": "metagpt/roles/teacher.py:Teacher:_think"}, {"id": "metagpt/roles/teacher.py:Teacher:_react"}, {"id": "metagpt/roles/teacher.py:ast.Constant:\n@Time : 2023/7/27\n@Author : mashenquan\n@File : teacher.py\n@Desc : Used by Agent Store\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false indicates that further reasoning cannot continue.\n\n"}, {"id": "{\"lineno\":3,\"end_lineno\":10,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/7/27\\n@Author : mashenquan\\n@File : teacher.py\\n@Desc : Used by Agent Store\\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false indicates that further reasoning cannot continue.\\n\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/teacher.py:re"}, {"id": "metagpt/roles/teacher.py:aiofiles"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"id": "metagpt/roles/teacher.py:module:metagpt.actions"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"UserRequirement\"]}}"}, {"id": "metagpt/roles/teacher.py:names:['UserRequirement']"}, {"id": "metagpt/roles/teacher.py:module:metagpt.actions.write_teaching_plan"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_teaching_plan\",\"names\":[\"TeachingPlanBlock\",\"WriteTeachingPlanPart\"]}}"}, {"id": "metagpt/roles/teacher.py:names:['TeachingPlanBlock', 'WriteTeachingPlanPart']"}, {"id": "metagpt/roles/teacher.py:module:metagpt.config"}, {"id": "metagpt/roles/teacher.py:names:['CONFIG']"}, {"id": "metagpt/roles/teacher.py:module:metagpt.logs"}, {"id": "metagpt/roles/teacher.py:names:['logger']"}, {"id": "metagpt/roles/teacher.py:module:metagpt.roles"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/roles/teacher.py:names:['Role']"}, {"id": "metagpt/roles/teacher.py:module:metagpt.schema"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"id": "metagpt/roles/teacher.py:names:['Message']"}, {"id": "metagpt/roles/teacher.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str\"]}}"}, {"id": "metagpt/roles/teacher.py:names:['any_to_str']"}, {"id": "{\"lineno\":25,\"end_lineno\":118,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Teacher\"],\"properties\":{}}"}, {"id": "metagpt/roles/product_manager.py:ProductManager:__init__"}, {"id": "metagpt/roles/product_manager.py:ProductManager:_think"}, {"id": "metagpt/roles/product_manager.py:ProductManager:_observe"}, {"id": "metagpt/roles/product_manager.py:ast.Constant:\n@Time : 2023/5/11 14:43\n@Author : alexanderwu\n@File : product_manager.py\n@Modified By: mashenquan, 2023/11/27. Add `PrepareDocuments` action according to Section 2.2.3.5.1 of RFC 135.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:43\\n@Author : alexanderwu\\n@File : product_manager.py\\n@Modified By: mashenquan, 2023/11/27. Add `PrepareDocuments` action according to Section 2.2.3.5.1 of RFC 135.\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/product_manager.py:module:metagpt.actions"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"UserRequirement\",\"WritePRD\"]}}"}, {"id": "metagpt/roles/product_manager.py:names:['UserRequirement', 'WritePRD']"}, {"id": "metagpt/roles/product_manager.py:module:metagpt.actions.prepare_documents"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.prepare_documents\",\"names\":[\"PrepareDocuments\"]}}"}, {"id": "metagpt/roles/product_manager.py:names:['PrepareDocuments']"}, {"id": "metagpt/roles/product_manager.py:module:metagpt.config"}, {"id": "metagpt/roles/product_manager.py:names:['CONFIG']"}, {"id": "metagpt/roles/product_manager.py:module:metagpt.roles.role"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/roles/product_manager.py:names:['Role']"}, {"id": "metagpt/roles/product_manager.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_name\"]}}"}, {"id": "metagpt/roles/product_manager.py:names:['any_to_name']"}, {"id": "{\"lineno\":17,\"end_lineno\":57,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ProductManager\"],\"properties\":{}}"}, {"id": "metagpt/roles/sales.py:Sales:__init__"}, {"id": "metagpt/roles/sales.py:Sales:_set_store"}, {"id": "metagpt/roles/sales.py:ast.Constant:\n@Time : 2023/5/25 17:21\n@Author : alexanderwu\n@File : sales.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/25 17:21\\n@Author : alexanderwu\\n@File : sales.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/sales.py:module:typing"}, {"id": "metagpt/roles/sales.py:names:['Optional']"}, {"id": "metagpt/roles/sales.py:module:pydantic"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"id": "metagpt/roles/sales.py:names:['Field']"}, {"id": "metagpt/roles/sales.py:module:metagpt.actions"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"SearchAndSummarize\",\"UserRequirement\"]}}"}, {"id": "metagpt/roles/sales.py:names:['SearchAndSummarize', 'UserRequirement']"}, {"id": "metagpt/roles/sales.py:module:metagpt.document_store.base_store"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.base_store\",\"names\":[\"BaseStore\"]}}"}, {"id": "metagpt/roles/sales.py:names:['BaseStore']"}, {"id": "metagpt/roles/sales.py:module:metagpt.roles"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/roles/sales.py:names:['Role']"}, {"id": "metagpt/roles/sales.py:module:metagpt.tools"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\"]}}"}, {"id": "metagpt/roles/sales.py:names:['SearchEngineType']"}, {"id": "{\"lineno\":19,\"end_lineno\":42,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Sales\"],\"properties\":{}}"}, {"id": "metagpt/roles/searcher.py:Searcher:__init__"}, {"id": "metagpt/roles/searcher.py:Searcher:_act_sp"}, {"id": "metagpt/roles/searcher.py:Searcher:_act"}, {"id": "metagpt/roles/searcher.py:ast.Constant:\n@Time : 2023/5/23 17:25\n@Author : alexanderwu\n@File : searcher.py\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116, change the data type of\n the `cause_by` value in the `Message` to a string to support the new message distribution feature.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/23 17:25\\n@Author : alexanderwu\\n@File : searcher.py\\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116, change the data type of\\n the `cause_by` value in the `Message` to a string to support the new message distribution feature.\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/searcher.py:module:pydantic"}, {"id": "metagpt/roles/searcher.py:names:['Field']"}, {"id": "metagpt/roles/searcher.py:module:metagpt.actions"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"ActionOutput\",\"SearchAndSummarize\"]}}"}, {"id": "metagpt/roles/searcher.py:names:['ActionOutput', 'SearchAndSummarize']"}, {"id": "metagpt/roles/searcher.py:module:metagpt.actions.action_node"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"id": "metagpt/roles/searcher.py:names:['ActionNode']"}, {"id": "metagpt/roles/searcher.py:module:metagpt.logs"}, {"id": "metagpt/roles/searcher.py:names:['logger']"}, {"id": "metagpt/roles/searcher.py:module:metagpt.roles"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/roles/searcher.py:names:['Role']"}, {"id": "metagpt/roles/searcher.py:module:metagpt.schema"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"id": "metagpt/roles/searcher.py:names:['Message']"}, {"id": "metagpt/roles/searcher.py:module:metagpt.tools"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\"]}}"}, {"id": "metagpt/roles/searcher.py:names:['SearchEngineType']"}, {"id": "{\"lineno\":21,\"end_lineno\":77,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Searcher\"],\"properties\":{}}"}, {"id": "metagpt/roles/assistant.py:Assistant:__init__"}, {"id": "metagpt/roles/assistant.py:Assistant:_plan"}, {"id": "metagpt/roles/assistant.py:ast.Constant:\n@Time : 2023/8/7\n@Author : mashenquan\n@File : assistant.py\n@Desc : I am attempting to incorporate certain symbol concepts from UML into MetaGPT, enabling it to have the\n ability to freely construct flows through symbol concatenation. Simultaneously, I am also striving to\n make these symbols configurable and standardized, making the process of building flows more convenient.\n For more about `fork` node in activity diagrams, see: `https://www.uml-diagrams.org/activity-diagrams.html`\n This file defines a `fork` style meta role capable of generating arbitrary roles at runtime based on a\n configuration file.\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false\n indicates that further reasoning cannot continue.\n\n"}, {"id": "{\"lineno\":3,\"end_lineno\":16,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/7\\n@Author : mashenquan\\n@File : assistant.py\\n@Desc : I am attempting to incorporate certain symbol concepts from UML into MetaGPT, enabling it to have the\\n ability to freely construct flows through symbol concatenation. Simultaneously, I am also striving to\\n make these symbols configurable and standardized, making the process of building flows more convenient.\\n For more about `fork` node in activity diagrams, see: `https://www.uml-diagrams.org/activity-diagrams.html`\\n This file defines a `fork` style meta role capable of generating arbitrary roles at runtime based on a\\n configuration file.\\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false\\n indicates that further reasoning cannot continue.\\n\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/assistant.py:module:enum"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"id": "metagpt/roles/assistant.py:names:['Enum']"}, {"id": "metagpt/roles/assistant.py:module:pathlib"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/roles/assistant.py:names:['Path']"}, {"id": "metagpt/roles/assistant.py:module:typing"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"id": "metagpt/roles/assistant.py:names:['Optional']"}, {"id": "metagpt/roles/assistant.py:module:pydantic"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"id": "metagpt/roles/assistant.py:names:['Field']"}, {"id": "metagpt/roles/assistant.py:module:metagpt.actions.skill_action"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.skill_action\",\"names\":[\"ArgumentsParingAction\",\"SkillAction\"]}}"}, {"id": "metagpt/roles/assistant.py:names:['ArgumentsParingAction', 'SkillAction']"}, {"id": "metagpt/roles/assistant.py:module:metagpt.actions.talk_action"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.talk_action\",\"names\":[\"TalkAction\"]}}"}, {"id": "metagpt/roles/assistant.py:names:['TalkAction']"}, {"id": "metagpt/roles/assistant.py:module:metagpt.config"}, {"id": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/roles/assistant.py:names:['CONFIG']"}, {"id": "metagpt/roles/assistant.py:module:metagpt.learn.skill_loader"}, {"id": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.skill_loader\",\"names\":[\"SkillsDeclaration\"]}}"}, {"id": "metagpt/roles/assistant.py:names:['SkillsDeclaration']"}, {"id": "metagpt/roles/assistant.py:module:metagpt.logs"}, {"id": "metagpt/roles/assistant.py:names:['logger']"}, {"id": "metagpt/roles/assistant.py:module:metagpt.memory.brain_memory"}, {"id": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory.brain_memory\",\"names\":[\"BrainMemory\"]}}"}, {"id": "metagpt/roles/assistant.py:names:['BrainMemory']"}, {"id": "metagpt/roles/assistant.py:module:metagpt.roles"}, {"id": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/roles/assistant.py:names:['Role']"}, {"id": "metagpt/roles/assistant.py:module:metagpt.schema"}, {"id": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"id": "metagpt/roles/assistant.py:names:['Message']"}, {"id": "{\"lineno\":33,\"end_lineno\":35,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MessageType\"],\"properties\":{}}"}, {"id": "{\"lineno\":38,\"end_lineno\":139,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Assistant\"],\"properties\":{}}"}, {"id": "metagpt/roles/__init__.py"}, {"id": "metagpt/roles/__init__.py:__all__"}, {"id": "metagpt/roles/__init__.py:ast.Constant:\n@Time : 2023/5/11 14:43\n@Author : alexanderwu\n@File : __init__.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:43\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/__init__.py:module:metagpt.roles.role"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/roles/__init__.py:names:['Role']"}, {"id": "metagpt/roles/__init__.py:module:metagpt.roles.architect"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.architect\",\"names\":[\"Architect\"]}}"}, {"id": "metagpt/roles/__init__.py:names:['Architect']"}, {"id": "metagpt/roles/__init__.py:module:metagpt.roles.project_manager"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.project_manager\",\"names\":[\"ProjectManager\"]}}"}, {"id": "metagpt/roles/__init__.py:names:['ProjectManager']"}, {"id": "metagpt/roles/__init__.py:module:metagpt.roles.product_manager"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.product_manager\",\"names\":[\"ProductManager\"]}}"}, {"id": "metagpt/roles/__init__.py:names:['ProductManager']"}, {"id": "metagpt/roles/__init__.py:module:metagpt.roles.engineer"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.engineer\",\"names\":[\"Engineer\"]}}"}, {"id": "metagpt/roles/__init__.py:names:['Engineer']"}, {"id": "metagpt/roles/__init__.py:module:metagpt.roles.qa_engineer"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.qa_engineer\",\"names\":[\"QaEngineer\"]}}"}, {"id": "metagpt/roles/__init__.py:names:['QaEngineer']"}, {"id": "metagpt/roles/__init__.py:module:metagpt.roles.searcher"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.searcher\",\"names\":[\"Searcher\"]}}"}, {"id": "metagpt/roles/__init__.py:names:['Searcher']"}, {"id": "metagpt/roles/__init__.py:module:metagpt.roles.sales"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.sales\",\"names\":[\"Sales\"]}}"}, {"id": "metagpt/roles/__init__.py:names:['Sales']"}, {"id": "metagpt/roles/__init__.py:module:metagpt.roles.customer_service"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.customer_service\",\"names\":[\"CustomerService\"]}}"}, {"id": "metagpt/roles/__init__.py:names:['CustomerService']"}, {"id": "{\"lineno\":20,\"end_lineno\":30,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"id": "metagpt/roles/role.py:RoleContext:check"}, {"id": "metagpt/roles/role.py:Role:__init__"}, {"id": "metagpt/roles/role.py:Role:_reset"}, {"id": "metagpt/roles/role.py:Role:_setting"}, {"id": "metagpt/roles/role.py:Role:_init_action_system_message"}, {"id": "metagpt/roles/role.py:Role:_init_actions"}, {"id": "metagpt/roles/role.py:Role:_set_react_mode"}, {"id": "metagpt/roles/role.py:Role:_watch"}, {"id": "metagpt/roles/role.py:Role:_set_state"}, {"id": "metagpt/roles/role.py:Role:_get_prefix"}, {"id": "metagpt/roles/role.py:Role:_think"}, {"id": "metagpt/roles/role.py:Role:_act"}, {"id": "metagpt/roles/role.py:Role:_observe"}, {"id": "metagpt/roles/role.py:Role:_react"}, {"id": "metagpt/roles/role.py:Role:_act_by_order"}, {"id": "metagpt/roles/role.py:Role:_plan_and_act"}, {"id": "metagpt/roles/role.py:PREFIX_TEMPLATE"}, {"id": "metagpt/roles/role.py:CONSTRAINT_TEMPLATE"}, {"id": "metagpt/roles/role.py:STATE_TEMPLATE"}, {"id": "metagpt/roles/role.py:ROLE_TEMPLATE"}, {"id": "metagpt/roles/role.py:ast.Constant:\n@Time : 2023/5/11 14:42\n@Author : alexanderwu\n@File : role.py\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false indicates that further reasoning cannot continue.\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116:\n 1. Merge the `recv` functionality into the `_observe` function. Future message reading operations will be\n consolidated within the `_observe` function.\n 2. Standardize the message filtering for string label matching. Role objects can access the message labels\n they've subscribed to through the `subscribed_tags` property.\n 3. Move the message receive buffer from the global variable `self.rc.env.memory` to the role's private variable\n `self.rc.msg_buffer` for easier message identification and asynchronous appending of messages.\n 4. Standardize the way messages are passed: `publish_message` sends messages out, while `put_message` places\n messages into the Role object's private message receive buffer. There are no other message transmit methods.\n 5. Standardize the parameters for the `run` function: the `test_message` parameter is used for testing purposes\n only. In the normal workflow, you should use `publish_message` or `put_message` to transmit messages.\n@Modified By: mashenquan, 2023-11-4. According to the routing feature plan in Chapter 2.2.3.2 of RFC 113, the routing\n functionality is to be consolidated into the `Environment` class.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":21,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:42\\n@Author : alexanderwu\\n@File : role.py\\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false indicates that further reasoning cannot continue.\\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116:\\n 1. Merge the `recv` functionality into the `_observe` function. Future message reading operations will be\\n consolidated within the `_observe` function.\\n 2. Standardize the message filtering for string label matching. Role objects can access the message labels\\n they've subscribed to through the `subscribed_tags` property.\\n 3. Move the message receive buffer from the global variable `self.rc.env.memory` to the role's private variable\\n `self.rc.msg_buffer` for easier message identification and asynchronous appending of messages.\\n 4. Standardize the way messages are passed: `publish_message` sends messages out, while `put_message` places\\n messages into the Role object's private message receive buffer. There are no other message transmit methods.\\n 5. Standardize the parameters for the `run` function: the `test_message` parameter is used for testing purposes\\n only. In the normal workflow, you should use `publish_message` or `put_message` to transmit messages.\\n@Modified By: mashenquan, 2023-11-4. According to the routing feature plan in Chapter 2.2.3.2 of RFC 113, the routing\\n functionality is to be consolidated into the `Environment` class.\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/role.py:module:__future__"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/roles/role.py:names:['annotations']"}, {"id": "metagpt/roles/role.py:module:enum"}, {"id": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"id": "metagpt/roles/role.py:names:['Enum']"}, {"id": "metagpt/roles/role.py:module:pathlib"}, {"id": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/roles/role.py:names:['Path']"}, {"id": "metagpt/roles/role.py:module:typing"}, {"id": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Iterable\",\"Optional\",\"Set\",\"Type\"]}}"}, {"id": "metagpt/roles/role.py:names:['Any', 'Iterable', 'Optional', 'Set', 'Type']"}, {"id": "metagpt/roles/role.py:module:pydantic"}, {"id": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"SerializeAsAny\",\"model_validator\"]}}"}, {"id": "metagpt/roles/role.py:names:['BaseModel', 'ConfigDict', 'Field', 'SerializeAsAny', 'model_validator']"}, {"id": "metagpt/roles/role.py:module:metagpt.actions"}, {"id": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"ActionOutput\"]}}"}, {"id": "metagpt/roles/role.py:names:['Action', 'ActionOutput']"}, {"id": "metagpt/roles/role.py:module:metagpt.actions.action_node"}, {"id": "{\"lineno\":32,\"end_lineno\":32,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"id": "metagpt/roles/role.py:names:['ActionNode']"}, {"id": "metagpt/roles/role.py:module:metagpt.actions.add_requirement"}, {"id": "{\"lineno\":33,\"end_lineno\":33,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.add_requirement\",\"names\":[\"UserRequirement\"]}}"}, {"id": "metagpt/roles/role.py:names:['UserRequirement']"}, {"id": "metagpt/roles/role.py:module:metagpt.const"}, {"id": "{\"lineno\":34,\"end_lineno\":34,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"SERDESER_PATH\"]}}"}, {"id": "metagpt/roles/role.py:names:['SERDESER_PATH']"}, {"id": "metagpt/roles/role.py:module:metagpt.llm"}, {"id": "{\"lineno\":35,\"end_lineno\":35,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\",\"HumanProvider\"]}}"}, {"id": "metagpt/roles/role.py:names:['LLM', 'HumanProvider']"}, {"id": "metagpt/roles/role.py:module:metagpt.logs"}, {"id": "{\"lineno\":36,\"end_lineno\":36,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/roles/role.py:names:['logger']"}, {"id": "metagpt/roles/role.py:module:metagpt.memory"}, {"id": "{\"lineno\":37,\"end_lineno\":37,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory\",\"names\":[\"Memory\"]}}"}, {"id": "metagpt/roles/role.py:names:['Memory']"}, {"id": "metagpt/roles/role.py:module:metagpt.provider.base_llm"}, {"id": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"id": "metagpt/roles/role.py:names:['BaseLLM']"}, {"id": "metagpt/roles/role.py:module:metagpt.schema"}, {"id": "{\"lineno\":39,\"end_lineno\":39,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\",\"MessageQueue\",\"SerializationMixin\"]}}"}, {"id": "metagpt/roles/role.py:names:['Message', 'MessageQueue', 'SerializationMixin']"}, {"id": "metagpt/roles/role.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":40,\"end_lineno\":47,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_name\",\"any_to_str\",\"import_class\",\"read_json_file\",\"role_raise_decorator\",\"write_json_file\"]}}"}, {"id": "metagpt/roles/role.py:names:['any_to_name', 'any_to_str', 'import_class', 'read_json_file', 'role_raise_decorator', 'write_json_file']"}, {"id": "metagpt/roles/role.py:module:metagpt.utils.repair_llm_raw_output"}, {"id": "{\"lineno\":48,\"end_lineno\":48,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.repair_llm_raw_output\",\"names\":[\"extract_state_value_from_output\"]}}"}, {"id": "metagpt/roles/role.py:names:['extract_state_value_from_output']"}, {"id": "{\"lineno\":50,\"end_lineno\":50,\"type_name\":\"ast.Assign\",\"tokens\":[\"PREFIX_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":51,\"end_lineno\":51,\"type_name\":\"ast.Assign\",\"tokens\":[\"CONSTRAINT_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":53,\"end_lineno\":68,\"type_name\":\"ast.Assign\",\"tokens\":[\"STATE_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":70,\"end_lineno\":78,\"type_name\":\"ast.Assign\",\"tokens\":[\"ROLE_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":81,\"end_lineno\":88,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RoleReactMode\"],\"properties\":{}}"}, {"id": "{\"lineno\":91,\"end_lineno\":126,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RoleContext\"],\"properties\":{}}"}, {"id": "{\"lineno\":129,\"end_lineno\":510,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Role\"],\"properties\":{}}"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:__init__"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:_act"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:ast.Constant:\n@Time : 2023/9/21 14:10:05\n@Author : Stitch-z\n@File : invoice_ocr_assistant.py\n"}, {"id": "{\"lineno\":4,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/21 14:10:05\\n@Author : Stitch-z\\n@File : invoice_ocr_assistant.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:json"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:module:pathlib"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:names:['Path']"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:module:typing"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:names:['Optional']"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:pandas as pd"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.Import\",\"tokens\":[\"pandas as pd\"],\"properties\":{}}"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:module:pydantic"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:names:['BaseModel']"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:module:metagpt.actions.invoice_ocr"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.invoice_ocr\",\"names\":[\"GenerateTable\",\"InvoiceOCR\",\"ReplyQuestion\"]}}"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:names:['GenerateTable', 'InvoiceOCR', 'ReplyQuestion']"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:module:metagpt.prompts.invoice_ocr"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.prompts.invoice_ocr\",\"names\":[\"INVOICE_OCR_SUCCESS\"]}}"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:names:['INVOICE_OCR_SUCCESS']"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:module:metagpt.roles.role"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\",\"RoleReactMode\"]}}"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:names:['Role', 'RoleReactMode']"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:module:metagpt.schema"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"id": "metagpt/roles/invoice_ocr_assistant.py:names:['Message']"}, {"id": "{\"lineno\":23,\"end_lineno\":24,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"InvoicePath\"],\"properties\":{}}"}, {"id": "{\"lineno\":27,\"end_lineno\":28,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OCRResults\"],\"properties\":{}}"}, {"id": "{\"lineno\":31,\"end_lineno\":32,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"InvoiceData\"],\"properties\":{}}"}, {"id": "{\"lineno\":35,\"end_lineno\":36,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ReplyData\"],\"properties\":{}}"}, {"id": "{\"lineno\":39,\"end_lineno\":112,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"InvoiceOCRAssistant\"],\"properties\":{}}"}, {"id": "metagpt/roles/architect.py:Architect:__init__"}, {"id": "metagpt/roles/architect.py:ast.Constant:\n@Time : 2023/5/11 14:43\n@Author : alexanderwu\n@File : architect.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:43\\n@Author : alexanderwu\\n@File : architect.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/architect.py:module:metagpt.actions"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"WritePRD\"]}}"}, {"id": "metagpt/roles/architect.py:names:['WritePRD']"}, {"id": "metagpt/roles/architect.py:module:metagpt.actions.design_api"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api\",\"names\":[\"WriteDesign\"]}}"}, {"id": "metagpt/roles/architect.py:names:['WriteDesign']"}, {"id": "metagpt/roles/architect.py:module:metagpt.roles.role"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/roles/architect.py:names:['Role']"}, {"id": "{\"lineno\":14,\"end_lineno\":39,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Architect\"],\"properties\":{}}"}, {"id": "metagpt/roles/customer_service.py:DESC"}, {"id": "metagpt/roles/customer_service.py:ast.Constant:\n@Time : 2023/5/25 17:21\n@Author : alexanderwu\n@File : sales.py\n"}, {"id": "metagpt/roles/customer_service.py:module:typing"}, {"id": "metagpt/roles/customer_service.py:names:['Optional']"}, {"id": "metagpt/roles/customer_service.py:module:pydantic"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"id": "metagpt/roles/customer_service.py:names:['Field']"}, {"id": "metagpt/roles/customer_service.py:module:metagpt.document_store.base_store"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.base_store\",\"names\":[\"BaseStore\"]}}"}, {"id": "metagpt/roles/customer_service.py:names:['BaseStore']"}, {"id": "metagpt/roles/customer_service.py:module:metagpt.roles"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Sales\"]}}"}, {"id": "metagpt/roles/customer_service.py:names:['Sales']"}, {"id": "{\"lineno\":15,\"end_lineno\":24,\"type_name\":\"ast.Assign\",\"tokens\":[\"DESC\"],\"properties\":{}}"}, {"id": "{\"lineno\":27,\"end_lineno\":31,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CustomerService\"],\"properties\":{}}"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:__init__"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:_think"}, {"id": "metagpt/roles/sk_agent.py:SkAgent:_act"}, {"id": "metagpt/roles/sk_agent.py:ast.Constant:\n@Time : 2023/9/13 12:23\n@Author : femto Zheng\n@File : sk_agent.py\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116, utilize the new message\n distribution feature for message filtering.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/13 12:23\\n@Author : femto Zheng\\n@File : sk_agent.py\\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116, utilize the new message\\n distribution feature for message filtering.\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/sk_agent.py:module:typing"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Callable\",\"Union\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['Any', 'Callable', 'Union']"}, {"id": "metagpt/roles/sk_agent.py:module:pydantic"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['Field']"}, {"id": "metagpt/roles/sk_agent.py:module:semantic_kernel"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel\",\"names\":[\"Kernel\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['Kernel']"}, {"id": "metagpt/roles/sk_agent.py:module:semantic_kernel.planning"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.planning\",\"names\":[\"SequentialPlanner\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['SequentialPlanner']"}, {"id": "metagpt/roles/sk_agent.py:module:semantic_kernel.planning.action_planner.action_planner"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.planning.action_planner.action_planner\",\"names\":[\"ActionPlanner\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['ActionPlanner']"}, {"id": "metagpt/roles/sk_agent.py:module:semantic_kernel.planning.basic_planner"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.planning.basic_planner\",\"names\":[\"BasicPlanner\",\"Plan\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['BasicPlanner', 'Plan']"}, {"id": "metagpt/roles/sk_agent.py:module:metagpt.actions"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"UserRequirement\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['UserRequirement']"}, {"id": "metagpt/roles/sk_agent.py:module:metagpt.actions.execute_task"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.execute_task\",\"names\":[\"ExecuteTask\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['ExecuteTask']"}, {"id": "metagpt/roles/sk_agent.py:module:metagpt.llm"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['LLM']"}, {"id": "metagpt/roles/sk_agent.py:module:metagpt.logs"}, {"id": "metagpt/roles/sk_agent.py:names:['logger']"}, {"id": "metagpt/roles/sk_agent.py:module:metagpt.provider.base_llm"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['BaseLLM']"}, {"id": "metagpt/roles/sk_agent.py:module:metagpt.roles"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['Role']"}, {"id": "metagpt/roles/sk_agent.py:module:metagpt.schema"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['Message']"}, {"id": "metagpt/roles/sk_agent.py:module:metagpt.utils.make_sk_kernel"}, {"id": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.make_sk_kernel\",\"names\":[\"make_sk_kernel\"]}}"}, {"id": "metagpt/roles/sk_agent.py:names:['make_sk_kernel']"}, {"id": "{\"lineno\":28,\"end_lineno\":90,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SkAgent\"],\"properties\":{}}"}, {"id": "metagpt/roles/prompt.py:PREFIX"}, {"id": "metagpt/roles/prompt.py:FORMAT_INSTRUCTIONS"}, {"id": "metagpt/roles/prompt.py:SUFFIX"}, {"id": "metagpt/roles/prompt.py:ast.Constant:\n@Time : 2023/5/18 22:43\n@Author : alexanderwu\n@File : prompt.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/18 22:43\\n@Author : alexanderwu\\n@File : prompt.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/prompt.py:module:enum"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"id": "metagpt/roles/prompt.py:names:['Enum']"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Assign\",\"tokens\":[\"PREFIX\"],\"properties\":{}}"}, {"id": "{\"lineno\":11,\"end_lineno\":20,\"type_name\":\"ast.Assign\",\"tokens\":[\"FORMAT_INSTRUCTIONS\"],\"properties\":{}}"}, {"id": "{\"lineno\":21,\"end_lineno\":24,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUFFIX\"],\"properties\":{}}"}, {"id": "{\"lineno\":27,\"end_lineno\":46,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"PromptString\"],\"properties\":{}}"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:__init__"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:_handle_directory"}, {"id": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:_act"}, {"id": "metagpt/roles/tutorial_assistant.py:ast.Constant:\n@Time : 2023/9/4 15:40:40\n@Author : Stitch-z\n@File : tutorial_assistant.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 15:40:40\\n@Author : Stitch-z\\n@File : tutorial_assistant.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/tutorial_assistant.py:module:datetime"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"id": "metagpt/roles/tutorial_assistant.py:names:['datetime']"}, {"id": "metagpt/roles/tutorial_assistant.py:module:typing"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\"]}}"}, {"id": "metagpt/roles/tutorial_assistant.py:names:['Dict']"}, {"id": "metagpt/roles/tutorial_assistant.py:module:metagpt.actions.write_tutorial"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_tutorial\",\"names\":[\"WriteContent\",\"WriteDirectory\"]}}"}, {"id": "metagpt/roles/tutorial_assistant.py:names:['WriteContent', 'WriteDirectory']"}, {"id": "metagpt/roles/tutorial_assistant.py:module:metagpt.const"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"TUTORIAL_PATH\"]}}"}, {"id": "metagpt/roles/tutorial_assistant.py:names:['TUTORIAL_PATH']"}, {"id": "metagpt/roles/tutorial_assistant.py:module:metagpt.logs"}, {"id": "metagpt/roles/tutorial_assistant.py:names:['logger']"}, {"id": "metagpt/roles/tutorial_assistant.py:module:metagpt.roles.role"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\",\"RoleReactMode\"]}}"}, {"id": "metagpt/roles/tutorial_assistant.py:names:['Role', 'RoleReactMode']"}, {"id": "metagpt/roles/tutorial_assistant.py:module:metagpt.schema"}, {"id": "metagpt/roles/tutorial_assistant.py:names:['Message']"}, {"id": "metagpt/roles/tutorial_assistant.py:module:metagpt.utils.file"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file\",\"names\":[\"File\"]}}"}, {"id": "metagpt/roles/tutorial_assistant.py:names:['File']"}, {"id": "{\"lineno\":20,\"end_lineno\":94,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"TutorialAssistant\"],\"properties\":{}}"}, {"id": "metagpt/roles/project_manager.py:ProjectManager:__init__"}, {"id": "metagpt/roles/project_manager.py:ast.Constant:\n@Time : 2023/5/11 15:04\n@Author : alexanderwu\n@File : project_manager.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 15:04\\n@Author : alexanderwu\\n@File : project_manager.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/project_manager.py:module:metagpt.actions"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"WriteTasks\"]}}"}, {"id": "metagpt/roles/project_manager.py:names:['WriteTasks']"}, {"id": "metagpt/roles/project_manager.py:module:metagpt.actions.design_api"}, {"id": "metagpt/roles/project_manager.py:names:['WriteDesign']"}, {"id": "metagpt/roles/project_manager.py:module:metagpt.roles.role"}, {"id": "metagpt/roles/project_manager.py:names:['Role']"}, {"id": "{\"lineno\":14,\"end_lineno\":37,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ProjectManager\"],\"properties\":{}}"}, {"id": "metagpt/roles/researcher.py:Researcher:__init__"}, {"id": "metagpt/roles/researcher.py:Researcher:_think"}, {"id": "metagpt/roles/researcher.py:Researcher:_act"}, {"id": "metagpt/roles/researcher.py:ast.Constant:\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false indicates that further reasoning cannot continue.\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116, change the data type of\n the `cause_by` value in the `Message` to a string to support the new message distribution feature.\n"}, {"id": "{\"lineno\":2,\"end_lineno\":6,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false indicates that further reasoning cannot continue.\\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116, change the data type of\\n the `cause_by` value in the `Message` to a string to support the new message distribution feature.\\n\"],\"properties\":{}}"}, {"id": "metagpt/roles/researcher.py:asyncio"}, {"id": "metagpt/roles/researcher.py:re"}, {"id": "metagpt/roles/researcher.py:module:pydantic"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"id": "metagpt/roles/researcher.py:names:['BaseModel']"}, {"id": "metagpt/roles/researcher.py:module:metagpt.actions"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"CollectLinks\",\"ConductResearch\",\"WebBrowseAndSummarize\"]}}"}, {"id": "metagpt/roles/researcher.py:names:['Action', 'CollectLinks', 'ConductResearch', 'WebBrowseAndSummarize']"}, {"id": "metagpt/roles/researcher.py:module:metagpt.actions.research"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.research\",\"names\":[\"get_research_system_text\"]}}"}, {"id": "metagpt/roles/researcher.py:names:['get_research_system_text']"}, {"id": "metagpt/roles/researcher.py:module:metagpt.const"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"RESEARCH_PATH\"]}}"}, {"id": "metagpt/roles/researcher.py:names:['RESEARCH_PATH']"}, {"id": "metagpt/roles/researcher.py:module:metagpt.logs"}, {"id": "metagpt/roles/researcher.py:names:['logger']"}, {"id": "metagpt/roles/researcher.py:module:metagpt.roles.role"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\",\"RoleReactMode\"]}}"}, {"id": "metagpt/roles/researcher.py:names:['Role', 'RoleReactMode']"}, {"id": "metagpt/roles/researcher.py:module:metagpt.schema"}, {"id": "metagpt/roles/researcher.py:names:['Message']"}, {"id": "{\"lineno\":21,\"end_lineno\":25,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Report\"],\"properties\":{}}"}, {"id": "{\"lineno\":28,\"end_lineno\":116,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Researcher\"],\"properties\":{}}"}, {"id": "metagpt/roles/researcher.py:__name__:__main__"}, {"id": "{\"lineno\":119,\"end_lineno\":126,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/utils/serialize.py"}, {"id": "metagpt/utils/serialize.py:actionoutout_schema_to_mapping"}, {"id": "metagpt/utils/serialize.py:actionoutput_mapping_to_str"}, {"id": "metagpt/utils/serialize.py:actionoutput_str_to_mapping"}, {"id": "metagpt/utils/serialize.py:serialize_message"}, {"id": "metagpt/utils/serialize.py:deserialize_message"}, {"id": "metagpt/utils/serialize.py:copy"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"copy\"],\"properties\":{}}"}, {"id": "metagpt/utils/serialize.py:pickle"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Import\",\"tokens\":[\"pickle\"],\"properties\":{}}"}, {"id": "metagpt/utils/serialize.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"import_class\"]}}"}, {"id": "metagpt/utils/serialize.py:names:['import_class']"}, {"id": "{\"lineno\":11,\"end_lineno\":40,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"actionoutout_schema_to_mapping\"],\"properties\":{}}"}, {"id": "{\"lineno\":43,\"end_lineno\":47,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"actionoutput_mapping_to_str\"],\"properties\":{}}"}, {"id": "{\"lineno\":50,\"end_lineno\":57,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"actionoutput_str_to_mapping\"],\"properties\":{}}"}, {"id": "{\"lineno\":60,\"end_lineno\":71,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"serialize_message\"],\"properties\":{}}"}, {"id": "{\"lineno\":74,\"end_lineno\":83,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"deserialize_message\"],\"properties\":{}}"}, {"id": "metagpt/utils/mmdc_playwright.py"}, {"id": "metagpt/utils/mmdc_playwright.py:mermaid_to_file"}, {"id": "metagpt/utils/mmdc_playwright.py:ast.Constant:\n@Time : 2023/9/4 16:12\n@Author : Steven Lee\n@File : mmdc_playwright.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 16:12\\n@Author : Steven Lee\\n@File : mmdc_playwright.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/mmdc_playwright.py:os"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"id": "metagpt/utils/mmdc_playwright.py:module:urllib.parse"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urljoin\"]}}"}, {"id": "metagpt/utils/mmdc_playwright.py:names:['urljoin']"}, {"id": "metagpt/utils/mmdc_playwright.py:module:playwright.async_api"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"playwright.async_api\",\"names\":[\"async_playwright\"]}}"}, {"id": "metagpt/utils/mmdc_playwright.py:names:['async_playwright']"}, {"id": "metagpt/utils/mmdc_playwright.py:module:metagpt.logs"}, {"id": "metagpt/utils/mmdc_playwright.py:names:['logger']"}, {"id": "{\"lineno\":17,\"end_lineno\":121,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"mermaid_to_file\"],\"properties\":{}}"}, {"id": "metagpt/utils/dependency_file.py:DependencyFile:__init__"}, {"id": "metagpt/utils/dependency_file.py:ast.Constant:\n@Time : 2023/11/22\n@Author : mashenquan\n@File : dependency_file.py\n@Desc: Implementation of the dependency file described in Section 2.2.3.2 of RFC 135.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/11/22\\n@Author : mashenquan\\n@File : dependency_file.py\\n@Desc: Implementation of the dependency file described in Section 2.2.3.2 of RFC 135.\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/dependency_file.py:module:__future__"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/utils/dependency_file.py:names:['annotations']"}, {"id": "metagpt/utils/dependency_file.py:json"}, {"id": "metagpt/utils/dependency_file.py:module:pathlib"}, {"id": "metagpt/utils/dependency_file.py:names:['Path']"}, {"id": "metagpt/utils/dependency_file.py:module:typing"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Set\"]}}"}, {"id": "metagpt/utils/dependency_file.py:names:['Set']"}, {"id": "metagpt/utils/dependency_file.py:aiofiles"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"id": "metagpt/utils/dependency_file.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"aread\"]}}"}, {"id": "metagpt/utils/dependency_file.py:names:['aread']"}, {"id": "metagpt/utils/dependency_file.py:module:metagpt.utils.exceptions"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"id": "metagpt/utils/dependency_file.py:names:['handle_exception']"}, {"id": "{\"lineno\":21,\"end_lineno\":102,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DependencyFile\"],\"properties\":{}}"}, {"id": "metagpt/utils/make_sk_kernel.py"}, {"id": "metagpt/utils/make_sk_kernel.py:make_sk_kernel"}, {"id": "metagpt/utils/make_sk_kernel.py:ast.Constant:\n@Time : 2023/9/13 12:29\n@Author : femto Zheng\n@File : make_sk_kernel.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/13 12:29\\n@Author : femto Zheng\\n@File : make_sk_kernel.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/make_sk_kernel.py:semantic_kernel as sk"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"semantic_kernel as sk\"],\"properties\":{}}"}, {"id": "metagpt/utils/make_sk_kernel.py:module:semantic_kernel.connectors.ai.open_ai.services.azure_chat_completion"}, {"id": "{\"lineno\":9,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.connectors.ai.open_ai.services.azure_chat_completion\",\"names\":[\"AzureChatCompletion\"]}}"}, {"id": "metagpt/utils/make_sk_kernel.py:names:['AzureChatCompletion']"}, {"id": "metagpt/utils/make_sk_kernel.py:module:semantic_kernel.connectors.ai.open_ai.services.open_ai_chat_completion"}, {"id": "{\"lineno\":12,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.connectors.ai.open_ai.services.open_ai_chat_completion\",\"names\":[\"OpenAIChatCompletion\"]}}"}, {"id": "metagpt/utils/make_sk_kernel.py:names:['OpenAIChatCompletion']"}, {"id": "metagpt/utils/make_sk_kernel.py:module:metagpt.config"}, {"id": "metagpt/utils/make_sk_kernel.py:names:['CONFIG']"}, {"id": "{\"lineno\":19,\"end_lineno\":32,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"make_sk_kernel\"],\"properties\":{}}"}, {"id": "metagpt/utils/token_counter.py"}, {"id": "metagpt/utils/token_counter.py:count_message_tokens"}, {"id": "metagpt/utils/token_counter.py:count_string_tokens"}, {"id": "metagpt/utils/token_counter.py:get_max_completion_tokens"}, {"id": "metagpt/utils/token_counter.py:TOKEN_COSTS"}, {"id": "metagpt/utils/token_counter.py:TOKEN_MAX"}, {"id": "metagpt/utils/token_counter.py:ast.Constant:\n@Time : 2023/5/18 00:40\n@Author : alexanderwu\n@File : token_counter.py\nref1: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb\nref2: https://github.com/Significant-Gravitas/Auto-GPT/blob/master/autogpt/llm/token_counter.py\nref3: https://github.com/hwchase17/langchain/blob/master/langchain/chat_models/openai.py\nref4: https://ai.google.dev/models/gemini\n"}, {"id": "{\"lineno\":3,\"end_lineno\":11,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/18 00:40\\n@Author : alexanderwu\\n@File : token_counter.py\\nref1: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb\\nref2: https://github.com/Significant-Gravitas/Auto-GPT/blob/master/autogpt/llm/token_counter.py\\nref3: https://github.com/hwchase17/langchain/blob/master/langchain/chat_models/openai.py\\nref4: https://ai.google.dev/models/gemini\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/token_counter.py:tiktoken"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"tiktoken\"],\"properties\":{}}"}, {"id": "{\"lineno\":14,\"end_lineno\":32,\"type_name\":\"ast.Assign\",\"tokens\":[\"TOKEN_COSTS\"],\"properties\":{}}"}, {"id": "{\"lineno\":35,\"end_lineno\":53,\"type_name\":\"ast.Assign\",\"tokens\":[\"TOKEN_MAX\"],\"properties\":{}}"}, {"id": "{\"lineno\":56,\"end_lineno\":108,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"count_message_tokens\"],\"properties\":{}}"}, {"id": "{\"lineno\":111,\"end_lineno\":127,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"count_string_tokens\"],\"properties\":{}}"}, {"id": "{\"lineno\":130,\"end_lineno\":142,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_max_completion_tokens\"],\"properties\":{}}"}, {"id": "metagpt/utils/repair_llm_raw_output.py:repair_case_sensitivity"}, {"id": "metagpt/utils/repair_llm_raw_output.py:repair_special_character_missing"}, {"id": "metagpt/utils/repair_llm_raw_output.py:repair_required_key_pair_missing"}, {"id": "metagpt/utils/repair_llm_raw_output.py:repair_json_format"}, {"id": "metagpt/utils/repair_llm_raw_output.py:_repair_llm_raw_output"}, {"id": "metagpt/utils/repair_llm_raw_output.py:repair_llm_raw_output"}, {"id": "metagpt/utils/repair_llm_raw_output.py:repair_invalid_json"}, {"id": "metagpt/utils/repair_llm_raw_output.py:run_after_exp_and_passon_next_retry"}, {"id": "metagpt/utils/repair_llm_raw_output.py:retry_parse_json_text"}, {"id": "metagpt/utils/repair_llm_raw_output.py:extract_content_from_output"}, {"id": "metagpt/utils/repair_llm_raw_output.py:extract_state_value_from_output"}, {"id": "metagpt/utils/repair_llm_raw_output.py:copy"}, {"id": "metagpt/utils/repair_llm_raw_output.py:module:enum"}, {"id": "metagpt/utils/repair_llm_raw_output.py:names:['Enum']"}, {"id": "metagpt/utils/repair_llm_raw_output.py:module:typing"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Callable\",\"Union\"]}}"}, {"id": "metagpt/utils/repair_llm_raw_output.py:names:['Callable', 'Union']"}, {"id": "metagpt/utils/repair_llm_raw_output.py:regex as re"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"regex as re\"],\"properties\":{}}"}, {"id": "metagpt/utils/repair_llm_raw_output.py:module:tenacity"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"RetryCallState\",\"retry\",\"stop_after_attempt\",\"wait_fixed\"]}}"}, {"id": "metagpt/utils/repair_llm_raw_output.py:names:['RetryCallState', 'retry', 'stop_after_attempt', 'wait_fixed']"}, {"id": "metagpt/utils/repair_llm_raw_output.py:module:metagpt.config"}, {"id": "metagpt/utils/repair_llm_raw_output.py:names:['CONFIG']"}, {"id": "metagpt/utils/repair_llm_raw_output.py:module:metagpt.logs"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/utils/repair_llm_raw_output.py:names:['logger']"}, {"id": "metagpt/utils/repair_llm_raw_output.py:module:metagpt.utils.custom_decoder"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.custom_decoder\",\"names\":[\"CustomDecoder\"]}}"}, {"id": "metagpt/utils/repair_llm_raw_output.py:names:['CustomDecoder']"}, {"id": "{\"lineno\":17,\"end_lineno\":21,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RepairType\"],\"properties\":{}}"}, {"id": "{\"lineno\":24,\"end_lineno\":41,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"repair_case_sensitivity\"],\"properties\":{}}"}, {"id": "{\"lineno\":44,\"end_lineno\":64,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"repair_special_character_missing\"],\"properties\":{}}"}, {"id": "{\"lineno\":67,\"end_lineno\":105,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"repair_required_key_pair_missing\"],\"properties\":{}}"}, {"id": "{\"lineno\":108,\"end_lineno\":123,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"repair_json_format\"],\"properties\":{}}"}, {"id": "{\"lineno\":126,\"end_lineno\":137,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_repair_llm_raw_output\"],\"properties\":{}}"}, {"id": "{\"lineno\":140,\"end_lineno\":161,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"repair_llm_raw_output\"],\"properties\":{}}"}, {"id": "{\"lineno\":164,\"end_lineno\":206,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"repair_invalid_json\"],\"properties\":{}}"}, {"id": "{\"lineno\":209,\"end_lineno\":243,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"run_after_exp_and_passon_next_retry\"],\"properties\":{}}"}, {"id": "{\"lineno\":251,\"end_lineno\":265,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"retry_parse_json_text\"],\"properties\":{}}"}, {"id": "{\"lineno\":268,\"end_lineno\":298,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"extract_content_from_output\"],\"properties\":{}}"}, {"id": "{\"lineno\":301,\"end_lineno\":314,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"extract_state_value_from_output\"],\"properties\":{}}"}, {"id": "metagpt/utils/mermaid.py"}, {"id": "metagpt/utils/mermaid.py:mermaid_to_file"}, {"id": "metagpt/utils/mermaid.py:MMC1"}, {"id": "metagpt/utils/mermaid.py:MMC2"}, {"id": "metagpt/utils/mermaid.py:ast.Constant:\n@Time : 2023/7/4 10:53\n@Author : alexanderwu alitrack\n@File : mermaid.py\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/7/4 10:53\\n@Author : alexanderwu alitrack\\n@File : mermaid.py\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/mermaid.py:asyncio"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"id": "metagpt/utils/mermaid.py:os"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"id": "metagpt/utils/mermaid.py:module:pathlib"}, {"id": "metagpt/utils/mermaid.py:names:['Path']"}, {"id": "metagpt/utils/mermaid.py:aiofiles"}, {"id": "metagpt/utils/mermaid.py:module:metagpt.config"}, {"id": "metagpt/utils/mermaid.py:names:['CONFIG']"}, {"id": "metagpt/utils/mermaid.py:module:metagpt.logs"}, {"id": "metagpt/utils/mermaid.py:names:['logger']"}, {"id": "metagpt/utils/mermaid.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"check_cmd_exists\"]}}"}, {"id": "metagpt/utils/mermaid.py:names:['check_cmd_exists']"}, {"id": "{\"lineno\":20,\"end_lineno\":92,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"mermaid_to_file\"],\"properties\":{}}"}, {"id": "{\"lineno\":95,\"end_lineno\":127,\"type_name\":\"ast.Assign\",\"tokens\":[\"MMC1\"],\"properties\":{}}"}, {"id": "{\"lineno\":129,\"end_lineno\":147,\"type_name\":\"ast.Assign\",\"tokens\":[\"MMC2\"],\"properties\":{}}"}, {"id": "metagpt/utils/parse_html.py:get_html_content"}, {"id": "metagpt/utils/parse_html.py:_get_soup"}, {"id": "metagpt/utils/parse_html.py:module:__future__"}, {"id": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/utils/parse_html.py:names:['annotations']"}, {"id": "metagpt/utils/parse_html.py:module:typing"}, {"id": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Generator\",\"Optional\"]}}"}, {"id": "metagpt/utils/parse_html.py:names:['Generator', 'Optional']"}, {"id": "metagpt/utils/parse_html.py:module:urllib.parse"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urljoin\",\"urlparse\"]}}"}, {"id": "metagpt/utils/parse_html.py:names:['urljoin', 'urlparse']"}, {"id": "metagpt/utils/parse_html.py:module:bs4"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"bs4\",\"names\":[\"BeautifulSoup\"]}}"}, {"id": "metagpt/utils/parse_html.py:names:['BeautifulSoup']"}, {"id": "metagpt/utils/parse_html.py:module:pydantic"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"PrivateAttr\"]}}"}, {"id": "metagpt/utils/parse_html.py:names:['BaseModel', 'PrivateAttr']"}, {"id": "{\"lineno\":11,\"end_lineno\":39,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WebPage\"],\"properties\":{}}"}, {"id": "{\"lineno\":42,\"end_lineno\":45,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_html_content\"],\"properties\":{}}"}, {"id": "{\"lineno\":48,\"end_lineno\":54,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_get_soup\"],\"properties\":{}}"}, {"id": "metagpt/utils/special_tokens.py"}, {"id": "metagpt/utils/special_tokens.py:MSG_SEP"}, {"id": "metagpt/utils/special_tokens.py:FILENAME_CODE_SEP"}, {"id": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.Assign\",\"tokens\":[\"MSG_SEP\"],\"properties\":{}}"}, {"id": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.Assign\",\"tokens\":[\"FILENAME_CODE_SEP\"],\"properties\":{}}"}, {"id": "metagpt/utils/ahttp_client.py"}, {"id": "metagpt/utils/ahttp_client.py:apost"}, {"id": "metagpt/utils/ahttp_client.py:apost_stream"}, {"id": "metagpt/utils/ahttp_client.py:module:typing"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Mapping\",\"Optional\",\"Union\"]}}"}, {"id": "metagpt/utils/ahttp_client.py:names:['Any', 'Mapping', 'Optional', 'Union']"}, {"id": "metagpt/utils/ahttp_client.py:aiohttp"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"id": "metagpt/utils/ahttp_client.py:module:aiohttp.client"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"aiohttp.client\",\"names\":[\"DEFAULT_TIMEOUT\"]}}"}, {"id": "metagpt/utils/ahttp_client.py:names:['DEFAULT_TIMEOUT']"}, {"id": "{\"lineno\":11,\"end_lineno\":28,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"apost\"],\"properties\":{}}"}, {"id": "{\"lineno\":31,\"end_lineno\":49,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"apost_stream\"],\"properties\":{}}"}, {"id": "metagpt/utils/__init__.py"}, {"id": "metagpt/utils/__init__.py:__all__"}, {"id": "metagpt/utils/__init__.py:ast.Constant:\n@Time : 2023/4/29 15:50\n@Author : alexanderwu\n@File : __init__.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/29 15:50\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/__init__.py:module:metagpt.utils.read_document"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.read_document\",\"names\":[\"read_docx\"]}}"}, {"id": "metagpt/utils/__init__.py:names:['read_docx']"}, {"id": "metagpt/utils/__init__.py:module:metagpt.utils.singleton"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.singleton\",\"names\":[\"Singleton\"]}}"}, {"id": "metagpt/utils/__init__.py:names:['Singleton']"}, {"id": "metagpt/utils/__init__.py:module:metagpt.utils.token_counter"}, {"id": "{\"lineno\":11,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"TOKEN_COSTS\",\"count_message_tokens\",\"count_string_tokens\"]}}"}, {"id": "metagpt/utils/__init__.py:names:['TOKEN_COSTS', 'count_message_tokens', 'count_string_tokens']"}, {"id": "{\"lineno\":18,\"end_lineno\":24,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"id": "metagpt/utils/mmdc_ink.py"}, {"id": "metagpt/utils/mmdc_ink.py:mermaid_to_file"}, {"id": "metagpt/utils/mmdc_ink.py:ast.Constant:\n@Time : 2023/9/4 16:12\n@Author : alitrack\n@File : mermaid.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 16:12\\n@Author : alitrack\\n@File : mermaid.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/mmdc_ink.py:base64"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"id": "metagpt/utils/mmdc_ink.py:module:aiohttp"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"aiohttp\",\"names\":[\"ClientError\",\"ClientSession\"]}}"}, {"id": "metagpt/utils/mmdc_ink.py:names:['ClientError', 'ClientSession']"}, {"id": "metagpt/utils/mmdc_ink.py:module:metagpt.logs"}, {"id": "metagpt/utils/mmdc_ink.py:names:['logger']"}, {"id": "{\"lineno\":15,\"end_lineno\":41,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"mermaid_to_file\"],\"properties\":{}}"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:__init__"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:upsert"}, {"id": "metagpt/utils/di_graph_repository.py:DiGraphRepository:update"}, {"id": "metagpt/utils/di_graph_repository.py:ast.Constant:\n@Time : 2023/12/19\n@Author : mashenquan\n@File : di_graph_repository.py\n@Desc : Graph repository based on DiGraph\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/19\\n@Author : mashenquan\\n@File : di_graph_repository.py\\n@Desc : Graph repository based on DiGraph\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/di_graph_repository.py:module:__future__"}, {"id": "metagpt/utils/di_graph_repository.py:names:['annotations']"}, {"id": "metagpt/utils/di_graph_repository.py:json"}, {"id": "metagpt/utils/di_graph_repository.py:module:pathlib"}, {"id": "metagpt/utils/di_graph_repository.py:names:['Path']"}, {"id": "metagpt/utils/di_graph_repository.py:module:typing"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"id": "metagpt/utils/di_graph_repository.py:names:['List']"}, {"id": "metagpt/utils/di_graph_repository.py:networkx"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.Import\",\"tokens\":[\"networkx\"],\"properties\":{}}"}, {"id": "metagpt/utils/di_graph_repository.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"aread\",\"awrite\"]}}"}, {"id": "metagpt/utils/di_graph_repository.py:names:['aread', 'awrite']"}, {"id": "metagpt/utils/di_graph_repository.py:module:metagpt.utils.graph_repository"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.graph_repository\",\"names\":[\"SPO\",\"GraphRepository\"]}}"}, {"id": "metagpt/utils/di_graph_repository.py:names:['SPO', 'GraphRepository']"}, {"id": "{\"lineno\":21,\"end_lineno\":82,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DiGraphRepository\"],\"properties\":{}}"}, {"id": "metagpt/utils/cost_manager.py:ast.Constant:\n@Time : 2023/8/28\n@Author : mashenquan\n@File : openai.py\n@Desc : mashenquan, 2023/8/28. Separate the `CostManager` class to support user-level cost accounting.\n"}, {"id": "{\"lineno\":2,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/28\\n@Author : mashenquan\\n@File : openai.py\\n@Desc : mashenquan, 2023/8/28. Separate the `CostManager` class to support user-level cost accounting.\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/cost_manager.py:module:typing"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"NamedTuple\"]}}"}, {"id": "metagpt/utils/cost_manager.py:names:['NamedTuple']"}, {"id": "metagpt/utils/cost_manager.py:module:pydantic"}, {"id": "metagpt/utils/cost_manager.py:names:['BaseModel']"}, {"id": "metagpt/utils/cost_manager.py:module:metagpt.logs"}, {"id": "metagpt/utils/cost_manager.py:names:['logger']"}, {"id": "metagpt/utils/cost_manager.py:module:metagpt.utils.token_counter"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"TOKEN_COSTS\"]}}"}, {"id": "metagpt/utils/cost_manager.py:names:['TOKEN_COSTS']"}, {"id": "{\"lineno\":17,\"end_lineno\":21,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Costs\"],\"properties\":{}}"}, {"id": "{\"lineno\":24,\"end_lineno\":82,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CostManager\"],\"properties\":{}}"}, {"id": "metagpt/utils/file.py:ast.Constant:\n@Time : 2023/9/4 15:40:40\n@Author : Stitch-z\n@File : file.py\n@Describe : General file operations.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 15:40:40\\n@Author : Stitch-z\\n@File : file.py\\n@Describe : General file operations.\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/file.py:module:pathlib"}, {"id": "metagpt/utils/file.py:names:['Path']"}, {"id": "metagpt/utils/file.py:aiofiles"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"id": "metagpt/utils/file.py:module:metagpt.logs"}, {"id": "metagpt/utils/file.py:names:['logger']"}, {"id": "metagpt/utils/file.py:module:metagpt.utils.exceptions"}, {"id": "metagpt/utils/file.py:names:['handle_exception']"}, {"id": "{\"lineno\":17,\"end_lineno\":70,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"File\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:NoMoneyException:__init__"}, {"id": "metagpt/utils/common.py:NoMoneyException:__str__"}, {"id": "metagpt/utils/common.py:check_cmd_exists"}, {"id": "metagpt/utils/common.py:require_python_version"}, {"id": "metagpt/utils/common.py:print_members"}, {"id": "metagpt/utils/common.py:parse_recipient"}, {"id": "metagpt/utils/common.py:get_class_name"}, {"id": "metagpt/utils/common.py:any_to_str"}, {"id": "metagpt/utils/common.py:any_to_str_set"}, {"id": "metagpt/utils/common.py:is_subscribed"}, {"id": "metagpt/utils/common.py:any_to_name"}, {"id": "metagpt/utils/common.py:concat_namespace"}, {"id": "metagpt/utils/common.py:split_namespace"}, {"id": "metagpt/utils/common.py:general_after_log"}, {"id": "metagpt/utils/common.py:read_json_file"}, {"id": "metagpt/utils/common.py:write_json_file"}, {"id": "metagpt/utils/common.py:import_class"}, {"id": "metagpt/utils/common.py:import_class_inst"}, {"id": "metagpt/utils/common.py:format_trackback_info"}, {"id": "metagpt/utils/common.py:serialize_decorator"}, {"id": "metagpt/utils/common.py:role_raise_decorator"}, {"id": "metagpt/utils/common.py:aread"}, {"id": "metagpt/utils/common.py:awrite"}, {"id": "metagpt/utils/common.py:read_file_block"}, {"id": "metagpt/utils/common.py:ast.Constant:\n@Time : 2023/4/29 16:07\n@Author : alexanderwu\n@File : common.py\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.2 of RFC 116:\n Add generic class-to-string and object-to-string conversion functionality.\n@Modified By: mashenquan, 2023/11/27. Bug fix: `parse_recipient` failed to parse the recipient in certain GPT-3.5\n responses.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":11,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/29 16:07\\n@Author : alexanderwu\\n@File : common.py\\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.2 of RFC 116:\\n Add generic class-to-string and object-to-string conversion functionality.\\n@Modified By: mashenquan, 2023/11/27. Bug fix: `parse_recipient` failed to parse the recipient in certain GPT-3.5\\n responses.\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:module:__future__"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/utils/common.py:names:['annotations']"}, {"id": "metagpt/utils/common.py:ast"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.Import\",\"tokens\":[\"ast\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:contextlib"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.Import\",\"tokens\":[\"contextlib\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:importlib"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.Import\",\"tokens\":[\"importlib\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:inspect"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Import\",\"tokens\":[\"inspect\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:json"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:os"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:platform"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.Import\",\"tokens\":[\"platform\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:re"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:sys"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.Import\",\"tokens\":[\"sys\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:traceback"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.Import\",\"tokens\":[\"traceback\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:typing"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.Import\",\"tokens\":[\"typing\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:module:pathlib"}, {"id": "metagpt/utils/common.py:names:['Path']"}, {"id": "metagpt/utils/common.py:module:typing"}, {"id": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"List\",\"Tuple\",\"Union\"]}}"}, {"id": "metagpt/utils/common.py:names:['Any', 'List', 'Tuple', 'Union']"}, {"id": "metagpt/utils/common.py:aiofiles"}, {"id": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:loguru"}, {"id": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.Import\",\"tokens\":[\"loguru\"],\"properties\":{}}"}, {"id": "metagpt/utils/common.py:module:pydantic_core"}, {"id": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic_core\",\"names\":[\"to_jsonable_python\"]}}"}, {"id": "metagpt/utils/common.py:names:['to_jsonable_python']"}, {"id": "metagpt/utils/common.py:module:tenacity"}, {"id": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"RetryCallState\",\"_utils\"]}}"}, {"id": "metagpt/utils/common.py:names:['RetryCallState', '_utils']"}, {"id": "metagpt/utils/common.py:module:metagpt.const"}, {"id": "{\"lineno\":33,\"end_lineno\":33,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"MESSAGE_ROUTE_TO_ALL\"]}}"}, {"id": "metagpt/utils/common.py:names:['MESSAGE_ROUTE_TO_ALL']"}, {"id": "metagpt/utils/common.py:module:metagpt.logs"}, {"id": "{\"lineno\":34,\"end_lineno\":34,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/utils/common.py:names:['logger']"}, {"id": "metagpt/utils/common.py:module:metagpt.utils.exceptions"}, {"id": "{\"lineno\":35,\"end_lineno\":35,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"id": "metagpt/utils/common.py:names:['handle_exception']"}, {"id": "{\"lineno\":38,\"end_lineno\":48,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"check_cmd_exists\"],\"properties\":{}}"}, {"id": "{\"lineno\":51,\"end_lineno\":54,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"require_python_version\"],\"properties\":{}}"}, {"id": "{\"lineno\":57,\"end_lineno\":231,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OutputParser\"],\"properties\":{}}"}, {"id": "{\"lineno\":234,\"end_lineno\":304,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CodeParser\"],\"properties\":{}}"}, {"id": "{\"lineno\":307,\"end_lineno\":316,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"NoMoneyException\"],\"properties\":{}}"}, {"id": "{\"lineno\":319,\"end_lineno\":335,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"print_members\"],\"properties\":{}}"}, {"id": "{\"lineno\":338,\"end_lineno\":348,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"parse_recipient\"],\"properties\":{}}"}, {"id": "{\"lineno\":351,\"end_lineno\":353,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_class_name\"],\"properties\":{}}"}, {"id": "{\"lineno\":356,\"end_lineno\":363,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"any_to_str\"],\"properties\":{}}"}, {"id": "{\"lineno\":366,\"end_lineno\":381,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"any_to_str_set\"],\"properties\":{}}"}, {"id": "{\"lineno\":384,\"end_lineno\":392,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"is_subscribed\"],\"properties\":{}}"}, {"id": "{\"lineno\":395,\"end_lineno\":403,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"any_to_name\"],\"properties\":{}}"}, {"id": "{\"lineno\":406,\"end_lineno\":407,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"concat_namespace\"],\"properties\":{}}"}, {"id": "{\"lineno\":410,\"end_lineno\":411,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"split_namespace\"],\"properties\":{}}"}, {"id": "{\"lineno\":414,\"end_lineno\":444,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"general_after_log\"],\"properties\":{}}"}, {"id": "{\"lineno\":447,\"end_lineno\":456,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"read_json_file\"],\"properties\":{}}"}, {"id": "{\"lineno\":459,\"end_lineno\":465,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"write_json_file\"],\"properties\":{}}"}, {"id": "{\"lineno\":468,\"end_lineno\":471,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"import_class\"],\"properties\":{}}"}, {"id": "{\"lineno\":474,\"end_lineno\":477,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"import_class_inst\"],\"properties\":{}}"}, {"id": "{\"lineno\":480,\"end_lineno\":481,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"format_trackback_info\"],\"properties\":{}}"}, {"id": "{\"lineno\":484,\"end_lineno\":495,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"serialize_decorator\"],\"properties\":{}}"}, {"id": "{\"lineno\":498,\"end_lineno\":519,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"role_raise_decorator\"],\"properties\":{}}"}, {"id": "{\"lineno\":523,\"end_lineno\":527,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"aread\"],\"properties\":{}}"}, {"id": "{\"lineno\":530,\"end_lineno\":535,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"awrite\"],\"properties\":{}}"}, {"id": "{\"lineno\":538,\"end_lineno\":552,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"read_file_block\"],\"properties\":{}}"}, {"id": "metagpt/utils/redis.py:Redis:__init__"}, {"id": "metagpt/utils/redis.py:Redis:_connect"}, {"id": "metagpt/utils/redis.py:ast.Constant:\n@Time : 2023/12/27\n@Author : mashenquan\n@File : redis.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/27\\n@Author : mashenquan\\n@File : redis.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/redis.py:module:__future__"}, {"id": "metagpt/utils/redis.py:names:['annotations']"}, {"id": "metagpt/utils/redis.py:traceback"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"traceback\"],\"properties\":{}}"}, {"id": "metagpt/utils/redis.py:module:datetime"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"timedelta\"]}}"}, {"id": "metagpt/utils/redis.py:names:['timedelta']"}, {"id": "metagpt/utils/redis.py:aioredis"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"aioredis\"],\"properties\":{}}"}, {"id": "metagpt/utils/redis.py:module:metagpt.config"}, {"id": "metagpt/utils/redis.py:names:['CONFIG']"}, {"id": "metagpt/utils/redis.py:module:metagpt.logs"}, {"id": "metagpt/utils/redis.py:names:['logger']"}, {"id": "{\"lineno\":19,\"end_lineno\":79,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Redis\"],\"properties\":{}}"}, {"id": "metagpt/utils/text.py"}, {"id": "metagpt/utils/text.py:reduce_message_length"}, {"id": "metagpt/utils/text.py:generate_prompt_chunk"}, {"id": "metagpt/utils/text.py:split_paragraph"}, {"id": "metagpt/utils/text.py:decode_unicode_escape"}, {"id": "metagpt/utils/text.py:_split_by_count"}, {"id": "metagpt/utils/text.py:_split_text_with_ends"}, {"id": "metagpt/utils/text.py:module:typing"}, {"id": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Generator\",\"Sequence\"]}}"}, {"id": "metagpt/utils/text.py:names:['Generator', 'Sequence']"}, {"id": "metagpt/utils/text.py:module:metagpt.utils.token_counter"}, {"id": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"TOKEN_MAX\",\"count_string_tokens\"]}}"}, {"id": "metagpt/utils/text.py:names:['TOKEN_MAX', 'count_string_tokens']"}, {"id": "{\"lineno\":6,\"end_lineno\":31,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"reduce_message_length\"],\"properties\":{}}"}, {"id": "{\"lineno\":34,\"end_lineno\":76,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"generate_prompt_chunk\"],\"properties\":{}}"}, {"id": "{\"lineno\":79,\"end_lineno\":96,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"split_paragraph\"],\"properties\":{}}"}, {"id": "{\"lineno\":99,\"end_lineno\":108,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"decode_unicode_escape\"],\"properties\":{}}"}, {"id": "{\"lineno\":111,\"end_lineno\":118,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_split_by_count\"],\"properties\":{}}"}, {"id": "{\"lineno\":121,\"end_lineno\":129,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_split_text_with_ends\"],\"properties\":{}}"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:__init__"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:insert"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:upsert"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:update"}, {"id": "metagpt/utils/graph_repository.py:GraphRepository:select"}, {"id": "metagpt/utils/graph_repository.py:ast.Constant:\n@Time : 2023/12/19\n@Author : mashenquan\n@File : graph_repository.py\n@Desc : Superclass for graph repository.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/19\\n@Author : mashenquan\\n@File : graph_repository.py\\n@Desc : Superclass for graph repository.\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/graph_repository.py:module:abc"}, {"id": "metagpt/utils/graph_repository.py:names:['ABC', 'abstractmethod']"}, {"id": "metagpt/utils/graph_repository.py:module:pathlib"}, {"id": "metagpt/utils/graph_repository.py:names:['Path']"}, {"id": "metagpt/utils/graph_repository.py:module:typing"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"id": "metagpt/utils/graph_repository.py:names:['List']"}, {"id": "metagpt/utils/graph_repository.py:module:pydantic"}, {"id": "metagpt/utils/graph_repository.py:names:['BaseModel']"}, {"id": "metagpt/utils/graph_repository.py:module:metagpt.logs"}, {"id": "metagpt/utils/graph_repository.py:names:['logger']"}, {"id": "metagpt/utils/graph_repository.py:module:metagpt.repo_parser"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.repo_parser\",\"names\":[\"ClassInfo\",\"ClassRelationship\",\"RepoFileInfo\"]}}"}, {"id": "metagpt/utils/graph_repository.py:names:['ClassInfo', 'ClassRelationship', 'RepoFileInfo']"}, {"id": "metagpt/utils/graph_repository.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"concat_namespace\"]}}"}, {"id": "metagpt/utils/graph_repository.py:names:['concat_namespace']"}, {"id": "{\"lineno\":21,\"end_lineno\":40,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GraphKeyword\"],\"properties\":{}}"}, {"id": "{\"lineno\":43,\"end_lineno\":46,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SPO\"],\"properties\":{}}"}, {"id": "{\"lineno\":49,\"end_lineno\":200,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GraphRepository\"],\"properties\":{}}"}, {"id": "metagpt/utils/singleton.py:Singleton:__call__"}, {"id": "metagpt/utils/singleton.py:ast.Constant:\n@Time : 2023/5/11 16:15\n@Author : alexanderwu\n@File : singleton.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 16:15\\n@Author : alexanderwu\\n@File : singleton.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/singleton.py:abc"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"abc\"],\"properties\":{}}"}, {"id": "{\"lineno\":11,\"end_lineno\":22,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Singleton\"],\"properties\":{}}"}, {"id": "metagpt/utils/file_repository.py:FileRepository:__init__"}, {"id": "metagpt/utils/file_repository.py:ast.Constant:\n@Time : 2023/11/20\n@Author : mashenquan\n@File : git_repository.py\n@Desc: File repository management. RFC 135 2.2.3.2, 2.2.3.4 and 2.2.3.13.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/11/20\\n@Author : mashenquan\\n@File : git_repository.py\\n@Desc: File repository management. RFC 135 2.2.3.2, 2.2.3.4 and 2.2.3.13.\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/file_repository.py:module:__future__"}, {"id": "metagpt/utils/file_repository.py:names:['annotations']"}, {"id": "metagpt/utils/file_repository.py:json"}, {"id": "metagpt/utils/file_repository.py:os"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"id": "metagpt/utils/file_repository.py:module:datetime"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"id": "metagpt/utils/file_repository.py:names:['datetime']"}, {"id": "metagpt/utils/file_repository.py:module:pathlib"}, {"id": "metagpt/utils/file_repository.py:names:['Path']"}, {"id": "metagpt/utils/file_repository.py:module:typing"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\",\"Set\"]}}"}, {"id": "metagpt/utils/file_repository.py:names:['Dict', 'List', 'Set']"}, {"id": "metagpt/utils/file_repository.py:aiofiles"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"id": "metagpt/utils/file_repository.py:module:metagpt.config"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/utils/file_repository.py:names:['CONFIG']"}, {"id": "metagpt/utils/file_repository.py:module:metagpt.logs"}, {"id": "metagpt/utils/file_repository.py:names:['logger']"}, {"id": "metagpt/utils/file_repository.py:module:metagpt.schema"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\"]}}"}, {"id": "metagpt/utils/file_repository.py:names:['Document']"}, {"id": "metagpt/utils/file_repository.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"aread\"]}}"}, {"id": "metagpt/utils/file_repository.py:names:['aread']"}, {"id": "metagpt/utils/file_repository.py:module:metagpt.utils.json_to_markdown"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.json_to_markdown\",\"names\":[\"json_to_markdown\"]}}"}, {"id": "metagpt/utils/file_repository.py:names:['json_to_markdown']"}, {"id": "{\"lineno\":26,\"end_lineno\":290,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"FileRepository\"],\"properties\":{}}"}, {"id": "metagpt/utils/pycst.py:DocstringCollector:__init__"}, {"id": "metagpt/utils/pycst.py:DocstringCollector:_leave"}, {"id": "metagpt/utils/pycst.py:DocstringTransformer:__init__"}, {"id": "metagpt/utils/pycst.py:DocstringTransformer:_leave"}, {"id": "metagpt/utils/pycst.py:get_docstring_statement"}, {"id": "metagpt/utils/pycst.py:has_decorator"}, {"id": "metagpt/utils/pycst.py:merge_docstring"}, {"id": "metagpt/utils/pycst.py:DocstringNode"}, {"id": "metagpt/utils/pycst.py:module:__future__"}, {"id": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/utils/pycst.py:names:['annotations']"}, {"id": "metagpt/utils/pycst.py:module:typing"}, {"id": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"id": "metagpt/utils/pycst.py:names:['Union']"}, {"id": "metagpt/utils/pycst.py:libcst as cst"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"libcst as cst\"],\"properties\":{}}"}, {"id": "metagpt/utils/pycst.py:module:libcst._nodes.module"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"libcst._nodes.module\",\"names\":[\"Module\"]}}"}, {"id": "metagpt/utils/pycst.py:names:['Module']"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Assign\",\"tokens\":[\"DocstringNode\"],\"properties\":{}}"}, {"id": "{\"lineno\":11,\"end_lineno\":49,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_docstring_statement\"],\"properties\":{}}"}, {"id": "{\"lineno\":52,\"end_lineno\":57,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"has_decorator\"],\"properties\":{}}"}, {"id": "{\"lineno\":60,\"end_lineno\":98,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DocstringCollector\"],\"properties\":{}}"}, {"id": "{\"lineno\":101,\"end_lineno\":156,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DocstringTransformer\"],\"properties\":{}}"}, {"id": "{\"lineno\":159,\"end_lineno\":176,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"merge_docstring\"],\"properties\":{}}"}, {"id": "metagpt/utils/exceptions.py"}, {"id": "metagpt/utils/exceptions.py:handle_exception"}, {"id": "metagpt/utils/exceptions.py:ReturnType"}, {"id": "metagpt/utils/exceptions.py:ast.Constant:\n@Time : 2023/12/19 14:46\n@Author : alexanderwu\n@File : exceptions.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/19 14:46\\n@Author : alexanderwu\\n@File : exceptions.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/exceptions.py:asyncio"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"id": "metagpt/utils/exceptions.py:functools"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"functools\"],\"properties\":{}}"}, {"id": "metagpt/utils/exceptions.py:traceback"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"traceback\"],\"properties\":{}}"}, {"id": "metagpt/utils/exceptions.py:module:typing"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Callable\",\"Tuple\",\"Type\",\"TypeVar\",\"Union\"]}}"}, {"id": "metagpt/utils/exceptions.py:names:['Any', 'Callable', 'Tuple', 'Type', 'TypeVar', 'Union']"}, {"id": "metagpt/utils/exceptions.py:module:metagpt.logs"}, {"id": "metagpt/utils/exceptions.py:names:['logger']"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Assign\",\"tokens\":[\"ReturnType\"],\"properties\":{}}"}, {"id": "{\"lineno\":20,\"end_lineno\":61,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"handle_exception\"],\"properties\":{}}"}, {"id": "metagpt/utils/highlight.py"}, {"id": "metagpt/utils/highlight.py:highlight"}, {"id": "metagpt/utils/highlight.py:module:pygments"}, {"id": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pygments\",\"names\":[\"highlight as highlight_\"]}}"}, {"id": "metagpt/utils/highlight.py:names:['highlight as highlight_']"}, {"id": "metagpt/utils/highlight.py:module:pygments.formatters"}, {"id": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pygments.formatters\",\"names\":[\"HtmlFormatter\",\"TerminalFormatter\"]}}"}, {"id": "metagpt/utils/highlight.py:names:['HtmlFormatter', 'TerminalFormatter']"}, {"id": "metagpt/utils/highlight.py:module:pygments.lexers"}, {"id": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pygments.lexers\",\"names\":[\"PythonLexer\",\"SqlLexer\"]}}"}, {"id": "metagpt/utils/highlight.py:names:['PythonLexer', 'SqlLexer']"}, {"id": "{\"lineno\":7,\"end_lineno\":25,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"highlight\"],\"properties\":{}}"}, {"id": "metagpt/utils/mmdc_pyppeteer.py"}, {"id": "metagpt/utils/mmdc_pyppeteer.py:mermaid_to_file"}, {"id": "metagpt/utils/mmdc_pyppeteer.py:ast.Constant:\n@Time : 2023/9/4 16:12\n@Author : alitrack\n@File : mmdc_pyppeteer.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 16:12\\n@Author : alitrack\\n@File : mmdc_pyppeteer.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/mmdc_pyppeteer.py:os"}, {"id": "metagpt/utils/mmdc_pyppeteer.py:module:urllib.parse"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urljoin\"]}}"}, {"id": "metagpt/utils/mmdc_pyppeteer.py:names:['urljoin']"}, {"id": "metagpt/utils/mmdc_pyppeteer.py:module:pyppeteer"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pyppeteer\",\"names\":[\"launch\"]}}"}, {"id": "metagpt/utils/mmdc_pyppeteer.py:names:['launch']"}, {"id": "metagpt/utils/mmdc_pyppeteer.py:module:metagpt.config"}, {"id": "metagpt/utils/mmdc_pyppeteer.py:names:['CONFIG']"}, {"id": "metagpt/utils/mmdc_pyppeteer.py:module:metagpt.logs"}, {"id": "metagpt/utils/mmdc_pyppeteer.py:names:['logger']"}, {"id": "{\"lineno\":17,\"end_lineno\":128,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"mermaid_to_file\"],\"properties\":{}}"}, {"id": "metagpt/utils/s3.py:S3:__init__"}, {"id": "metagpt/utils/s3.py:base64"}, {"id": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"id": "metagpt/utils/s3.py:os.path"}, {"id": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.Import\",\"tokens\":[\"os.path\"],\"properties\":{}}"}, {"id": "metagpt/utils/s3.py:traceback"}, {"id": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.Import\",\"tokens\":[\"traceback\"],\"properties\":{}}"}, {"id": "metagpt/utils/s3.py:uuid"}, {"id": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.Import\",\"tokens\":[\"uuid\"],\"properties\":{}}"}, {"id": "metagpt/utils/s3.py:module:pathlib"}, {"id": "metagpt/utils/s3.py:names:['Path']"}, {"id": "metagpt/utils/s3.py:module:typing"}, {"id": "metagpt/utils/s3.py:names:['Optional']"}, {"id": "metagpt/utils/s3.py:aioboto3"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"aioboto3\"],\"properties\":{}}"}, {"id": "metagpt/utils/s3.py:aiofiles"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"id": "metagpt/utils/s3.py:module:metagpt.config"}, {"id": "metagpt/utils/s3.py:names:['CONFIG']"}, {"id": "metagpt/utils/s3.py:module:metagpt.const"}, {"id": "metagpt/utils/s3.py:names:['BASE64_FORMAT']"}, {"id": "metagpt/utils/s3.py:module:metagpt.logs"}, {"id": "metagpt/utils/s3.py:names:['logger']"}, {"id": "{\"lineno\":16,\"end_lineno\":170,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"S3\"],\"properties\":{}}"}, {"id": "metagpt/utils/json_to_markdown.py"}, {"id": "metagpt/utils/json_to_markdown.py:json_to_markdown"}, {"id": "metagpt/utils/json_to_markdown.py:ast.Constant:\n@Time : 2023/9/11 11:50\n@Author : femto Zheng\n@File : json_to_markdown.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/11 11:50\\n@Author : femto Zheng\\n@File : json_to_markdown.py\\n\"],\"properties\":{}}"}, {"id": "{\"lineno\":11,\"end_lineno\":42,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"json_to_markdown\"],\"properties\":{}}"}, {"id": "metagpt/utils/custom_decoder.py:CustomDecoder:__init__"}, {"id": "metagpt/utils/custom_decoder.py:py_make_scanner"}, {"id": "metagpt/utils/custom_decoder.py:JSONObject"}, {"id": "metagpt/utils/custom_decoder.py:py_scanstring"}, {"id": "metagpt/utils/custom_decoder.py:NUMBER_RE"}, {"id": "metagpt/utils/custom_decoder.py:FLAGS"}, {"id": "metagpt/utils/custom_decoder.py:STRINGCHUNK"}, {"id": "metagpt/utils/custom_decoder.py:STRINGCHUNK_SINGLEQUOTE"}, {"id": "metagpt/utils/custom_decoder.py:STRINGCHUNK_TRIPLE_DOUBLE_QUOTE"}, {"id": "metagpt/utils/custom_decoder.py:STRINGCHUNK_TRIPLE_SINGLEQUOTE"}, {"id": "metagpt/utils/custom_decoder.py:BACKSLASH"}, {"id": "metagpt/utils/custom_decoder.py:WHITESPACE"}, {"id": "metagpt/utils/custom_decoder.py:WHITESPACE_STR"}, {"id": "metagpt/utils/custom_decoder.py:scanstring"}, {"id": "metagpt/utils/custom_decoder.py:json"}, {"id": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/utils/custom_decoder.py:re"}, {"id": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"id": "metagpt/utils/custom_decoder.py:module:json"}, {"id": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"json\",\"names\":[\"JSONDecodeError\"]}}"}, {"id": "metagpt/utils/custom_decoder.py:names:['JSONDecodeError']"}, {"id": "metagpt/utils/custom_decoder.py:module:json.decoder"}, {"id": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"json.decoder\",\"names\":[\"_decode_uXXXX\"]}}"}, {"id": "metagpt/utils/custom_decoder.py:names:['_decode_uXXXX']"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Assign\",\"tokens\":[\"NUMBER_RE\"],\"properties\":{}}"}, {"id": "{\"lineno\":9,\"end_lineno\":69,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"py_make_scanner\"],\"properties\":{}}"}, {"id": "{\"lineno\":72,\"end_lineno\":72,\"type_name\":\"ast.Assign\",\"tokens\":[\"FLAGS\"],\"properties\":{}}"}, {"id": "{\"lineno\":73,\"end_lineno\":73,\"type_name\":\"ast.Assign\",\"tokens\":[\"STRINGCHUNK\"],\"properties\":{}}"}, {"id": "{\"lineno\":74,\"end_lineno\":74,\"type_name\":\"ast.Assign\",\"tokens\":[\"STRINGCHUNK_SINGLEQUOTE\"],\"properties\":{}}"}, {"id": "{\"lineno\":75,\"end_lineno\":75,\"type_name\":\"ast.Assign\",\"tokens\":[\"STRINGCHUNK_TRIPLE_DOUBLE_QUOTE\"],\"properties\":{}}"}, {"id": "{\"lineno\":76,\"end_lineno\":76,\"type_name\":\"ast.Assign\",\"tokens\":[\"STRINGCHUNK_TRIPLE_SINGLEQUOTE\"],\"properties\":{}}"}, {"id": "{\"lineno\":77,\"end_lineno\":86,\"type_name\":\"ast.Assign\",\"tokens\":[\"BACKSLASH\"],\"properties\":{}}"}, {"id": "{\"lineno\":87,\"end_lineno\":87,\"type_name\":\"ast.Assign\",\"tokens\":[\"WHITESPACE\"],\"properties\":{}}"}, {"id": "{\"lineno\":88,\"end_lineno\":88,\"type_name\":\"ast.Assign\",\"tokens\":[\"WHITESPACE_STR\"],\"properties\":{}}"}, {"id": "{\"lineno\":91,\"end_lineno\":192,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"JSONObject\"],\"properties\":{}}"}, {"id": "{\"lineno\":195,\"end_lineno\":267,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"py_scanstring\"],\"properties\":{}}"}, {"id": "{\"lineno\":270,\"end_lineno\":270,\"type_name\":\"ast.Assign\",\"tokens\":[\"scanstring\"],\"properties\":{}}"}, {"id": "{\"lineno\":273,\"end_lineno\":297,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CustomDecoder\"],\"properties\":{}}"}, {"id": "metagpt/utils/git_repository.py:GitRepository:__init__"}, {"id": "metagpt/utils/git_repository.py:GitRepository:_init"}, {"id": "metagpt/utils/git_repository.py:ast.Constant:\n@Time : 2023/11/20\n@Author : mashenquan\n@File : git_repository.py\n@Desc: Git repository management. RFC 135 2.2.3.3.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/11/20\\n@Author : mashenquan\\n@File : git_repository.py\\n@Desc: Git repository management. RFC 135 2.2.3.3.\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/git_repository.py:module:__future__"}, {"id": "metagpt/utils/git_repository.py:names:['annotations']"}, {"id": "metagpt/utils/git_repository.py:shutil"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"shutil\"],\"properties\":{}}"}, {"id": "metagpt/utils/git_repository.py:module:enum"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"id": "metagpt/utils/git_repository.py:names:['Enum']"}, {"id": "metagpt/utils/git_repository.py:module:pathlib"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/utils/git_repository.py:names:['Path']"}, {"id": "metagpt/utils/git_repository.py:module:typing"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\"]}}"}, {"id": "metagpt/utils/git_repository.py:names:['Dict', 'List']"}, {"id": "metagpt/utils/git_repository.py:module:git.repo"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"git.repo\",\"names\":[\"Repo\"]}}"}, {"id": "metagpt/utils/git_repository.py:names:['Repo']"}, {"id": "metagpt/utils/git_repository.py:module:git.repo.fun"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"git.repo.fun\",\"names\":[\"is_git_dir\"]}}"}, {"id": "metagpt/utils/git_repository.py:names:['is_git_dir']"}, {"id": "metagpt/utils/git_repository.py:module:gitignore_parser"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"gitignore_parser\",\"names\":[\"parse_gitignore\"]}}"}, {"id": "metagpt/utils/git_repository.py:names:['parse_gitignore']"}, {"id": "metagpt/utils/git_repository.py:module:metagpt.logs"}, {"id": "metagpt/utils/git_repository.py:names:['logger']"}, {"id": "metagpt/utils/git_repository.py:module:metagpt.utils.dependency_file"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.dependency_file\",\"names\":[\"DependencyFile\"]}}"}, {"id": "metagpt/utils/git_repository.py:names:['DependencyFile']"}, {"id": "metagpt/utils/git_repository.py:module:metagpt.utils.file_repository"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"id": "metagpt/utils/git_repository.py:names:['FileRepository']"}, {"id": "{\"lineno\":25,\"end_lineno\":32,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ChangeType\"],\"properties\":{}}"}, {"id": "{\"lineno\":35,\"end_lineno\":272,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GitRepository\"],\"properties\":{}}"}, {"id": "metagpt/utils/read_document.py"}, {"id": "metagpt/utils/read_document.py:read_docx"}, {"id": "metagpt/utils/read_document.py:ast.Constant:\n@Time : 2023/4/29 15:45\n@Author : alexanderwu\n@File : read_document.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/29 15:45\\n@Author : alexanderwu\\n@File : read_document.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/utils/read_document.py:docx"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"docx\"],\"properties\":{}}"}, {"id": "{\"lineno\":12,\"end_lineno\":23,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"read_docx\"],\"properties\":{}}"}, {"id": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_create_mermaid_class_views"}, {"id": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_create_mermaid_class"}, {"id": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_create_mermaid_relationship"}, {"id": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_parse_name"}, {"id": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_parse_variable_type"}, {"id": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_parse_function_args"}, {"id": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_diff_path"}, {"id": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_align_root"}, {"id": "metagpt/actions/rebuild_class_view.py:ast.Constant:\n@Time : 2023/12/19\n@Author : mashenquan\n@File : rebuild_class_view.py\n@Desc : Rebuild class view info\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/19\\n@Author : mashenquan\\n@File : rebuild_class_view.py\\n@Desc : Rebuild class view info\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/rebuild_class_view.py:re"}, {"id": "metagpt/actions/rebuild_class_view.py:module:pathlib"}, {"id": "metagpt/actions/rebuild_class_view.py:names:['Path']"}, {"id": "metagpt/actions/rebuild_class_view.py:aiofiles"}, {"id": "metagpt/actions/rebuild_class_view.py:module:metagpt.actions"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/rebuild_class_view.py:names:['Action']"}, {"id": "metagpt/actions/rebuild_class_view.py:module:metagpt.config"}, {"id": "metagpt/actions/rebuild_class_view.py:names:['CONFIG']"}, {"id": "metagpt/actions/rebuild_class_view.py:module:metagpt.const"}, {"id": "{\"lineno\":16,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"AGGREGATION\",\"COMPOSITION\",\"DATA_API_DESIGN_FILE_REPO\",\"GENERALIZATION\",\"GRAPH_REPO_FILE_REPO\"]}}"}, {"id": "metagpt/actions/rebuild_class_view.py:names:['AGGREGATION', 'COMPOSITION', 'DATA_API_DESIGN_FILE_REPO', 'GENERALIZATION', 'GRAPH_REPO_FILE_REPO']"}, {"id": "metagpt/actions/rebuild_class_view.py:module:metagpt.logs"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/actions/rebuild_class_view.py:names:['logger']"}, {"id": "metagpt/actions/rebuild_class_view.py:module:metagpt.repo_parser"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.repo_parser\",\"names\":[\"RepoParser\"]}}"}, {"id": "metagpt/actions/rebuild_class_view.py:names:['RepoParser']"}, {"id": "metagpt/actions/rebuild_class_view.py:module:metagpt.schema"}, {"id": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"ClassAttribute\",\"ClassMethod\",\"ClassView\"]}}"}, {"id": "metagpt/actions/rebuild_class_view.py:names:['ClassAttribute', 'ClassMethod', 'ClassView']"}, {"id": "metagpt/actions/rebuild_class_view.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"split_namespace\"]}}"}, {"id": "metagpt/actions/rebuild_class_view.py:names:['split_namespace']"}, {"id": "metagpt/actions/rebuild_class_view.py:module:metagpt.utils.di_graph_repository"}, {"id": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.di_graph_repository\",\"names\":[\"DiGraphRepository\"]}}"}, {"id": "metagpt/actions/rebuild_class_view.py:names:['DiGraphRepository']"}, {"id": "metagpt/actions/rebuild_class_view.py:module:metagpt.utils.graph_repository"}, {"id": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.graph_repository\",\"names\":[\"GraphKeyword\",\"GraphRepository\"]}}"}, {"id": "metagpt/actions/rebuild_class_view.py:names:['GraphKeyword', 'GraphRepository']"}, {"id": "{\"lineno\":31,\"end_lineno\":217,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RebuildClassView\"],\"properties\":{}}"}, {"id": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView:_search_main_entry"}, {"id": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView:_rebuild_sequence_view"}, {"id": "metagpt/actions/rebuild_sequence_view.py:ast.Constant:\n@Time : 2024/1/4\n@Author : mashenquan\n@File : rebuild_sequence_view.py\n@Desc : Rebuild sequence view info\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2024/1/4\\n@Author : mashenquan\\n@File : rebuild_sequence_view.py\\n@Desc : Rebuild sequence view info\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/rebuild_sequence_view.py:module:typing"}, {"id": "metagpt/actions/rebuild_sequence_view.py:names:['List']"}, {"id": "metagpt/actions/rebuild_sequence_view.py:module:metagpt.actions"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/rebuild_sequence_view.py:names:['Action']"}, {"id": "metagpt/actions/rebuild_sequence_view.py:module:metagpt.config"}, {"id": "metagpt/actions/rebuild_sequence_view.py:names:['CONFIG']"}, {"id": "metagpt/actions/rebuild_sequence_view.py:module:metagpt.const"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"GRAPH_REPO_FILE_REPO\"]}}"}, {"id": "metagpt/actions/rebuild_sequence_view.py:names:['GRAPH_REPO_FILE_REPO']"}, {"id": "metagpt/actions/rebuild_sequence_view.py:module:metagpt.utils.di_graph_repository"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.di_graph_repository\",\"names\":[\"DiGraphRepository\"]}}"}, {"id": "metagpt/actions/rebuild_sequence_view.py:names:['DiGraphRepository']"}, {"id": "metagpt/actions/rebuild_sequence_view.py:module:metagpt.utils.graph_repository"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.graph_repository\",\"names\":[\"GraphKeyword\"]}}"}, {"id": "metagpt/actions/rebuild_sequence_view.py:names:['GraphKeyword']"}, {"id": "{\"lineno\":18,\"end_lineno\":44,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RebuildSequenceView\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_code.py:PROMPT_TEMPLATE"}, {"id": "metagpt/actions/write_code.py:ast.Constant:\n@Time : 2023/5/11 17:45\n@Author : alexanderwu\n@File : write_code.py\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.1.3 of RFC 116, modify the data type of the `cause_by`\n value of the `Message` object.\n@Modified By: mashenquan, 2023-11-27.\n 1. Mark the location of Design, Tasks, Legacy Code and Debug logs in the PROMPT_TEMPLATE with markdown\n code-block formatting to enhance the understanding for the LLM.\n 2. Following the think-act principle, solidify the task parameters when creating the WriteCode object, rather\n than passing them in when calling the run function.\n 3. Encapsulate the input of RunCode into RunCodeContext and encapsulate the output of RunCode into\n RunCodeResult to standardize and unify parameter passing between WriteCode, RunCode, and DebugError.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":16,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:45\\n@Author : alexanderwu\\n@File : write_code.py\\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.1.3 of RFC 116, modify the data type of the `cause_by`\\n value of the `Message` object.\\n@Modified By: mashenquan, 2023-11-27.\\n 1. Mark the location of Design, Tasks, Legacy Code and Debug logs in the PROMPT_TEMPLATE with markdown\\n code-block formatting to enhance the understanding for the LLM.\\n 2. Following the think-act principle, solidify the task parameters when creating the WriteCode object, rather\\n than passing them in when calling the run function.\\n 3. Encapsulate the input of RunCode into RunCodeContext and encapsulate the output of RunCode into\\n RunCodeResult to standardize and unify parameter passing between WriteCode, RunCode, and DebugError.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_code.py:json"}, {"id": "metagpt/actions/write_code.py:module:pydantic"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"id": "metagpt/actions/write_code.py:names:['Field']"}, {"id": "metagpt/actions/write_code.py:module:tenacity"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"retry\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"id": "metagpt/actions/write_code.py:names:['retry', 'stop_after_attempt', 'wait_random_exponential']"}, {"id": "metagpt/actions/write_code.py:module:metagpt.actions.action"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/write_code.py:names:['Action']"}, {"id": "metagpt/actions/write_code.py:module:metagpt.config"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/actions/write_code.py:names:['CONFIG']"}, {"id": "metagpt/actions/write_code.py:module:metagpt.const"}, {"id": "{\"lineno\":25,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BUGFIX_FILENAME\",\"CODE_SUMMARIES_FILE_REPO\",\"DOCS_FILE_REPO\",\"TASK_FILE_REPO\",\"TEST_OUTPUTS_FILE_REPO\"]}}"}, {"id": "metagpt/actions/write_code.py:names:['BUGFIX_FILENAME', 'CODE_SUMMARIES_FILE_REPO', 'DOCS_FILE_REPO', 'TASK_FILE_REPO', 'TEST_OUTPUTS_FILE_REPO']"}, {"id": "metagpt/actions/write_code.py:module:metagpt.logs"}, {"id": "{\"lineno\":32,\"end_lineno\":32,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/actions/write_code.py:names:['logger']"}, {"id": "metagpt/actions/write_code.py:module:metagpt.schema"}, {"id": "{\"lineno\":33,\"end_lineno\":33,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodingContext\",\"Document\",\"RunCodeResult\"]}}"}, {"id": "metagpt/actions/write_code.py:names:['CodingContext', 'Document', 'RunCodeResult']"}, {"id": "metagpt/actions/write_code.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":34,\"end_lineno\":34,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"id": "metagpt/actions/write_code.py:names:['CodeParser']"}, {"id": "metagpt/actions/write_code.py:module:metagpt.utils.file_repository"}, {"id": "{\"lineno\":35,\"end_lineno\":35,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"id": "metagpt/actions/write_code.py:names:['FileRepository']"}, {"id": "{\"lineno\":37,\"end_lineno\":85,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":88,\"end_lineno\":154,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteCode\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_prd_an.py"}, {"id": "metagpt/actions/write_prd_an.py:main"}, {"id": "metagpt/actions/write_prd_an.py:LANGUAGE"}, {"id": "metagpt/actions/write_prd_an.py:PROGRAMMING_LANGUAGE"}, {"id": "metagpt/actions/write_prd_an.py:ORIGINAL_REQUIREMENTS"}, {"id": "metagpt/actions/write_prd_an.py:PROJECT_NAME"}, {"id": "metagpt/actions/write_prd_an.py:PRODUCT_GOALS"}, {"id": "metagpt/actions/write_prd_an.py:USER_STORIES"}, {"id": "metagpt/actions/write_prd_an.py:COMPETITIVE_ANALYSIS"}, {"id": "metagpt/actions/write_prd_an.py:COMPETITIVE_QUADRANT_CHART"}, {"id": "metagpt/actions/write_prd_an.py:REQUIREMENT_ANALYSIS"}, {"id": "metagpt/actions/write_prd_an.py:REQUIREMENT_POOL"}, {"id": "metagpt/actions/write_prd_an.py:UI_DESIGN_DRAFT"}, {"id": "metagpt/actions/write_prd_an.py:ANYTHING_UNCLEAR"}, {"id": "metagpt/actions/write_prd_an.py:ISSUE_TYPE"}, {"id": "metagpt/actions/write_prd_an.py:IS_RELATIVE"}, {"id": "metagpt/actions/write_prd_an.py:REASON"}, {"id": "metagpt/actions/write_prd_an.py:NODES"}, {"id": "metagpt/actions/write_prd_an.py:WRITE_PRD_NODE"}, {"id": "metagpt/actions/write_prd_an.py:WP_ISSUE_TYPE_NODE"}, {"id": "metagpt/actions/write_prd_an.py:WP_IS_RELATIVE_NODE"}, {"id": "metagpt/actions/write_prd_an.py:ast.Constant:\n@Time : 2023/12/14 11:40\n@Author : alexanderwu\n@File : write_prd_an.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/14 11:40\\n@Author : alexanderwu\\n@File : write_prd_an.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_prd_an.py:module:typing"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"id": "metagpt/actions/write_prd_an.py:names:['List']"}, {"id": "metagpt/actions/write_prd_an.py:module:metagpt.actions.action_node"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"id": "metagpt/actions/write_prd_an.py:names:['ActionNode']"}, {"id": "metagpt/actions/write_prd_an.py:module:metagpt.logs"}, {"id": "metagpt/actions/write_prd_an.py:names:['logger']"}, {"id": "{\"lineno\":13,\"end_lineno\":18,\"type_name\":\"ast.Assign\",\"tokens\":[\"LANGUAGE\"],\"properties\":{}}"}, {"id": "{\"lineno\":20,\"end_lineno\":25,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROGRAMMING_LANGUAGE\"],\"properties\":{}}"}, {"id": "{\"lineno\":27,\"end_lineno\":32,\"type_name\":\"ast.Assign\",\"tokens\":[\"ORIGINAL_REQUIREMENTS\"],\"properties\":{}}"}, {"id": "{\"lineno\":34,\"end_lineno\":39,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROJECT_NAME\"],\"properties\":{}}"}, {"id": "{\"lineno\":41,\"end_lineno\":46,\"type_name\":\"ast.Assign\",\"tokens\":[\"PRODUCT_GOALS\"],\"properties\":{}}"}, {"id": "{\"lineno\":48,\"end_lineno\":59,\"type_name\":\"ast.Assign\",\"tokens\":[\"USER_STORIES\"],\"properties\":{}}"}, {"id": "{\"lineno\":61,\"end_lineno\":70,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMPETITIVE_ANALYSIS\"],\"properties\":{}}"}, {"id": "{\"lineno\":72,\"end_lineno\":91,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMPETITIVE_QUADRANT_CHART\"],\"properties\":{}}"}, {"id": "{\"lineno\":93,\"end_lineno\":98,\"type_name\":\"ast.Assign\",\"tokens\":[\"REQUIREMENT_ANALYSIS\"],\"properties\":{}}"}, {"id": "{\"lineno\":100,\"end_lineno\":105,\"type_name\":\"ast.Assign\",\"tokens\":[\"REQUIREMENT_POOL\"],\"properties\":{}}"}, {"id": "{\"lineno\":107,\"end_lineno\":112,\"type_name\":\"ast.Assign\",\"tokens\":[\"UI_DESIGN_DRAFT\"],\"properties\":{}}"}, {"id": "{\"lineno\":114,\"end_lineno\":119,\"type_name\":\"ast.Assign\",\"tokens\":[\"ANYTHING_UNCLEAR\"],\"properties\":{}}"}, {"id": "{\"lineno\":121,\"end_lineno\":126,\"type_name\":\"ast.Assign\",\"tokens\":[\"ISSUE_TYPE\"],\"properties\":{}}"}, {"id": "{\"lineno\":128,\"end_lineno\":133,\"type_name\":\"ast.Assign\",\"tokens\":[\"IS_RELATIVE\"],\"properties\":{}}"}, {"id": "{\"lineno\":135,\"end_lineno\":137,\"type_name\":\"ast.Assign\",\"tokens\":[\"REASON\"],\"properties\":{}}"}, {"id": "{\"lineno\":140,\"end_lineno\":153,\"type_name\":\"ast.Assign\",\"tokens\":[\"NODES\"],\"properties\":{}}"}, {"id": "{\"lineno\":155,\"end_lineno\":155,\"type_name\":\"ast.Assign\",\"tokens\":[\"WRITE_PRD_NODE\"],\"properties\":{}}"}, {"id": "{\"lineno\":156,\"end_lineno\":156,\"type_name\":\"ast.Assign\",\"tokens\":[\"WP_ISSUE_TYPE_NODE\"],\"properties\":{}}"}, {"id": "{\"lineno\":157,\"end_lineno\":157,\"type_name\":\"ast.Assign\",\"tokens\":[\"WP_IS_RELATIVE_NODE\"],\"properties\":{}}"}, {"id": "{\"lineno\":160,\"end_lineno\":162,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"main\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_prd_an.py:__name__:__main__"}, {"id": "{\"lineno\":165,\"end_lineno\":166,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/actions/summarize_code.py:PROMPT_TEMPLATE"}, {"id": "metagpt/actions/summarize_code.py:FORMAT_EXAMPLE"}, {"id": "metagpt/actions/summarize_code.py:ast.Constant:\n@Author : alexanderwu\n@File : summarize_code.py\n@Modified By: mashenquan, 2023/12/5. Archive the summarization content of issue discovery for use in WriteCode.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Author : alexanderwu\\n@File : summarize_code.py\\n@Modified By: mashenquan, 2023/12/5. Archive the summarization content of issue discovery for use in WriteCode.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/summarize_code.py:module:pathlib"}, {"id": "metagpt/actions/summarize_code.py:names:['Path']"}, {"id": "metagpt/actions/summarize_code.py:module:pydantic"}, {"id": "metagpt/actions/summarize_code.py:names:['Field']"}, {"id": "metagpt/actions/summarize_code.py:module:tenacity"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"retry\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"id": "metagpt/actions/summarize_code.py:names:['retry', 'stop_after_attempt', 'wait_random_exponential']"}, {"id": "metagpt/actions/summarize_code.py:module:metagpt.actions.action"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/summarize_code.py:names:['Action']"}, {"id": "metagpt/actions/summarize_code.py:module:metagpt.config"}, {"id": "metagpt/actions/summarize_code.py:names:['CONFIG']"}, {"id": "metagpt/actions/summarize_code.py:module:metagpt.const"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"SYSTEM_DESIGN_FILE_REPO\",\"TASK_FILE_REPO\"]}}"}, {"id": "metagpt/actions/summarize_code.py:names:['SYSTEM_DESIGN_FILE_REPO', 'TASK_FILE_REPO']"}, {"id": "metagpt/actions/summarize_code.py:module:metagpt.logs"}, {"id": "metagpt/actions/summarize_code.py:names:['logger']"}, {"id": "metagpt/actions/summarize_code.py:module:metagpt.schema"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodeSummarizeContext\"]}}"}, {"id": "metagpt/actions/summarize_code.py:names:['CodeSummarizeContext']"}, {"id": "metagpt/actions/summarize_code.py:module:metagpt.utils.file_repository"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"id": "metagpt/actions/summarize_code.py:names:['FileRepository']"}, {"id": "{\"lineno\":20,\"end_lineno\":47,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":49,\"end_lineno\":90,\"type_name\":\"ast.Assign\",\"tokens\":[\"FORMAT_EXAMPLE\"],\"properties\":{}}"}, {"id": "{\"lineno\":94,\"end_lineno\":123,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SummarizeCode\"],\"properties\":{}}"}, {"id": "metagpt/actions/research.py:CollectLinks:_search_and_rank_urls"}, {"id": "metagpt/actions/research.py:WebBrowseAndSummarize:__init__"}, {"id": "metagpt/actions/research.py:ConductResearch:__init__"}, {"id": "metagpt/actions/research.py:get_research_system_text"}, {"id": "metagpt/actions/research.py:LANG_PROMPT"}, {"id": "metagpt/actions/research.py:RESEARCH_BASE_SYSTEM"}, {"id": "metagpt/actions/research.py:RESEARCH_TOPIC_SYSTEM"}, {"id": "metagpt/actions/research.py:SEARCH_TOPIC_PROMPT"}, {"id": "metagpt/actions/research.py:SUMMARIZE_SEARCH_PROMPT"}, {"id": "metagpt/actions/research.py:COLLECT_AND_RANKURLS_PROMPT"}, {"id": "metagpt/actions/research.py:WEB_BROWSE_AND_SUMMARIZE_PROMPT"}, {"id": "metagpt/actions/research.py:CONDUCT_RESEARCH_PROMPT"}, {"id": "metagpt/actions/research.py:module:__future__"}, {"id": "metagpt/actions/research.py:names:['annotations']"}, {"id": "metagpt/actions/research.py:asyncio"}, {"id": "metagpt/actions/research.py:module:typing"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Callable\",\"Optional\",\"Union\"]}}"}, {"id": "metagpt/actions/research.py:names:['Callable', 'Optional', 'Union']"}, {"id": "metagpt/actions/research.py:module:pydantic"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\",\"parse_obj_as\"]}}"}, {"id": "metagpt/actions/research.py:names:['Field', 'parse_obj_as']"}, {"id": "metagpt/actions/research.py:module:metagpt.actions"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/research.py:names:['Action']"}, {"id": "metagpt/actions/research.py:module:metagpt.config"}, {"id": "metagpt/actions/research.py:names:['CONFIG']"}, {"id": "metagpt/actions/research.py:module:metagpt.llm"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"id": "metagpt/actions/research.py:names:['LLM']"}, {"id": "metagpt/actions/research.py:module:metagpt.logs"}, {"id": "metagpt/actions/research.py:names:['logger']"}, {"id": "metagpt/actions/research.py:module:metagpt.provider.base_llm"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"id": "metagpt/actions/research.py:names:['BaseLLM']"}, {"id": "metagpt/actions/research.py:module:metagpt.tools.search_engine"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.search_engine\",\"names\":[\"SearchEngine\"]}}"}, {"id": "metagpt/actions/research.py:names:['SearchEngine']"}, {"id": "metagpt/actions/research.py:module:metagpt.tools.web_browser_engine"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.web_browser_engine\",\"names\":[\"WebBrowserEngine\",\"WebBrowserEngineType\"]}}"}, {"id": "metagpt/actions/research.py:names:['WebBrowserEngine', 'WebBrowserEngineType']"}, {"id": "metagpt/actions/research.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\"]}}"}, {"id": "metagpt/actions/research.py:names:['OutputParser']"}, {"id": "metagpt/actions/research.py:module:metagpt.utils.text"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.text\",\"names\":[\"generate_prompt_chunk\",\"reduce_message_length\"]}}"}, {"id": "metagpt/actions/research.py:names:['generate_prompt_chunk', 'reduce_message_length']"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.Assign\",\"tokens\":[\"LANG_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":22,\"end_lineno\":23,\"type_name\":\"ast.Assign\",\"tokens\":[\"RESEARCH_BASE_SYSTEM\"],\"properties\":{}}"}, {"id": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.Assign\",\"tokens\":[\"RESEARCH_TOPIC_SYSTEM\"],\"properties\":{}}"}, {"id": "{\"lineno\":27,\"end_lineno\":28,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_TOPIC_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":30,\"end_lineno\":37,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUMMARIZE_SEARCH_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":39,\"end_lineno\":51,\"type_name\":\"ast.Assign\",\"tokens\":[\"COLLECT_AND_RANKURLS_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":53,\"end_lineno\":62,\"type_name\":\"ast.Assign\",\"tokens\":[\"WEB_BROWSE_AND_SUMMARIZE_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":65,\"end_lineno\":77,\"type_name\":\"ast.Assign\",\"tokens\":[\"CONDUCT_RESEARCH_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":80,\"end_lineno\":173,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CollectLinks\"],\"properties\":{}}"}, {"id": "{\"lineno\":176,\"end_lineno\":244,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WebBrowseAndSummarize\"],\"properties\":{}}"}, {"id": "{\"lineno\":247,\"end_lineno\":278,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ConductResearch\"],\"properties\":{}}"}, {"id": "{\"lineno\":281,\"end_lineno\":291,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_research_system_text\"],\"properties\":{}}"}, {"id": "metagpt/actions/skill_action.py:ast.Constant:\n@Time : 2023/8/28\n@Author : mashenquan\n@File : skill_action.py\n@Desc : Call learned skill\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/28\\n@Author : mashenquan\\n@File : skill_action.py\\n@Desc : Call learned skill\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/skill_action.py:module:__future__"}, {"id": "metagpt/actions/skill_action.py:names:['annotations']"}, {"id": "metagpt/actions/skill_action.py:ast"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"ast\"],\"properties\":{}}"}, {"id": "metagpt/actions/skill_action.py:importlib"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"importlib\"],\"properties\":{}}"}, {"id": "metagpt/actions/skill_action.py:traceback"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"traceback\"],\"properties\":{}}"}, {"id": "metagpt/actions/skill_action.py:module:copy"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"copy\",\"names\":[\"deepcopy\"]}}"}, {"id": "metagpt/actions/skill_action.py:names:['deepcopy']"}, {"id": "metagpt/actions/skill_action.py:module:typing"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"Optional\"]}}"}, {"id": "metagpt/actions/skill_action.py:names:['Dict', 'Optional']"}, {"id": "metagpt/actions/skill_action.py:module:metagpt.actions"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/skill_action.py:names:['Action']"}, {"id": "metagpt/actions/skill_action.py:module:metagpt.learn.skill_loader"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.skill_loader\",\"names\":[\"Skill\"]}}"}, {"id": "metagpt/actions/skill_action.py:names:['Skill']"}, {"id": "metagpt/actions/skill_action.py:module:metagpt.logs"}, {"id": "metagpt/actions/skill_action.py:names:['logger']"}, {"id": "metagpt/actions/skill_action.py:module:metagpt.schema"}, {"id": "metagpt/actions/skill_action.py:names:['Message']"}, {"id": "{\"lineno\":24,\"end_lineno\":78,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ArgumentsParingAction\"],\"properties\":{}}"}, {"id": "{\"lineno\":81,\"end_lineno\":111,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SkillAction\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_test.py:PROMPT_TEMPLATE"}, {"id": "metagpt/actions/write_test.py:ast.Constant:\n@Time : 2023/5/11 22:12\n@Author : alexanderwu\n@File : write_test.py\n@Modified By: mashenquan, 2023-11-27. Following the think-act principle, solidify the task parameters when creating the\n WriteTest object, rather than passing them in when calling the run function.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 22:12\\n@Author : alexanderwu\\n@File : write_test.py\\n@Modified By: mashenquan, 2023-11-27. Following the think-act principle, solidify the task parameters when creating the\\n WriteTest object, rather than passing them in when calling the run function.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_test.py:module:typing"}, {"id": "metagpt/actions/write_test.py:names:['Optional']"}, {"id": "metagpt/actions/write_test.py:module:metagpt.actions.action"}, {"id": "metagpt/actions/write_test.py:names:['Action']"}, {"id": "metagpt/actions/write_test.py:module:metagpt.config"}, {"id": "metagpt/actions/write_test.py:names:['CONFIG']"}, {"id": "metagpt/actions/write_test.py:module:metagpt.const"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"TEST_CODES_FILE_REPO\"]}}"}, {"id": "metagpt/actions/write_test.py:names:['TEST_CODES_FILE_REPO']"}, {"id": "metagpt/actions/write_test.py:module:metagpt.logs"}, {"id": "metagpt/actions/write_test.py:names:['logger']"}, {"id": "metagpt/actions/write_test.py:module:metagpt.schema"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\",\"TestingContext\"]}}"}, {"id": "metagpt/actions/write_test.py:names:['Document', 'TestingContext']"}, {"id": "metagpt/actions/write_test.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"id": "metagpt/actions/write_test.py:names:['CodeParser']"}, {"id": "{\"lineno\":20,\"end_lineno\":38,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":41,\"end_lineno\":70,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteTest\"],\"properties\":{}}"}, {"id": "metagpt/actions/debug_error.py:PROMPT_TEMPLATE"}, {"id": "metagpt/actions/debug_error.py:ast.Constant:\n@Time : 2023/5/11 17:46\n@Author : alexanderwu\n@File : debug_error.py\n@Modified By: mashenquan, 2023/11/27.\n 1. Divide the context into three components: legacy code, unit test code, and console log.\n 2. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":10,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:46\\n@Author : alexanderwu\\n@File : debug_error.py\\n@Modified By: mashenquan, 2023/11/27.\\n 1. Divide the context into three components: legacy code, unit test code, and console log.\\n 2. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/debug_error.py:re"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"id": "metagpt/actions/debug_error.py:module:pydantic"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"id": "metagpt/actions/debug_error.py:names:['Field']"}, {"id": "metagpt/actions/debug_error.py:module:metagpt.actions.action"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/debug_error.py:names:['Action']"}, {"id": "metagpt/actions/debug_error.py:module:metagpt.config"}, {"id": "metagpt/actions/debug_error.py:names:['CONFIG']"}, {"id": "metagpt/actions/debug_error.py:module:metagpt.const"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"TEST_CODES_FILE_REPO\",\"TEST_OUTPUTS_FILE_REPO\"]}}"}, {"id": "metagpt/actions/debug_error.py:names:['TEST_CODES_FILE_REPO', 'TEST_OUTPUTS_FILE_REPO']"}, {"id": "metagpt/actions/debug_error.py:module:metagpt.logs"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/actions/debug_error.py:names:['logger']"}, {"id": "metagpt/actions/debug_error.py:module:metagpt.schema"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"RunCodeContext\",\"RunCodeResult\"]}}"}, {"id": "metagpt/actions/debug_error.py:names:['RunCodeContext', 'RunCodeResult']"}, {"id": "metagpt/actions/debug_error.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"id": "metagpt/actions/debug_error.py:names:['CodeParser']"}, {"id": "metagpt/actions/debug_error.py:module:metagpt.utils.file_repository"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"id": "metagpt/actions/debug_error.py:names:['FileRepository']"}, {"id": "{\"lineno\":23,\"end_lineno\":48,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":51,\"end_lineno\":83,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DebugError\"],\"properties\":{}}"}, {"id": "metagpt/actions/design_api.py:WriteDesign:_new_system_design"}, {"id": "metagpt/actions/design_api.py:WriteDesign:_merge"}, {"id": "metagpt/actions/design_api.py:WriteDesign:_update_system_design"}, {"id": "metagpt/actions/design_api.py:WriteDesign:_save_data_api_design"}, {"id": "metagpt/actions/design_api.py:WriteDesign:_save_seq_flow"}, {"id": "metagpt/actions/design_api.py:WriteDesign:_save_pdf"}, {"id": "metagpt/actions/design_api.py:WriteDesign:_save_mermaid_file"}, {"id": "metagpt/actions/design_api.py:NEW_REQ_TEMPLATE"}, {"id": "metagpt/actions/design_api.py:ast.Constant:\n@Time : 2023/5/11 19:26\n@Author : alexanderwu\n@File : design_api.py\n@Modified By: mashenquan, 2023/11/27.\n 1. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\n 2. According to the design in Section 2.2.3.5.3 of RFC 135, add incremental iteration functionality.\n@Modified By: mashenquan, 2023/12/5. Move the generation logic of the project name to WritePRD.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":11,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 19:26\\n@Author : alexanderwu\\n@File : design_api.py\\n@Modified By: mashenquan, 2023/11/27.\\n 1. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\\n 2. According to the design in Section 2.2.3.5.3 of RFC 135, add incremental iteration functionality.\\n@Modified By: mashenquan, 2023/12/5. Move the generation logic of the project name to WritePRD.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/design_api.py:json"}, {"id": "metagpt/actions/design_api.py:module:pathlib"}, {"id": "metagpt/actions/design_api.py:names:['Path']"}, {"id": "metagpt/actions/design_api.py:module:typing"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"id": "metagpt/actions/design_api.py:names:['Optional']"}, {"id": "metagpt/actions/design_api.py:module:metagpt.actions"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"ActionOutput\"]}}"}, {"id": "metagpt/actions/design_api.py:names:['Action', 'ActionOutput']"}, {"id": "metagpt/actions/design_api.py:module:metagpt.actions.design_api_an"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api_an\",\"names\":[\"DESIGN_API_NODE\"]}}"}, {"id": "metagpt/actions/design_api.py:names:['DESIGN_API_NODE']"}, {"id": "metagpt/actions/design_api.py:module:metagpt.config"}, {"id": "metagpt/actions/design_api.py:names:['CONFIG']"}, {"id": "metagpt/actions/design_api.py:module:metagpt.const"}, {"id": "{\"lineno\":19,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DATA_API_DESIGN_FILE_REPO\",\"PRDS_FILE_REPO\",\"SEQ_FLOW_FILE_REPO\",\"SYSTEM_DESIGN_FILE_REPO\",\"SYSTEM_DESIGN_PDF_FILE_REPO\"]}}"}, {"id": "metagpt/actions/design_api.py:names:['DATA_API_DESIGN_FILE_REPO', 'PRDS_FILE_REPO', 'SEQ_FLOW_FILE_REPO', 'SYSTEM_DESIGN_FILE_REPO', 'SYSTEM_DESIGN_PDF_FILE_REPO']"}, {"id": "metagpt/actions/design_api.py:module:metagpt.logs"}, {"id": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/actions/design_api.py:names:['logger']"}, {"id": "metagpt/actions/design_api.py:module:metagpt.schema"}, {"id": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\",\"Documents\",\"Message\"]}}"}, {"id": "metagpt/actions/design_api.py:names:['Document', 'Documents', 'Message']"}, {"id": "metagpt/actions/design_api.py:module:metagpt.utils.file_repository"}, {"id": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"id": "metagpt/actions/design_api.py:names:['FileRepository']"}, {"id": "metagpt/actions/design_api.py:module:metagpt.utils.mermaid"}, {"id": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.mermaid\",\"names\":[\"mermaid_to_file\"]}}"}, {"id": "metagpt/actions/design_api.py:names:['mermaid_to_file']"}, {"id": "{\"lineno\":31,\"end_lineno\":37,\"type_name\":\"ast.Assign\",\"tokens\":[\"NEW_REQ_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":40,\"end_lineno\":136,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteDesign\"],\"properties\":{}}"}, {"id": "metagpt/actions/design_api_an.py"}, {"id": "metagpt/actions/design_api_an.py:IMPLEMENTATION_APPROACH"}, {"id": "metagpt/actions/design_api_an.py:PROJECT_NAME"}, {"id": "metagpt/actions/design_api_an.py:FILE_LIST"}, {"id": "metagpt/actions/design_api_an.py:DATA_STRUCTURES_AND_INTERFACES"}, {"id": "metagpt/actions/design_api_an.py:PROGRAM_CALL_FLOW"}, {"id": "metagpt/actions/design_api_an.py:ANYTHING_UNCLEAR"}, {"id": "metagpt/actions/design_api_an.py:NODES"}, {"id": "metagpt/actions/design_api_an.py:DESIGN_API_NODE"}, {"id": "metagpt/actions/design_api_an.py:ast.Constant:\n@Time : 2023/12/12 22:24\n@Author : alexanderwu\n@File : design_api_an.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/12 22:24\\n@Author : alexanderwu\\n@File : design_api_an.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/design_api_an.py:module:typing"}, {"id": "metagpt/actions/design_api_an.py:names:['List']"}, {"id": "metagpt/actions/design_api_an.py:module:metagpt.actions.action_node"}, {"id": "metagpt/actions/design_api_an.py:names:['ActionNode']"}, {"id": "metagpt/actions/design_api_an.py:module:metagpt.utils.mermaid"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.mermaid\",\"names\":[\"MMC1\",\"MMC2\"]}}"}, {"id": "metagpt/actions/design_api_an.py:names:['MMC1', 'MMC2']"}, {"id": "{\"lineno\":13,\"end_lineno\":18,\"type_name\":\"ast.Assign\",\"tokens\":[\"IMPLEMENTATION_APPROACH\"],\"properties\":{}}"}, {"id": "{\"lineno\":20,\"end_lineno\":22,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROJECT_NAME\"],\"properties\":{}}"}, {"id": "{\"lineno\":24,\"end_lineno\":29,\"type_name\":\"ast.Assign\",\"tokens\":[\"FILE_LIST\"],\"properties\":{}}"}, {"id": "{\"lineno\":31,\"end_lineno\":38,\"type_name\":\"ast.Assign\",\"tokens\":[\"DATA_STRUCTURES_AND_INTERFACES\"],\"properties\":{}}"}, {"id": "{\"lineno\":40,\"end_lineno\":46,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROGRAM_CALL_FLOW\"],\"properties\":{}}"}, {"id": "{\"lineno\":48,\"end_lineno\":53,\"type_name\":\"ast.Assign\",\"tokens\":[\"ANYTHING_UNCLEAR\"],\"properties\":{}}"}, {"id": "{\"lineno\":55,\"end_lineno\":62,\"type_name\":\"ast.Assign\",\"tokens\":[\"NODES\"],\"properties\":{}}"}, {"id": "{\"lineno\":64,\"end_lineno\":64,\"type_name\":\"ast.Assign\",\"tokens\":[\"DESIGN_API_NODE\"],\"properties\":{}}"}, {"id": "metagpt/actions/action_output.py:ActionOutput:__init__"}, {"id": "metagpt/actions/action_output.py:ast.Constant:\n@Time : 2023/7/11 10:03\n@Author : chengmaoyu\n@File : action_output\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/7/11 10:03\\n@Author : chengmaoyu\\n@File : action_output\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/action_output.py:module:pydantic"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"id": "metagpt/actions/action_output.py:names:['BaseModel']"}, {"id": "{\"lineno\":12,\"end_lineno\":18,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ActionOutput\"],\"properties\":{}}"}, {"id": "metagpt/actions/add_requirement.py:ast.Constant:\n@Time : 2023/5/20 17:46\n@Author : alexanderwu\n@File : add_requirement.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/20 17:46\\n@Author : alexanderwu\\n@File : add_requirement.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/add_requirement.py:module:metagpt.actions"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/add_requirement.py:names:['Action']"}, {"id": "{\"lineno\":11,\"end_lineno\":12,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"UserRequirement\"],\"properties\":{}}"}, {"id": "metagpt/actions/__init__.py"}, {"id": "metagpt/actions/__init__.py:ActionType"}, {"id": "metagpt/actions/__init__.py:__all__"}, {"id": "metagpt/actions/__init__.py:ast.Constant:\n@Time : 2023/5/11 17:44\n@Author : alexanderwu\n@File : __init__.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:44\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/__init__.py:module:enum"}, {"id": "metagpt/actions/__init__.py:names:['Enum']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.action"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['Action']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.action_output"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_output\",\"names\":[\"ActionOutput\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['ActionOutput']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.add_requirement"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.add_requirement\",\"names\":[\"UserRequirement\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['UserRequirement']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.debug_error"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.debug_error\",\"names\":[\"DebugError\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['DebugError']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.design_api"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api\",\"names\":[\"WriteDesign\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['WriteDesign']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.design_api_review"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api_review\",\"names\":[\"DesignReview\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['DesignReview']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.project_management"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.project_management\",\"names\":[\"WriteTasks\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['WriteTasks']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.research"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.research\",\"names\":[\"CollectLinks\",\"WebBrowseAndSummarize\",\"ConductResearch\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['CollectLinks', 'WebBrowseAndSummarize', 'ConductResearch']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.run_code"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.run_code\",\"names\":[\"RunCode\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['RunCode']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.search_and_summarize"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.search_and_summarize\",\"names\":[\"SearchAndSummarize\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['SearchAndSummarize']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.write_code"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_code\",\"names\":[\"WriteCode\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['WriteCode']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.write_code_review"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_code_review\",\"names\":[\"WriteCodeReview\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['WriteCodeReview']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.write_prd"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_prd\",\"names\":[\"WritePRD\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['WritePRD']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.write_prd_review"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_prd_review\",\"names\":[\"WritePRDReview\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['WritePRDReview']"}, {"id": "metagpt/actions/__init__.py:module:metagpt.actions.write_test"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_test\",\"names\":[\"WriteTest\"]}}"}, {"id": "metagpt/actions/__init__.py:names:['WriteTest']"}, {"id": "{\"lineno\":27,\"end_lineno\":44,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ActionType\"],\"properties\":{}}"}, {"id": "{\"lineno\":47,\"end_lineno\":51,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_review.py:REVIEW"}, {"id": "metagpt/actions/write_review.py:LGTM"}, {"id": "metagpt/actions/write_review.py:WRITE_REVIEW_NODE"}, {"id": "metagpt/actions/write_review.py:ast.Constant:\n@Author : alexanderwu\n@File : write_review.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":6,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Author : alexanderwu\\n@File : write_review.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_review.py:module:typing"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"id": "metagpt/actions/write_review.py:names:['List']"}, {"id": "metagpt/actions/write_review.py:module:metagpt.actions"}, {"id": "metagpt/actions/write_review.py:names:['Action']"}, {"id": "metagpt/actions/write_review.py:module:metagpt.actions.action_node"}, {"id": "metagpt/actions/write_review.py:names:['ActionNode']"}, {"id": "{\"lineno\":12,\"end_lineno\":20,\"type_name\":\"ast.Assign\",\"tokens\":[\"REVIEW\"],\"properties\":{}}"}, {"id": "{\"lineno\":22,\"end_lineno\":28,\"type_name\":\"ast.Assign\",\"tokens\":[\"LGTM\"],\"properties\":{}}"}, {"id": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.Assign\",\"tokens\":[\"WRITE_REVIEW_NODE\"],\"properties\":{}}"}, {"id": "{\"lineno\":33,\"end_lineno\":39,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteReview\"],\"properties\":{}}"}, {"id": "metagpt/actions/action.py:Action:_init_with_instruction"}, {"id": "metagpt/actions/action.py:Action:__str__"}, {"id": "metagpt/actions/action.py:Action:__repr__"}, {"id": "metagpt/actions/action.py:Action:_aask"}, {"id": "metagpt/actions/action.py:Action:_run_action_node"}, {"id": "metagpt/actions/action.py:ast.Constant:\n@Time : 2023/5/11 14:43\n@Author : alexanderwu\n@File : action.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:43\\n@Author : alexanderwu\\n@File : action.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/action.py:module:__future__"}, {"id": "metagpt/actions/action.py:names:['annotations']"}, {"id": "metagpt/actions/action.py:module:typing"}, {"id": "metagpt/actions/action.py:names:['Optional', 'Union']"}, {"id": "metagpt/actions/action.py:module:pydantic"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"ConfigDict\",\"Field\",\"model_validator\"]}}"}, {"id": "metagpt/actions/action.py:names:['ConfigDict', 'Field', 'model_validator']"}, {"id": "metagpt/actions/action.py:module:metagpt.actions.action_node"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"id": "metagpt/actions/action.py:names:['ActionNode']"}, {"id": "metagpt/actions/action.py:module:metagpt.llm"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"id": "metagpt/actions/action.py:names:['LLM']"}, {"id": "metagpt/actions/action.py:module:metagpt.provider.base_llm"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"id": "metagpt/actions/action.py:names:['BaseLLM']"}, {"id": "metagpt/actions/action.py:module:metagpt.schema"}, {"id": "{\"lineno\":18,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodeSummarizeContext\",\"CodingContext\",\"RunCodeContext\",\"SerializationMixin\",\"TestingContext\"]}}"}, {"id": "metagpt/actions/action.py:names:['CodeSummarizeContext', 'CodingContext', 'RunCodeContext', 'SerializationMixin', 'TestingContext']"}, {"id": "{\"lineno\":27,\"end_lineno\":80,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Action\"],\"properties\":{}}"}, {"id": "metagpt/actions/execute_task.py:ExecuteTask:run"}, {"id": "metagpt/actions/execute_task.py:ast.Constant:\n@Time : 2023/9/13 12:26\n@Author : femto Zheng\n@File : execute_task.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/13 12:26\\n@Author : femto Zheng\\n@File : execute_task.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/execute_task.py:module:metagpt.actions"}, {"id": "metagpt/actions/execute_task.py:names:['Action']"}, {"id": "metagpt/actions/execute_task.py:module:metagpt.schema"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"id": "metagpt/actions/execute_task.py:names:['Message']"}, {"id": "{\"lineno\":14,\"end_lineno\":19,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ExecuteTask\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_prd.py:WritePRD:_run_new_requirement"}, {"id": "metagpt/actions/write_prd.py:WritePRD:_is_relative"}, {"id": "metagpt/actions/write_prd.py:WritePRD:_merge"}, {"id": "metagpt/actions/write_prd.py:WritePRD:_update_prd"}, {"id": "metagpt/actions/write_prd.py:WritePRD:_save_competitive_analysis"}, {"id": "metagpt/actions/write_prd.py:WritePRD:_save_pdf"}, {"id": "metagpt/actions/write_prd.py:WritePRD:_rename_workspace"}, {"id": "metagpt/actions/write_prd.py:WritePRD:_is_bugfix"}, {"id": "metagpt/actions/write_prd.py:CONTEXT_TEMPLATE"}, {"id": "metagpt/actions/write_prd.py:NEW_REQ_TEMPLATE"}, {"id": "metagpt/actions/write_prd.py:ast.Constant:\n@Time : 2023/5/11 17:45\n@Author : alexanderwu\n@File : write_prd.py\n@Modified By: mashenquan, 2023/11/27.\n 1. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\n 2. According to the design in Section 2.2.3.5.2 of RFC 135, add incremental iteration functionality.\n 3. Move the document storage operations related to WritePRD from the save operation of WriteDesign.\n@Modified By: mashenquan, 2023/12/5. Move the generation logic of the project name to WritePRD.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":12,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:45\\n@Author : alexanderwu\\n@File : write_prd.py\\n@Modified By: mashenquan, 2023/11/27.\\n 1. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\\n 2. According to the design in Section 2.2.3.5.2 of RFC 135, add incremental iteration functionality.\\n 3. Move the document storage operations related to WritePRD from the save operation of WriteDesign.\\n@Modified By: mashenquan, 2023/12/5. Move the generation logic of the project name to WritePRD.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_prd.py:module:__future__"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['annotations']"}, {"id": "metagpt/actions/write_prd.py:json"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_prd.py:module:pathlib"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['Path']"}, {"id": "metagpt/actions/write_prd.py:module:typing"}, {"id": "metagpt/actions/write_prd.py:names:['Optional']"}, {"id": "metagpt/actions/write_prd.py:module:metagpt.actions"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"ActionOutput\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['Action', 'ActionOutput']"}, {"id": "metagpt/actions/write_prd.py:module:metagpt.actions.action_node"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['ActionNode']"}, {"id": "metagpt/actions/write_prd.py:module:metagpt.actions.fix_bug"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.fix_bug\",\"names\":[\"FixBug\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['FixBug']"}, {"id": "metagpt/actions/write_prd.py:module:metagpt.actions.write_prd_an"}, {"id": "{\"lineno\":23,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_prd_an\",\"names\":[\"PROJECT_NAME\",\"WP_IS_RELATIVE_NODE\",\"WP_ISSUE_TYPE_NODE\",\"WRITE_PRD_NODE\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['PROJECT_NAME', 'WP_IS_RELATIVE_NODE', 'WP_ISSUE_TYPE_NODE', 'WRITE_PRD_NODE']"}, {"id": "metagpt/actions/write_prd.py:module:metagpt.config"}, {"id": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['CONFIG']"}, {"id": "metagpt/actions/write_prd.py:module:metagpt.const"}, {"id": "{\"lineno\":30,\"end_lineno\":37,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BUGFIX_FILENAME\",\"COMPETITIVE_ANALYSIS_FILE_REPO\",\"DOCS_FILE_REPO\",\"PRD_PDF_FILE_REPO\",\"PRDS_FILE_REPO\",\"REQUIREMENT_FILENAME\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['BUGFIX_FILENAME', 'COMPETITIVE_ANALYSIS_FILE_REPO', 'DOCS_FILE_REPO', 'PRD_PDF_FILE_REPO', 'PRDS_FILE_REPO', 'REQUIREMENT_FILENAME']"}, {"id": "metagpt/actions/write_prd.py:module:metagpt.logs"}, {"id": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['logger']"}, {"id": "metagpt/actions/write_prd.py:module:metagpt.schema"}, {"id": "{\"lineno\":39,\"end_lineno\":39,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"BugFixContext\",\"Document\",\"Documents\",\"Message\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['BugFixContext', 'Document', 'Documents', 'Message']"}, {"id": "metagpt/actions/write_prd.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":40,\"end_lineno\":40,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['CodeParser']"}, {"id": "metagpt/actions/write_prd.py:module:metagpt.utils.file_repository"}, {"id": "{\"lineno\":41,\"end_lineno\":41,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['FileRepository']"}, {"id": "metagpt/actions/write_prd.py:module:metagpt.utils.mermaid"}, {"id": "{\"lineno\":42,\"end_lineno\":42,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.mermaid\",\"names\":[\"mermaid_to_file\"]}}"}, {"id": "metagpt/actions/write_prd.py:names:['mermaid_to_file']"}, {"id": "{\"lineno\":44,\"end_lineno\":53,\"type_name\":\"ast.Assign\",\"tokens\":[\"CONTEXT_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":55,\"end_lineno\":61,\"type_name\":\"ast.Assign\",\"tokens\":[\"NEW_REQ_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":64,\"end_lineno\":194,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WritePRD\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_docstring.py:_simplify_python_code"}, {"id": "metagpt/actions/write_docstring.py:PYTHON_DOCSTRING_SYSTEM"}, {"id": "metagpt/actions/write_docstring.py:PYTHON_DOCSTRING_EXAMPLE_GOOGLE"}, {"id": "metagpt/actions/write_docstring.py:PYTHON_DOCSTRING_EXAMPLE_NUMPY"}, {"id": "metagpt/actions/write_docstring.py:PYTHON_DOCSTRING_EXAMPLE_SPHINX"}, {"id": "metagpt/actions/write_docstring.py:_python_docstring_style"}, {"id": "metagpt/actions/write_docstring.py:ast.Constant:Code Docstring Generator.\n\nThis script provides a tool to automatically generate docstrings for Python code. It uses the specified style to create\ndocstrings for the given code and system text.\n\nUsage:\n python3 -m metagpt.actions.write_docstring [--overwrite] [--style=]\n\nArguments:\n filename The path to the Python file for which you want to generate docstrings.\n\nOptions:\n --overwrite If specified, overwrite the original file with the code containing docstrings.\n --style= Specify the style of the generated docstrings.\n Valid values: 'google', 'numpy', or 'sphinx'.\n Default: 'google'\n\nExample:\n python3 -m metagpt.actions.write_docstring ./metagpt/startup.py --overwrite False --style=numpy\n\nThis script uses the 'fire' library to create a command-line interface. It generates docstrings for the given Python code using\nthe specified docstring style and adds them to the code.\n"}, {"id": "{\"lineno\":1,\"end_lineno\":23,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"Code Docstring Generator.\\n\\nThis script provides a tool to automatically generate docstrings for Python code. It uses the specified style to create\\ndocstrings for the given code and system text.\\n\\nUsage:\\n python3 -m metagpt.actions.write_docstring [--overwrite] [--style=]\\n\\nArguments:\\n filename The path to the Python file for which you want to generate docstrings.\\n\\nOptions:\\n --overwrite If specified, overwrite the original file with the code containing docstrings.\\n --style= Specify the style of the generated docstrings.\\n Valid values: 'google', 'numpy', or 'sphinx'.\\n Default: 'google'\\n\\nExample:\\n python3 -m metagpt.actions.write_docstring ./metagpt/startup.py --overwrite False --style=numpy\\n\\nThis script uses the 'fire' library to create a command-line interface. It generates docstrings for the given Python code using\\nthe specified docstring style and adds them to the code.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_docstring.py:module:__future__"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/actions/write_docstring.py:names:['annotations']"}, {"id": "metagpt/actions/write_docstring.py:ast"}, {"id": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.Import\",\"tokens\":[\"ast\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_docstring.py:module:pathlib"}, {"id": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"id": "metagpt/actions/write_docstring.py:names:['Path']"}, {"id": "metagpt/actions/write_docstring.py:module:typing"}, {"id": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Literal\",\"Optional\"]}}"}, {"id": "metagpt/actions/write_docstring.py:names:['Literal', 'Optional']"}, {"id": "metagpt/actions/write_docstring.py:module:metagpt.actions.action"}, {"id": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/write_docstring.py:names:['Action']"}, {"id": "metagpt/actions/write_docstring.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\",\"aread\",\"awrite\"]}}"}, {"id": "metagpt/actions/write_docstring.py:names:['OutputParser', 'aread', 'awrite']"}, {"id": "metagpt/actions/write_docstring.py:module:metagpt.utils.pycst"}, {"id": "{\"lineno\":32,\"end_lineno\":32,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.pycst\",\"names\":[\"merge_docstring\"]}}"}, {"id": "metagpt/actions/write_docstring.py:names:['merge_docstring']"}, {"id": "{\"lineno\":34,\"end_lineno\":54,\"type_name\":\"ast.Assign\",\"tokens\":[\"PYTHON_DOCSTRING_SYSTEM\"],\"properties\":{}}"}, {"id": "{\"lineno\":58,\"end_lineno\":84,\"type_name\":\"ast.Assign\",\"tokens\":[\"PYTHON_DOCSTRING_EXAMPLE_GOOGLE\"],\"properties\":{}}"}, {"id": "{\"lineno\":86,\"end_lineno\":122,\"type_name\":\"ast.Assign\",\"tokens\":[\"PYTHON_DOCSTRING_EXAMPLE_NUMPY\"],\"properties\":{}}"}, {"id": "{\"lineno\":124,\"end_lineno\":147,\"type_name\":\"ast.Assign\",\"tokens\":[\"PYTHON_DOCSTRING_EXAMPLE_SPHINX\"],\"properties\":{}}"}, {"id": "{\"lineno\":149,\"end_lineno\":153,\"type_name\":\"ast.Assign\",\"tokens\":[\"_python_docstring_style\"],\"properties\":{}}"}, {"id": "{\"lineno\":156,\"end_lineno\":196,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteDocstring\"],\"properties\":{}}"}, {"id": "{\"lineno\":199,\"end_lineno\":212,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_simplify_python_code\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_docstring.py:__name__:__main__"}, {"id": "{\"lineno\":215,\"end_lineno\":218,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/actions/fix_bug.py:ast.Constant:\n@Time : 2023-12-12\n@Author : mashenquan\n@File : fix_bug.py\n"}, {"id": "{\"lineno\":2,\"end_lineno\":6,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023-12-12\\n@Author : mashenquan\\n@File : fix_bug.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/fix_bug.py:module:metagpt.actions"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/fix_bug.py:names:['Action']"}, {"id": "{\"lineno\":10,\"end_lineno\":13,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"FixBug\"],\"properties\":{}}"}, {"id": "metagpt/actions/prepare_interview.py:QUESTIONS"}, {"id": "metagpt/actions/prepare_interview.py:ast.Constant:\n@Time : 2023/9/19 15:02\n@Author : DevXiaolan\n@File : prepare_interview.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/19 15:02\\n@Author : DevXiaolan\\n@File : prepare_interview.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/prepare_interview.py:module:metagpt.actions"}, {"id": "metagpt/actions/prepare_interview.py:names:['Action']"}, {"id": "metagpt/actions/prepare_interview.py:module:metagpt.actions.action_node"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"id": "metagpt/actions/prepare_interview.py:names:['ActionNode']"}, {"id": "{\"lineno\":11,\"end_lineno\":18,\"type_name\":\"ast.Assign\",\"tokens\":[\"QUESTIONS\"],\"properties\":{}}"}, {"id": "{\"lineno\":21,\"end_lineno\":25,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"PrepareInterview\"],\"properties\":{}}"}, {"id": "metagpt/actions/run_code.py:RunCode:_install_via_subprocess"}, {"id": "metagpt/actions/run_code.py:RunCode:_install_dependencies"}, {"id": "metagpt/actions/run_code.py:PROMPT_TEMPLATE"}, {"id": "metagpt/actions/run_code.py:CONTEXT"}, {"id": "metagpt/actions/run_code.py:ast.Constant:\n@Time : 2023/5/11 17:46\n@Author : alexanderwu\n@File : run_code.py\n@Modified By: mashenquan, 2023/11/27.\n 1. Mark the location of Console logs in the PROMPT_TEMPLATE with markdown code-block formatting to enhance\n the understanding for the LLM.\n 2. Fix bug: Add the \"install dependency\" operation.\n 3. Encapsulate the input of RunCode into RunCodeContext and encapsulate the output of RunCode into\n RunCodeResult to standardize and unify parameter passing between WriteCode, RunCode, and DebugError.\n 4. According to section 2.2.3.5.7 of RFC 135, change the method of transferring file content\n (code files, unit test files, log files) from using the message to using the file name.\n 5. Merged the `Config` class of send18:dev branch to take over the set/get operations of the Environment\n class.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":17,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:46\\n@Author : alexanderwu\\n@File : run_code.py\\n@Modified By: mashenquan, 2023/11/27.\\n 1. Mark the location of Console logs in the PROMPT_TEMPLATE with markdown code-block formatting to enhance\\n the understanding for the LLM.\\n 2. Fix bug: Add the \\\"install dependency\\\" operation.\\n 3. Encapsulate the input of RunCode into RunCodeContext and encapsulate the output of RunCode into\\n RunCodeResult to standardize and unify parameter passing between WriteCode, RunCode, and DebugError.\\n 4. According to section 2.2.3.5.7 of RFC 135, change the method of transferring file content\\n (code files, unit test files, log files) from using the message to using the file name.\\n 5. Merged the `Config` class of send18:dev branch to take over the set/get operations of the Environment\\n class.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/run_code.py:subprocess"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.Import\",\"tokens\":[\"subprocess\"],\"properties\":{}}"}, {"id": "metagpt/actions/run_code.py:module:typing"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Tuple\"]}}"}, {"id": "metagpt/actions/run_code.py:names:['Tuple']"}, {"id": "metagpt/actions/run_code.py:module:pydantic"}, {"id": "metagpt/actions/run_code.py:names:['Field']"}, {"id": "metagpt/actions/run_code.py:module:metagpt.actions.action"}, {"id": "metagpt/actions/run_code.py:names:['Action']"}, {"id": "metagpt/actions/run_code.py:module:metagpt.config"}, {"id": "metagpt/actions/run_code.py:names:['CONFIG']"}, {"id": "metagpt/actions/run_code.py:module:metagpt.logs"}, {"id": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/actions/run_code.py:names:['logger']"}, {"id": "metagpt/actions/run_code.py:module:metagpt.schema"}, {"id": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"RunCodeContext\",\"RunCodeResult\"]}}"}, {"id": "metagpt/actions/run_code.py:names:['RunCodeContext', 'RunCodeResult']"}, {"id": "metagpt/actions/run_code.py:module:metagpt.utils.exceptions"}, {"id": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"id": "metagpt/actions/run_code.py:names:['handle_exception']"}, {"id": "{\"lineno\":29,\"end_lineno\":49,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":51,\"end_lineno\":75,\"type_name\":\"ast.Assign\",\"tokens\":[\"CONTEXT\"],\"properties\":{}}"}, {"id": "{\"lineno\":78,\"end_lineno\":162,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RunCode\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_code_an_draft.py:main"}, {"id": "metagpt/actions/write_code_an_draft.py:REVIEW"}, {"id": "metagpt/actions/write_code_an_draft.py:LGTM"}, {"id": "metagpt/actions/write_code_an_draft.py:ACTIONS"}, {"id": "metagpt/actions/write_code_an_draft.py:WRITE_DRAFT"}, {"id": "metagpt/actions/write_code_an_draft.py:WRITE_MOVE_FUNCTION"}, {"id": "metagpt/actions/write_code_an_draft.py:REWRITE_CODE"}, {"id": "metagpt/actions/write_code_an_draft.py:CODE_REVIEW_CONTEXT"}, {"id": "metagpt/actions/write_code_an_draft.py:CODE_REVIEW_SMALLEST_CONTEXT"}, {"id": "metagpt/actions/write_code_an_draft.py:CODE_REVIEW_SAMPLE"}, {"id": "metagpt/actions/write_code_an_draft.py:WRITE_CODE_NODE"}, {"id": "metagpt/actions/write_code_an_draft.py:WRITE_MOVE_NODE"}, {"id": "metagpt/actions/write_code_an_draft.py:CR_FOR_MOVE_FUNCTION_BY_3"}, {"id": "metagpt/actions/write_code_an_draft.py:ast.Constant:\n@Author : alexanderwu\n@File : write_review.py\n"}, {"id": "metagpt/actions/write_code_an_draft.py:asyncio"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_code_an_draft.py:module:typing"}, {"id": "metagpt/actions/write_code_an_draft.py:names:['List']"}, {"id": "metagpt/actions/write_code_an_draft.py:module:metagpt.actions"}, {"id": "metagpt/actions/write_code_an_draft.py:names:['Action']"}, {"id": "metagpt/actions/write_code_an_draft.py:module:metagpt.actions.action_node"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"id": "metagpt/actions/write_code_an_draft.py:names:['ActionNode']"}, {"id": "{\"lineno\":13,\"end_lineno\":22,\"type_name\":\"ast.Assign\",\"tokens\":[\"REVIEW\"],\"properties\":{}}"}, {"id": "{\"lineno\":24,\"end_lineno\":30,\"type_name\":\"ast.Assign\",\"tokens\":[\"LGTM\"],\"properties\":{}}"}, {"id": "{\"lineno\":32,\"end_lineno\":62,\"type_name\":\"ast.Assign\",\"tokens\":[\"ACTIONS\"],\"properties\":{}}"}, {"id": "{\"lineno\":64,\"end_lineno\":69,\"type_name\":\"ast.Assign\",\"tokens\":[\"WRITE_DRAFT\"],\"properties\":{}}"}, {"id": "{\"lineno\":72,\"end_lineno\":81,\"type_name\":\"ast.Assign\",\"tokens\":[\"WRITE_MOVE_FUNCTION\"],\"properties\":{}}"}, {"id": "{\"lineno\":84,\"end_lineno\":95,\"type_name\":\"ast.Assign\",\"tokens\":[\"REWRITE_CODE\"],\"properties\":{}}"}, {"id": "{\"lineno\":98,\"end_lineno\":417,\"type_name\":\"ast.Assign\",\"tokens\":[\"CODE_REVIEW_CONTEXT\"],\"properties\":{}}"}, {"id": "{\"lineno\":420,\"end_lineno\":490,\"type_name\":\"ast.Assign\",\"tokens\":[\"CODE_REVIEW_SMALLEST_CONTEXT\"],\"properties\":{}}"}, {"id": "{\"lineno\":493,\"end_lineno\":555,\"type_name\":\"ast.Assign\",\"tokens\":[\"CODE_REVIEW_SAMPLE\"],\"properties\":{}}"}, {"id": "{\"lineno\":558,\"end_lineno\":558,\"type_name\":\"ast.Assign\",\"tokens\":[\"WRITE_CODE_NODE\"],\"properties\":{}}"}, {"id": "{\"lineno\":559,\"end_lineno\":559,\"type_name\":\"ast.Assign\",\"tokens\":[\"WRITE_MOVE_NODE\"],\"properties\":{}}"}, {"id": "{\"lineno\":562,\"end_lineno\":574,\"type_name\":\"ast.Assign\",\"tokens\":[\"CR_FOR_MOVE_FUNCTION_BY_3\"],\"properties\":{}}"}, {"id": "{\"lineno\":577,\"end_lineno\":582,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteCodeAN\"],\"properties\":{}}"}, {"id": "{\"lineno\":586,\"end_lineno\":587,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"main\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_code_an_draft.py:__name__:__main__"}, {"id": "{\"lineno\":590,\"end_lineno\":591,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/actions/talk_action.py:ast.Constant:\n@Time : 2023/8/28\n@Author : mashenquan\n@File : talk_action.py\n@Desc : Act as it\u2019s a talk\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/28\\n@Author : mashenquan\\n@File : talk_action.py\\n@Desc : Act as it\u2019s a talk\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/talk_action.py:module:typing"}, {"id": "metagpt/actions/talk_action.py:names:['Optional']"}, {"id": "metagpt/actions/talk_action.py:module:metagpt.actions"}, {"id": "metagpt/actions/talk_action.py:names:['Action']"}, {"id": "metagpt/actions/talk_action.py:module:metagpt.config"}, {"id": "metagpt/actions/talk_action.py:names:['CONFIG']"}, {"id": "metagpt/actions/talk_action.py:module:metagpt.const"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DEFAULT_LANGUAGE\"]}}"}, {"id": "metagpt/actions/talk_action.py:names:['DEFAULT_LANGUAGE']"}, {"id": "metagpt/actions/talk_action.py:module:metagpt.logs"}, {"id": "metagpt/actions/talk_action.py:names:['logger']"}, {"id": "metagpt/actions/talk_action.py:module:metagpt.schema"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"id": "metagpt/actions/talk_action.py:names:['Message']"}, {"id": "{\"lineno\":19,\"end_lineno\":91,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"TalkAction\"],\"properties\":{}}"}, {"id": "{\"lineno\":94,\"end_lineno\":163,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"TalkActionPrompt\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_tutorial.py:ast.Constant:\n@Time : 2023/9/4 15:40:40\n@Author : Stitch-z\n@File : tutorial_assistant.py\n@Describe : Actions of the tutorial assistant, including writing directories and document content.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 15:40:40\\n@Author : Stitch-z\\n@File : tutorial_assistant.py\\n@Describe : Actions of the tutorial assistant, including writing directories and document content.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_tutorial.py:module:typing"}, {"id": "metagpt/actions/write_tutorial.py:names:['Dict']"}, {"id": "metagpt/actions/write_tutorial.py:module:metagpt.actions"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/write_tutorial.py:names:['Action']"}, {"id": "metagpt/actions/write_tutorial.py:module:metagpt.prompts.tutorial_assistant"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.prompts.tutorial_assistant\",\"names\":[\"CONTENT_PROMPT\",\"DIRECTORY_PROMPT\"]}}"}, {"id": "metagpt/actions/write_tutorial.py:names:['CONTENT_PROMPT', 'DIRECTORY_PROMPT']"}, {"id": "metagpt/actions/write_tutorial.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\"]}}"}, {"id": "metagpt/actions/write_tutorial.py:names:['OutputParser']"}, {"id": "{\"lineno\":17,\"end_lineno\":39,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteDirectory\"],\"properties\":{}}"}, {"id": "{\"lineno\":42,\"end_lineno\":65,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteContent\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_prd_review.py:ast.Constant:\n@Time : 2023/5/11 17:45\n@Author : alexanderwu\n@File : write_prd_review.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:45\\n@Author : alexanderwu\\n@File : write_prd_review.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_prd_review.py:module:typing"}, {"id": "metagpt/actions/write_prd_review.py:names:['Optional']"}, {"id": "metagpt/actions/write_prd_review.py:module:metagpt.actions.action"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/write_prd_review.py:names:['Action']"}, {"id": "{\"lineno\":14,\"end_lineno\":31,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WritePRDReview\"],\"properties\":{}}"}, {"id": "metagpt/actions/generate_questions.py:QUESTIONS"}, {"id": "metagpt/actions/generate_questions.py:ast.Constant:\n@Time : 2023/9/12 17:45\n@Author : fisherdeng\n@File : generate_questions.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/12 17:45\\n@Author : fisherdeng\\n@File : generate_questions.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/generate_questions.py:module:metagpt.actions"}, {"id": "metagpt/actions/generate_questions.py:names:['Action']"}, {"id": "metagpt/actions/generate_questions.py:module:metagpt.actions.action_node"}, {"id": "metagpt/actions/generate_questions.py:names:['ActionNode']"}, {"id": "{\"lineno\":11,\"end_lineno\":17,\"type_name\":\"ast.Assign\",\"tokens\":[\"QUESTIONS\"],\"properties\":{}}"}, {"id": "{\"lineno\":20,\"end_lineno\":27,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GenerateQuestions\"],\"properties\":{}}"}, {"id": "metagpt/actions/prepare_documents.py:PrepareDocuments:_init_repo"}, {"id": "metagpt/actions/prepare_documents.py:ast.Constant:\n@Time : 2023/11/20\n@Author : mashenquan\n@File : prepare_documents.py\n@Desc: PrepareDocuments Action: initialize project folder and add new requirements to docs/requirements.txt.\n RFC 135 2.2.3.5.1.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/11/20\\n@Author : mashenquan\\n@File : prepare_documents.py\\n@Desc: PrepareDocuments Action: initialize project folder and add new requirements to docs/requirements.txt.\\n RFC 135 2.2.3.5.1.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/prepare_documents.py:shutil"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"shutil\"],\"properties\":{}}"}, {"id": "metagpt/actions/prepare_documents.py:module:pathlib"}, {"id": "metagpt/actions/prepare_documents.py:names:['Path']"}, {"id": "metagpt/actions/prepare_documents.py:module:typing"}, {"id": "metagpt/actions/prepare_documents.py:names:['Optional']"}, {"id": "metagpt/actions/prepare_documents.py:module:metagpt.actions"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"ActionOutput\"]}}"}, {"id": "metagpt/actions/prepare_documents.py:names:['Action', 'ActionOutput']"}, {"id": "metagpt/actions/prepare_documents.py:module:metagpt.config"}, {"id": "metagpt/actions/prepare_documents.py:names:['CONFIG']"}, {"id": "metagpt/actions/prepare_documents.py:module:metagpt.const"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DOCS_FILE_REPO\",\"REQUIREMENT_FILENAME\"]}}"}, {"id": "metagpt/actions/prepare_documents.py:names:['DOCS_FILE_REPO', 'REQUIREMENT_FILENAME']"}, {"id": "metagpt/actions/prepare_documents.py:module:metagpt.schema"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\"]}}"}, {"id": "metagpt/actions/prepare_documents.py:names:['Document']"}, {"id": "metagpt/actions/prepare_documents.py:module:metagpt.utils.file_repository"}, {"id": "metagpt/actions/prepare_documents.py:names:['FileRepository']"}, {"id": "metagpt/actions/prepare_documents.py:module:metagpt.utils.git_repository"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.git_repository\",\"names\":[\"GitRepository\"]}}"}, {"id": "metagpt/actions/prepare_documents.py:names:['GitRepository']"}, {"id": "{\"lineno\":22,\"end_lineno\":51,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"PrepareDocuments\"],\"properties\":{}}"}, {"id": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_SYSTEM"}, {"id": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_SYSTEM_EN_US"}, {"id": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_PROMPT"}, {"id": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_SALES_SYSTEM"}, {"id": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_SALES_PROMPT"}, {"id": "metagpt/actions/search_and_summarize.py:SEARCH_FOOD"}, {"id": "metagpt/actions/search_and_summarize.py:ast.Constant:\n@Time : 2023/5/23 17:26\n@Author : alexanderwu\n@File : search_google.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/23 17:26\\n@Author : alexanderwu\\n@File : search_google.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/search_and_summarize.py:module:typing"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Optional\"]}}"}, {"id": "metagpt/actions/search_and_summarize.py:names:['Any', 'Optional']"}, {"id": "metagpt/actions/search_and_summarize.py:pydantic"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"pydantic\"],\"properties\":{}}"}, {"id": "metagpt/actions/search_and_summarize.py:module:pydantic"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\",\"model_validator\"]}}"}, {"id": "metagpt/actions/search_and_summarize.py:names:['Field', 'model_validator']"}, {"id": "metagpt/actions/search_and_summarize.py:module:metagpt.actions"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/search_and_summarize.py:names:['Action']"}, {"id": "metagpt/actions/search_and_summarize.py:module:metagpt.config"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"Config\"]}}"}, {"id": "metagpt/actions/search_and_summarize.py:names:['CONFIG', 'Config']"}, {"id": "metagpt/actions/search_and_summarize.py:module:metagpt.logs"}, {"id": "metagpt/actions/search_and_summarize.py:names:['logger']"}, {"id": "metagpt/actions/search_and_summarize.py:module:metagpt.schema"}, {"id": "metagpt/actions/search_and_summarize.py:names:['Message']"}, {"id": "metagpt/actions/search_and_summarize.py:module:metagpt.tools"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\"]}}"}, {"id": "metagpt/actions/search_and_summarize.py:names:['SearchEngineType']"}, {"id": "metagpt/actions/search_and_summarize.py:module:metagpt.tools.search_engine"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.search_engine\",\"names\":[\"SearchEngine\"]}}"}, {"id": "metagpt/actions/search_and_summarize.py:names:['SearchEngine']"}, {"id": "{\"lineno\":20,\"end_lineno\":41,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_AND_SUMMARIZE_SYSTEM\"],\"properties\":{}}"}, {"id": "{\"lineno\":43,\"end_lineno\":43,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_AND_SUMMARIZE_SYSTEM_EN_US\"],\"properties\":{}}"}, {"id": "{\"lineno\":45,\"end_lineno\":59,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_AND_SUMMARIZE_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":61,\"end_lineno\":81,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_AND_SUMMARIZE_SALES_SYSTEM\"],\"properties\":{}}"}, {"id": "{\"lineno\":83,\"end_lineno\":92,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_AND_SUMMARIZE_SALES_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":94,\"end_lineno\":103,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_FOOD\"],\"properties\":{}}"}, {"id": "{\"lineno\":107,\"end_lineno\":158,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SearchAndSummarize\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_code_review.py:PROMPT_TEMPLATE"}, {"id": "metagpt/actions/write_code_review.py:EXAMPLE_AND_INSTRUCTION"}, {"id": "metagpt/actions/write_code_review.py:FORMAT_EXAMPLE"}, {"id": "metagpt/actions/write_code_review.py:REWRITE_CODE_TEMPLATE"}, {"id": "metagpt/actions/write_code_review.py:ast.Constant:\n@Time : 2023/5/11 17:45\n@Author : alexanderwu\n@File : write_code_review.py\n@Modified By: mashenquan, 2023/11/27. Following the think-act principle, solidify the task parameters when creating the\n WriteCode object, rather than passing them in when calling the run function.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:45\\n@Author : alexanderwu\\n@File : write_code_review.py\\n@Modified By: mashenquan, 2023/11/27. Following the think-act principle, solidify the task parameters when creating the\\n WriteCode object, rather than passing them in when calling the run function.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_code_review.py:module:pydantic"}, {"id": "metagpt/actions/write_code_review.py:names:['Field']"}, {"id": "metagpt/actions/write_code_review.py:module:tenacity"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"retry\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"id": "metagpt/actions/write_code_review.py:names:['retry', 'stop_after_attempt', 'wait_random_exponential']"}, {"id": "metagpt/actions/write_code_review.py:module:metagpt.actions"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"WriteCode\"]}}"}, {"id": "metagpt/actions/write_code_review.py:names:['WriteCode']"}, {"id": "metagpt/actions/write_code_review.py:module:metagpt.actions.action"}, {"id": "metagpt/actions/write_code_review.py:names:['Action']"}, {"id": "metagpt/actions/write_code_review.py:module:metagpt.config"}, {"id": "metagpt/actions/write_code_review.py:names:['CONFIG']"}, {"id": "metagpt/actions/write_code_review.py:module:metagpt.logs"}, {"id": "metagpt/actions/write_code_review.py:names:['logger']"}, {"id": "metagpt/actions/write_code_review.py:module:metagpt.schema"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodingContext\"]}}"}, {"id": "metagpt/actions/write_code_review.py:names:['CodingContext']"}, {"id": "metagpt/actions/write_code_review.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"id": "metagpt/actions/write_code_review.py:names:['CodeParser']"}, {"id": "{\"lineno\":21,\"end_lineno\":34,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":36,\"end_lineno\":56,\"type_name\":\"ast.Assign\",\"tokens\":[\"EXAMPLE_AND_INSTRUCTION\"],\"properties\":{}}"}, {"id": "{\"lineno\":58,\"end_lineno\":109,\"type_name\":\"ast.Assign\",\"tokens\":[\"FORMAT_EXAMPLE\"],\"properties\":{}}"}, {"id": "{\"lineno\":111,\"end_lineno\":118,\"type_name\":\"ast.Assign\",\"tokens\":[\"REWRITE_CODE_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":121,\"end_lineno\":176,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteCodeReview\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:_set_result"}, {"id": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:__str__"}, {"id": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:__repr__"}, {"id": "metagpt/actions/write_teaching_plan.py:ast.Constant:\n@Time : 2023/7/27\n@Author : mashenquan\n@File : write_teaching_plan.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/7/27\\n@Author : mashenquan\\n@File : write_teaching_plan.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/write_teaching_plan.py:module:typing"}, {"id": "metagpt/actions/write_teaching_plan.py:names:['Optional']"}, {"id": "metagpt/actions/write_teaching_plan.py:module:metagpt.actions"}, {"id": "metagpt/actions/write_teaching_plan.py:names:['Action']"}, {"id": "metagpt/actions/write_teaching_plan.py:module:metagpt.config"}, {"id": "metagpt/actions/write_teaching_plan.py:names:['CONFIG']"}, {"id": "metagpt/actions/write_teaching_plan.py:module:metagpt.logs"}, {"id": "metagpt/actions/write_teaching_plan.py:names:['logger']"}, {"id": "{\"lineno\":15,\"end_lineno\":86,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteTeachingPlanPart\"],\"properties\":{}}"}, {"id": "{\"lineno\":89,\"end_lineno\":188,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"TeachingPlanBlock\"],\"properties\":{}}"}, {"id": "metagpt/actions/project_management_an.py"}, {"id": "metagpt/actions/project_management_an.py:main"}, {"id": "metagpt/actions/project_management_an.py:REQUIRED_PYTHON_PACKAGES"}, {"id": "metagpt/actions/project_management_an.py:REQUIRED_OTHER_LANGUAGE_PACKAGES"}, {"id": "metagpt/actions/project_management_an.py:LOGIC_ANALYSIS"}, {"id": "metagpt/actions/project_management_an.py:TASK_LIST"}, {"id": "metagpt/actions/project_management_an.py:FULL_API_SPEC"}, {"id": "metagpt/actions/project_management_an.py:SHARED_KNOWLEDGE"}, {"id": "metagpt/actions/project_management_an.py:ANYTHING_UNCLEAR_PM"}, {"id": "metagpt/actions/project_management_an.py:NODES"}, {"id": "metagpt/actions/project_management_an.py:PM_NODE"}, {"id": "metagpt/actions/project_management_an.py:ast.Constant:\n@Time : 2023/12/14 15:28\n@Author : alexanderwu\n@File : project_management_an.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/14 15:28\\n@Author : alexanderwu\\n@File : project_management_an.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/project_management_an.py:module:typing"}, {"id": "metagpt/actions/project_management_an.py:names:['List']"}, {"id": "metagpt/actions/project_management_an.py:module:metagpt.actions.action_node"}, {"id": "metagpt/actions/project_management_an.py:names:['ActionNode']"}, {"id": "metagpt/actions/project_management_an.py:module:metagpt.logs"}, {"id": "metagpt/actions/project_management_an.py:names:['logger']"}, {"id": "{\"lineno\":13,\"end_lineno\":18,\"type_name\":\"ast.Assign\",\"tokens\":[\"REQUIRED_PYTHON_PACKAGES\"],\"properties\":{}}"}, {"id": "{\"lineno\":20,\"end_lineno\":25,\"type_name\":\"ast.Assign\",\"tokens\":[\"REQUIRED_OTHER_LANGUAGE_PACKAGES\"],\"properties\":{}}"}, {"id": "{\"lineno\":27,\"end_lineno\":36,\"type_name\":\"ast.Assign\",\"tokens\":[\"LOGIC_ANALYSIS\"],\"properties\":{}}"}, {"id": "{\"lineno\":38,\"end_lineno\":43,\"type_name\":\"ast.Assign\",\"tokens\":[\"TASK_LIST\"],\"properties\":{}}"}, {"id": "{\"lineno\":45,\"end_lineno\":51,\"type_name\":\"ast.Assign\",\"tokens\":[\"FULL_API_SPEC\"],\"properties\":{}}"}, {"id": "{\"lineno\":53,\"end_lineno\":58,\"type_name\":\"ast.Assign\",\"tokens\":[\"SHARED_KNOWLEDGE\"],\"properties\":{}}"}, {"id": "{\"lineno\":60,\"end_lineno\":65,\"type_name\":\"ast.Assign\",\"tokens\":[\"ANYTHING_UNCLEAR_PM\"],\"properties\":{}}"}, {"id": "{\"lineno\":67,\"end_lineno\":75,\"type_name\":\"ast.Assign\",\"tokens\":[\"NODES\"],\"properties\":{}}"}, {"id": "{\"lineno\":78,\"end_lineno\":78,\"type_name\":\"ast.Assign\",\"tokens\":[\"PM_NODE\"],\"properties\":{}}"}, {"id": "{\"lineno\":81,\"end_lineno\":83,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"main\"],\"properties\":{}}"}, {"id": "metagpt/actions/project_management_an.py:__name__:__main__"}, {"id": "{\"lineno\":86,\"end_lineno\":87,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"id": "metagpt/actions/project_management.py:WriteTasks:_update_tasks"}, {"id": "metagpt/actions/project_management.py:WriteTasks:_run_new_tasks"}, {"id": "metagpt/actions/project_management.py:WriteTasks:_merge"}, {"id": "metagpt/actions/project_management.py:WriteTasks:_update_requirements"}, {"id": "metagpt/actions/project_management.py:WriteTasks:_save_pdf"}, {"id": "metagpt/actions/project_management.py:NEW_REQ_TEMPLATE"}, {"id": "metagpt/actions/project_management.py:ast.Constant:\n@Time : 2023/5/11 19:12\n@Author : alexanderwu\n@File : project_management.py\n@Modified By: mashenquan, 2023/11/27.\n 1. Divide the context into three components: legacy code, unit test code, and console log.\n 2. Move the document storage operations related to WritePRD from the save operation of WriteDesign.\n 3. According to the design in Section 2.2.3.5.4 of RFC 135, add incremental iteration functionality.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":11,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 19:12\\n@Author : alexanderwu\\n@File : project_management.py\\n@Modified By: mashenquan, 2023/11/27.\\n 1. Divide the context into three components: legacy code, unit test code, and console log.\\n 2. Move the document storage operations related to WritePRD from the save operation of WriteDesign.\\n 3. According to the design in Section 2.2.3.5.4 of RFC 135, add incremental iteration functionality.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/project_management.py:json"}, {"id": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"id": "metagpt/actions/project_management.py:module:typing"}, {"id": "metagpt/actions/project_management.py:names:['Optional']"}, {"id": "metagpt/actions/project_management.py:module:metagpt.actions"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"ActionOutput\"]}}"}, {"id": "metagpt/actions/project_management.py:names:['ActionOutput']"}, {"id": "metagpt/actions/project_management.py:module:metagpt.actions.action"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/project_management.py:names:['Action']"}, {"id": "metagpt/actions/project_management.py:module:metagpt.actions.project_management_an"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.project_management_an\",\"names\":[\"PM_NODE\"]}}"}, {"id": "metagpt/actions/project_management.py:names:['PM_NODE']"}, {"id": "metagpt/actions/project_management.py:module:metagpt.config"}, {"id": "metagpt/actions/project_management.py:names:['CONFIG']"}, {"id": "metagpt/actions/project_management.py:module:metagpt.const"}, {"id": "{\"lineno\":20,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"PACKAGE_REQUIREMENTS_FILENAME\",\"SYSTEM_DESIGN_FILE_REPO\",\"TASK_FILE_REPO\",\"TASK_PDF_FILE_REPO\"]}}"}, {"id": "metagpt/actions/project_management.py:names:['PACKAGE_REQUIREMENTS_FILENAME', 'SYSTEM_DESIGN_FILE_REPO', 'TASK_FILE_REPO', 'TASK_PDF_FILE_REPO']"}, {"id": "metagpt/actions/project_management.py:module:metagpt.logs"}, {"id": "metagpt/actions/project_management.py:names:['logger']"}, {"id": "metagpt/actions/project_management.py:module:metagpt.schema"}, {"id": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\",\"Documents\"]}}"}, {"id": "metagpt/actions/project_management.py:names:['Document', 'Documents']"}, {"id": "metagpt/actions/project_management.py:module:metagpt.utils.file_repository"}, {"id": "metagpt/actions/project_management.py:names:['FileRepository']"}, {"id": "{\"lineno\":30,\"end_lineno\":36,\"type_name\":\"ast.Assign\",\"tokens\":[\"NEW_REQ_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":39,\"end_lineno\":117,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteTasks\"],\"properties\":{}}"}, {"id": "metagpt/actions/action_node.py:ActionNode:__init__"}, {"id": "metagpt/actions/action_node.py:ActionNode:__str__"}, {"id": "metagpt/actions/action_node.py:ActionNode:__repr__"}, {"id": "metagpt/actions/action_node.py:ActionNode:_compile_f"}, {"id": "metagpt/actions/action_node.py:ActionNode:_aask_v1"}, {"id": "metagpt/actions/action_node.py:dict_to_markdown"}, {"id": "metagpt/actions/action_node.py:TAG"}, {"id": "metagpt/actions/action_node.py:LANGUAGE_CONSTRAINT"}, {"id": "metagpt/actions/action_node.py:FORMAT_CONSTRAINT"}, {"id": "metagpt/actions/action_node.py:SIMPLE_TEMPLATE"}, {"id": "metagpt/actions/action_node.py:ast.Constant:\n@Time : 2023/12/11 18:45\n@Author : alexanderwu\n@File : action_node.py\n\nNOTE: You should use typing.List instead of list to do type annotation. Because in the markdown extraction process,\n we can use typing to extract the type of the node, but we cannot use built-in list to extract.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":10,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/11 18:45\\n@Author : alexanderwu\\n@File : action_node.py\\n\\nNOTE: You should use typing.List instead of list to do type annotation. Because in the markdown extraction process,\\n we can use typing to extract the type of the node, but we cannot use built-in list to extract.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/action_node.py:json"}, {"id": "metagpt/actions/action_node.py:module:typing"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Dict\",\"List\",\"Optional\",\"Tuple\",\"Type\"]}}"}, {"id": "metagpt/actions/action_node.py:names:['Any', 'Dict', 'List', 'Optional', 'Tuple', 'Type']"}, {"id": "metagpt/actions/action_node.py:module:pydantic"}, {"id": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"create_model\",\"model_validator\"]}}"}, {"id": "metagpt/actions/action_node.py:names:['BaseModel', 'create_model', 'model_validator']"}, {"id": "metagpt/actions/action_node.py:module:tenacity"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"retry\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"id": "metagpt/actions/action_node.py:names:['retry', 'stop_after_attempt', 'wait_random_exponential']"}, {"id": "metagpt/actions/action_node.py:module:metagpt.config"}, {"id": "metagpt/actions/action_node.py:names:['CONFIG']"}, {"id": "metagpt/actions/action_node.py:module:metagpt.llm"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"BaseLLM\"]}}"}, {"id": "metagpt/actions/action_node.py:names:['BaseLLM']"}, {"id": "metagpt/actions/action_node.py:module:metagpt.logs"}, {"id": "metagpt/actions/action_node.py:names:['logger']"}, {"id": "metagpt/actions/action_node.py:module:metagpt.provider.postprocess.llm_output_postprocess"}, {"id": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.postprocess.llm_output_postprocess\",\"names\":[\"llm_output_postprocess\"]}}"}, {"id": "metagpt/actions/action_node.py:names:['llm_output_postprocess']"}, {"id": "metagpt/actions/action_node.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\",\"general_after_log\"]}}"}, {"id": "metagpt/actions/action_node.py:names:['OutputParser', 'general_after_log']"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.Assign\",\"tokens\":[\"TAG\"],\"properties\":{}}"}, {"id": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.Assign\",\"tokens\":[\"LANGUAGE_CONSTRAINT\"],\"properties\":{}}"}, {"id": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.Assign\",\"tokens\":[\"FORMAT_CONSTRAINT\"],\"properties\":{}}"}, {"id": "{\"lineno\":29,\"end_lineno\":46,\"type_name\":\"ast.Assign\",\"tokens\":[\"SIMPLE_TEMPLATE\"],\"properties\":{}}"}, {"id": "{\"lineno\":49,\"end_lineno\":53,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"dict_to_markdown\"],\"properties\":{}}"}, {"id": "{\"lineno\":56,\"end_lineno\":349,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ActionNode\"],\"properties\":{}}"}, {"id": "metagpt/actions/design_api_review.py:ast.Constant:\n@Time : 2023/5/11 19:31\n@Author : alexanderwu\n@File : design_api_review.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 19:31\\n@Author : alexanderwu\\n@File : design_api_review.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/design_api_review.py:module:typing"}, {"id": "metagpt/actions/design_api_review.py:names:['Optional']"}, {"id": "metagpt/actions/design_api_review.py:module:metagpt.actions.action"}, {"id": "metagpt/actions/design_api_review.py:names:['Action']"}, {"id": "{\"lineno\":14,\"end_lineno\":26,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DesignReview\"],\"properties\":{}}"}, {"id": "metagpt/actions/invoice_ocr.py:InvoiceOCR:_check_file_type"}, {"id": "metagpt/actions/invoice_ocr.py:InvoiceOCR:_unzip"}, {"id": "metagpt/actions/invoice_ocr.py:InvoiceOCR:_ocr"}, {"id": "metagpt/actions/invoice_ocr.py:ast.Constant:\n@Time : 2023/9/21 18:10:20\n@Author : Stitch-z\n@File : invoice_ocr.py\n@Describe : Actions of the invoice ocr assistant.\n"}, {"id": "{\"lineno\":4,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/21 18:10:20\\n@Author : Stitch-z\\n@File : invoice_ocr.py\\n@Describe : Actions of the invoice ocr assistant.\\n\"],\"properties\":{}}"}, {"id": "metagpt/actions/invoice_ocr.py:os"}, {"id": "metagpt/actions/invoice_ocr.py:zipfile"}, {"id": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"zipfile\"],\"properties\":{}}"}, {"id": "metagpt/actions/invoice_ocr.py:module:datetime"}, {"id": "metagpt/actions/invoice_ocr.py:names:['datetime']"}, {"id": "metagpt/actions/invoice_ocr.py:module:pathlib"}, {"id": "metagpt/actions/invoice_ocr.py:names:['Path']"}, {"id": "metagpt/actions/invoice_ocr.py:module:typing"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"id": "metagpt/actions/invoice_ocr.py:names:['Optional']"}, {"id": "metagpt/actions/invoice_ocr.py:pandas as pd"}, {"id": "metagpt/actions/invoice_ocr.py:module:paddleocr"}, {"id": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"paddleocr\",\"names\":[\"PaddleOCR\"]}}"}, {"id": "metagpt/actions/invoice_ocr.py:names:['PaddleOCR']"}, {"id": "metagpt/actions/invoice_ocr.py:module:pydantic"}, {"id": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"id": "metagpt/actions/invoice_ocr.py:names:['Field']"}, {"id": "metagpt/actions/invoice_ocr.py:module:metagpt.actions"}, {"id": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"id": "metagpt/actions/invoice_ocr.py:names:['Action']"}, {"id": "metagpt/actions/invoice_ocr.py:module:metagpt.const"}, {"id": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"INVOICE_OCR_TABLE_PATH\"]}}"}, {"id": "metagpt/actions/invoice_ocr.py:names:['INVOICE_OCR_TABLE_PATH']"}, {"id": "metagpt/actions/invoice_ocr.py:module:metagpt.llm"}, {"id": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"id": "metagpt/actions/invoice_ocr.py:names:['LLM']"}, {"id": "metagpt/actions/invoice_ocr.py:module:metagpt.logs"}, {"id": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"id": "metagpt/actions/invoice_ocr.py:names:['logger']"}, {"id": "metagpt/actions/invoice_ocr.py:module:metagpt.prompts.invoice_ocr"}, {"id": "{\"lineno\":25,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.prompts.invoice_ocr\",\"names\":[\"EXTRACT_OCR_MAIN_INFO_PROMPT\",\"REPLY_OCR_QUESTION_PROMPT\"]}}"}, {"id": "metagpt/actions/invoice_ocr.py:names:['EXTRACT_OCR_MAIN_INFO_PROMPT', 'REPLY_OCR_QUESTION_PROMPT']"}, {"id": "metagpt/actions/invoice_ocr.py:module:metagpt.provider.base_llm"}, {"id": "metagpt/actions/invoice_ocr.py:names:['BaseLLM']"}, {"id": "metagpt/actions/invoice_ocr.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\"]}}"}, {"id": "metagpt/actions/invoice_ocr.py:names:['OutputParser']"}, {"id": "metagpt/actions/invoice_ocr.py:module:metagpt.utils.file"}, {"id": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file\",\"names\":[\"File\"]}}"}, {"id": "metagpt/actions/invoice_ocr.py:names:['File']"}, {"id": "{\"lineno\":34,\"end_lineno\":120,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"InvoiceOCR\"],\"properties\":{}}"}, {"id": "{\"lineno\":123,\"end_lineno\":165,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GenerateTable\"],\"properties\":{}}"}, {"id": "{\"lineno\":168,\"end_lineno\":194,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ReplyQuestion\"],\"properties\":{}}"}, {"id": "metagpt/prompts/sales.py"}, {"id": "metagpt/prompts/sales.py:SALES_ASSISTANT"}, {"id": "metagpt/prompts/sales.py:SALES"}, {"id": "metagpt/prompts/sales.py:conversation_stages"}, {"id": "metagpt/prompts/sales.py:ast.Constant:\n@Time : 2023/5/8 15:29\n@Author : alexanderwu\n@File : sales.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/8 15:29\\n@Author : alexanderwu\\n@File : sales.py\\n\"],\"properties\":{}}"}, {"id": "{\"lineno\":10,\"end_lineno\":30,\"type_name\":\"ast.Assign\",\"tokens\":[\"SALES_ASSISTANT\"],\"properties\":{}}"}, {"id": "{\"lineno\":33,\"end_lineno\":55,\"type_name\":\"ast.Assign\",\"tokens\":[\"SALES\"],\"properties\":{}}"}, {"id": "{\"lineno\":57,\"end_lineno\":65,\"type_name\":\"ast.Assign\",\"tokens\":[\"conversation_stages\"],\"properties\":{}}"}, {"id": "metagpt/prompts/__init__.py"}, {"id": "metagpt/prompts/__init__.py:ast.Constant:\n@Time : 2023/5/30 09:51\n@Author : alexanderwu\n@File : __init__.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/30 09:51\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"id": "metagpt/prompts/summarize.py"}, {"id": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT"}, {"id": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT_2"}, {"id": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT_3"}, {"id": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT_4"}, {"id": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT_5"}, {"id": "metagpt/prompts/summarize.py:ast.Constant:\n@Time : 2023/6/19 23:07\n@Author : alexanderwu\n@File : summarize.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/6/19 23:07\\n@Author : alexanderwu\\n@File : summarize.py\\n\"],\"properties\":{}}"}, {"id": "{\"lineno\":11,\"end_lineno\":21,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUMMARIZE_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":28,\"end_lineno\":40,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUMMARIZE_PROMPT_2\"],\"properties\":{}}"}, {"id": "{\"lineno\":43,\"end_lineno\":54,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUMMARIZE_PROMPT_3\"],\"properties\":{}}"}, {"id": "{\"lineno\":57,\"end_lineno\":69,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUMMARIZE_PROMPT_4\"],\"properties\":{}}"}, {"id": "{\"lineno\":72,\"end_lineno\":92,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUMMARIZE_PROMPT_5\"],\"properties\":{}}"}, {"id": "metagpt/prompts/metagpt_sample.py"}, {"id": "metagpt/prompts/metagpt_sample.py:METAGPT_SAMPLE"}, {"id": "metagpt/prompts/metagpt_sample.py:ast.Constant:\n@Time : 2023/6/7 20:29\n@Author : alexanderwu\n@File : metagpt_sample.py\n"}, {"id": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/6/7 20:29\\n@Author : alexanderwu\\n@File : metagpt_sample.py\\n\"],\"properties\":{}}"}, {"id": "{\"lineno\":9,\"end_lineno\":39,\"type_name\":\"ast.Assign\",\"tokens\":[\"METAGPT_SAMPLE\"],\"properties\":{}}"}, {"id": "metagpt/prompts/tutorial_assistant.py"}, {"id": "metagpt/prompts/tutorial_assistant.py:COMMON_PROMPT"}, {"id": "metagpt/prompts/tutorial_assistant.py:DIRECTORY_PROMPT"}, {"id": "metagpt/prompts/tutorial_assistant.py:CONTENT_PROMPT"}, {"id": "metagpt/prompts/tutorial_assistant.py:ast.Constant:\n@Time : 2023/9/4 15:40:40\n@Author : Stitch-z\n@File : tutorial_assistant.py\n@Describe : Tutorial Assistant's prompt templates.\n"}, {"id": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 15:40:40\\n@Author : Stitch-z\\n@File : tutorial_assistant.py\\n@Describe : Tutorial Assistant's prompt templates.\\n\"],\"properties\":{}}"}, {"id": "{\"lineno\":10,\"end_lineno\":13,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMMON_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":15,\"end_lineno\":25,\"type_name\":\"ast.Assign\",\"tokens\":[\"DIRECTORY_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":27,\"end_lineno\":45,\"type_name\":\"ast.Assign\",\"tokens\":[\"CONTENT_PROMPT\"],\"properties\":{}}"}, {"id": "metagpt/prompts/invoice_ocr.py"}, {"id": "metagpt/prompts/invoice_ocr.py:COMMON_PROMPT"}, {"id": "metagpt/prompts/invoice_ocr.py:EXTRACT_OCR_MAIN_INFO_PROMPT"}, {"id": "metagpt/prompts/invoice_ocr.py:REPLY_OCR_QUESTION_PROMPT"}, {"id": "metagpt/prompts/invoice_ocr.py:INVOICE_OCR_SUCCESS"}, {"id": "metagpt/prompts/invoice_ocr.py:ast.Constant:\n@Time : 2023/9/21 16:30:25\n@Author : Stitch-z\n@File : invoice_ocr.py\n@Describe : Prompts of the invoice ocr assistant.\n"}, {"id": "{\"lineno\":4,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/21 16:30:25\\n@Author : Stitch-z\\n@File : invoice_ocr.py\\n@Describe : Prompts of the invoice ocr assistant.\\n\"],\"properties\":{}}"}, {"id": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMMON_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":13,\"end_lineno\":27,\"type_name\":\"ast.Assign\",\"tokens\":[\"EXTRACT_OCR_MAIN_INFO_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":29,\"end_lineno\":42,\"type_name\":\"ast.Assign\",\"tokens\":[\"REPLY_OCR_QUESTION_PROMPT\"],\"properties\":{}}"}, {"id": "{\"lineno\":44,\"end_lineno\":44,\"type_name\":\"ast.Assign\",\"tokens\":[\"INVOICE_OCR_SUCCESS\"],\"properties\":{}}"}, {"id": "metagpt/strategy/tot_schema.py:module:enum"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"id": "metagpt/strategy/tot_schema.py:names:['Enum']"}, {"id": "metagpt/strategy/tot_schema.py:module:pydantic"}, {"id": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"id": "metagpt/strategy/tot_schema.py:names:['BaseModel', 'Field']"}, {"id": "metagpt/strategy/tot_schema.py:module:metagpt.strategy.base"}, {"id": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.strategy.base\",\"names\":[\"BaseEvaluator\",\"BaseParser\"]}}"}, {"id": "metagpt/strategy/tot_schema.py:names:['BaseEvaluator', 'BaseParser']"}, {"id": "{\"lineno\":12,\"end_lineno\":14,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MethodSelect\"],\"properties\":{}}"}, {"id": "{\"lineno\":17,\"end_lineno\":20,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Strategy\"],\"properties\":{}}"}, {"id": "{\"lineno\":23,\"end_lineno\":30,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ThoughtSolverConfig\"],\"properties\":{}}"}, {"id": "metagpt/strategy/tot.py:ThoughtSolverBase:__init__"}, {"id": "metagpt/strategy/tot.py:ThoughtSolverBase:solve"}, {"id": "metagpt/strategy/tot.py:BFSSolver:_bfs_build"}, {"id": "metagpt/strategy/tot.py:DFSSolver:_dfs"}, {"id": "metagpt/strategy/tot.py:MCTSSolver:solve"}, {"id": "metagpt/strategy/tot.py:TreeofThought:__init__"}, {"id": "metagpt/strategy/tot.py:TreeofThought:_initialize_solver"}, {"id": "metagpt/strategy/tot.py:OUTPUT_FORMAT"}, {"id": "metagpt/strategy/tot.py:module:__future__"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"id": "metagpt/strategy/tot.py:names:['annotations']"}, {"id": "metagpt/strategy/tot.py:asyncio"}, {"id": "metagpt/strategy/tot.py:module:typing"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"List\",\"Optional\"]}}"}, {"id": "metagpt/strategy/tot.py:names:['Any', 'List', 'Optional']"}, {"id": "metagpt/strategy/tot.py:module:pydantic"}, {"id": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\"]}}"}, {"id": "metagpt/strategy/tot.py:names:['BaseModel', 'ConfigDict', 'Field']"}, {"id": "metagpt/strategy/tot.py:module:metagpt.llm"}, {"id": "metagpt/strategy/tot.py:names:['LLM']"}, {"id": "metagpt/strategy/tot.py:module:metagpt.logs"}, {"id": "metagpt/strategy/tot.py:names:['logger']"}, {"id": "metagpt/strategy/tot.py:module:metagpt.provider.base_llm"}, {"id": "metagpt/strategy/tot.py:names:['BaseLLM']"}, {"id": "metagpt/strategy/tot.py:module:metagpt.strategy.base"}, {"id": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.strategy.base\",\"names\":[\"ThoughtNode\",\"ThoughtTree\"]}}"}, {"id": "metagpt/strategy/tot.py:names:['ThoughtNode', 'ThoughtTree']"}, {"id": "metagpt/strategy/tot.py:module:metagpt.strategy.tot_schema"}, {"id": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.strategy.tot_schema\",\"names\":[\"MethodSelect\",\"Strategy\",\"ThoughtSolverConfig\"]}}"}, {"id": "metagpt/strategy/tot.py:names:['MethodSelect', 'Strategy', 'ThoughtSolverConfig']"}, {"id": "metagpt/strategy/tot.py:module:metagpt.utils.common"}, {"id": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"id": "metagpt/strategy/tot.py:names:['CodeParser']"}, {"id": "{\"lineno\":19,\"end_lineno\":30,\"type_name\":\"ast.Assign\",\"tokens\":[\"OUTPUT_FORMAT\"],\"properties\":{}}"}, {"id": "{\"lineno\":33,\"end_lineno\":123,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ThoughtSolverBase\"],\"properties\":{}}"}, {"id": "{\"lineno\":126,\"end_lineno\":177,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BFSSolver\"],\"properties\":{}}"}, {"id": "{\"lineno\":180,\"end_lineno\":227,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DFSSolver\"],\"properties\":{}}"}, {"id": "{\"lineno\":230,\"end_lineno\":232,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MCTSSolver\"],\"properties\":{}}"}, {"id": "{\"lineno\":235,\"end_lineno\":277,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"TreeofThought\"],\"properties\":{}}"}, {"id": "metagpt/strategy/__init__.py"}, {"id": "metagpt/strategy/base.py:BaseParser:__call__"}, {"id": "metagpt/strategy/base.py:BaseParser:propose"}, {"id": "metagpt/strategy/base.py:BaseParser:sample"}, {"id": "metagpt/strategy/base.py:BaseParser:value"}, {"id": "metagpt/strategy/base.py:BaseEvaluator:__call__"}, {"id": "metagpt/strategy/base.py:BaseEvaluator:status_verify"}, {"id": "metagpt/strategy/base.py:module:abc"}, {"id": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\"]}}"}, {"id": "metagpt/strategy/base.py:names:['ABC']"}, {"id": "metagpt/strategy/base.py:module:typing"}, {"id": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"id": "metagpt/strategy/base.py:names:['List']"}, {"id": "metagpt/strategy/base.py:module:anytree"}, {"id": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"anytree\",\"names\":[\"Node\",\"RenderTree\"]}}"}, {"id": "metagpt/strategy/base.py:names:['Node', 'RenderTree']"}, {"id": "metagpt/strategy/base.py:module:pydantic"}, {"id": "metagpt/strategy/base.py:names:['BaseModel']"}, {"id": "{\"lineno\":12,\"end_lineno\":23,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BaseParser\"],\"properties\":{}}"}, {"id": "{\"lineno\":26,\"end_lineno\":31,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BaseEvaluator\"],\"properties\":{}}"}, {"id": "{\"lineno\":34,\"end_lineno\":48,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ThoughtNode\"],\"properties\":{}}"}, {"id": "{\"lineno\":51,\"end_lineno\":109,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ThoughtTree\"],\"properties\":{}}"}, {"id": "{\"name\":\"AIMessage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"APIRequestor\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"api_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"AZURE_AD, OPEN_AI \",\"default_value\":\"\"},{\"name\":\"api_version\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"base_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"organization\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"arequest\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"params\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"headers\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"files\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Literal[True]\",\"default_value\":\"\"},{\"name\":\"request_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[str]\",\"default_value\":\"\"},{\"name\":\"request_timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[Union[float, Tuple[float, float]]]\",\"default_value\":\"\"}],\"return_type\":\"Tuple[AsyncGenerator[OpenAIResponse, None], bool, str]\"},{\"name\":\"arequest_raw\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"session\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"aiohttp.ClientResponse\"},{\"name\":\"request\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"params\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"headers\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"files\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Literal[True]\",\"default_value\":\"\"},{\"name\":\"request_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[str]\",\"default_value\":\"\"},{\"name\":\"request_timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[Union[float, Tuple[float, float]]]\",\"default_value\":\"\"}],\"return_type\":\"Tuple[Iterator[OpenAIResponse], bool, str]\"},{\"name\":\"request_headers\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"extra\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"request_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[str]\",\"default_value\":\"\"}],\"return_type\":\"Dict[str, str]\"},{\"name\":\"request_raw\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"requests.Response\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"request\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"arequest\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_validate_headers\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_prepare_request_raw\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_interpret_response\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_interpret_async_response\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_interpret_response_line\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Action\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Union[dict, CodingContext, CodeSummarizeContext, TestingContext, RunCodeContext, str, None] \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"prefix\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"set_name_if_empty\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"values\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_prefix\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prefix\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_init_with_instruction\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__str__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__repr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_aask\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_run_action_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ActionNode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"children\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[str, ActionNode] \",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"example\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"expected_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Type \",\"default_value\":\"\"},{\"name\":\"instruct_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"BaseModel \",\"default_value\":\"\"},{\"name\":\"instruction\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add_child\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"ActionNode\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"add_children\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"nodes\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[ActionNode]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"compile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"template\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"compile_example\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"tag\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"compile_instruction\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"tag\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"compile_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"i\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Dict\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"kv_sep\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"create_children_class\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"create_model_class\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"class_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Dict[str, Tuple[Type, Any]]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"fill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"strgy\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"from_children\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"nodes\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[ActionNode]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_children_mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Dict[str, Tuple[Type, Any]]\"},{\"name\":\"get_mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Dict[str, Tuple[Type, Any]]\"},{\"name\":\"get_self_mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Dict[str, Tuple[Type, Any]]\"},{\"name\":\"set_context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_recursive\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"value\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"simple_fill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"tagging\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"tag\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"to_dict\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"format_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Dict\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__str__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__repr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_compile_f\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_aask_v1\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ActionOutput\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"instruct_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"BaseModel \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ActionType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"ApiType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"from_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"label\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Architect\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ArgumentsParingAction\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"args\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Dict] \",\"default_value\":\"\"},{\"name\":\"ask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Message] \",\"default_value\":\"\"},{\"name\":\"skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"parse_arguments\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"skill_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"txt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Message\"}]}"}, {"id": "{\"name\":\"Assistant\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"skills\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[SkillsDeclaration] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"act\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Message\"},{\"name\":\"get_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"},{\"name\":\"load_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"m\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"refine_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"},{\"name\":\"skill_handler\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"bool\"},{\"name\":\"talk\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"talk_handler\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"bool\"},{\"name\":\"think\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"bool\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_plan\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"AsyncSSEClient\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"async_events\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_aread\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"AudioData\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"audio\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"ced\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"status\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"AzureOpenAILLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"aclient\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"AsyncAzureOpenAI \",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"_init_client\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_make_client_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"AzureTTS\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"region\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"subscription_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"role_style_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"style\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"role_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"style_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"style\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"synthesize_speech\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"lang\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"voice\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"output_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"BEAGECTemplate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"gen\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"BFSSolver\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"thought_tree\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"generate_and_evaluate_nodes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"current_state\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"current_value\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"solve\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"init_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_bfs_build\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"BaseContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"loads\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"val\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Optional[T]\"}]}"}, {"id": "{\"name\":\"BaseEvaluator\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"status_verify\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__call__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"status_verify\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"BaseLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"system_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"use_system_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"aask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"system_msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[list[str]]\",\"default_value\":\"\"},{\"name\":\"format_msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[list[dict[str, str]]]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"aask_batch\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"aask_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"acompletion\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"acompletion_text\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_choice_function\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"get_choice_function_arguments\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"get_choice_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"_user_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_assistant_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_system_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_system_msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_default_system_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_extract_assistant_rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"BaseParser\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"propose\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"current_state\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"sample\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"current_state\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"value\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"input\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__call__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"propose\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"sample\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"value\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"BasePostProcessPlugin\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"output\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"},{\"name\":\"req_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Union[dict, list]\"},{\"name\":\"run_extract_content_from_output\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"right_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"run_repair_llm_output\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"output\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"},{\"name\":\"req_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Union[dict, list]\"},{\"name\":\"run_repair_llm_raw_output\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"req_keys\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str]\",\"default_value\":\"\"},{\"name\":\"repair_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"run_retry_parse_json_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Union[dict, list]\"}]}"}, {"id": "{\"name\":\"BaseStore\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"add\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"BrainMemory\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"cacheable\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"historical_summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"history\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[Message] \",\"default_value\":\"\"},{\"name\":\"is_dirty\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"knowledge\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[Message] \",\"default_value\":\"\"},{\"name\":\"last_history_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"last_talk\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[BaseLLM] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"history_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"is_history_available\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"add_answer\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"add_history\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"add_talk\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"dumps\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"redis_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"timeout_sec\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"exists\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"bool\"},{\"name\":\"extract_info\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"input_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"pattern\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_knowledge\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"},{\"name\":\"get_title\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"max_words\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"is_related\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text1\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"text2\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"loads\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"redis_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"BrainMemory\"},{\"name\":\"pop_last_talk\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"rewrite\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"sentence\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_history_summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"history_summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"redis_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"redis_conf\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"split_texts\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"window_size\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"List[str]\"},{\"name\":\"summarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"max_words\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"keep_language\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"},{\"name\":\"limit\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"to_int\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"v\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"default_value\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"to_metagpt_history_format\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"history\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"to_redis_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prefix\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"user_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"chat_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_openai_summarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_metagpt_summarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_metagpt_is_related\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_openai_is_related\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_metagpt_rewrite\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_openai_rewrite\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_summarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"BugFixContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"ChangeType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"ChromaStore\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"client\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"FastAPI, LocalAPI \",\"default_value\":\"\"},{\"name\":\"collection\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Collection \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"document\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"metadata\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"delete\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"n_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"metadata_filter\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"document_filter\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"documents\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"metadatas\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"ids\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ClassAttribute\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"default_value\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"value_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_mermaid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"align\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"id": "{\"name\":\"ClassInfo\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"attributes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict[str, str] \",\"default_value\":\"\"},{\"name\":\"methods\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict[str, str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"package\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"ClassMeta\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"abstraction\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"static\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"visibility\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"ClassMethod\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"args\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[ClassAttribute] \",\"default_value\":\"\"},{\"name\":\"return_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_mermaid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"align\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"id": "{\"name\":\"ClassRelationship\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"dest\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"label\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"relationship\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"src\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"ClassView\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"attributes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[ClassAttribute] \",\"default_value\":\"\"},{\"name\":\"methods\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[ClassMethod] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_mermaid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"align\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"id": "{\"name\":\"Claude2\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"aask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"ask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"id": "{\"name\":\"CodeBlockInfo\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"end_lineno\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"lineno\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"properties\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict \",\"default_value\":\"\"},{\"name\":\"tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List \",\"default_value\":\"\"},{\"name\":\"type_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"CodeParser\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"parse_block\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"block\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"parse_blocks\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"parse_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"block\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"lang\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"parse_file_list\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"block\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"lang\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[str]\"},{\"name\":\"parse_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"block\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"lang\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"CodeSummarizeContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"codes_filenames\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[str] \",\"default_value\":\"\"},{\"name\":\"design_filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"reason\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"task_filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"loads\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filenames\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List\",\"default_value\":\"\"}],\"return_type\":\"CodeSummarizeContext\"},{\"name\":\"__hash__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"CodingContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"code_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Document] \",\"default_value\":\"\"},{\"name\":\"design_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Document] \",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"task_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Document] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"CollectLinks\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"rank_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Callable[[list[str]], None]] \",\"default_value\":\"\"},{\"name\":\"search_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"decomposition_nums\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"url_per_query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"system_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str \\\\| None\",\"default_value\":\"\"}],\"return_type\":\"dict[str, list[str]]\"},{\"name\":\"_search_and_rank_urls\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Components\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[]}"}, {"id": "{\"name\":\"ConductResearch\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"system_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Config\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"anthropic_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"calc_usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"claude_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"code_review_k_times\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"cost_manager\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"default_yaml_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"deployment_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"domain\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"fireworks_api_base\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"fireworks_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"fireworks_api_model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"gemini_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"git_reinit\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"global_proxy\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"google_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"google_cse_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"home_yaml_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"inc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"key_yaml_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"long_term_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"max_auto_summarize_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"max_tokens_rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mermaid_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mmdc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_for_researcher_report\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_for_researcher_summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"ollama_api_base\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"ollama_api_model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"open_llm_api_base\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"open_llm_api_model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_api_model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_api_rpm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_api_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_api_version\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_base_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_proxy\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"playwright_browser_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"project_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"project_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"prompt_schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"puppeteer_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"pyppeteer_executable_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"repair_llm_output\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"reqa_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"search_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"selenium_browser_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"serpapi_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"serper_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_api_secret\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_appid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"web_browser_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"workspace_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Path \",\"default_value\":\"\"},{\"name\":\"zhipuai_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"options\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_default_llm_provider_enum\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"LLMProviderEnum\"},{\"name\":\"get_model_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"provider\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"new_environ\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"set_context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"options\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"update_via_cli\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"project_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"project_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"inc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"reqa_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"max_auto_summarize_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_is_valid_llm_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_ensure_workspace_exists\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_init_with_config_files_and_env\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__setattr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__getattr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"CostManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"max_budget\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"},{\"name\":\"total_budget\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"},{\"name\":\"total_completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"total_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"},{\"name\":\"total_prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Costs\"},{\"name\":\"get_total_completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get_total_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get_total_prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"update_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"total_budget\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"},{\"name\":\"total_completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"total_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"},{\"name\":\"total_prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"CustomDecoder\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"parse_object\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"parse_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"scan_once\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"decode\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"s\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"_w\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"CustomerService\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"store\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[BaseStore] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"DDGAPIWrapper\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"ddgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"DDGS \",\"default_value\":\"\"},{\"name\":\"executor\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"loop\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"as_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Literal[True]\",\"default_value\":\"\"},{\"name\":\"focus\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str] \\\\| None\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_search_from_ddgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"DFSSolver\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"thought_tree\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"solve\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"init_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"root\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_dfs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"DataSource\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"DebugError\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"}]}"}, {"id": "{\"name\":\"DependencyFile\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"exists\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"delete_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"load\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"save\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"update\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"dependencies\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Set[Path \\\\| str]\",\"default_value\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"DesignReview\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prd\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"api_design\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"DiGraphRepository\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"pathname\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"root\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"insert\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"json\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"},{\"name\":\"load\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"pathname\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str \\\\| Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"load_from\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"pathname\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str \\\\| Path\",\"default_value\":\"\"}],\"return_type\":\"GraphRepository\"},{\"name\":\"save\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str \\\\| Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"select\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"List[SPO]\"},{\"name\":\"update\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"upsert\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"upsert\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"update\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"DocstringCollector\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"docstrings\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[tuple[str, ...], cst.SimpleStatementLine] \",\"default_value\":\"\"},{\"name\":\"stack\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[str] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"leave_ClassDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.ClassDef\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"leave_FunctionDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.FunctionDef\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"leave_Module\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.Module\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"visit_ClassDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.ClassDef\",\"default_value\":\"\"}],\"return_type\":\"bool \\\\| None\"},{\"name\":\"visit_FunctionDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.FunctionDef\",\"default_value\":\"\"}],\"return_type\":\"bool \\\\| None\"},{\"name\":\"visit_Module\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.Module\",\"default_value\":\"\"}],\"return_type\":\"bool \\\\| None\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_leave\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"DocstringTransformer\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"docstrings\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[tuple[str, ...], cst.SimpleStatementLine] \",\"default_value\":\"\"},{\"name\":\"stack\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[str] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"leave_ClassDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"original_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.ClassDef\",\"default_value\":\"\"},{\"name\":\"updated_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.ClassDef\",\"default_value\":\"\"}],\"return_type\":\"cst.CSTNode\"},{\"name\":\"leave_FunctionDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"original_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.FunctionDef\",\"default_value\":\"\"},{\"name\":\"updated_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.FunctionDef\",\"default_value\":\"\"}],\"return_type\":\"cst.CSTNode\"},{\"name\":\"leave_Module\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"original_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Module\",\"default_value\":\"\"},{\"name\":\"updated_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Module\",\"default_value\":\"\"}],\"return_type\":\"Module\"},{\"name\":\"visit_ClassDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.ClassDef\",\"default_value\":\"\"}],\"return_type\":\"bool \\\\| None\"},{\"name\":\"visit_FunctionDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.FunctionDef\",\"default_value\":\"\"}],\"return_type\":\"bool \\\\| None\"},{\"name\":\"visit_Module\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.Module\",\"default_value\":\"\"}],\"return_type\":\"bool \\\\| None\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_leave\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Document\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"author\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Path \",\"default_value\":\"\"},{\"name\":\"reviews\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list \",\"default_value\":\"\"},{\"name\":\"status\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"from_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"from_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[Path]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"to_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[Path]\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Document\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"root_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"full_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"root_relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get_meta\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Document\"},{\"name\":\"__str__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__repr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"DocumentStatus\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Documents\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"docs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict[str, Document] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Embedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"embedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[float] \",\"default_value\":\"\"},{\"name\":\"index\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"object\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Engineer\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"code_todos\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list \",\"default_value\":\"\"},{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"n_borg\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"next_todo_action\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"summarize_todos\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list \",\"default_value\":\"\"},{\"name\":\"use_code_review\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"todo\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_tasks\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act_sp_with_cr\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act_write_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act_summarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_is_pass\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_think\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_new_coding_context\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_new_coding_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_new_code_actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_new_summarize_actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"EnronTemplate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"gen\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subj\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Entity\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"skills\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[Skill] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Environment\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"history\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"members\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[Role, Set] \",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"roles\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[str, SerializeAsAny[Role]] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"is_idle\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"add_role\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Role\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"add_roles\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"roles\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Iterable[Role]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"archive\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"auto_archive\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"deserialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"Environment\"},{\"name\":\"get_role\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Role\"},{\"name\":\"get_roles\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict[str, Role]\"},{\"name\":\"get_subscription\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"obj\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"init_roles\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"publish_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"},{\"name\":\"peekable\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"}],\"return_type\":\"bool\"},{\"name\":\"role_names\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"list[str]\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"serialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_subscription\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"obj\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"tags\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Example\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"answer\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"ask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"ExecuteTask\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[Message] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"FaissStore\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content_col\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"embedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"OpenAIEmbeddings \",\"default_value\":\"\"},{\"name\":\"meta_col\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"store\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"texts\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str]\",\"default_value\":\"\"}],\"return_type\":\"list[str]\"},{\"name\":\"asearch\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"delete\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"expand_cols\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"sep\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_load\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_write\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"delete\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"File\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"CHUNK_SIZE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"read\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"file_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"},{\"name\":\"chunk_size\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"bytes\"},{\"name\":\"write\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"root_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bytes\",\"default_value\":\"\"}],\"return_type\":\"Path\"}]}"}, {"id": "{\"name\":\"FileRepository\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"all_files\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"changed_files\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"root_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"workdir\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"delete\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"delete_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"Document \\\\| None\"},{\"name\":\"get_all\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"List[Document]\"},{\"name\":\"get_all_files\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"List[Document]\"},{\"name\":\"get_change_dir_files\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"dir\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"List\"},{\"name\":\"get_changed_dependency\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"Set[str]\"},{\"name\":\"get_dependency\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"Set[str]\"},{\"name\":\"get_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"Document \\\\| None\"},{\"name\":\"new_filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"save\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"dependencies\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[str]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"save_as\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Document\",\"default_value\":\"\"},{\"name\":\"with_suffix\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"dependencies\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[str]\",\"default_value\":\"\"},{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"save_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Document\",\"default_value\":\"\"},{\"name\":\"with_suffix\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"dependencies\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[str]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"save_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"dependencies\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[str]\",\"default_value\":\"\"},{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"FireworksCostManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"total_completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"total_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"total_prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"model_grade_token_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"dict[str, float]\"},{\"name\":\"update_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"FireworksLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"auto_max_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"is_azure\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"rpm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Costs\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init_fireworks\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_make_client_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion_stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"FixBug\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"GPTPromptGenerator\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"gen\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"example\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"style\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Union[list[str], str]\"},{\"name\":\"gen_chatbot_style\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"example\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"gen_instruction_style\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"example\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"gen_query_style\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"example\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"GeminiGenerativeModel\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"count_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"contents\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"content_types.ContentsType\",\"default_value\":\"\"}],\"return_type\":\"glm.CountTokensResponse\"},{\"name\":\"count_tokens_async\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"contents\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"content_types.ContentsType\",\"default_value\":\"\"}],\"return_type\":\"glm.CountTokensResponse\"}]}"}, {"id": "{\"name\":\"GeminiLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"use_system_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"aget_usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"resp_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"completion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"}],\"return_type\":\"GenerateContentResponse\"},{\"name\":\"get_choice_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"resp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"GenerateContentResponse\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"resp_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init_gemini\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_user_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_assistant_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_const_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion_stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"GeneralAPIRequestor\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"_interpret_response_line\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_interpret_response\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_interpret_async_response\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"GenerateQuestions\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"GenerateTable\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ocr_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list\",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"dict[str, str]\"}]}"}, {"id": "{\"name\":\"GetMessageFromWeb\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"domain\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"ret\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"spark_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_api_secret\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_appid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"gen_params\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"on_close\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ws\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"one\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"two\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"on_error\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ws\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"error\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"on_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ws\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"on_open\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ws\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"send\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ws\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"on_close\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_run\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"GitRepository\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"changed_files\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"is_valid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"status\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"workdir\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"add_change\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"files\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Dict\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"archive\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"comments\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"commit\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"comments\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"delete_repository\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"filter_gitignore\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filenames\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[str]\",\"default_value\":\"\"},{\"name\":\"root_relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"List[str]\"},{\"name\":\"get_dependency\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"DependencyFile\"},{\"name\":\"get_files\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"root_relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"filter_ignored\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"List\"},{\"name\":\"is_git_dir\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"local_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"new_file_repository\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"FileRepository\"},{\"name\":\"open\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"local_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"},{\"name\":\"auto_init\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"rename_root\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"new_dir_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_init\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"GoogleAPIWrapper\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"executor\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[futures.Executor] \",\"default_value\":\"\"},{\"name\":\"google_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"google_cse_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"loop\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[asyncio.AbstractEventLoop] \",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"google_api_client\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"check_google_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"val\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"check_google_cse_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"val\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"as_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"},{\"name\":\"focus\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str] \\\\| None\",\"default_value\":\"\"}],\"return_type\":\"str \\\\| list[dict]\"}]}"}, {"id": "{\"name\":\"GraphKeyword\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"CLASS\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"CLASS_FUNCTION\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"CLASS_PROPERTY\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"FUNCTION\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"GLOBAL_VARIABLE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_ARGS_DESC\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_CLASS\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_CLASS_FUNCTION\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_CLASS_PROPERTY\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_CLASS_VIEW\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_FUNCTION\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_PAGE_INFO\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_SEQUENCE_VIEW\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_TYPE_DESC\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"IS\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"NULL\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"OF\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"ON\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"SOURCE_CODE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"GraphRepository\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"insert\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"select\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"List[SPO]\"},{\"name\":\"update\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"update_graph_db_with_class_relationship_views\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"graph_db\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"GraphRepository\",\"default_value\":\"\"},{\"name\":\"relationship_views\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[ClassRelationship]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"update_graph_db_with_class_views\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"graph_db\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"GraphRepository\",\"default_value\":\"\"},{\"name\":\"class_views\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[ClassInfo]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"update_graph_db_with_file_info\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"graph_db\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"GraphRepository\",\"default_value\":\"\"},{\"name\":\"file_info\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"RepoFileInfo\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"upsert\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"insert\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"upsert\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"update\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"select\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"HumanProvider\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"aask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"system_msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[list[str]]\",\"default_value\":\"\"},{\"name\":\"format_msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[list[dict[str, str]]]\",\"default_value\":\"\"},{\"name\":\"generator\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"ask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"id": "{\"name\":\"IFlyTekTTS\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"api_secret\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"app_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"synthesize_speech\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"output_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"voice\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_create_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"IFlyTekTTSResponse\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[AudioData] \",\"default_value\":\"\"},{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"sid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"IFlyTekTTSStatus\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"IndexableDocument\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content_col\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Union[pd.DataFrame, list] \",\"default_value\":\"\"},{\"name\":\"meta_col\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"from_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"},{\"name\":\"content_col\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"meta_col\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_docs_and_metadatas\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Tuple[list, list]\"},{\"name\":\"_get_docs_and_metadatas_by_df\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_docs_and_metadatas_by_langchain\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"InvoiceData\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"invoice_data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[dict] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"InvoiceOCR\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"file_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"list\"},{\"name\":\"_check_file_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_unzip\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_ocr\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"InvoiceOCRAssistant\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"orc_data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[list] \",\"default_value\":\"\"},{\"name\":\"origin_query\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"InvoicePath\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"file_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Path \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"LLMProviderEnum\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__missing__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"LLMProviderRegistry\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"providers\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_provider\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"enum\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"LLMProviderEnum\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"register\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"provider_cls\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"LanceStore\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"db\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"LanceDBConnection, RemoteDBConnection \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"table\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"LanceTable, NoneType, RemoteTable \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"metadata\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"delete\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"drop\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"n_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"metric\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"nprobes\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"metadatas\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"ids\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"LocalStore\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"cache_dir\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Path] \",\"default_value\":\"\"},{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"fname\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"raw_data_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Path \",\"default_value\":\"\"},{\"name\":\"store\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_index_and_store_fname\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_load\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_write\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"LongTermMemory\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"memory_storage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"msg_from_recover\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"rc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[RoleContext] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"clear\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"delete\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"find_news\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"observed\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[Message]\",\"default_value\":\"\"},{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"recover_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"rc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"RoleContext\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"MCTSSolver\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"solve\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"init_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"solve\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"MeilisearchEngine\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"client\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Client \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add_documents\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data_source\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"DataSource\",\"default_value\":\"\"},{\"name\":\"documents\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[dict]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_index\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"index\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"ignore_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"index\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"DefaultDict[str, list[SerializeAsAny[Message]]] \",\"default_value\":\"\"},{\"name\":\"storage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[SerializeAsAny[Message]] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"add_batch\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Iterable[Message]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"clear\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"count\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"int\"},{\"name\":\"delete\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"delete_newest\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Message\"},{\"name\":\"deserialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"Memory\"},{\"name\":\"find_news\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"observed\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[Message]\",\"default_value\":\"\"},{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"get_by_action\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"action\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"get_by_actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Set\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"get_by_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"get_by_role\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"serialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"try_remember\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"keyword\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"}]}"}, {"id": "{\"name\":\"MemoryStorage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"embedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"OpenAIEmbeddings \",\"default_value\":\"\"},{\"name\":\"mem_ttl\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"role_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"role_mem_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str], Path \",\"default_value\":\"\"},{\"name\":\"store\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"NoneType, Optional[FAISS] \",\"default_value\":\"\"},{\"name\":\"threshold\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"is_initialized\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"bool\"},{\"name\":\"clean\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"recover_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"search_dissimilar\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"},{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_load\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_index_and_store_fname\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"cause_by\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"instruct_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[BaseModel] \",\"default_value\":\"\"},{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"send_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"set[str] \",\"default_value\":\"\"},{\"name\":\"sent_from\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"check_cause_by\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"cause_by\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Any\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"check_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"check_instruct_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Any\",\"default_value\":\"\"}],\"return_type\":\"BaseModel\"},{\"name\":\"check_send_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"send_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Any\",\"default_value\":\"\"}],\"return_type\":\"set\"},{\"name\":\"check_sent_from\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"sent_from\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Any\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"dump\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"},{\"name\":\"load\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"val\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"ser_instruct_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"BaseModel\",\"default_value\":\"\"}],\"return_type\":\"Union[str, None]\"},{\"name\":\"to_dict\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__setattr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__str__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__repr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"MessageQueue\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"dump\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"},{\"name\":\"empty\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"load\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"MessageQueue\"},{\"name\":\"pop\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Message \\\\| None\"},{\"name\":\"pop_all\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"List[Message]\"},{\"name\":\"push\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"MessageType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"MetaGPTLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"MetaGPTText2Image\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"model_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"text_2_image\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"size_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"MethodSelect\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Moderation\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"amoderation\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Union[str, list[str]]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"amoderation_with_categories\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Union[str, list[str]]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"handle_moderation_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"NoMoneyException\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"amount\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__str__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"NotConfiguredException\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"OCRResults\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"ocr_result\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"OllamaCostManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"total_completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"total_prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"update_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"OllamaLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"client\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"http_method\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"suffix_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"use_system_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_choice_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"resp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"resp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init_ollama\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_const_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_decode_and_load\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion_stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"OpenAILLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"aclient\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"AsyncOpenAI \",\"default_value\":\"\"},{\"name\":\"auto_max_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"aask_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Union[str, Message, list[dict]]\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"ChatCompletion\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"amoderation\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Union[str, list[str]]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_choice_function_arguments\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"ChatCompletion\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"get_choice_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"ChatCompletion\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Costs\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_init_openai\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_init_client\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_make_client_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_proxy_params\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion_stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_cons_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_func_configs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion_function\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_process_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_calc_usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_max_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"OpenAIResponse\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"operation_location\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"organization\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"request_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"response_ms\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"retry_after\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"OpenAIText2Embedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"openai_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"text_2_embedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"OpenAIText2Image\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"get_image_data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"text_2_image\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"size_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"OpenLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"auto_max_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"is_azure\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"rpm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Costs\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init_openllm\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_make_client_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_calc_usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"OpenLLMCostManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"total_completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"total_prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"update_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"OutputParser\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"extract_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"tag\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"extract_struct\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"data_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Union[type(list), type(dict)]\",\"default_value\":\"\"}],\"return_type\":\"Union[list, dict]\"},{\"name\":\"parse_blocks\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"parse_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"lang\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"parse_data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"parse_data_with_mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"parse_file_list\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[str]\"},{\"name\":\"parse_python_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"parse_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Parameter\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"description\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"PlaywrightWrapper\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"browser_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Literal[chromium, firefox, webkit] \\\\| None \",\"default_value\":\"\"},{\"name\":\"launch_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \\\\| None \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"WebPage \\\\| list[WebPage]\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_scrape\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_run_precheck\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"PrepareDocuments\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_init_repo\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"PrepareInterview\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ProductManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"todo_action\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"todo\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_think\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_observe\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ProjectManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"PromptString\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"QaEngineer\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"test_round\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"test_round_allowed\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_write_test\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_run_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_debug_error\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_observe\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"QdrantConnection\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"host\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"port\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[int] \",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"QdrantStore\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"client\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"QdrantClient \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"collection_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"points\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[PointStruct]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"create_collection\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"collection_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"vectors_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"VectorParams\",\"default_value\":\"\"},{\"name\":\"force_recreate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"delete_collection\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"collection_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"has_collection\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"collection_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"collection_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[float]\",\"default_value\":\"\"},{\"name\":\"query_filter\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Filter\",\"default_value\":\"\"},{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"return_vector\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"RebuildClassView\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"format\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_create_mermaid_class_views\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_create_mermaid_class\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_create_mermaid_relationship\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_variable_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_function_args\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_diff_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_align_root\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"RebuildSequenceView\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"format\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_search_main_entry\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_rebuild_sequence_view\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Redis\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"is_configured\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"is_valid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"close\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"bytes \\\\| None\"},{\"name\":\"set\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"timeout_sec\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_connect\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"RepairType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"ReplyData\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"ReplyQuestion\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"ocr_result\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"id": "{\"name\":\"Repo\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"assets\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[Path, Document] \",\"default_value\":\"\"},{\"name\":\"codes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[Path, Document] \",\"default_value\":\"\"},{\"name\":\"docs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[Path, Document] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Path \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"eda\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"RepoMetadata\"},{\"name\":\"from_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Optional[Document]\"},{\"name\":\"get_text_documents\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"list[Document]\"},{\"name\":\"set\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"to_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_set\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"RepoFileInfo\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"classes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List \",\"default_value\":\"\"},{\"name\":\"file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"functions\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List \",\"default_value\":\"\"},{\"name\":\"globals\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List \",\"default_value\":\"\"},{\"name\":\"page_info\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"RepoMetadata\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"n_chars\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"n_docs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"symbols\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"RepoParser\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"base_directory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Path \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"extract_class_and_function_info\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"tree\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"file_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"RepoFileInfo\"},{\"name\":\"generate_dataframe_structure\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"output_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"generate_json_structure\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"output_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"generate_structure\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"output_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Path\"},{\"name\":\"generate_symbols\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"List[RepoFileInfo]\"},{\"name\":\"node_to_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"CodeBlockInfo \\\\| None\"},{\"name\":\"rebuild_class_views\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str \\\\| Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_parse_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_expr\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_if\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_if_compare\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_variable\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_assign\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_classes\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_class_relationships\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_split_class_line\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_split_relationship_line\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_label\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_create_path_mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_repair_namespaces\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_repair_ns\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_find_root\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Report\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"links\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[dict[str, list[str]]] \",\"default_value\":\"\"},{\"name\":\"summaries\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[list[tuple[str, str]]] \",\"default_value\":\"\"},{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Researcher\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"react\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Message\"},{\"name\":\"research_system_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"current_task\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Action\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"write_report\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_think\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ResultEmbedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[Embedding] \",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Returns\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"format\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[SerializeAsAny[Action]] \",\"default_value\":\"\"},{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"is_human\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"latest_observed_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Message] \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"rc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"recovered\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"role_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"states\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[str] \",\"default_value\":\"\"},{\"name\":\"subscription\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"set[str] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"action_count\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"is_idle\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"todo\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"act\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"ActionOutput\"},{\"name\":\"check_subscription\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"deserialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"Role\"},{\"name\":\"get_memories\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"init_actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"is_watch\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"caused_by\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"publish_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"put_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"react\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Message\"},{\"name\":\"refresh_system_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Message \\\\| None\"},{\"name\":\"serialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_env\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"env\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Environment\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Memory\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_recovered\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"recovered\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"subscribe\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"tags\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Set[str]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"think\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Action\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_reset\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_setting\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_init_action_system_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_init_actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_set_react_mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_watch\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_set_state\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_prefix\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_think\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_observe\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_react\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act_by_order\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_plan_and_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"RoleContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"env\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"max_react_loop\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"msg_buffer\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"news\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[Type[Message]] \",\"default_value\":\"\"},{\"name\":\"react_mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"state\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"todo\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"watch\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"set[str] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"history\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"important_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"check\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"check\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"RoleReactMode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"values\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"RunCode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"RunCodeResult\"},{\"name\":\"run_script\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"working_directory\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"additional_python_paths\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"command\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Tuple[str, str]\"},{\"name\":\"run_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"code\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Tuple[str, str]\"},{\"name\":\"_install_via_subprocess\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_install_dependencies\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"RunCodeContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"additional_python_paths\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[str] \",\"default_value\":\"\"},{\"name\":\"code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"code_filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"command\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[str] \",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"output\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"output_filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"test_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"test_filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"working_directory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"RunCodeResult\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"stderr\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"stdout\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"S3\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"auth_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"},{\"name\":\"session\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Session \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"is_configured\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"is_valid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"cache\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"file_ext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"format\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"download_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"bucket\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"local_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"chunk_size\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[int]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_object\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"bucket\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"bytes\"},{\"name\":\"get_object_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"bucket\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"upload_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"bucket\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"local_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SDEngine\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"payload\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"},{\"name\":\"sd_t2i_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"sd_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"construct_payload\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"negtive_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"width\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"height\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"sd_model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"payload\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"session\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run_i2i\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run_sam\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run_t2i\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompts\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run_i2i\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run_sam\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SPO\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Sales\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"store\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[BaseStore] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_set_store\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SearchAndSummarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[SearchEngineType] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"result\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"search_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[SearchEngine] \",\"default_value\":\"\"},{\"name\":\"search_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Any] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[Message]\",\"default_value\":\"\"},{\"name\":\"system_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"validate_engine_and_run_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"values\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SearchEngine\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[SearchEngineType] \",\"default_value\":\"\"},{\"name\":\"run_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Callable[[str, int, bool], Coroutine[None, None, Union[str, list[str]]]]] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"as_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Literal[True]\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SearchEngineType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Searcher\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"set_search_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"search_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act_sp\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SeleniumWrapper\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"browser_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Literal[chrome, firefox, edge, ie] \\\\| None \",\"default_value\":\"\"},{\"name\":\"executable_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"executor\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"launch_args\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"loop\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"WebPage \\\\| list[WebPage]\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_run_precheck\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_scrape_website\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SerializationMixin\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__get_pydantic_core_schema__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__serialize_add_class_type__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__deserialize_with_real_type__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init_subclass__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SerpAPIWrapper\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"aiosession\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[aiohttp.ClientSession] \",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"params\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"},{\"name\":\"search_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Any] \",\"default_value\":\"\"},{\"name\":\"serpapi_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"check_serpapi_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"val\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_params\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Dict[str, str]\"},{\"name\":\"results\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"as_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"_process_response\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SerperWrapper\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"aiosession\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[aiohttp.ClientSession] \",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"payload\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"},{\"name\":\"search_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Any] \",\"default_value\":\"\"},{\"name\":\"serper_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"check_serper_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"val\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_headers\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Dict[str, str]\"},{\"name\":\"get_payloads\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"queries\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str]\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"Dict[str, str]\"},{\"name\":\"results\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"queries\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str]\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"as_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"_process_response\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SimpleMessage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Singleton\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__call__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SkAgent\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"import_semantic_skill_from_directory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Callable \",\"default_value\":\"\"},{\"name\":\"import_skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Callable \",\"default_value\":\"\"},{\"name\":\"kernel\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Kernel \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"plan\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Plan \",\"default_value\":\"\"},{\"name\":\"planner\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Union[BasicPlanner, SequentialPlanner, ActionPlanner]] \",\"default_value\":\"\"},{\"name\":\"planner_cls\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Any] \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_think\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SkSearchEngine\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"search_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"description\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"examples\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[Example] \",\"default_value\":\"\"},{\"name\":\"id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"parameters\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Dict[str, Parameter]] \",\"default_value\":\"\"},{\"name\":\"returns\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"x_prerequisite\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"arguments\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SkillAction\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"args\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict \",\"default_value\":\"\"},{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Message] \",\"default_value\":\"\"},{\"name\":\"skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"find_and_call_function\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"function_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"args\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Message\"}]}"}, {"id": "{\"name\":\"SkillManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"add_skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Skill\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"del_skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"skill_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"generate_skill_desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Skill\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"skill_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Skill\"},{\"name\":\"retrieve_skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"n_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"list[Skill]\"},{\"name\":\"retrieve_skill_scored\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"n_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SkillsDeclaration\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"components\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Components] \",\"default_value\":\"\"},{\"name\":\"entities\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict[str, Entity] \",\"default_value\":\"\"},{\"name\":\"skillapi\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"entity_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Skill\"},{\"name\":\"get_skill_list\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"entity_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Dict\"},{\"name\":\"load\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"skill_yaml_file_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"SkillsDeclaration\"}]}"}, {"id": "{\"name\":\"SparkLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_choice_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Strategy\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"SubscriptionRunner\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"tasks\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[Role, asyncio.Task] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"raise_exception\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"subscribe\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Role\",\"default_value\":\"\"},{\"name\":\"trigger\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"AsyncGenerator[Message, None]\",\"default_value\":\"\"},{\"name\":\"callback\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Callable[[Message], Awaitable[None]]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"unsubscribe\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Role\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SummarizeCode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"summarize_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SystemMessage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"TalkAction\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"history_summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"knowledge\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Message] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"aask_args\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"prompt_gpt4\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Message\"}]}"}, {"id": "{\"name\":\"TalkActionPrompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"FORMATION\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"FORMATION_LOOSE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Teacher\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"course_title\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"new_file_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"lesson_title\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"ext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"save\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_think\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_react\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"TeachingPlanBlock\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"COURSE_TITLE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"DATA_BEGIN_TAG\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"DATA_END_TAG\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"FORMATION\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"PROMPT_TEMPLATE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"PROMPT_TITLE_TEMPLATE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"TOPICS\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list \",\"default_value\":\"\"},{\"name\":\"TOPIC_STATEMENTS\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"Team\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"env\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"idea\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"investment\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"deserialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"Team\"},{\"name\":\"hire\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"roles\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[Role]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"invest\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"investment\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"float\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"n_round\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"idea\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"send_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"auto_archive\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run_project\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"idea\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"send_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"serialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"start_project\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"idea\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"send_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_check_balance\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"TestingContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"code_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"test_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Document] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"ThoughtNode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"valid_status\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"value\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"update_valid_status\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"status\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"update_value\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"value\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ThoughtSolverBase\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"thought_tree\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[ThoughtTree] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"evaluate_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"parent_value\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"generate_thoughts\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"current_state\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"current_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"List[ThoughtNode]\"},{\"name\":\"select_nodes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"thought_nodes\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[ThoughtNode]\",\"default_value\":\"\"}],\"return_type\":\"List[ThoughtNode]\"},{\"name\":\"solve\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"init_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"update_solution\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"solve\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ThoughtSolverConfig\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"evaluator\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"max_steps\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"method_select\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"n_generate_sample\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"n_select_sample\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"n_solution_sample\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"parser\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"ThoughtTree\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"all_nodes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"parse_node_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"List[str]\"},{\"name\":\"show\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"update_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"thought\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[dict]\",\"default_value\":\"\"},{\"name\":\"current_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"ThoughtNode\",\"default_value\":\"\"}],\"return_type\":\"List[ThoughtNode]\"}]}"}, {"id": "{\"name\":\"Translator\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"translate_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"original\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"lang\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"TreeofThought\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"solver\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"strategy\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"solve\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"init_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_initialize_solver\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"TutorialAssistant\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"main_title\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"total_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"react\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Message\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_handle_directory\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"UTGenerator\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"chatgpt_method\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"icl_sample\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"questions_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"swagger_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"template_prefix\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"ut_py_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"ask_gpt_and_save\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"question\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"tag\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"fname\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"build_api_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"},{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"build_object_properties\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"prop_object_required\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"level\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"generate_ut\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"include_tags\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"bool\"},{\"name\":\"get_swagger_json\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict\"},{\"name\":\"get_tags_mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict\"},{\"name\":\"gpt_msgs_to_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"para_to_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"prop\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"prop_object_required\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__para_to_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_para_to_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_generate_ut\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"Usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"total_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"UserMessage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"UserRequirement\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[]}"}, {"id": "{\"name\":\"WDMHttpProxyClient\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"WebBrowseAndSummarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"browse_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Union[Callable[[list[str]], None], None]] \",\"default_value\":\"\"},{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"web_browser_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[WebBrowserEngine] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"dict[str, str]\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"WebBrowserEngine\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"WebBrowserEngineType \\\\| None \",\"default_value\":\"\"},{\"name\":\"run_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Callable[..., Coroutine[Any, Any, WebPage \\\\| list[WebPage]]] \\\\| None \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"WebPage\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"WebBrowserEngineType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"WebPage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"html\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"inner_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"soup\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"title\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get_links\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Generator[str, None, None]\"}]}"}, {"id": "{\"name\":\"WikiHowTemplate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"gen\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"question\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"step\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[str]\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"WriteCode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_codes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"task_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"CodingContext\"},{\"name\":\"write_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"id": "{\"name\":\"WriteCodeAN\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"WriteCodeReview\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"CodingContext\"},{\"name\":\"write_code_review_and_rewrite\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"cr_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"WriteContent\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"directory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"id": "{\"name\":\"WriteDesign\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_new_system_design\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_merge\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_system_design\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_data_api_design\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_seq_flow\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_pdf\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_mermaid_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"WriteDirectory\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Dict\"}]}"}, {"id": "{\"name\":\"WriteDocstring\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"code\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"system_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"style\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Literal[google, numpy, sphinx]\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"write_docstring\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str \\\\| Path\",\"default_value\":\"\"},{\"name\":\"overwrite\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"},{\"name\":\"style\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Literal[google, numpy, sphinx]\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"id": "{\"name\":\"WritePRD\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"ActionOutput \\\\| Message\"},{\"name\":\"_run_new_requirement\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_is_relative\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_merge\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_prd\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_competitive_analysis\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_pdf\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_rename_workspace\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_is_bugfix\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"WritePRDReview\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"prd\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"prd_review_prompt_template\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prd\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"WriteReview\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"WriteTasks\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_update_tasks\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_run_new_tasks\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_merge\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_requirements\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_pdf\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"WriteTeachingPlanPart\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"format_value\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"value\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_set_result\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__str__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__repr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"WriteTest\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[TestingContext] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"TestingContext\"},{\"name\":\"write_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ZhiPuAILLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"use_system_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"completion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"get_choice_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"resp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init_zhipuai\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_const_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion_stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ZhiPuEvent\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"id": "{\"name\":\"ZhiPuModelAPI\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"ainvoke\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict\"},{\"name\":\"arequest\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"invoke_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"InvokeType\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"},{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"headers\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"},{\"name\":\"kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"asse_invoke\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"AsyncSSEClient\"},{\"name\":\"get_header\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict\"},{\"name\":\"get_sse_header\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict\"},{\"name\":\"split_zhipu_api_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"invoke_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"InvokeType\",\"default_value\":\"\"},{\"name\":\"kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"SearchEngineType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[]}"}, {"id": "{\"name\":\"WebBrowserEngineType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__missing__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"id": "{\"name\":\"ActionType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[]}"}], "links": [{"predicate": "is", "source": "metagpt/schema.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/schema.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:AIMessage"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:BaseContext"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:BugFixContext"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:ClassAttribute"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:ClassMeta"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:ClassMethod"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:ClassView"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:CodeSummarizeContext"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:CodingContext"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:Document"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:Documents"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:Message"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:MessageQueue"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:RunCodeContext"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:RunCodeResult"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:SerializationMixin"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:SimpleMessage"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:SystemMessage"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:TestingContext"}, {"predicate": "has_class", "source": "metagpt/schema.py", "target": "metagpt/schema.py:UserMessage"}, {"predicate": "is", "source": "metagpt/schema.py:AIMessage", "target": "class"}, {"predicate": "isGeneralizeOf", "source": "metagpt/schema.py:AIMessage", "target": "metagpt/schema.py:Message"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:AIMessage", "target": "metagpt/schema.py:AIMessage:__init__"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:AIMessage", "target": "{\"lineno\":305,\"end_lineno\":311,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"AIMessage\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:AIMessage", "target": "{\"name\":\"AIMessage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:APIRequestor"}, {"predicate": "has_class", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:ApiType"}, {"predicate": "has_class", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:OpenAIResponse"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:_console_log_level"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:log_debug"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:log_info"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:log_warn"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:logfmt"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:_build_api_url"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:_requests_proxies_arg"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:_aiohttp_proxies_arg"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:_make_session"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:parse_stream_helper"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:parse_stream"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:parse_stream_async"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_base.py", "target": "metagpt/provider/general_api_base.py:aiohttp_session"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:api_key"}, {"predicate": "has_class_property", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:api_type"}, {"predicate": "has_class_property", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:api_version"}, {"predicate": "has_class_property", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:base_url"}, {"predicate": "has_class_property", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:organization"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:arequest"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:arequest_raw"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:request"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:request_headers"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:request_raw"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:__init__"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:request"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:arequest"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:_validate_headers"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:_prepare_request_raw"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:_interpret_response"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:_interpret_async_response"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor:_interpret_response_line"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "{\"lineno\":227,\"end_lineno\":616,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"APIRequestor\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/general_api_base.py:APIRequestor", "target": "{\"name\":\"APIRequestor\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"api_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"AZURE_AD, OPEN_AI \",\"default_value\":\"\"},{\"name\":\"api_version\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"base_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"organization\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"arequest\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"params\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"headers\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"files\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Literal[True]\",\"default_value\":\"\"},{\"name\":\"request_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[str]\",\"default_value\":\"\"},{\"name\":\"request_timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[Union[float, Tuple[float, float]]]\",\"default_value\":\"\"}],\"return_type\":\"Tuple[AsyncGenerator[OpenAIResponse, None], bool, str]\"},{\"name\":\"arequest_raw\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"session\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"aiohttp.ClientResponse\"},{\"name\":\"request\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"params\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"headers\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"files\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Literal[True]\",\"default_value\":\"\"},{\"name\":\"request_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[str]\",\"default_value\":\"\"},{\"name\":\"request_timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[Union[float, Tuple[float, float]]]\",\"default_value\":\"\"}],\"return_type\":\"Tuple[Iterator[OpenAIResponse], bool, str]\"},{\"name\":\"request_headers\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"extra\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"request_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[str]\",\"default_value\":\"\"}],\"return_type\":\"Dict[str, str]\"},{\"name\":\"request_raw\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"requests.Response\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"request\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"arequest\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_validate_headers\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_prepare_request_raw\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_interpret_response\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_interpret_async_response\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_interpret_response_line\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/general_api_base.py:APIRequestor:api_key", "target": "api_key : NoneType"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:api_type", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/general_api_base.py:APIRequestor:api_type", "target": "api_type : AZURE_AD, OPEN_AI"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:api_version", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/general_api_base.py:APIRequestor:api_version", "target": "api_version"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:base_url", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/general_api_base.py:APIRequestor:base_url", "target": "base_url : NoneType"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:organization", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/general_api_base.py:APIRequestor:organization", "target": "organization : NoneType"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:arequest", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/general_api_base.py:APIRequestor:arequest", "target": "arequest(method, url, params, headers, files, stream: Literal[True], request_id: Optional[str], request_timeout: Optional[Union[float, Tuple[float, float]]]): Tuple[AsyncGenerator[OpenAIResponse, None], bool, str]"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:arequest_raw", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/general_api_base.py:APIRequestor:arequest_raw", "target": "arequest_raw(method, url, session): aiohttp.ClientResponse"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:request", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/general_api_base.py:APIRequestor:request", "target": "request(method, url, params, headers, files, stream: Literal[True], request_id: Optional[str], request_timeout: Optional[Union[float, Tuple[float, float]]]): Tuple[Iterator[OpenAIResponse], bool, str]"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:request_headers", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/general_api_base.py:APIRequestor:request_headers", "target": "request_headers(method: str, extra, request_id: Optional[str]): Dict[str, str]"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:request_raw", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/general_api_base.py:APIRequestor:request_raw", "target": "request_raw(method, url): requests.Response"}, {"predicate": "is", "source": "metagpt/actions/action.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/action.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/action.py", "target": "metagpt/actions/action.py:Action"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:desc"}, {"predicate": "has_class_property", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:llm"}, {"predicate": "has_class_property", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:model_config"}, {"predicate": "has_class_property", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:name"}, {"predicate": "has_class_property", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:node"}, {"predicate": "has_class_property", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:prefix"}, {"predicate": "has_class_function", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:run"}, {"predicate": "has_class_function", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:set_name_if_empty"}, {"predicate": "has_class_function", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:set_prefix"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/action.py:Action", "target": "metagpt/schema.py:SerializationMixin"}, {"predicate": "isCompositeOf", "source": "metagpt/actions/action.py:Action", "target": "metagpt/roles/role.py:RoleContext"}, {"predicate": "isCompositeOn", "source": "metagpt/actions/action.py:Action", "target": "metagpt/roles/role.py:RoleContext:todo"}, {"predicate": "has_class_function", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:_init_with_instruction"}, {"predicate": "has_class_function", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:__str__"}, {"predicate": "has_class_function", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:__repr__"}, {"predicate": "has_class_function", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:_aask"}, {"predicate": "has_class_function", "source": "metagpt/actions/action.py:Action", "target": "metagpt/actions/action.py:Action:_run_action_node"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:Action", "target": "{\"lineno\":27,\"end_lineno\":80,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Action\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/action.py:Action", "target": "{\"name\":\"Action\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Union[dict, CodingContext, CodeSummarizeContext, TestingContext, RunCodeContext, str, None] \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"prefix\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"set_name_if_empty\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"values\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_prefix\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prefix\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_init_with_instruction\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__str__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__repr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_aask\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_run_action_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action.py:Action:context", "target": "context : Union[dict, CodingContext, CodeSummarizeContext, TestingContext, RunCodeContext, str, None]"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:desc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action.py:Action:desc", "target": "desc : str"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action.py:Action:llm", "target": "llm"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action.py:Action:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action.py:Action:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:node", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action.py:Action:node", "target": "node"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:prefix", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action.py:Action:prefix", "target": "prefix : str"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action.py:Action:run", "target": "run()"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:set_name_if_empty", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action.py:Action:set_name_if_empty", "target": "set_name_if_empty(values)"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:set_prefix", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action.py:Action:set_prefix", "target": "set_prefix(prefix)"}, {"predicate": "is", "source": "metagpt/actions/action_node.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/action_node.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/action_node.py", "target": "metagpt/actions/action_node.py:ActionNode"}, {"predicate": "has_function", "source": "metagpt/actions/action_node.py", "target": "metagpt/actions/action_node.py:dict_to_markdown"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:children"}, {"predicate": "has_class_property", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:content"}, {"predicate": "has_class_property", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:example"}, {"predicate": "has_class_property", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:expected_type"}, {"predicate": "has_class_property", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:instruct_content"}, {"predicate": "has_class_property", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:instruction"}, {"predicate": "has_class_property", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:key"}, {"predicate": "has_class_property", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:llm"}, {"predicate": "has_class_property", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:schema"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:add_child"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:add_children"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:compile"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:compile_example"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:compile_instruction"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:compile_to"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:create_children_class"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:create_model_class"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:fill"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:from_children"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:get"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:get_children_mapping"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:get_mapping"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:get_self_mapping"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:set_context"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:set_llm"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:set_recursive"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:simple_fill"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:tagging"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:to_dict"}, {"predicate": "isCompositeOf", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action.py:Action"}, {"predicate": "isCompositeOn", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action.py:Action:node"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:__init__"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:__str__"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:__repr__"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:_compile_f"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_node.py:ActionNode", "target": "metagpt/actions/action_node.py:ActionNode:_aask_v1"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:ActionNode", "target": "{\"lineno\":56,\"end_lineno\":349,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ActionNode\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/action_node.py:ActionNode", "target": "{\"name\":\"ActionNode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"children\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[str, ActionNode] \",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"example\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"expected_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Type \",\"default_value\":\"\"},{\"name\":\"instruct_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"BaseModel \",\"default_value\":\"\"},{\"name\":\"instruction\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add_child\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"ActionNode\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"add_children\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"nodes\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[ActionNode]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"compile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"template\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"compile_example\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"tag\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"compile_instruction\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"tag\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"compile_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"i\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Dict\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"kv_sep\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"create_children_class\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"create_model_class\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"class_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Dict[str, Tuple[Type, Any]]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"fill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"strgy\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"from_children\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"nodes\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[ActionNode]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_children_mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Dict[str, Tuple[Type, Any]]\"},{\"name\":\"get_mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Dict[str, Tuple[Type, Any]]\"},{\"name\":\"get_self_mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Dict[str, Tuple[Type, Any]]\"},{\"name\":\"set_context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_recursive\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"value\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"simple_fill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"tagging\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"tag\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"to_dict\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"format_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Dict\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__str__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__repr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_compile_f\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_aask_v1\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:children", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action_node.py:ActionNode:children", "target": "children : dict[str, 'ActionNode']"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action_node.py:ActionNode:content", "target": "content : str"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action_node.py:ActionNode:context", "target": "context : str"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:example", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action_node.py:ActionNode:example", "target": "example"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:expected_type", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action_node.py:ActionNode:expected_type", "target": "expected_type : Type"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:instruct_content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action_node.py:ActionNode:instruct_content", "target": "instruct_content : BaseModel"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:instruction", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action_node.py:ActionNode:instruction", "target": "instruction : str"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action_node.py:ActionNode:key", "target": "key : str"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action_node.py:ActionNode:llm", "target": "llm"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:schema", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action_node.py:ActionNode:schema", "target": "schema : str"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:add_child", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:add_child", "target": "add_child(node: 'ActionNode')"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:add_children", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:add_children", "target": "add_children(nodes: List['ActionNode'])"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:compile", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:compile", "target": "compile(context, schema, mode, template, exclude): str"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:compile_example", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:compile_example", "target": "compile_example(schema, mode, tag, exclude): str"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:compile_instruction", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:compile_instruction", "target": "compile_instruction(schema, mode, tag, exclude): str"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:compile_to", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:compile_to", "target": "compile_to(i: Dict, schema, kv_sep): str"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:create_children_class", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:create_children_class", "target": "create_children_class(exclude)"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:create_model_class", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:create_model_class", "target": "create_model_class(class_name: str, mapping: Dict[str, Tuple[Type, Any]])"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:fill", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:fill", "target": "fill(context, llm, schema, mode, strgy, timeout, exclude)"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:from_children", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:from_children", "target": "from_children(key, nodes: List['ActionNode'])"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:get", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:get", "target": "get(key)"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:get_children_mapping", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:get_children_mapping", "target": "get_children_mapping(exclude): Dict[str, Tuple[Type, Any]]"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:get_mapping", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:get_mapping", "target": "get_mapping(mode, exclude): Dict[str, Tuple[Type, Any]]"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:get_self_mapping", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:get_self_mapping", "target": "get_self_mapping(): Dict[str, Tuple[Type, Any]]"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:set_context", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:set_context", "target": "set_context(context)"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:set_llm", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:set_llm", "target": "set_llm(llm)"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:set_recursive", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:set_recursive", "target": "set_recursive(name, value)"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:simple_fill", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:simple_fill", "target": "simple_fill(schema, mode, timeout, exclude)"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:tagging", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:tagging", "target": "tagging(text, schema, tag): str"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:to_dict", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/action_node.py:ActionNode:to_dict", "target": "to_dict(format_func, mode, exclude): Dict"}, {"predicate": "is", "source": "metagpt/actions/action_output.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/action_output.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/action_output.py", "target": "metagpt/actions/action_output.py:ActionOutput"}, {"predicate": "is", "source": "metagpt/actions/action_output.py:ActionOutput", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/action_output.py:ActionOutput", "target": "metagpt/actions/action_output.py:ActionOutput:content"}, {"predicate": "has_class_property", "source": "metagpt/actions/action_output.py:ActionOutput", "target": "metagpt/actions/action_output.py:ActionOutput:instruct_content"}, {"predicate": "has_class_function", "source": "metagpt/actions/action_output.py:ActionOutput", "target": "metagpt/actions/action_output.py:ActionOutput:__init__"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_output.py:ActionOutput", "target": "{\"lineno\":12,\"end_lineno\":18,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ActionOutput\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/action_output.py:ActionOutput", "target": "{\"name\":\"ActionOutput\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"instruct_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"BaseModel \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/action_output.py:ActionOutput:content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action_output.py:ActionOutput:content", "target": "content : str"}, {"predicate": "is", "source": "metagpt/actions/action_output.py:ActionOutput:instruct_content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/action_output.py:ActionOutput:instruct_content", "target": "instruct_content : BaseModel"}, {"predicate": "is", "source": "metagpt/actions", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions", "target": ""}, {"predicate": "has_class", "source": "metagpt/actions", "target": "metagpt/actions:ActionType"}, {"predicate": "is", "source": "metagpt/actions:ActionType", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions:ActionType", "target": "metagpt/actions:ActionType:name"}, {"predicate": "has_class_view", "source": "metagpt/actions:ActionType", "target": "{\"name\":\"ActionType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/actions:ActionType:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions:ActionType:name", "target": "name"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:ApiType", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/general_api_base.py:ApiType", "target": "metagpt/provider/general_api_base.py:ApiType:name"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:ApiType", "target": "metagpt/provider/general_api_base.py:ApiType:from_str"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:ApiType", "target": "{\"lineno\":52,\"end_lineno\":68,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ApiType\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/general_api_base.py:ApiType", "target": "{\"name\":\"ApiType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"from_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"label\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:ApiType:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/general_api_base.py:ApiType:name", "target": "name"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:ApiType:from_str", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/general_api_base.py:ApiType:from_str", "target": "from_str(label)"}, {"predicate": "is", "source": "metagpt/roles/architect.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/architect.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/architect.py", "target": "metagpt/roles/architect.py:Architect"}, {"predicate": "is", "source": "metagpt/roles/architect.py:Architect", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/architect.py:Architect", "target": "metagpt/roles/architect.py:Architect:constraints"}, {"predicate": "has_class_property", "source": "metagpt/roles/architect.py:Architect", "target": "metagpt/roles/architect.py:Architect:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/architect.py:Architect", "target": "metagpt/roles/architect.py:Architect:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/architect.py:Architect", "target": "metagpt/roles/architect.py:Architect:profile"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/architect.py:Architect", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/architect.py:Architect", "target": "metagpt/roles/architect.py:Architect:__init__"}, {"predicate": "has_page_info", "source": "metagpt/roles/architect.py:Architect", "target": "{\"lineno\":14,\"end_lineno\":39,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Architect\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/architect.py:Architect", "target": "{\"name\":\"Architect\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/architect.py:Architect:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/architect.py:Architect:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/architect.py:Architect:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/architect.py:Architect:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/architect.py:Architect:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/architect.py:Architect:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/architect.py:Architect:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/architect.py:Architect:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/skill_action.py", "target": "metagpt/actions/skill_action.py:ArgumentsParingAction"}, {"predicate": "has_class", "source": "metagpt/actions/skill_action.py", "target": "metagpt/actions/skill_action.py:SkillAction"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction", "target": "metagpt/actions/skill_action.py:ArgumentsParingAction:args"}, {"predicate": "has_class_property", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction", "target": "metagpt/actions/skill_action.py:ArgumentsParingAction:ask"}, {"predicate": "has_class_function", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction", "target": "metagpt/actions/skill_action.py:ArgumentsParingAction:prompt"}, {"predicate": "has_class_property", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction", "target": "metagpt/actions/skill_action.py:ArgumentsParingAction:rsp"}, {"predicate": "has_class_property", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction", "target": "metagpt/actions/skill_action.py:ArgumentsParingAction:skill"}, {"predicate": "has_class_function", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction", "target": "metagpt/actions/skill_action.py:ArgumentsParingAction:parse_arguments"}, {"predicate": "has_class_function", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction", "target": "metagpt/actions/skill_action.py:ArgumentsParingAction:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction", "target": "{\"lineno\":24,\"end_lineno\":78,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ArgumentsParingAction\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction", "target": "{\"name\":\"ArgumentsParingAction\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"args\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Dict] \",\"default_value\":\"\"},{\"name\":\"ask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Message] \",\"default_value\":\"\"},{\"name\":\"skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"parse_arguments\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"skill_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"txt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Message\"}]}"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:args", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:args", "target": "args : Optional[Dict]"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:ask", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:ask", "target": "ask : str"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:prompt", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:prompt", "target": "prompt"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:prompt", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:rsp", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:rsp", "target": "rsp : Optional[Message]"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:skill", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:skill", "target": "skill"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:parse_arguments", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:parse_arguments", "target": "parse_arguments(skill_name, txt): dict"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/skill_action.py:ArgumentsParingAction:run", "target": "run(with_message): Message"}, {"predicate": "is", "source": "metagpt/roles/assistant.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/assistant.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/assistant.py", "target": "metagpt/roles/assistant.py:Assistant"}, {"predicate": "has_class", "source": "metagpt/roles/assistant.py", "target": "metagpt/roles/assistant.py:MessageType"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:constraints"}, {"predicate": "has_class_property", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:desc"}, {"predicate": "has_class_property", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:memory"}, {"predicate": "has_class_property", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:profile"}, {"predicate": "has_class_property", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:skills"}, {"predicate": "has_class_function", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:act"}, {"predicate": "has_class_function", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:get_memory"}, {"predicate": "has_class_function", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:load_memory"}, {"predicate": "has_class_function", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:refine_memory"}, {"predicate": "has_class_function", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:skill_handler"}, {"predicate": "has_class_function", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:talk"}, {"predicate": "has_class_function", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:talk_handler"}, {"predicate": "has_class_function", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:think"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:__init__"}, {"predicate": "has_class_function", "source": "metagpt/roles/assistant.py:Assistant", "target": "metagpt/roles/assistant.py:Assistant:_plan"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:Assistant", "target": "{\"lineno\":38,\"end_lineno\":139,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Assistant\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/assistant.py:Assistant", "target": "{\"name\":\"Assistant\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"skills\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[SkillsDeclaration] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"act\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Message\"},{\"name\":\"get_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"},{\"name\":\"load_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"m\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"refine_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"},{\"name\":\"skill_handler\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"bool\"},{\"name\":\"talk\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"talk_handler\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"bool\"},{\"name\":\"think\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"bool\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_plan\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/assistant.py:Assistant:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:desc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/assistant.py:Assistant:desc", "target": "desc : str"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/assistant.py:Assistant:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:memory", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/assistant.py:Assistant:memory", "target": "memory"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/assistant.py:Assistant:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/assistant.py:Assistant:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:skills", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/assistant.py:Assistant:skills", "target": "skills : Optional[SkillsDeclaration]"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:act", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/assistant.py:Assistant:act", "target": "act(): Message"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:get_memory", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/assistant.py:Assistant:get_memory", "target": "get_memory(): str"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:load_memory", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/assistant.py:Assistant:load_memory", "target": "load_memory(m)"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:refine_memory", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/assistant.py:Assistant:refine_memory", "target": "refine_memory(): str"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:skill_handler", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/assistant.py:Assistant:skill_handler", "target": "skill_handler(text): bool"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:talk", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/assistant.py:Assistant:talk", "target": "talk(text)"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:talk_handler", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/assistant.py:Assistant:talk_handler", "target": "talk_handler(text): bool"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:think", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/assistant.py:Assistant:think", "target": "think(): bool"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/async_sse_client.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/async_sse_client.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/zhipuai/async_sse_client.py", "target": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient", "target": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient:async_events"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient", "target": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient:_aread"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient", "target": "{\"lineno\":9,\"end_lineno\":75,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"AsyncSSEClient\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient", "target": "{\"name\":\"AsyncSSEClient\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"async_events\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_aread\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient:async_events", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient:async_events", "target": "async_events()"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/iflytek_tts.py", "target": "metagpt/tools/iflytek_tts.py:AudioData"}, {"predicate": "has_class", "source": "metagpt/tools/iflytek_tts.py", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTS"}, {"predicate": "has_class", "source": "metagpt/tools/iflytek_tts.py", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse"}, {"predicate": "has_class", "source": "metagpt/tools/iflytek_tts.py", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTSStatus"}, {"predicate": "has_function", "source": "metagpt/tools/iflytek_tts.py", "target": "metagpt/tools/iflytek_tts.py:oas3_iflytek_tts"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:AudioData", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/iflytek_tts.py:AudioData", "target": "metagpt/tools/iflytek_tts.py:AudioData:audio"}, {"predicate": "has_class_property", "source": "metagpt/tools/iflytek_tts.py:AudioData", "target": "metagpt/tools/iflytek_tts.py:AudioData:ced"}, {"predicate": "has_class_property", "source": "metagpt/tools/iflytek_tts.py:AudioData", "target": "metagpt/tools/iflytek_tts.py:AudioData:status"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:AudioData", "target": "{\"lineno\":36,\"end_lineno\":39,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"AudioData\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/iflytek_tts.py:AudioData", "target": "{\"name\":\"AudioData\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"audio\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"ced\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"status\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:AudioData:audio", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/iflytek_tts.py:AudioData:audio", "target": "audio : str"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:AudioData:ced", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/iflytek_tts.py:AudioData:ced", "target": "ced : str"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:AudioData:status", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/iflytek_tts.py:AudioData:status", "target": "status : int"}, {"predicate": "is", "source": "metagpt/provider/azure_openai_api.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/azure_openai_api.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/azure_openai_api.py", "target": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM"}, {"predicate": "is", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM", "target": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:aclient"}, {"predicate": "has_class_property", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM", "target": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:model"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM"}, {"predicate": "has_class_function", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM", "target": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:_init_client"}, {"predicate": "has_class_function", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM", "target": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:_make_client_kwargs"}, {"predicate": "has_page_info", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM", "target": "{\"lineno\":22,\"end_lineno\":45,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"AzureOpenAILLM\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM", "target": "{\"name\":\"AzureOpenAILLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"aclient\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"AsyncAzureOpenAI \",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"_init_client\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_make_client_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:aclient", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:aclient", "target": "aclient : AsyncAzureOpenAI"}, {"predicate": "is", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:model", "target": "model"}, {"predicate": "is", "source": "metagpt/tools/azure_tts.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/azure_tts.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/azure_tts.py", "target": "metagpt/tools/azure_tts.py:AzureTTS"}, {"predicate": "has_function", "source": "metagpt/tools/azure_tts.py", "target": "metagpt/tools/azure_tts.py:oas3_azsure_tts"}, {"predicate": "is", "source": "metagpt/tools/azure_tts.py:AzureTTS", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/azure_tts.py:AzureTTS", "target": "metagpt/tools/azure_tts.py:AzureTTS:region"}, {"predicate": "has_class_property", "source": "metagpt/tools/azure_tts.py:AzureTTS", "target": "metagpt/tools/azure_tts.py:AzureTTS:subscription_key"}, {"predicate": "has_class_function", "source": "metagpt/tools/azure_tts.py:AzureTTS", "target": "metagpt/tools/azure_tts.py:AzureTTS:role_style_text"}, {"predicate": "has_class_function", "source": "metagpt/tools/azure_tts.py:AzureTTS", "target": "metagpt/tools/azure_tts.py:AzureTTS:role_text"}, {"predicate": "has_class_function", "source": "metagpt/tools/azure_tts.py:AzureTTS", "target": "metagpt/tools/azure_tts.py:AzureTTS:style_text"}, {"predicate": "has_class_function", "source": "metagpt/tools/azure_tts.py:AzureTTS", "target": "metagpt/tools/azure_tts.py:AzureTTS:synthesize_speech"}, {"predicate": "has_class_function", "source": "metagpt/tools/azure_tts.py:AzureTTS", "target": "metagpt/tools/azure_tts.py:AzureTTS:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:AzureTTS", "target": "{\"lineno\":20,\"end_lineno\":57,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"AzureTTS\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/azure_tts.py:AzureTTS", "target": "{\"name\":\"AzureTTS\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"region\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"subscription_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"role_style_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"style\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"role_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"style_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"style\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"synthesize_speech\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"lang\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"voice\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"output_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/azure_tts.py:AzureTTS:region", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/azure_tts.py:AzureTTS:region", "target": "region"}, {"predicate": "is", "source": "metagpt/tools/azure_tts.py:AzureTTS:subscription_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/azure_tts.py:AzureTTS:subscription_key", "target": "subscription_key"}, {"predicate": "is", "source": "metagpt/tools/azure_tts.py:AzureTTS:role_style_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/azure_tts.py:AzureTTS:role_style_text", "target": "role_style_text(role, style, text)"}, {"predicate": "is", "source": "metagpt/tools/azure_tts.py:AzureTTS:role_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/azure_tts.py:AzureTTS:role_text", "target": "role_text(role, text)"}, {"predicate": "is", "source": "metagpt/tools/azure_tts.py:AzureTTS:style_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/azure_tts.py:AzureTTS:style_text", "target": "style_text(style, text)"}, {"predicate": "is", "source": "metagpt/tools/azure_tts.py:AzureTTS:synthesize_speech", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/azure_tts.py:AzureTTS:synthesize_speech", "target": "synthesize_speech(lang, voice, text, output_file)"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/prompt_writer.py", "target": "metagpt/tools/prompt_writer.py:BEAGECTemplate"}, {"predicate": "has_class", "source": "metagpt/tools/prompt_writer.py", "target": "metagpt/tools/prompt_writer.py:EnronTemplate"}, {"predicate": "has_class", "source": "metagpt/tools/prompt_writer.py", "target": "metagpt/tools/prompt_writer.py:GPTPromptGenerator"}, {"predicate": "has_class", "source": "metagpt/tools/prompt_writer.py", "target": "metagpt/tools/prompt_writer.py:WikiHowTemplate"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:BEAGECTemplate", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/tools/prompt_writer.py:BEAGECTemplate", "target": "metagpt/tools/prompt_writer.py:BEAGECTemplate:gen"}, {"predicate": "has_class_function", "source": "metagpt/tools/prompt_writer.py:BEAGECTemplate", "target": "metagpt/tools/prompt_writer.py:BEAGECTemplate:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/prompt_writer.py:BEAGECTemplate", "target": "{\"lineno\":95,\"end_lineno\":111,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BEAGECTemplate\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/prompt_writer.py:BEAGECTemplate", "target": "{\"name\":\"BEAGECTemplate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"gen\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:BEAGECTemplate:gen", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/prompt_writer.py:BEAGECTemplate:gen", "target": "gen()"}, {"predicate": "is", "source": "metagpt/strategy/tot.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/strategy/tot.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/strategy/tot.py", "target": "metagpt/strategy/tot.py:BFSSolver"}, {"predicate": "has_class", "source": "metagpt/strategy/tot.py", "target": "metagpt/strategy/tot.py:TreeofThought:Config"}, {"predicate": "has_class", "source": "metagpt/strategy/tot.py", "target": "metagpt/strategy/tot.py:DFSSolver"}, {"predicate": "has_class", "source": "metagpt/strategy/tot.py", "target": "metagpt/strategy/tot.py:MCTSSolver"}, {"predicate": "has_class", "source": "metagpt/strategy/tot.py", "target": "metagpt/strategy/tot.py:ThoughtSolverBase"}, {"predicate": "has_class", "source": "metagpt/strategy/tot.py", "target": "metagpt/strategy/tot.py:TreeofThought"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:BFSSolver", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot.py:BFSSolver", "target": "metagpt/strategy/tot.py:BFSSolver:thought_tree"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:BFSSolver", "target": "metagpt/strategy/tot.py:BFSSolver:generate_and_evaluate_nodes"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:BFSSolver", "target": "metagpt/strategy/tot.py:BFSSolver:solve"}, {"predicate": "isGeneralizeOf", "source": "metagpt/strategy/tot.py:BFSSolver", "target": "metagpt/strategy/tot.py:ThoughtSolverBase"}, {"predicate": "isCompositeOf", "source": "metagpt/strategy/tot.py:BFSSolver", "target": "metagpt/strategy/tot.py:TreeofThought"}, {"predicate": "isCompositeOn", "source": "metagpt/strategy/tot.py:BFSSolver", "target": "metagpt/strategy/tot.py:TreeofThought:solver"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:BFSSolver", "target": "metagpt/strategy/tot.py:BFSSolver:_bfs_build"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:BFSSolver", "target": "{\"lineno\":126,\"end_lineno\":177,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BFSSolver\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/strategy/tot.py:BFSSolver", "target": "{\"name\":\"BFSSolver\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"thought_tree\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"generate_and_evaluate_nodes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"current_state\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"current_value\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"solve\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"init_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_bfs_build\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:BFSSolver:thought_tree", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot.py:BFSSolver:thought_tree", "target": "thought_tree"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:BFSSolver:generate_and_evaluate_nodes", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/tot.py:BFSSolver:generate_and_evaluate_nodes", "target": "generate_and_evaluate_nodes(current_state, current_value, node)"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:BFSSolver:solve", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/tot.py:BFSSolver:solve", "target": "solve(init_prompt)"}, {"predicate": "is", "source": "metagpt/schema.py:BaseContext", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:BaseContext", "target": "metagpt/schema.py:BaseContext:loads"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:BaseContext", "target": "{\"lineno\":390,\"end_lineno\":395,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BaseContext\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:BaseContext", "target": "{\"name\":\"BaseContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"loads\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"val\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Optional[T]\"}]}"}, {"predicate": "is", "source": "metagpt/schema.py:BaseContext:loads", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:BaseContext:loads", "target": "loads(val: str): Optional[T]"}, {"predicate": "is", "source": "metagpt/strategy/base.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/strategy/base.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/strategy/base.py", "target": "metagpt/strategy/base.py:BaseEvaluator"}, {"predicate": "has_class", "source": "metagpt/strategy/base.py", "target": "metagpt/strategy/base.py:BaseParser"}, {"predicate": "has_class", "source": "metagpt/strategy/base.py", "target": "metagpt/strategy/base.py:ThoughtNode"}, {"predicate": "has_class", "source": "metagpt/strategy/base.py", "target": "metagpt/strategy/base.py:ThoughtTree"}, {"predicate": "is", "source": "metagpt/strategy/base.py:BaseEvaluator", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:BaseEvaluator", "target": "metagpt/strategy/base.py:BaseEvaluator:status_verify"}, {"predicate": "isCompositeOf", "source": "metagpt/strategy/base.py:BaseEvaluator", "target": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig"}, {"predicate": "isCompositeOn", "source": "metagpt/strategy/base.py:BaseEvaluator", "target": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:evaluator"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:BaseEvaluator", "target": "metagpt/strategy/base.py:BaseEvaluator:__call__"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:BaseEvaluator", "target": "metagpt/strategy/base.py:BaseEvaluator:status_verify"}, {"predicate": "has_page_info", "source": "metagpt/strategy/base.py:BaseEvaluator", "target": "{\"lineno\":26,\"end_lineno\":31,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BaseEvaluator\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/strategy/base.py:BaseEvaluator", "target": "{\"name\":\"BaseEvaluator\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"status_verify\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__call__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"status_verify\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/strategy/base.py:BaseEvaluator:status_verify", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/base.py:BaseEvaluator:status_verify", "target": "status_verify()"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/base_llm.py", "target": "metagpt/provider/base_llm.py:BaseLLM"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:system_prompt"}, {"predicate": "has_class_property", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:use_system_prompt"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:aask"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:aask_batch"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:aask_code"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:acompletion"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:acompletion_text"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:get_choice_function"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:get_choice_function_arguments"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:get_choice_text"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/actions/action.py:Action"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/actions/action.py:Action:llm"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/actions/action_node.py:ActionNode"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/actions/action_node.py:ActionNode:llm"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/actions/invoice_ocr.py:GenerateTable"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/actions/invoice_ocr.py:GenerateTable:llm"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/actions/invoice_ocr.py:ReplyQuestion"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/actions/invoice_ocr.py:ReplyQuestion:llm"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/actions/research.py:ConductResearch"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/actions/research.py:ConductResearch:llm"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/actions/research.py:WebBrowseAndSummarize"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/actions/research.py:WebBrowseAndSummarize:llm"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/roles/role.py:Role"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/roles/role.py:Role:llm"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/roles/sk_agent.py:SkAgent"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/roles/sk_agent.py:SkAgent:llm"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/strategy/tot.py:ThoughtSolverBase"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:llm"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:_user_msg"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:_assistant_msg"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:_system_msg"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:_system_msgs"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:_default_system_msg"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:_extract_assistant_rsp"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:acompletion"}, {"predicate": "has_class_function", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "metagpt/provider/base_llm.py:BaseLLM:acompletion_text"}, {"predicate": "has_page_info", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "{\"lineno\":14,\"end_lineno\":128,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BaseLLM\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/base_llm.py:BaseLLM", "target": "{\"name\":\"BaseLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"system_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"use_system_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"aask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"system_msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[list[str]]\",\"default_value\":\"\"},{\"name\":\"format_msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[list[dict[str, str]]]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"aask_batch\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"aask_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"acompletion\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"acompletion_text\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_choice_function\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"get_choice_function_arguments\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"get_choice_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"_user_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_assistant_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_system_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_system_msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_default_system_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_extract_assistant_rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:system_prompt", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/base_llm.py:BaseLLM:system_prompt", "target": "system_prompt : str"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:use_system_prompt", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/base_llm.py:BaseLLM:use_system_prompt", "target": "use_system_prompt : bool"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:aask", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/base_llm.py:BaseLLM:aask", "target": "aask(msg: str, system_msgs: Optional[list[str]], format_msgs: Optional[list[dict[str, str]]], timeout, stream): str"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:aask_batch", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/base_llm.py:BaseLLM:aask_batch", "target": "aask_batch(msgs: list, timeout): str"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:aask_code", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/base_llm.py:BaseLLM:aask_code", "target": "aask_code(msgs: list[str], timeout): str"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:acompletion", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/base_llm.py:BaseLLM:acompletion", "target": "acompletion(messages: list[dict], timeout)"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:acompletion_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/base_llm.py:BaseLLM:acompletion_text", "target": "acompletion_text(messages: list[dict], stream, timeout): str"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:get_choice_function", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/base_llm.py:BaseLLM:get_choice_function", "target": "get_choice_function(rsp: dict): dict"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:get_choice_function_arguments", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/base_llm.py:BaseLLM:get_choice_function_arguments", "target": "get_choice_function_arguments(rsp: dict): dict"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:get_choice_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/base_llm.py:BaseLLM:get_choice_text", "target": "get_choice_text(rsp: dict): str"}, {"predicate": "is", "source": "metagpt/strategy/base.py:BaseParser", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:BaseParser", "target": "metagpt/strategy/base.py:BaseParser:propose"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:BaseParser", "target": "metagpt/strategy/base.py:BaseParser:sample"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:BaseParser", "target": "metagpt/strategy/base.py:BaseParser:value"}, {"predicate": "isCompositeOf", "source": "metagpt/strategy/base.py:BaseParser", "target": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig"}, {"predicate": "isCompositeOn", "source": "metagpt/strategy/base.py:BaseParser", "target": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:parser"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:BaseParser", "target": "metagpt/strategy/base.py:BaseParser:__call__"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:BaseParser", "target": "metagpt/strategy/base.py:BaseParser:propose"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:BaseParser", "target": "metagpt/strategy/base.py:BaseParser:sample"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:BaseParser", "target": "metagpt/strategy/base.py:BaseParser:value"}, {"predicate": "has_page_info", "source": "metagpt/strategy/base.py:BaseParser", "target": "{\"lineno\":12,\"end_lineno\":23,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BaseParser\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/strategy/base.py:BaseParser", "target": "{\"name\":\"BaseParser\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"propose\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"current_state\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"sample\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"current_state\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"value\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"input\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__call__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"propose\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"sample\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"value\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/strategy/base.py:BaseParser:propose", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/base.py:BaseParser:propose", "target": "propose(current_state: str): str"}, {"predicate": "is", "source": "metagpt/strategy/base.py:BaseParser:sample", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/base.py:BaseParser:sample", "target": "sample(current_state: str): str"}, {"predicate": "is", "source": "metagpt/strategy/base.py:BaseParser:value", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/base.py:BaseParser:value", "target": "value(input: str): str"}, {"predicate": "is", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py", "target": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin"}, {"predicate": "is", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin", "target": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:model"}, {"predicate": "has_class_function", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin", "target": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run"}, {"predicate": "has_class_function", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin", "target": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_extract_content_from_output"}, {"predicate": "has_class_function", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin", "target": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_repair_llm_output"}, {"predicate": "has_class_function", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin", "target": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_repair_llm_raw_output"}, {"predicate": "has_class_function", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin", "target": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_retry_parse_json_text"}, {"predicate": "has_page_info", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin", "target": "{\"lineno\":15,\"end_lineno\":69,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BasePostProcessPlugin\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin", "target": "{\"name\":\"BasePostProcessPlugin\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"output\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"},{\"name\":\"req_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Union[dict, list]\"},{\"name\":\"run_extract_content_from_output\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"right_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"run_repair_llm_output\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"output\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"},{\"name\":\"req_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Union[dict, list]\"},{\"name\":\"run_repair_llm_raw_output\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"req_keys\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str]\",\"default_value\":\"\"},{\"name\":\"repair_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"run_retry_parse_json_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Union[dict, list]\"}]}"}, {"predicate": "is", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:model", "target": "model : NoneType"}, {"predicate": "is", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run", "target": "run(output: str, schema: dict, req_key: str): Union[dict, list]"}, {"predicate": "is", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_extract_content_from_output", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_extract_content_from_output", "target": "run_extract_content_from_output(content: str, right_key: str): str"}, {"predicate": "is", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_repair_llm_output", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_repair_llm_output", "target": "run_repair_llm_output(output: str, schema: dict, req_key: str): Union[dict, list]"}, {"predicate": "is", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_repair_llm_raw_output", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_repair_llm_raw_output", "target": "run_repair_llm_raw_output(content: str, req_keys: list[str], repair_type: str): str"}, {"predicate": "is", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_retry_parse_json_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:BasePostProcessPlugin:run_retry_parse_json_text", "target": "run_retry_parse_json_text(content: str): Union[dict, list]"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/document_store/base_store.py", "target": "metagpt/document_store/base_store.py:BaseStore"}, {"predicate": "has_class", "source": "metagpt/document_store/base_store.py", "target": "metagpt/document_store/base_store.py:LocalStore"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:BaseStore", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/document_store/base_store.py:BaseStore", "target": "metagpt/document_store/base_store.py:BaseStore:add"}, {"predicate": "has_class_function", "source": "metagpt/document_store/base_store.py:BaseStore", "target": "metagpt/document_store/base_store.py:BaseStore:search"}, {"predicate": "has_class_function", "source": "metagpt/document_store/base_store.py:BaseStore", "target": "metagpt/document_store/base_store.py:BaseStore:write"}, {"predicate": "has_class_function", "source": "metagpt/document_store/base_store.py:BaseStore", "target": "metagpt/document_store/base_store.py:BaseStore:search"}, {"predicate": "has_class_function", "source": "metagpt/document_store/base_store.py:BaseStore", "target": "metagpt/document_store/base_store.py:BaseStore:write"}, {"predicate": "has_class_function", "source": "metagpt/document_store/base_store.py:BaseStore", "target": "metagpt/document_store/base_store.py:BaseStore:add"}, {"predicate": "has_page_info", "source": "metagpt/document_store/base_store.py:BaseStore", "target": "{\"lineno\":14,\"end_lineno\":27,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BaseStore\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/document_store/base_store.py:BaseStore", "target": "{\"name\":\"BaseStore\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"add\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:BaseStore:add", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/base_store.py:BaseStore:add", "target": "add()"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:BaseStore:search", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/base_store.py:BaseStore:search", "target": "search()"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:BaseStore:write", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/base_store.py:BaseStore:write", "target": "write()"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/memory/brain_memory.py", "target": "metagpt/memory/brain_memory.py:BrainMemory"}, {"predicate": "has_class", "source": "metagpt/memory/brain_memory.py", "target": "metagpt/memory/brain_memory.py:BrainMemory:Config"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:cacheable"}, {"predicate": "has_class_property", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:historical_summary"}, {"predicate": "has_class_property", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:history"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:history_text"}, {"predicate": "has_class_property", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:is_dirty"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:is_history_available"}, {"predicate": "has_class_property", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:knowledge"}, {"predicate": "has_class_property", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:last_history_id"}, {"predicate": "has_class_property", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:last_talk"}, {"predicate": "has_class_property", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:llm"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:add_answer"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:add_history"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:add_talk"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:dumps"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:exists"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:extract_info"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:get_knowledge"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:get_title"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:is_related"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:loads"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:pop_last_talk"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:rewrite"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:set_history_summary"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:split_texts"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:summarize"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:to_int"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:to_metagpt_history_format"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:to_redis_key"}, {"predicate": "isCompositeOf", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/roles/assistant.py:Assistant"}, {"predicate": "isCompositeOn", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/roles/assistant.py:Assistant:memory"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:_openai_summarize"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:_metagpt_summarize"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:_metagpt_is_related"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:_openai_is_related"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:_metagpt_rewrite"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:_openai_rewrite"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:_summarize"}, {"predicate": "has_class_function", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "metagpt/memory/brain_memory.py:BrainMemory:_get_summary"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "{\"lineno\":26,\"end_lineno\":331,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BrainMemory\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/memory/brain_memory.py:BrainMemory", "target": "{\"name\":\"BrainMemory\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"cacheable\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"historical_summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"history\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[Message] \",\"default_value\":\"\"},{\"name\":\"is_dirty\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"knowledge\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[Message] \",\"default_value\":\"\"},{\"name\":\"last_history_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"last_talk\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[BaseLLM] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"history_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"is_history_available\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"add_answer\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"add_history\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"add_talk\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"dumps\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"redis_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"timeout_sec\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"exists\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"bool\"},{\"name\":\"extract_info\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"input_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"pattern\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_knowledge\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"},{\"name\":\"get_title\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"max_words\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"is_related\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text1\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"text2\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"loads\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"redis_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"BrainMemory\"},{\"name\":\"pop_last_talk\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"rewrite\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"sentence\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_history_summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"history_summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"redis_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"redis_conf\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"split_texts\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"window_size\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"List[str]\"},{\"name\":\"summarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"max_words\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"keep_language\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"},{\"name\":\"limit\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"to_int\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"v\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"default_value\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"to_metagpt_history_format\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"history\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"to_redis_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prefix\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"user_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"chat_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_openai_summarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_metagpt_summarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_metagpt_is_related\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_openai_is_related\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_metagpt_rewrite\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_openai_rewrite\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_summarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:cacheable", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:cacheable", "target": "cacheable : bool"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:historical_summary", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:historical_summary", "target": "historical_summary : str"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:history", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:history", "target": "history : List[Message]"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:history_text", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:history_text", "target": "history_text"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:history_text", "target": "class_function"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:is_dirty", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:is_dirty", "target": "is_dirty : bool"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:is_history_available", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:is_history_available", "target": "is_history_available"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:is_history_available", "target": "class_function"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:knowledge", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:knowledge", "target": "knowledge : List[Message]"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:last_history_id", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:last_history_id", "target": "last_history_id : str"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:last_talk", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:last_talk", "target": "last_talk : Optional[str]"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:llm", "target": "llm : Optional[BaseLLM]"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:add_answer", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:add_answer", "target": "add_answer(msg: Message)"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:add_history", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:add_history", "target": "add_history(msg: Message)"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:add_talk", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:add_talk", "target": "add_talk(msg: Message)"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:dumps", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:dumps", "target": "dumps(redis_key: str, timeout_sec: int)"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:exists", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:exists", "target": "exists(text): bool"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:extract_info", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:extract_info", "target": "extract_info(input_string, pattern)"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:get_knowledge", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:get_knowledge", "target": "get_knowledge(): str"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:get_title", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:get_title", "target": "get_title(llm, max_words): str"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:is_related", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:is_related", "target": "is_related(text1, text2, llm)"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:loads", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:loads", "target": "loads(redis_key: str): 'BrainMemory'"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:pop_last_talk", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:pop_last_talk", "target": "pop_last_talk()"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:rewrite", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:rewrite", "target": "rewrite(sentence: str, context: str, llm)"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:set_history_summary", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:set_history_summary", "target": "set_history_summary(history_summary, redis_key, redis_conf)"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:split_texts", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:split_texts", "target": "split_texts(text: str, window_size): List[str]"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:summarize", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:summarize", "target": "summarize(llm, max_words, keep_language: bool, limit: int)"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:to_int", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:to_int", "target": "to_int(v, default_value)"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:to_metagpt_history_format", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:to_metagpt_history_format", "target": "to_metagpt_history_format(history): str"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:to_redis_key", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:to_redis_key", "target": "to_redis_key(prefix: str, user_id: str, chat_id: str)"}, {"predicate": "is", "source": "metagpt/schema.py:BugFixContext", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:BugFixContext", "target": "metagpt/schema.py:BugFixContext:filename"}, {"predicate": "isGeneralizeOf", "source": "metagpt/schema.py:BugFixContext", "target": "metagpt/schema.py:BaseContext"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:BugFixContext", "target": "{\"lineno\":452,\"end_lineno\":453,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"BugFixContext\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:BugFixContext", "target": "{\"name\":\"BugFixContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/schema.py:BugFixContext:filename", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:BugFixContext:filename", "target": "filename : str"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/git_repository.py", "target": "metagpt/utils/git_repository.py:ChangeType"}, {"predicate": "has_class", "source": "metagpt/utils/git_repository.py", "target": "metagpt/utils/git_repository.py:GitRepository"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:ChangeType", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/git_repository.py:ChangeType", "target": "metagpt/utils/git_repository.py:ChangeType:name"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:ChangeType", "target": "{\"lineno\":25,\"end_lineno\":32,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ChangeType\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/git_repository.py:ChangeType", "target": "{\"name\":\"ChangeType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:ChangeType:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/git_repository.py:ChangeType:name", "target": "name"}, {"predicate": "is", "source": "metagpt/document_store/chromadb_store.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/document_store/chromadb_store.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/document_store/chromadb_store.py", "target": "metagpt/document_store/chromadb_store.py:ChromaStore"}, {"predicate": "is", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "metagpt/document_store/chromadb_store.py:ChromaStore:client"}, {"predicate": "has_class_property", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "metagpt/document_store/chromadb_store.py:ChromaStore:collection"}, {"predicate": "has_class_function", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "metagpt/document_store/chromadb_store.py:ChromaStore:add"}, {"predicate": "has_class_function", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "metagpt/document_store/chromadb_store.py:ChromaStore:delete"}, {"predicate": "has_class_function", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "metagpt/document_store/chromadb_store.py:ChromaStore:persist"}, {"predicate": "has_class_function", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "metagpt/document_store/chromadb_store.py:ChromaStore:search"}, {"predicate": "has_class_function", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "metagpt/document_store/chromadb_store.py:ChromaStore:write"}, {"predicate": "isCompositeOf", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "metagpt/management/skill_manager.py:SkillManager"}, {"predicate": "isCompositeOn", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "metagpt/management/skill_manager.py:SkillManager:_store"}, {"predicate": "has_class_function", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "metagpt/document_store/chromadb_store.py:ChromaStore:__init__"}, {"predicate": "has_class_function", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "metagpt/document_store/chromadb_store.py:ChromaStore:persist"}, {"predicate": "has_page_info", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "{\"lineno\":11,\"end_lineno\":53,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ChromaStore\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/document_store/chromadb_store.py:ChromaStore", "target": "{\"name\":\"ChromaStore\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"client\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"FastAPI, LocalAPI \",\"default_value\":\"\"},{\"name\":\"collection\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Collection \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"document\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"metadata\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"delete\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"n_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"metadata_filter\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"document_filter\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"documents\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"metadatas\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"ids\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:client", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:client", "target": "client : FastAPI, LocalAPI"}, {"predicate": "is", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:collection", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:collection", "target": "collection : Collection"}, {"predicate": "is", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:add", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:add", "target": "add(document, metadata, _id)"}, {"predicate": "is", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:delete", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:delete", "target": "delete(_id)"}, {"predicate": "is", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:persist", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:persist", "target": "persist()"}, {"predicate": "is", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:search", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:search", "target": "search(query, n_results, metadata_filter, document_filter)"}, {"predicate": "is", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:write", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:write", "target": "write(documents, metadatas, ids)"}, {"predicate": "is", "source": "metagpt/schema.py:ClassAttribute", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:ClassAttribute", "target": "metagpt/schema.py:ClassAttribute:default_value"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:ClassAttribute", "target": "metagpt/schema.py:ClassAttribute:value_type"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:ClassAttribute", "target": "metagpt/schema.py:ClassAttribute:get_mermaid"}, {"predicate": "isGeneralizeOf", "source": "metagpt/schema.py:ClassAttribute", "target": "metagpt/schema.py:ClassMeta"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:ClassAttribute", "target": "{\"lineno\":464,\"end_lineno\":483,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ClassAttribute\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:ClassAttribute", "target": "{\"name\":\"ClassAttribute\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"default_value\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"value_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_mermaid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"align\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"predicate": "is", "source": "metagpt/schema.py:ClassAttribute:default_value", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:ClassAttribute:default_value", "target": "default_value : str"}, {"predicate": "is", "source": "metagpt/schema.py:ClassAttribute:value_type", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:ClassAttribute:value_type", "target": "value_type : str"}, {"predicate": "is", "source": "metagpt/schema.py:ClassAttribute:get_mermaid", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:ClassAttribute:get_mermaid", "target": "get_mermaid(align): str"}, {"predicate": "is", "source": "metagpt/repo_parser.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/repo_parser.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/repo_parser.py", "target": "metagpt/repo_parser.py:ClassInfo"}, {"predicate": "has_class", "source": "metagpt/repo_parser.py", "target": "metagpt/repo_parser.py:ClassRelationship"}, {"predicate": "has_class", "source": "metagpt/repo_parser.py", "target": "metagpt/repo_parser.py:CodeBlockInfo"}, {"predicate": "has_class", "source": "metagpt/repo_parser.py", "target": "metagpt/repo_parser.py:RepoFileInfo"}, {"predicate": "has_class", "source": "metagpt/repo_parser.py", "target": "metagpt/repo_parser.py:RepoParser"}, {"predicate": "has_function", "source": "metagpt/repo_parser.py", "target": "metagpt/repo_parser.py:is_func"}, {"predicate": "is", "source": "metagpt/repo_parser.py:ClassInfo", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:ClassInfo", "target": "metagpt/repo_parser.py:ClassInfo:attributes"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:ClassInfo", "target": "metagpt/repo_parser.py:ClassInfo:methods"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:ClassInfo", "target": "metagpt/repo_parser.py:ClassInfo:name"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:ClassInfo", "target": "metagpt/repo_parser.py:ClassInfo:package"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:ClassInfo", "target": "{\"lineno\":42,\"end_lineno\":46,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ClassInfo\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/repo_parser.py:ClassInfo", "target": "{\"name\":\"ClassInfo\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"attributes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict[str, str] \",\"default_value\":\"\"},{\"name\":\"methods\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict[str, str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"package\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/repo_parser.py:ClassInfo:attributes", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:ClassInfo:attributes", "target": "attributes : Dict[str, str]"}, {"predicate": "is", "source": "metagpt/repo_parser.py:ClassInfo:methods", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:ClassInfo:methods", "target": "methods : Dict[str, str]"}, {"predicate": "is", "source": "metagpt/repo_parser.py:ClassInfo:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:ClassInfo:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/repo_parser.py:ClassInfo:package", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:ClassInfo:package", "target": "package : Optional[str]"}, {"predicate": "is", "source": "metagpt/schema.py:ClassMeta", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:ClassMeta", "target": "metagpt/schema.py:ClassMeta:abstraction"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:ClassMeta", "target": "metagpt/schema.py:ClassMeta:name"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:ClassMeta", "target": "metagpt/schema.py:ClassMeta:static"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:ClassMeta", "target": "metagpt/schema.py:ClassMeta:visibility"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:ClassMeta", "target": "{\"lineno\":457,\"end_lineno\":461,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ClassMeta\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:ClassMeta", "target": "{\"name\":\"ClassMeta\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"abstraction\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"static\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"visibility\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/schema.py:ClassMeta:abstraction", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:ClassMeta:abstraction", "target": "abstraction : bool"}, {"predicate": "is", "source": "metagpt/schema.py:ClassMeta:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:ClassMeta:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/schema.py:ClassMeta:static", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:ClassMeta:static", "target": "static : bool"}, {"predicate": "is", "source": "metagpt/schema.py:ClassMeta:visibility", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:ClassMeta:visibility", "target": "visibility : str"}, {"predicate": "is", "source": "metagpt/schema.py:ClassMethod", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:ClassMethod", "target": "metagpt/schema.py:ClassMethod:args"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:ClassMethod", "target": "metagpt/schema.py:ClassMethod:return_type"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:ClassMethod", "target": "metagpt/schema.py:ClassMethod:get_mermaid"}, {"predicate": "isGeneralizeOf", "source": "metagpt/schema.py:ClassMethod", "target": "metagpt/schema.py:ClassMeta"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:ClassMethod", "target": "{\"lineno\":486,\"end_lineno\":499,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ClassMethod\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:ClassMethod", "target": "{\"name\":\"ClassMethod\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"args\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[ClassAttribute] \",\"default_value\":\"\"},{\"name\":\"return_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_mermaid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"align\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"predicate": "is", "source": "metagpt/schema.py:ClassMethod:args", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:ClassMethod:args", "target": "args : List[ClassAttribute]"}, {"predicate": "is", "source": "metagpt/schema.py:ClassMethod:return_type", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:ClassMethod:return_type", "target": "return_type : str"}, {"predicate": "is", "source": "metagpt/schema.py:ClassMethod:get_mermaid", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:ClassMethod:get_mermaid", "target": "get_mermaid(align): str"}, {"predicate": "is", "source": "metagpt/repo_parser.py:ClassRelationship", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:ClassRelationship", "target": "metagpt/repo_parser.py:ClassRelationship:dest"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:ClassRelationship", "target": "metagpt/repo_parser.py:ClassRelationship:label"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:ClassRelationship", "target": "metagpt/repo_parser.py:ClassRelationship:relationship"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:ClassRelationship", "target": "metagpt/repo_parser.py:ClassRelationship:src"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:ClassRelationship", "target": "{\"lineno\":49,\"end_lineno\":53,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ClassRelationship\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/repo_parser.py:ClassRelationship", "target": "{\"name\":\"ClassRelationship\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"dest\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"label\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"relationship\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"src\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/repo_parser.py:ClassRelationship:dest", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:ClassRelationship:dest", "target": "dest : str"}, {"predicate": "is", "source": "metagpt/repo_parser.py:ClassRelationship:label", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:ClassRelationship:label", "target": "label : Optional[str]"}, {"predicate": "is", "source": "metagpt/repo_parser.py:ClassRelationship:relationship", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:ClassRelationship:relationship", "target": "relationship : str"}, {"predicate": "is", "source": "metagpt/repo_parser.py:ClassRelationship:src", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:ClassRelationship:src", "target": "src : str"}, {"predicate": "is", "source": "metagpt/schema.py:ClassView", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:ClassView", "target": "metagpt/schema.py:ClassView:attributes"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:ClassView", "target": "metagpt/schema.py:ClassView:methods"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:ClassView", "target": "metagpt/schema.py:ClassView:get_mermaid"}, {"predicate": "isGeneralizeOf", "source": "metagpt/schema.py:ClassView", "target": "metagpt/schema.py:ClassMeta"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:ClassView", "target": "{\"lineno\":502,\"end_lineno\":513,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ClassView\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:ClassView", "target": "{\"name\":\"ClassView\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"attributes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[ClassAttribute] \",\"default_value\":\"\"},{\"name\":\"methods\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[ClassMethod] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_mermaid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"align\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"predicate": "is", "source": "metagpt/schema.py:ClassView:attributes", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:ClassView:attributes", "target": "attributes : List[ClassAttribute]"}, {"predicate": "is", "source": "metagpt/schema.py:ClassView:methods", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:ClassView:methods", "target": "methods : List[ClassMethod]"}, {"predicate": "is", "source": "metagpt/schema.py:ClassView:get_mermaid", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:ClassView:get_mermaid", "target": "get_mermaid(align): str"}, {"predicate": "is", "source": "metagpt/provider/anthropic_api.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/anthropic_api.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/anthropic_api.py", "target": "metagpt/provider/anthropic_api.py:Claude2"}, {"predicate": "is", "source": "metagpt/provider/anthropic_api.py:Claude2", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/provider/anthropic_api.py:Claude2", "target": "metagpt/provider/anthropic_api.py:Claude2:aask"}, {"predicate": "has_class_function", "source": "metagpt/provider/anthropic_api.py:Claude2", "target": "metagpt/provider/anthropic_api.py:Claude2:ask"}, {"predicate": "has_page_info", "source": "metagpt/provider/anthropic_api.py:Claude2", "target": "{\"lineno\":15,\"end_lineno\":34,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Claude2\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/anthropic_api.py:Claude2", "target": "{\"name\":\"Claude2\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"aask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"ask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"predicate": "is", "source": "metagpt/provider/anthropic_api.py:Claude2:aask", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/anthropic_api.py:Claude2:aask", "target": "aask(prompt: str): str"}, {"predicate": "is", "source": "metagpt/provider/anthropic_api.py:Claude2:ask", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/anthropic_api.py:Claude2:ask", "target": "ask(prompt: str): str"}, {"predicate": "is", "source": "metagpt/repo_parser.py:CodeBlockInfo", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:CodeBlockInfo", "target": "metagpt/repo_parser.py:CodeBlockInfo:end_lineno"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:CodeBlockInfo", "target": "metagpt/repo_parser.py:CodeBlockInfo:lineno"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:CodeBlockInfo", "target": "metagpt/repo_parser.py:CodeBlockInfo:properties"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:CodeBlockInfo", "target": "metagpt/repo_parser.py:CodeBlockInfo:tokens"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:CodeBlockInfo", "target": "metagpt/repo_parser.py:CodeBlockInfo:type_name"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:CodeBlockInfo", "target": "{\"lineno\":34,\"end_lineno\":39,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CodeBlockInfo\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/repo_parser.py:CodeBlockInfo", "target": "{\"name\":\"CodeBlockInfo\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"end_lineno\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"lineno\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"properties\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict \",\"default_value\":\"\"},{\"name\":\"tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List \",\"default_value\":\"\"},{\"name\":\"type_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/repo_parser.py:CodeBlockInfo:end_lineno", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:CodeBlockInfo:end_lineno", "target": "end_lineno : int"}, {"predicate": "is", "source": "metagpt/repo_parser.py:CodeBlockInfo:lineno", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:CodeBlockInfo:lineno", "target": "lineno : int"}, {"predicate": "is", "source": "metagpt/repo_parser.py:CodeBlockInfo:properties", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:CodeBlockInfo:properties", "target": "properties : Dict"}, {"predicate": "is", "source": "metagpt/repo_parser.py:CodeBlockInfo:tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:CodeBlockInfo:tokens", "target": "tokens : List"}, {"predicate": "is", "source": "metagpt/repo_parser.py:CodeBlockInfo:type_name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:CodeBlockInfo:type_name", "target": "type_name : str"}, {"predicate": "is", "source": "metagpt/utils/common.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/common.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:CodeParser"}, {"predicate": "has_class", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:NoMoneyException"}, {"predicate": "has_class", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:OutputParser"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:check_cmd_exists"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:require_python_version"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:print_members"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:parse_recipient"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:get_class_name"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:any_to_str"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:any_to_str_set"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:is_subscribed"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:any_to_name"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:concat_namespace"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:split_namespace"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:general_after_log"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:read_json_file"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:write_json_file"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:import_class"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:import_class_inst"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:format_trackback_info"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:serialize_decorator"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:role_raise_decorator"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:aread"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:awrite"}, {"predicate": "has_function", "source": "metagpt/utils/common.py", "target": "metagpt/utils/common.py:read_file_block"}, {"predicate": "is", "source": "metagpt/utils/common.py:CodeParser", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:CodeParser", "target": "metagpt/utils/common.py:CodeParser:parse_block"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:CodeParser", "target": "metagpt/utils/common.py:CodeParser:parse_blocks"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:CodeParser", "target": "metagpt/utils/common.py:CodeParser:parse_code"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:CodeParser", "target": "metagpt/utils/common.py:CodeParser:parse_file_list"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:CodeParser", "target": "metagpt/utils/common.py:CodeParser:parse_str"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:CodeParser", "target": "{\"lineno\":234,\"end_lineno\":304,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CodeParser\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/common.py:CodeParser", "target": "{\"name\":\"CodeParser\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"parse_block\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"block\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"parse_blocks\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"parse_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"block\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"lang\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"parse_file_list\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"block\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"lang\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[str]\"},{\"name\":\"parse_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"block\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"lang\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/common.py:CodeParser:parse_block", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:CodeParser:parse_block", "target": "parse_block(block: str, text: str): str"}, {"predicate": "is", "source": "metagpt/utils/common.py:CodeParser:parse_blocks", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:CodeParser:parse_blocks", "target": "parse_blocks(text: str)"}, {"predicate": "is", "source": "metagpt/utils/common.py:CodeParser:parse_code", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:CodeParser:parse_code", "target": "parse_code(block: str, text: str, lang: str): str"}, {"predicate": "is", "source": "metagpt/utils/common.py:CodeParser:parse_file_list", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:CodeParser:parse_file_list", "target": "parse_file_list(block: str, text: str, lang: str): list[str]"}, {"predicate": "is", "source": "metagpt/utils/common.py:CodeParser:parse_str", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:CodeParser:parse_str", "target": "parse_str(block: str, text: str, lang: str)"}, {"predicate": "is", "source": "metagpt/schema.py:CodeSummarizeContext", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:CodeSummarizeContext", "target": "metagpt/schema.py:CodeSummarizeContext:codes_filenames"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:CodeSummarizeContext", "target": "metagpt/schema.py:CodeSummarizeContext:design_filename"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:CodeSummarizeContext", "target": "metagpt/schema.py:CodeSummarizeContext:reason"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:CodeSummarizeContext", "target": "metagpt/schema.py:CodeSummarizeContext:task_filename"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:CodeSummarizeContext", "target": "metagpt/schema.py:CodeSummarizeContext:loads"}, {"predicate": "isCompositeOf", "source": "metagpt/schema.py:CodeSummarizeContext", "target": "metagpt/actions/summarize_code.py:SummarizeCode"}, {"predicate": "isCompositeOn", "source": "metagpt/schema.py:CodeSummarizeContext", "target": "metagpt/actions/summarize_code.py:SummarizeCode:context"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:CodeSummarizeContext", "target": "metagpt/schema.py:CodeSummarizeContext:__hash__"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:CodeSummarizeContext", "target": "{\"lineno\":430,\"end_lineno\":449,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CodeSummarizeContext\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:CodeSummarizeContext", "target": "{\"name\":\"CodeSummarizeContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"codes_filenames\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[str] \",\"default_value\":\"\"},{\"name\":\"design_filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"reason\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"task_filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"loads\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filenames\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List\",\"default_value\":\"\"}],\"return_type\":\"CodeSummarizeContext\"},{\"name\":\"__hash__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/schema.py:CodeSummarizeContext:codes_filenames", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:CodeSummarizeContext:codes_filenames", "target": "codes_filenames : List[str]"}, {"predicate": "is", "source": "metagpt/schema.py:CodeSummarizeContext:design_filename", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:CodeSummarizeContext:design_filename", "target": "design_filename : str"}, {"predicate": "is", "source": "metagpt/schema.py:CodeSummarizeContext:reason", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:CodeSummarizeContext:reason", "target": "reason : str"}, {"predicate": "is", "source": "metagpt/schema.py:CodeSummarizeContext:task_filename", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:CodeSummarizeContext:task_filename", "target": "task_filename : str"}, {"predicate": "is", "source": "metagpt/schema.py:CodeSummarizeContext:loads", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:CodeSummarizeContext:loads", "target": "loads(filenames: List): CodeSummarizeContext"}, {"predicate": "is", "source": "metagpt/schema.py:CodingContext", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:CodingContext", "target": "metagpt/schema.py:CodingContext:code_doc"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:CodingContext", "target": "metagpt/schema.py:CodingContext:design_doc"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:CodingContext", "target": "metagpt/schema.py:CodingContext:filename"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:CodingContext", "target": "metagpt/schema.py:CodingContext:task_doc"}, {"predicate": "isGeneralizeOf", "source": "metagpt/schema.py:CodingContext", "target": "metagpt/schema.py:BaseContext"}, {"predicate": "isCompositeOf", "source": "metagpt/schema.py:CodingContext", "target": "metagpt/actions/write_code_review.py:WriteCodeReview"}, {"predicate": "isCompositeOn", "source": "metagpt/schema.py:CodingContext", "target": "metagpt/actions/write_code_review.py:WriteCodeReview:context"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:CodingContext", "target": "{\"lineno\":398,\"end_lineno\":402,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CodingContext\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:CodingContext", "target": "{\"name\":\"CodingContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"code_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Document] \",\"default_value\":\"\"},{\"name\":\"design_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Document] \",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"task_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Document] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/schema.py:CodingContext:code_doc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:CodingContext:code_doc", "target": "code_doc : Optional[Document]"}, {"predicate": "is", "source": "metagpt/schema.py:CodingContext:design_doc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:CodingContext:design_doc", "target": "design_doc : Optional[Document]"}, {"predicate": "is", "source": "metagpt/schema.py:CodingContext:filename", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:CodingContext:filename", "target": "filename : str"}, {"predicate": "is", "source": "metagpt/schema.py:CodingContext:task_doc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:CodingContext:task_doc", "target": "task_doc : Optional[Document]"}, {"predicate": "is", "source": "metagpt/actions/research.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/research.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/research.py", "target": "metagpt/actions/research.py:CollectLinks"}, {"predicate": "has_class", "source": "metagpt/actions/research.py", "target": "metagpt/actions/research.py:ConductResearch"}, {"predicate": "has_class", "source": "metagpt/actions/research.py", "target": "metagpt/actions/research.py:WebBrowseAndSummarize"}, {"predicate": "has_function", "source": "metagpt/actions/research.py", "target": "metagpt/actions/research.py:get_research_system_text"}, {"predicate": "is", "source": "metagpt/actions/research.py:CollectLinks", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:CollectLinks", "target": "metagpt/actions/research.py:CollectLinks:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:CollectLinks", "target": "metagpt/actions/research.py:CollectLinks:desc"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:CollectLinks", "target": "metagpt/actions/research.py:CollectLinks:name"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:CollectLinks", "target": "metagpt/actions/research.py:CollectLinks:rank_func"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:CollectLinks", "target": "metagpt/actions/research.py:CollectLinks:search_engine"}, {"predicate": "has_class_function", "source": "metagpt/actions/research.py:CollectLinks", "target": "metagpt/actions/research.py:CollectLinks:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/research.py:CollectLinks", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/research.py:CollectLinks", "target": "metagpt/actions/research.py:CollectLinks:_search_and_rank_urls"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:CollectLinks", "target": "{\"lineno\":80,\"end_lineno\":173,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CollectLinks\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/research.py:CollectLinks", "target": "{\"name\":\"CollectLinks\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"rank_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Callable[[list[str]], None]] \",\"default_value\":\"\"},{\"name\":\"search_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"decomposition_nums\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"url_per_query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"system_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str \\\\| None\",\"default_value\":\"\"}],\"return_type\":\"dict[str, list[str]]\"},{\"name\":\"_search_and_rank_urls\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/research.py:CollectLinks:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:CollectLinks:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/research.py:CollectLinks:desc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:CollectLinks:desc", "target": "desc : str"}, {"predicate": "is", "source": "metagpt/actions/research.py:CollectLinks:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:CollectLinks:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/research.py:CollectLinks:rank_func", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:CollectLinks:rank_func", "target": "rank_func : Optional[Callable[[list[str]], None]]"}, {"predicate": "is", "source": "metagpt/actions/research.py:CollectLinks:search_engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:CollectLinks:search_engine", "target": "search_engine"}, {"predicate": "is", "source": "metagpt/actions/research.py:CollectLinks:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/research.py:CollectLinks:run", "target": "run(topic: str, decomposition_nums: int, url_per_query: int, system_text: str \\| None): dict[str, list[str]]"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/learn/skill_loader.py", "target": "metagpt/learn/skill_loader.py:Components"}, {"predicate": "has_class", "source": "metagpt/learn/skill_loader.py", "target": "metagpt/learn/skill_loader.py:Entity"}, {"predicate": "has_class", "source": "metagpt/learn/skill_loader.py", "target": "metagpt/learn/skill_loader.py:Example"}, {"predicate": "has_class", "source": "metagpt/learn/skill_loader.py", "target": "metagpt/learn/skill_loader.py:Parameter"}, {"predicate": "has_class", "source": "metagpt/learn/skill_loader.py", "target": "metagpt/learn/skill_loader.py:Returns"}, {"predicate": "has_class", "source": "metagpt/learn/skill_loader.py", "target": "metagpt/learn/skill_loader.py:Skill"}, {"predicate": "has_class", "source": "metagpt/learn/skill_loader.py", "target": "metagpt/learn/skill_loader.py:SkillsDeclaration"}, {"predicate": "has_class", "source": "metagpt/learn/skill_loader.py", "target": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill_list:_AgentSkill"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Components", "target": "class"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:Components", "target": "{\"lineno\":58,\"end_lineno\":59,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Components\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/learn/skill_loader.py:Components", "target": "{\"name\":\"Components\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/actions/research.py:ConductResearch", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:ConductResearch", "target": "metagpt/actions/research.py:ConductResearch:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:ConductResearch", "target": "metagpt/actions/research.py:ConductResearch:llm"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:ConductResearch", "target": "metagpt/actions/research.py:ConductResearch:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/research.py:ConductResearch", "target": "metagpt/actions/research.py:ConductResearch:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/research.py:ConductResearch", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/research.py:ConductResearch", "target": "metagpt/actions/research.py:ConductResearch:__init__"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:ConductResearch", "target": "{\"lineno\":247,\"end_lineno\":278,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ConductResearch\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/research.py:ConductResearch", "target": "{\"name\":\"ConductResearch\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"system_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/research.py:ConductResearch:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:ConductResearch:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/research.py:ConductResearch:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:ConductResearch:llm", "target": "llm"}, {"predicate": "is", "source": "metagpt/actions/research.py:ConductResearch:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:ConductResearch:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/research.py:ConductResearch:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/research.py:ConductResearch:run", "target": "run(topic: str, content: str, system_text: str): str"}, {"predicate": "is", "source": "metagpt/config.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/config.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/config.py", "target": "metagpt/config.py:Config"}, {"predicate": "has_class", "source": "metagpt/config.py", "target": "metagpt/config.py:LLMProviderEnum"}, {"predicate": "has_class", "source": "metagpt/config.py", "target": "metagpt/config.py:NotConfiguredException"}, {"predicate": "is", "source": "metagpt/config.py:Config", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:anthropic_api_key"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:calc_usage"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:claude_api_key"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:code_review_k_times"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:cost_manager"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:default_yaml_file"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:deployment_name"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:domain"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:fireworks_api_base"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:fireworks_api_key"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:fireworks_api_model"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:gemini_api_key"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:git_reinit"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:global_proxy"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:google_api_key"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:google_cse_id"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:home_yaml_file"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:inc"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:key_yaml_file"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:long_term_memory"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:max_auto_summarize_code"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:max_tokens_rsp"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:mermaid_engine"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:mmdc"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:model_for_researcher_report"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:model_for_researcher_summary"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:ollama_api_base"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:ollama_api_model"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:open_llm_api_base"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:open_llm_api_model"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:openai_api_key"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:openai_api_model"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:openai_api_rpm"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:openai_api_type"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:openai_api_version"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:openai_base_url"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:openai_proxy"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:options"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:playwright_browser_type"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:project_name"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:project_path"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:prompt_schema"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:puppeteer_config"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:pyppeteer_executable_path"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:repair_llm_output"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:reqa_file"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:search_engine"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:selenium_browser_type"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:serpapi_api_key"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:serper_api_key"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:spark_api_key"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:spark_api_secret"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:spark_appid"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:spark_url"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:timeout"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:web_browser_engine"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:workspace_path"}, {"predicate": "has_class_property", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:zhipuai_api_key"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:get"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:get_default_llm_provider_enum"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:get_model_name"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:new_environ"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:set_context"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:update_via_cli"}, {"predicate": "isAggregateOf", "source": "metagpt/config.py:Config", "target": "metagpt/provider/fireworks_api.py:FireworksLLM"}, {"predicate": "isAggregateOn", "source": "metagpt/config.py:Config", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:config"}, {"predicate": "isAggregateOf", "source": "metagpt/config.py:Config", "target": "metagpt/provider/open_llm_api.py:OpenLLM"}, {"predicate": "isAggregateOn", "source": "metagpt/config.py:Config", "target": "metagpt/provider/open_llm_api.py:OpenLLM:config"}, {"predicate": "isAggregateOf", "source": "metagpt/config.py:Config", "target": "metagpt/provider/openai_api.py:OpenAILLM"}, {"predicate": "isAggregateOn", "source": "metagpt/config.py:Config", "target": "metagpt/provider/openai_api.py:OpenAILLM:config"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:__init__"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:_is_valid_llm_key"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:_update"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:_ensure_workspace_exists"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:_init_with_config_files_and_env"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:_get"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:__setattr__"}, {"predicate": "has_class_function", "source": "metagpt/config.py:Config", "target": "metagpt/config.py:Config:__getattr__"}, {"predicate": "has_page_info", "source": "metagpt/config.py:Config", "target": "{\"lineno\":57,\"end_lineno\":284,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Config\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/config.py:Config", "target": "{\"name\":\"Config\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"anthropic_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"calc_usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"claude_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"code_review_k_times\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"cost_manager\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"default_yaml_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"deployment_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"domain\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"fireworks_api_base\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"fireworks_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"fireworks_api_model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"gemini_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"git_reinit\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"global_proxy\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"google_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"google_cse_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"home_yaml_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"inc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"key_yaml_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"long_term_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"max_auto_summarize_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"max_tokens_rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mermaid_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mmdc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_for_researcher_report\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_for_researcher_summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"ollama_api_base\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"ollama_api_model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"open_llm_api_base\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"open_llm_api_model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_api_model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_api_rpm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_api_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_api_version\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_base_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"openai_proxy\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"playwright_browser_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"project_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"project_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"prompt_schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"puppeteer_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"pyppeteer_executable_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"repair_llm_output\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"reqa_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"search_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"selenium_browser_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"serpapi_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"serper_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_api_secret\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_appid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"web_browser_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"workspace_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Path \",\"default_value\":\"\"},{\"name\":\"zhipuai_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"options\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_default_llm_provider_enum\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"LLMProviderEnum\"},{\"name\":\"get_model_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"provider\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"new_environ\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"set_context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"options\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"update_via_cli\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"project_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"project_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"inc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"reqa_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"max_auto_summarize_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_is_valid_llm_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_ensure_workspace_exists\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_init_with_config_files_and_env\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__setattr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__getattr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/config.py:Config:anthropic_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:anthropic_api_key", "target": "anthropic_api_key"}, {"predicate": "is", "source": "metagpt/config.py:Config:calc_usage", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:calc_usage", "target": "calc_usage"}, {"predicate": "is", "source": "metagpt/config.py:Config:claude_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:claude_api_key", "target": "claude_api_key"}, {"predicate": "is", "source": "metagpt/config.py:Config:code_review_k_times", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:code_review_k_times", "target": "code_review_k_times : int"}, {"predicate": "is", "source": "metagpt/config.py:Config:cost_manager", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:cost_manager", "target": "cost_manager"}, {"predicate": "is", "source": "metagpt/config.py:Config:default_yaml_file", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:default_yaml_file", "target": "default_yaml_file"}, {"predicate": "is", "source": "metagpt/config.py:Config:deployment_name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:deployment_name", "target": "deployment_name"}, {"predicate": "is", "source": "metagpt/config.py:Config:domain", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:domain", "target": "domain"}, {"predicate": "is", "source": "metagpt/config.py:Config:fireworks_api_base", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:fireworks_api_base", "target": "fireworks_api_base"}, {"predicate": "is", "source": "metagpt/config.py:Config:fireworks_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:fireworks_api_key", "target": "fireworks_api_key"}, {"predicate": "is", "source": "metagpt/config.py:Config:fireworks_api_model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:fireworks_api_model", "target": "fireworks_api_model"}, {"predicate": "is", "source": "metagpt/config.py:Config:gemini_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:gemini_api_key", "target": "gemini_api_key"}, {"predicate": "is", "source": "metagpt/config.py:Config:git_reinit", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:git_reinit", "target": "git_reinit : bool"}, {"predicate": "is", "source": "metagpt/config.py:Config:global_proxy", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:global_proxy", "target": "global_proxy"}, {"predicate": "is", "source": "metagpt/config.py:Config:google_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:google_api_key", "target": "google_api_key"}, {"predicate": "is", "source": "metagpt/config.py:Config:google_cse_id", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:google_cse_id", "target": "google_cse_id"}, {"predicate": "is", "source": "metagpt/config.py:Config:home_yaml_file", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:home_yaml_file", "target": "home_yaml_file"}, {"predicate": "is", "source": "metagpt/config.py:Config:inc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:inc", "target": "inc : bool"}, {"predicate": "is", "source": "metagpt/config.py:Config:key_yaml_file", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:key_yaml_file", "target": "key_yaml_file"}, {"predicate": "is", "source": "metagpt/config.py:Config:long_term_memory", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:long_term_memory", "target": "long_term_memory"}, {"predicate": "is", "source": "metagpt/config.py:Config:max_auto_summarize_code", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:max_auto_summarize_code", "target": "max_auto_summarize_code : int"}, {"predicate": "is", "source": "metagpt/config.py:Config:max_tokens_rsp", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:max_tokens_rsp", "target": "max_tokens_rsp"}, {"predicate": "is", "source": "metagpt/config.py:Config:mermaid_engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:mermaid_engine", "target": "mermaid_engine"}, {"predicate": "is", "source": "metagpt/config.py:Config:mmdc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:mmdc", "target": "mmdc"}, {"predicate": "is", "source": "metagpt/config.py:Config:model_for_researcher_report", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:model_for_researcher_report", "target": "model_for_researcher_report"}, {"predicate": "is", "source": "metagpt/config.py:Config:model_for_researcher_summary", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:model_for_researcher_summary", "target": "model_for_researcher_summary"}, {"predicate": "is", "source": "metagpt/config.py:Config:ollama_api_base", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:ollama_api_base", "target": "ollama_api_base"}, {"predicate": "is", "source": "metagpt/config.py:Config:ollama_api_model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:ollama_api_model", "target": "ollama_api_model"}, {"predicate": "is", "source": "metagpt/config.py:Config:open_llm_api_base", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:open_llm_api_base", "target": "open_llm_api_base"}, {"predicate": "is", "source": "metagpt/config.py:Config:open_llm_api_model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:open_llm_api_model", "target": "open_llm_api_model"}, {"predicate": "is", "source": "metagpt/config.py:Config:openai_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:openai_api_key", "target": "openai_api_key"}, {"predicate": "is", "source": "metagpt/config.py:Config:openai_api_model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:openai_api_model", "target": "openai_api_model"}, {"predicate": "is", "source": "metagpt/config.py:Config:openai_api_rpm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:openai_api_rpm", "target": "openai_api_rpm"}, {"predicate": "is", "source": "metagpt/config.py:Config:openai_api_type", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:openai_api_type", "target": "openai_api_type"}, {"predicate": "is", "source": "metagpt/config.py:Config:openai_api_version", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:openai_api_version", "target": "openai_api_version"}, {"predicate": "is", "source": "metagpt/config.py:Config:openai_base_url", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:openai_base_url", "target": "openai_base_url"}, {"predicate": "is", "source": "metagpt/config.py:Config:openai_proxy", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:openai_proxy", "target": "openai_proxy"}, {"predicate": "is", "source": "metagpt/config.py:Config:options", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:options", "target": "options"}, {"predicate": "is", "source": "metagpt/config.py:Config:options", "target": "class_function"}, {"predicate": "is", "source": "metagpt/config.py:Config:playwright_browser_type", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:playwright_browser_type", "target": "playwright_browser_type"}, {"predicate": "is", "source": "metagpt/config.py:Config:project_name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:project_name", "target": "project_name : str"}, {"predicate": "is", "source": "metagpt/config.py:Config:project_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:project_path", "target": "project_path : str"}, {"predicate": "is", "source": "metagpt/config.py:Config:prompt_schema", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:prompt_schema", "target": "prompt_schema"}, {"predicate": "is", "source": "metagpt/config.py:Config:puppeteer_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:puppeteer_config", "target": "puppeteer_config"}, {"predicate": "is", "source": "metagpt/config.py:Config:pyppeteer_executable_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:pyppeteer_executable_path", "target": "pyppeteer_executable_path"}, {"predicate": "is", "source": "metagpt/config.py:Config:repair_llm_output", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:repair_llm_output", "target": "repair_llm_output"}, {"predicate": "is", "source": "metagpt/config.py:Config:reqa_file", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:reqa_file", "target": "reqa_file : str"}, {"predicate": "is", "source": "metagpt/config.py:Config:search_engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:search_engine", "target": "search_engine"}, {"predicate": "is", "source": "metagpt/config.py:Config:selenium_browser_type", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:selenium_browser_type", "target": "selenium_browser_type"}, {"predicate": "is", "source": "metagpt/config.py:Config:serpapi_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:serpapi_api_key", "target": "serpapi_api_key"}, {"predicate": "is", "source": "metagpt/config.py:Config:serper_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:serper_api_key", "target": "serper_api_key"}, {"predicate": "is", "source": "metagpt/config.py:Config:spark_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:spark_api_key", "target": "spark_api_key"}, {"predicate": "is", "source": "metagpt/config.py:Config:spark_api_secret", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:spark_api_secret", "target": "spark_api_secret"}, {"predicate": "is", "source": "metagpt/config.py:Config:spark_appid", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:spark_appid", "target": "spark_appid"}, {"predicate": "is", "source": "metagpt/config.py:Config:spark_url", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:spark_url", "target": "spark_url"}, {"predicate": "is", "source": "metagpt/config.py:Config:timeout", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:timeout", "target": "timeout : int"}, {"predicate": "is", "source": "metagpt/config.py:Config:web_browser_engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:web_browser_engine", "target": "web_browser_engine"}, {"predicate": "is", "source": "metagpt/config.py:Config:workspace_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:workspace_path", "target": "workspace_path : Path"}, {"predicate": "is", "source": "metagpt/config.py:Config:zhipuai_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:Config:zhipuai_api_key", "target": "zhipuai_api_key"}, {"predicate": "is", "source": "metagpt/config.py:Config:get", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/config.py:Config:get", "target": "get(key)"}, {"predicate": "is", "source": "metagpt/config.py:Config:get_default_llm_provider_enum", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/config.py:Config:get_default_llm_provider_enum", "target": "get_default_llm_provider_enum(): LLMProviderEnum"}, {"predicate": "is", "source": "metagpt/config.py:Config:get_model_name", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/config.py:Config:get_model_name", "target": "get_model_name(provider): str"}, {"predicate": "is", "source": "metagpt/config.py:Config:new_environ", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/config.py:Config:new_environ", "target": "new_environ()"}, {"predicate": "is", "source": "metagpt/config.py:Config:set_context", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/config.py:Config:set_context", "target": "set_context(options: dict)"}, {"predicate": "is", "source": "metagpt/config.py:Config:update_via_cli", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/config.py:Config:update_via_cli", "target": "update_via_cli(project_path, project_name, inc, reqa_file, max_auto_summarize_code)"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/openai_text_to_embedding.py", "target": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:Config"}, {"predicate": "has_class", "source": "metagpt/tools/openai_text_to_embedding.py", "target": "metagpt/tools/openai_text_to_embedding.py:Embedding"}, {"predicate": "has_class", "source": "metagpt/tools/openai_text_to_embedding.py", "target": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding"}, {"predicate": "has_class", "source": "metagpt/tools/openai_text_to_embedding.py", "target": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding"}, {"predicate": "has_class", "source": "metagpt/tools/openai_text_to_embedding.py", "target": "metagpt/tools/openai_text_to_embedding.py:Usage"}, {"predicate": "has_function", "source": "metagpt/tools/openai_text_to_embedding.py", "target": "metagpt/tools/openai_text_to_embedding.py:oas3_openai_text_to_embedding"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:Config", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:Config", "target": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:Config:alias"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:Config:alias", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:Config:alias", "target": "alias : dict"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:Config", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/memory/brain_memory.py:BrainMemory:Config", "target": "metagpt/memory/brain_memory.py:BrainMemory:Config:arbitrary_types_allowed"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:Config:arbitrary_types_allowed", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/brain_memory.py:BrainMemory:Config:arbitrary_types_allowed", "target": "arbitrary_types_allowed : bool"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:TreeofThought:Config", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot.py:TreeofThought:Config", "target": "metagpt/strategy/tot.py:TreeofThought:Config:arbitrary_types_allowed"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:TreeofThought:Config:arbitrary_types_allowed", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot.py:TreeofThought:Config:arbitrary_types_allowed", "target": "arbitrary_types_allowed : bool"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/cost_manager.py", "target": "metagpt/utils/cost_manager.py:CostManager"}, {"predicate": "has_class", "source": "metagpt/utils/cost_manager.py", "target": "metagpt/utils/cost_manager.py:Costs"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "metagpt/utils/cost_manager.py:CostManager:max_budget"}, {"predicate": "has_class_property", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "metagpt/utils/cost_manager.py:CostManager:total_budget"}, {"predicate": "has_class_property", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "metagpt/utils/cost_manager.py:CostManager:total_completion_tokens"}, {"predicate": "has_class_property", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "metagpt/utils/cost_manager.py:CostManager:total_cost"}, {"predicate": "has_class_property", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "metagpt/utils/cost_manager.py:CostManager:total_prompt_tokens"}, {"predicate": "has_class_function", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "metagpt/utils/cost_manager.py:CostManager:get_costs"}, {"predicate": "has_class_function", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "metagpt/utils/cost_manager.py:CostManager:get_total_completion_tokens"}, {"predicate": "has_class_function", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "metagpt/utils/cost_manager.py:CostManager:get_total_cost"}, {"predicate": "has_class_function", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "metagpt/utils/cost_manager.py:CostManager:get_total_prompt_tokens"}, {"predicate": "has_class_function", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "metagpt/utils/cost_manager.py:CostManager:update_cost"}, {"predicate": "isCompositeOf", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "metagpt/config.py:Config"}, {"predicate": "isCompositeOn", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "metagpt/config.py:Config:cost_manager"}, {"predicate": "has_page_info", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "{\"lineno\":24,\"end_lineno\":82,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CostManager\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/cost_manager.py:CostManager", "target": "{\"name\":\"CostManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"max_budget\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"},{\"name\":\"total_budget\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"},{\"name\":\"total_completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"total_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"},{\"name\":\"total_prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Costs\"},{\"name\":\"get_total_completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get_total_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get_total_prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"update_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:CostManager:max_budget", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/cost_manager.py:CostManager:max_budget", "target": "max_budget : float"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:CostManager:total_budget", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/cost_manager.py:CostManager:total_budget", "target": "total_budget : float"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:CostManager:total_completion_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/cost_manager.py:CostManager:total_completion_tokens", "target": "total_completion_tokens : int"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:CostManager:total_cost", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/cost_manager.py:CostManager:total_cost", "target": "total_cost : float"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:CostManager:total_prompt_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/cost_manager.py:CostManager:total_prompt_tokens", "target": "total_prompt_tokens : int"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:CostManager:get_costs", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/cost_manager.py:CostManager:get_costs", "target": "get_costs(): Costs"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:CostManager:get_total_completion_tokens", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/cost_manager.py:CostManager:get_total_completion_tokens", "target": "get_total_completion_tokens()"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:CostManager:get_total_cost", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/cost_manager.py:CostManager:get_total_cost", "target": "get_total_cost()"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:CostManager:get_total_prompt_tokens", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/cost_manager.py:CostManager:get_total_prompt_tokens", "target": "get_total_prompt_tokens()"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:CostManager:update_cost", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/cost_manager.py:CostManager:update_cost", "target": "update_cost(prompt_tokens, completion_tokens, model)"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:Costs", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/cost_manager.py:Costs", "target": "metagpt/utils/cost_manager.py:Costs:total_budget"}, {"predicate": "has_class_property", "source": "metagpt/utils/cost_manager.py:Costs", "target": "metagpt/utils/cost_manager.py:Costs:total_completion_tokens"}, {"predicate": "has_class_property", "source": "metagpt/utils/cost_manager.py:Costs", "target": "metagpt/utils/cost_manager.py:Costs:total_cost"}, {"predicate": "has_class_property", "source": "metagpt/utils/cost_manager.py:Costs", "target": "metagpt/utils/cost_manager.py:Costs:total_prompt_tokens"}, {"predicate": "has_page_info", "source": "metagpt/utils/cost_manager.py:Costs", "target": "{\"lineno\":17,\"end_lineno\":21,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Costs\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/cost_manager.py:Costs", "target": "{\"name\":\"Costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"total_budget\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"},{\"name\":\"total_completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"total_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"},{\"name\":\"total_prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:Costs:total_budget", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/cost_manager.py:Costs:total_budget", "target": "total_budget : float"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:Costs:total_completion_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/cost_manager.py:Costs:total_completion_tokens", "target": "total_completion_tokens : int"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:Costs:total_cost", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/cost_manager.py:Costs:total_cost", "target": "total_cost : float"}, {"predicate": "is", "source": "metagpt/utils/cost_manager.py:Costs:total_prompt_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/cost_manager.py:Costs:total_prompt_tokens", "target": "total_prompt_tokens : int"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/custom_decoder.py", "target": "metagpt/utils/custom_decoder.py:CustomDecoder"}, {"predicate": "has_function", "source": "metagpt/utils/custom_decoder.py", "target": "metagpt/utils/custom_decoder.py:py_make_scanner"}, {"predicate": "has_function", "source": "metagpt/utils/custom_decoder.py", "target": "metagpt/utils/custom_decoder.py:JSONObject"}, {"predicate": "has_function", "source": "metagpt/utils/custom_decoder.py", "target": "metagpt/utils/custom_decoder.py:py_scanstring"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:CustomDecoder", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/custom_decoder.py:CustomDecoder", "target": "metagpt/utils/custom_decoder.py:CustomDecoder:parse_object"}, {"predicate": "has_class_property", "source": "metagpt/utils/custom_decoder.py:CustomDecoder", "target": "metagpt/utils/custom_decoder.py:CustomDecoder:parse_string"}, {"predicate": "has_class_property", "source": "metagpt/utils/custom_decoder.py:CustomDecoder", "target": "metagpt/utils/custom_decoder.py:CustomDecoder:scan_once"}, {"predicate": "has_class_function", "source": "metagpt/utils/custom_decoder.py:CustomDecoder", "target": "metagpt/utils/custom_decoder.py:CustomDecoder:decode"}, {"predicate": "has_class_function", "source": "metagpt/utils/custom_decoder.py:CustomDecoder", "target": "metagpt/utils/custom_decoder.py:CustomDecoder:__init__"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:CustomDecoder", "target": "{\"lineno\":273,\"end_lineno\":297,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CustomDecoder\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/custom_decoder.py:CustomDecoder", "target": "{\"name\":\"CustomDecoder\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"parse_object\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"parse_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"scan_once\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"decode\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"s\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"_w\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:CustomDecoder:parse_object", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/custom_decoder.py:CustomDecoder:parse_object", "target": "parse_object"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:CustomDecoder:parse_string", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/custom_decoder.py:CustomDecoder:parse_string", "target": "parse_string"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:CustomDecoder:scan_once", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/custom_decoder.py:CustomDecoder:scan_once", "target": "scan_once"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:CustomDecoder:decode", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/custom_decoder.py:CustomDecoder:decode", "target": "decode(s, _w)"}, {"predicate": "is", "source": "metagpt/roles/customer_service.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/customer_service.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/customer_service.py", "target": "metagpt/roles/customer_service.py:CustomerService"}, {"predicate": "is", "source": "metagpt/roles/customer_service.py:CustomerService", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/customer_service.py:CustomerService", "target": "metagpt/roles/customer_service.py:CustomerService:desc"}, {"predicate": "has_class_property", "source": "metagpt/roles/customer_service.py:CustomerService", "target": "metagpt/roles/customer_service.py:CustomerService:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/customer_service.py:CustomerService", "target": "metagpt/roles/customer_service.py:CustomerService:profile"}, {"predicate": "has_class_property", "source": "metagpt/roles/customer_service.py:CustomerService", "target": "metagpt/roles/customer_service.py:CustomerService:store"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/customer_service.py:CustomerService", "target": "metagpt/roles/sales.py:Sales"}, {"predicate": "has_page_info", "source": "metagpt/roles/customer_service.py:CustomerService", "target": "{\"lineno\":27,\"end_lineno\":31,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"CustomerService\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/customer_service.py:CustomerService", "target": "{\"name\":\"CustomerService\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"store\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[BaseStore] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/roles/customer_service.py:CustomerService:desc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/customer_service.py:CustomerService:desc", "target": "desc : str"}, {"predicate": "is", "source": "metagpt/roles/customer_service.py:CustomerService:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/customer_service.py:CustomerService:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/customer_service.py:CustomerService:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/customer_service.py:CustomerService:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/customer_service.py:CustomerService:store", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/customer_service.py:CustomerService:store", "target": "store : Optional[BaseStore]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_ddg.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/search_engine_ddg.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/search_engine_ddg.py", "target": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper"}, {"predicate": "is", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper", "target": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:ddgs"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper", "target": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:executor"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper", "target": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:loop"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper", "target": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:run"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper", "target": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:__init__"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper", "target": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:_search_from_ddgs"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper", "target": "{\"lineno\":21,\"end_lineno\":96,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DDGAPIWrapper\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper", "target": "{\"name\":\"DDGAPIWrapper\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"ddgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"DDGS \",\"default_value\":\"\"},{\"name\":\"executor\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"loop\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"as_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Literal[True]\",\"default_value\":\"\"},{\"name\":\"focus\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str] \\\\| None\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_search_from_ddgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:ddgs", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:ddgs", "target": "ddgs : DDGS"}, {"predicate": "is", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:executor", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:executor", "target": "executor : NoneType"}, {"predicate": "is", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:loop", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:loop", "target": "loop : NoneType"}, {"predicate": "is", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:run", "target": "run(query: str, max_results: int, as_string: Literal[True], focus: list[str] \\| None): str"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:DFSSolver", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot.py:DFSSolver", "target": "metagpt/strategy/tot.py:DFSSolver:thought_tree"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:DFSSolver", "target": "metagpt/strategy/tot.py:DFSSolver:solve"}, {"predicate": "isGeneralizeOf", "source": "metagpt/strategy/tot.py:DFSSolver", "target": "metagpt/strategy/tot.py:ThoughtSolverBase"}, {"predicate": "isCompositeOf", "source": "metagpt/strategy/tot.py:DFSSolver", "target": "metagpt/strategy/tot.py:TreeofThought"}, {"predicate": "isCompositeOn", "source": "metagpt/strategy/tot.py:DFSSolver", "target": "metagpt/strategy/tot.py:TreeofThought:solver"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:DFSSolver", "target": "metagpt/strategy/tot.py:DFSSolver:_dfs"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:DFSSolver", "target": "{\"lineno\":180,\"end_lineno\":227,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DFSSolver\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/strategy/tot.py:DFSSolver", "target": "{\"name\":\"DFSSolver\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"thought_tree\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"solve\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"init_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"root\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_dfs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:DFSSolver:thought_tree", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot.py:DFSSolver:thought_tree", "target": "thought_tree"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:DFSSolver:solve", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/tot.py:DFSSolver:solve", "target": "solve(init_prompt, root)"}, {"predicate": "is", "source": "metagpt/tools/search_engine_meilisearch.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/search_engine_meilisearch.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/search_engine_meilisearch.py", "target": "metagpt/tools/search_engine_meilisearch.py:DataSource"}, {"predicate": "has_class", "source": "metagpt/tools/search_engine_meilisearch.py", "target": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine"}, {"predicate": "is", "source": "metagpt/tools/search_engine_meilisearch.py:DataSource", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_meilisearch.py:DataSource", "target": "metagpt/tools/search_engine_meilisearch.py:DataSource:name"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_meilisearch.py:DataSource", "target": "metagpt/tools/search_engine_meilisearch.py:DataSource:url"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_meilisearch.py:DataSource", "target": "metagpt/tools/search_engine_meilisearch.py:DataSource:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_meilisearch.py:DataSource", "target": "{\"lineno\":17,\"end_lineno\":20,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DataSource\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/search_engine_meilisearch.py:DataSource", "target": "{\"name\":\"DataSource\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/search_engine_meilisearch.py:DataSource:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_meilisearch.py:DataSource:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/tools/search_engine_meilisearch.py:DataSource:url", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_meilisearch.py:DataSource:url", "target": "url : str"}, {"predicate": "is", "source": "metagpt/actions/debug_error.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/debug_error.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/debug_error.py", "target": "metagpt/actions/debug_error.py:DebugError"}, {"predicate": "is", "source": "metagpt/actions/debug_error.py:DebugError", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/debug_error.py:DebugError", "target": "metagpt/actions/debug_error.py:DebugError:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/debug_error.py:DebugError", "target": "metagpt/actions/debug_error.py:DebugError:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/debug_error.py:DebugError", "target": "metagpt/actions/debug_error.py:DebugError:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/debug_error.py:DebugError", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:DebugError", "target": "{\"lineno\":51,\"end_lineno\":83,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DebugError\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/debug_error.py:DebugError", "target": "{\"name\":\"DebugError\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"}]}"}, {"predicate": "is", "source": "metagpt/actions/debug_error.py:DebugError:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/debug_error.py:DebugError:context", "target": "context"}, {"predicate": "is", "source": "metagpt/actions/debug_error.py:DebugError:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/debug_error.py:DebugError:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/debug_error.py:DebugError:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/debug_error.py:DebugError:run", "target": "run(): str"}, {"predicate": "is", "source": "metagpt/utils/dependency_file.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/dependency_file.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/dependency_file.py", "target": "metagpt/utils/dependency_file.py:DependencyFile"}, {"predicate": "is", "source": "metagpt/utils/dependency_file.py:DependencyFile", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/utils/dependency_file.py:DependencyFile", "target": "metagpt/utils/dependency_file.py:DependencyFile:exists"}, {"predicate": "has_class_function", "source": "metagpt/utils/dependency_file.py:DependencyFile", "target": "metagpt/utils/dependency_file.py:DependencyFile:delete_file"}, {"predicate": "has_class_function", "source": "metagpt/utils/dependency_file.py:DependencyFile", "target": "metagpt/utils/dependency_file.py:DependencyFile:get"}, {"predicate": "has_class_function", "source": "metagpt/utils/dependency_file.py:DependencyFile", "target": "metagpt/utils/dependency_file.py:DependencyFile:load"}, {"predicate": "has_class_function", "source": "metagpt/utils/dependency_file.py:DependencyFile", "target": "metagpt/utils/dependency_file.py:DependencyFile:save"}, {"predicate": "has_class_function", "source": "metagpt/utils/dependency_file.py:DependencyFile", "target": "metagpt/utils/dependency_file.py:DependencyFile:update"}, {"predicate": "isCompositeOf", "source": "metagpt/utils/dependency_file.py:DependencyFile", "target": "metagpt/utils/git_repository.py:GitRepository"}, {"predicate": "isCompositeOn", "source": "metagpt/utils/dependency_file.py:DependencyFile", "target": "metagpt/utils/git_repository.py:GitRepository:_dependency"}, {"predicate": "has_class_function", "source": "metagpt/utils/dependency_file.py:DependencyFile", "target": "metagpt/utils/dependency_file.py:DependencyFile:__init__"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:DependencyFile", "target": "{\"lineno\":21,\"end_lineno\":102,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DependencyFile\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/dependency_file.py:DependencyFile", "target": "{\"name\":\"DependencyFile\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"exists\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"delete_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"load\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"save\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"update\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"dependencies\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Set[Path \\\\| str]\",\"default_value\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/dependency_file.py:DependencyFile:exists", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/dependency_file.py:DependencyFile:exists", "target": "exists"}, {"predicate": "is", "source": "metagpt/utils/dependency_file.py:DependencyFile:exists", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/dependency_file.py:DependencyFile:delete_file", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/dependency_file.py:DependencyFile:delete_file", "target": "delete_file()"}, {"predicate": "is", "source": "metagpt/utils/dependency_file.py:DependencyFile:get", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/dependency_file.py:DependencyFile:get", "target": "get(filename: Path \\| str, persist)"}, {"predicate": "is", "source": "metagpt/utils/dependency_file.py:DependencyFile:load", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/dependency_file.py:DependencyFile:load", "target": "load()"}, {"predicate": "is", "source": "metagpt/utils/dependency_file.py:DependencyFile:save", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/dependency_file.py:DependencyFile:save", "target": "save()"}, {"predicate": "is", "source": "metagpt/utils/dependency_file.py:DependencyFile:update", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/dependency_file.py:DependencyFile:update", "target": "update(filename: Path \\| str, dependencies: Set[Path \\| str], persist)"}, {"predicate": "is", "source": "metagpt/actions/design_api_review.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/design_api_review.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/design_api_review.py", "target": "metagpt/actions/design_api_review.py:DesignReview"}, {"predicate": "is", "source": "metagpt/actions/design_api_review.py:DesignReview", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/design_api_review.py:DesignReview", "target": "metagpt/actions/design_api_review.py:DesignReview:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/design_api_review.py:DesignReview", "target": "metagpt/actions/design_api_review.py:DesignReview:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/design_api_review.py:DesignReview", "target": "metagpt/actions/design_api_review.py:DesignReview:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/design_api_review.py:DesignReview", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_review.py:DesignReview", "target": "{\"lineno\":14,\"end_lineno\":26,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DesignReview\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/design_api_review.py:DesignReview", "target": "{\"name\":\"DesignReview\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prd\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"api_design\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/design_api_review.py:DesignReview:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/design_api_review.py:DesignReview:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/design_api_review.py:DesignReview:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/design_api_review.py:DesignReview:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/design_api_review.py:DesignReview:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/design_api_review.py:DesignReview:run", "target": "run(prd, api_design)"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/di_graph_repository.py", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:pathname"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:root"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:insert"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:json"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:load"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:load_from"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:save"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:select"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:update"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:upsert"}, {"predicate": "isGeneralizeOf", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:__init__"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:upsert"}, {"predicate": "has_class_function", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "metagpt/utils/di_graph_repository.py:DiGraphRepository:update"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "{\"lineno\":21,\"end_lineno\":82,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DiGraphRepository\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository", "target": "{\"name\":\"DiGraphRepository\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"pathname\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"root\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"insert\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"json\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"},{\"name\":\"load\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"pathname\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str \\\\| Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"load_from\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"pathname\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str \\\\| Path\",\"default_value\":\"\"}],\"return_type\":\"GraphRepository\"},{\"name\":\"save\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str \\\\| Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"select\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"List[SPO]\"},{\"name\":\"update\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"upsert\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"upsert\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"update\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:pathname", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:pathname", "target": "pathname"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:pathname", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:root", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:root", "target": "root"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:root", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:insert", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:insert", "target": "insert(subject: str, predicate: str, object_: str)"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:json", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:json", "target": "json(): str"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:load", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:load", "target": "load(pathname: str \\| Path)"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:load_from", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:load_from", "target": "load_from(pathname: str \\| Path): GraphRepository"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:save", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:save", "target": "save(path: str \\| Path)"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:select", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:select", "target": "select(subject: str, predicate: str, object_: str): List[SPO]"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:update", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:update", "target": "update(subject: str, predicate: str, object_: str)"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:upsert", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:upsert", "target": "upsert(subject: str, predicate: str, object_: str)"}, {"predicate": "is", "source": "metagpt/utils/pycst.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/pycst.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/pycst.py", "target": "metagpt/utils/pycst.py:DocstringCollector"}, {"predicate": "has_class", "source": "metagpt/utils/pycst.py", "target": "metagpt/utils/pycst.py:DocstringTransformer"}, {"predicate": "has_function", "source": "metagpt/utils/pycst.py", "target": "metagpt/utils/pycst.py:get_docstring_statement"}, {"predicate": "has_function", "source": "metagpt/utils/pycst.py", "target": "metagpt/utils/pycst.py:has_decorator"}, {"predicate": "has_function", "source": "metagpt/utils/pycst.py", "target": "metagpt/utils/pycst.py:merge_docstring"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "metagpt/utils/pycst.py:DocstringCollector:docstrings"}, {"predicate": "has_class_property", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "metagpt/utils/pycst.py:DocstringCollector:stack"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "metagpt/utils/pycst.py:DocstringCollector:leave_ClassDef"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "metagpt/utils/pycst.py:DocstringCollector:leave_FunctionDef"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "metagpt/utils/pycst.py:DocstringCollector:leave_Module"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "metagpt/utils/pycst.py:DocstringCollector:visit_ClassDef"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "metagpt/utils/pycst.py:DocstringCollector:visit_FunctionDef"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "metagpt/utils/pycst.py:DocstringCollector:visit_Module"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "metagpt/utils/pycst.py:DocstringCollector:__init__"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "metagpt/utils/pycst.py:DocstringCollector:_leave"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "{\"lineno\":60,\"end_lineno\":98,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DocstringCollector\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/pycst.py:DocstringCollector", "target": "{\"name\":\"DocstringCollector\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"docstrings\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[tuple[str, ...], cst.SimpleStatementLine] \",\"default_value\":\"\"},{\"name\":\"stack\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[str] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"leave_ClassDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.ClassDef\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"leave_FunctionDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.FunctionDef\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"leave_Module\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.Module\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"visit_ClassDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.ClassDef\",\"default_value\":\"\"}],\"return_type\":\"bool \\\\| None\"},{\"name\":\"visit_FunctionDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.FunctionDef\",\"default_value\":\"\"}],\"return_type\":\"bool \\\\| None\"},{\"name\":\"visit_Module\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.Module\",\"default_value\":\"\"}],\"return_type\":\"bool \\\\| None\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_leave\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringCollector:docstrings", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/pycst.py:DocstringCollector:docstrings", "target": "docstrings : dict[tuple[str, ...], cst.SimpleStatementLine]"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringCollector:stack", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/pycst.py:DocstringCollector:stack", "target": "stack : list[str]"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringCollector:leave_ClassDef", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/pycst.py:DocstringCollector:leave_ClassDef", "target": "leave_ClassDef(node: cst.ClassDef): None"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringCollector:leave_FunctionDef", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/pycst.py:DocstringCollector:leave_FunctionDef", "target": "leave_FunctionDef(node: cst.FunctionDef): None"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringCollector:leave_Module", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/pycst.py:DocstringCollector:leave_Module", "target": "leave_Module(node: cst.Module): None"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringCollector:visit_ClassDef", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/pycst.py:DocstringCollector:visit_ClassDef", "target": "visit_ClassDef(node: cst.ClassDef): bool \\| None"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringCollector:visit_FunctionDef", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/pycst.py:DocstringCollector:visit_FunctionDef", "target": "visit_FunctionDef(node: cst.FunctionDef): bool \\| None"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringCollector:visit_Module", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/pycst.py:DocstringCollector:visit_Module", "target": "visit_Module(node: cst.Module): bool \\| None"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "metagpt/utils/pycst.py:DocstringTransformer:docstrings"}, {"predicate": "has_class_property", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "metagpt/utils/pycst.py:DocstringTransformer:stack"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "metagpt/utils/pycst.py:DocstringTransformer:leave_ClassDef"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "metagpt/utils/pycst.py:DocstringTransformer:leave_FunctionDef"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "metagpt/utils/pycst.py:DocstringTransformer:leave_Module"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "metagpt/utils/pycst.py:DocstringTransformer:visit_ClassDef"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "metagpt/utils/pycst.py:DocstringTransformer:visit_FunctionDef"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "metagpt/utils/pycst.py:DocstringTransformer:visit_Module"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "metagpt/utils/pycst.py:DocstringTransformer:__init__"}, {"predicate": "has_class_function", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "metagpt/utils/pycst.py:DocstringTransformer:_leave"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "{\"lineno\":101,\"end_lineno\":156,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DocstringTransformer\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/pycst.py:DocstringTransformer", "target": "{\"name\":\"DocstringTransformer\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"docstrings\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[tuple[str, ...], cst.SimpleStatementLine] \",\"default_value\":\"\"},{\"name\":\"stack\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[str] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"leave_ClassDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"original_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.ClassDef\",\"default_value\":\"\"},{\"name\":\"updated_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.ClassDef\",\"default_value\":\"\"}],\"return_type\":\"cst.CSTNode\"},{\"name\":\"leave_FunctionDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"original_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.FunctionDef\",\"default_value\":\"\"},{\"name\":\"updated_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.FunctionDef\",\"default_value\":\"\"}],\"return_type\":\"cst.CSTNode\"},{\"name\":\"leave_Module\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"original_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Module\",\"default_value\":\"\"},{\"name\":\"updated_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Module\",\"default_value\":\"\"}],\"return_type\":\"Module\"},{\"name\":\"visit_ClassDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.ClassDef\",\"default_value\":\"\"}],\"return_type\":\"bool \\\\| None\"},{\"name\":\"visit_FunctionDef\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.FunctionDef\",\"default_value\":\"\"}],\"return_type\":\"bool \\\\| None\"},{\"name\":\"visit_Module\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"cst.Module\",\"default_value\":\"\"}],\"return_type\":\"bool \\\\| None\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_leave\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringTransformer:docstrings", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/pycst.py:DocstringTransformer:docstrings", "target": "docstrings : dict[tuple[str, ...], cst.SimpleStatementLine]"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringTransformer:stack", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/pycst.py:DocstringTransformer:stack", "target": "stack : list[str]"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringTransformer:leave_ClassDef", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/pycst.py:DocstringTransformer:leave_ClassDef", "target": "leave_ClassDef(original_node: cst.ClassDef, updated_node: cst.ClassDef): cst.CSTNode"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringTransformer:leave_FunctionDef", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/pycst.py:DocstringTransformer:leave_FunctionDef", "target": "leave_FunctionDef(original_node: cst.FunctionDef, updated_node: cst.FunctionDef): cst.CSTNode"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringTransformer:leave_Module", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/pycst.py:DocstringTransformer:leave_Module", "target": "leave_Module(original_node: Module, updated_node: Module): Module"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringTransformer:visit_ClassDef", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/pycst.py:DocstringTransformer:visit_ClassDef", "target": "visit_ClassDef(node: cst.ClassDef): bool \\| None"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringTransformer:visit_FunctionDef", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/pycst.py:DocstringTransformer:visit_FunctionDef", "target": "visit_FunctionDef(node: cst.FunctionDef): bool \\| None"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringTransformer:visit_Module", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/pycst.py:DocstringTransformer:visit_Module", "target": "visit_Module(node: cst.Module): bool \\| None"}, {"predicate": "is", "source": "metagpt/document.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/document.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/document.py", "target": "metagpt/document.py:Document"}, {"predicate": "has_class", "source": "metagpt/document.py", "target": "metagpt/document.py:DocumentStatus"}, {"predicate": "has_class", "source": "metagpt/document.py", "target": "metagpt/document.py:IndexableDocument"}, {"predicate": "has_class", "source": "metagpt/document.py", "target": "metagpt/document.py:Repo"}, {"predicate": "has_class", "source": "metagpt/document.py", "target": "metagpt/document.py:RepoMetadata"}, {"predicate": "has_function", "source": "metagpt/document.py", "target": "metagpt/document.py:validate_cols"}, {"predicate": "has_function", "source": "metagpt/document.py", "target": "metagpt/document.py:read_data"}, {"predicate": "is", "source": "metagpt/document.py:Document", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/document.py:Document", "target": "metagpt/document.py:Document:author"}, {"predicate": "has_class_property", "source": "metagpt/document.py:Document", "target": "metagpt/document.py:Document:content"}, {"predicate": "has_class_property", "source": "metagpt/document.py:Document", "target": "metagpt/document.py:Document:name"}, {"predicate": "has_class_property", "source": "metagpt/document.py:Document", "target": "metagpt/document.py:Document:path"}, {"predicate": "has_class_property", "source": "metagpt/document.py:Document", "target": "metagpt/document.py:Document:reviews"}, {"predicate": "has_class_property", "source": "metagpt/document.py:Document", "target": "metagpt/document.py:Document:status"}, {"predicate": "has_class_function", "source": "metagpt/document.py:Document", "target": "metagpt/document.py:Document:from_path"}, {"predicate": "has_class_function", "source": "metagpt/document.py:Document", "target": "metagpt/document.py:Document:from_text"}, {"predicate": "has_class_function", "source": "metagpt/document.py:Document", "target": "metagpt/document.py:Document:persist"}, {"predicate": "has_class_function", "source": "metagpt/document.py:Document", "target": "metagpt/document.py:Document:to_path"}, {"predicate": "has_page_info", "source": "metagpt/document.py:Document", "target": "{\"lineno\":62,\"end_lineno\":111,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Document\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/document.py:Document", "target": "{\"name\":\"Document\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"author\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Path \",\"default_value\":\"\"},{\"name\":\"reviews\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list \",\"default_value\":\"\"},{\"name\":\"status\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"from_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"from_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[Path]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"to_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[Path]\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/document.py:Document:author", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:Document:author", "target": "author : str"}, {"predicate": "is", "source": "metagpt/document.py:Document:content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:Document:content", "target": "content : str"}, {"predicate": "is", "source": "metagpt/document.py:Document:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:Document:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/document.py:Document:path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:Document:path", "target": "path : Path"}, {"predicate": "is", "source": "metagpt/document.py:Document:reviews", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:Document:reviews", "target": "reviews : list"}, {"predicate": "is", "source": "metagpt/document.py:Document:status", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:Document:status", "target": "status"}, {"predicate": "is", "source": "metagpt/document.py:Document:from_path", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document.py:Document:from_path", "target": "from_path(path: Path)"}, {"predicate": "is", "source": "metagpt/document.py:Document:from_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document.py:Document:from_text", "target": "from_text(text: str, path: Optional[Path])"}, {"predicate": "is", "source": "metagpt/document.py:Document:persist", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document.py:Document:persist", "target": "persist()"}, {"predicate": "is", "source": "metagpt/document.py:Document:to_path", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document.py:Document:to_path", "target": "to_path(path: Optional[Path])"}, {"predicate": "is", "source": "metagpt/schema.py:Document", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:Document", "target": "metagpt/schema.py:Document:content"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:Document", "target": "metagpt/schema.py:Document:filename"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Document", "target": "metagpt/schema.py:Document:full_path"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:Document", "target": "metagpt/schema.py:Document:root_path"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Document", "target": "metagpt/schema.py:Document:root_relative_path"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Document", "target": "metagpt/schema.py:Document:get_meta"}, {"predicate": "isCompositeOf", "source": "metagpt/schema.py:Document", "target": "metagpt/actions/write_code.py:WriteCode"}, {"predicate": "isCompositeOn", "source": "metagpt/schema.py:Document", "target": "metagpt/actions/write_code.py:WriteCode:context"}, {"predicate": "isCompositeOf", "source": "metagpt/schema.py:Document", "target": "metagpt/schema.py:CodingContext"}, {"predicate": "isCompositeOn", "source": "metagpt/schema.py:Document", "target": "metagpt/schema.py:CodingContext:code_doc"}, {"predicate": "isCompositeOf", "source": "metagpt/schema.py:Document", "target": "metagpt/schema.py:TestingContext"}, {"predicate": "isCompositeOn", "source": "metagpt/schema.py:Document", "target": "metagpt/schema.py:TestingContext:code_doc"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Document", "target": "metagpt/schema.py:Document:__str__"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Document", "target": "metagpt/schema.py:Document:__repr__"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:Document", "target": "{\"lineno\":129,\"end_lineno\":164,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Document\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:Document", "target": "{\"name\":\"Document\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"root_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"full_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"root_relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get_meta\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Document\"},{\"name\":\"__str__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__repr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/schema.py:Document:content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Document:content", "target": "content : str"}, {"predicate": "is", "source": "metagpt/schema.py:Document:filename", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Document:filename", "target": "filename : str"}, {"predicate": "is", "source": "metagpt/schema.py:Document:full_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Document:full_path", "target": "full_path"}, {"predicate": "is", "source": "metagpt/schema.py:Document:full_path", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:Document:root_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Document:root_path", "target": "root_path : str"}, {"predicate": "is", "source": "metagpt/schema.py:Document:root_relative_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Document:root_relative_path", "target": "root_relative_path"}, {"predicate": "is", "source": "metagpt/schema.py:Document:root_relative_path", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:Document:get_meta", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:Document:get_meta", "target": "get_meta(): Document"}, {"predicate": "is", "source": "metagpt/document.py:DocumentStatus", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/document.py:DocumentStatus", "target": "metagpt/document.py:DocumentStatus:name"}, {"predicate": "isCompositeOf", "source": "metagpt/document.py:DocumentStatus", "target": "metagpt/document.py:Document"}, {"predicate": "isCompositeOn", "source": "metagpt/document.py:DocumentStatus", "target": "metagpt/document.py:Document:status"}, {"predicate": "has_page_info", "source": "metagpt/document.py:DocumentStatus", "target": "{\"lineno\":53,\"end_lineno\":59,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"DocumentStatus\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/document.py:DocumentStatus", "target": "{\"name\":\"DocumentStatus\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/document.py:DocumentStatus:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:DocumentStatus:name", "target": "name"}, {"predicate": "is", "source": "metagpt/schema.py:Documents", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:Documents", "target": "metagpt/schema.py:Documents:docs"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:Documents", "target": "{\"lineno\":167,\"end_lineno\":174,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Documents\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:Documents", "target": "{\"name\":\"Documents\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"docs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict[str, Document] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/schema.py:Documents:docs", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Documents:docs", "target": "docs : Dict[str, Document]"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:Embedding", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/openai_text_to_embedding.py:Embedding", "target": "metagpt/tools/openai_text_to_embedding.py:Embedding:embedding"}, {"predicate": "has_class_property", "source": "metagpt/tools/openai_text_to_embedding.py:Embedding", "target": "metagpt/tools/openai_text_to_embedding.py:Embedding:index"}, {"predicate": "has_class_property", "source": "metagpt/tools/openai_text_to_embedding.py:Embedding", "target": "metagpt/tools/openai_text_to_embedding.py:Embedding:object"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:Embedding", "target": "{\"lineno\":20,\"end_lineno\":27,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Embedding\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/openai_text_to_embedding.py:Embedding", "target": "{\"name\":\"Embedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"embedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[float] \",\"default_value\":\"\"},{\"name\":\"index\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"object\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:Embedding:embedding", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/openai_text_to_embedding.py:Embedding:embedding", "target": "embedding : List[float]"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:Embedding:index", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/openai_text_to_embedding.py:Embedding:index", "target": "index : int"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:Embedding:object", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/openai_text_to_embedding.py:Embedding:object", "target": "object : str"}, {"predicate": "is", "source": "metagpt/roles/engineer.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/engineer.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/engineer.py", "target": "metagpt/roles/engineer.py:Engineer"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:code_todos"}, {"predicate": "has_class_property", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:constraints"}, {"predicate": "has_class_property", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:n_borg"}, {"predicate": "has_class_property", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:next_todo_action"}, {"predicate": "has_class_property", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:profile"}, {"predicate": "has_class_property", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:summarize_todos"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:todo"}, {"predicate": "has_class_property", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:use_code_review"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:__init__"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:_parse_tasks"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:_act_sp_with_cr"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:_act"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:_act_write_code"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:_act_summarize"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:_is_pass"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:_think"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:_new_coding_context"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:_new_coding_doc"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:_new_code_actions"}, {"predicate": "has_class_function", "source": "metagpt/roles/engineer.py:Engineer", "target": "metagpt/roles/engineer.py:Engineer:_new_summarize_actions"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:Engineer", "target": "{\"lineno\":58,\"end_lineno\":321,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Engineer\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/engineer.py:Engineer", "target": "{\"name\":\"Engineer\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"code_todos\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list \",\"default_value\":\"\"},{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"n_borg\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"next_todo_action\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"summarize_todos\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list \",\"default_value\":\"\"},{\"name\":\"use_code_review\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"todo\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_tasks\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act_sp_with_cr\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act_write_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act_summarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_is_pass\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_think\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_new_coding_context\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_new_coding_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_new_code_actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_new_summarize_actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:code_todos", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/engineer.py:Engineer:code_todos", "target": "code_todos : list"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/engineer.py:Engineer:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/engineer.py:Engineer:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:n_borg", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/engineer.py:Engineer:n_borg", "target": "n_borg : int"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/engineer.py:Engineer:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:next_todo_action", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/engineer.py:Engineer:next_todo_action", "target": "next_todo_action : str"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/engineer.py:Engineer:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:summarize_todos", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/engineer.py:Engineer:summarize_todos", "target": "summarize_todos : list"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:todo", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/engineer.py:Engineer:todo", "target": "todo"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:todo", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:use_code_review", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/engineer.py:Engineer:use_code_review", "target": "use_code_review : bool"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:EnronTemplate", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/tools/prompt_writer.py:EnronTemplate", "target": "metagpt/tools/prompt_writer.py:EnronTemplate:gen"}, {"predicate": "has_class_function", "source": "metagpt/tools/prompt_writer.py:EnronTemplate", "target": "metagpt/tools/prompt_writer.py:EnronTemplate:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/prompt_writer.py:EnronTemplate", "target": "{\"lineno\":77,\"end_lineno\":92,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"EnronTemplate\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/prompt_writer.py:EnronTemplate", "target": "{\"name\":\"EnronTemplate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"gen\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subj\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:EnronTemplate:gen", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/prompt_writer.py:EnronTemplate:gen", "target": "gen(subj)"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Entity", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Entity", "target": "metagpt/learn/skill_loader.py:Entity:name"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Entity", "target": "metagpt/learn/skill_loader.py:Entity:skills"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:Entity", "target": "{\"lineno\":53,\"end_lineno\":55,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Entity\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/learn/skill_loader.py:Entity", "target": "{\"name\":\"Entity\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"skills\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[Skill] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Entity:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Entity:name", "target": "name : Optional[str]"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Entity:skills", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Entity:skills", "target": "skills : List[Skill]"}, {"predicate": "is", "source": "metagpt/environment.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/environment.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/environment.py", "target": "metagpt/environment.py:Environment"}, {"predicate": "is", "source": "metagpt/environment.py:Environment", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:desc"}, {"predicate": "has_class_property", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:history"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:is_idle"}, {"predicate": "has_class_property", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:members"}, {"predicate": "has_class_property", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:model_config"}, {"predicate": "has_class_property", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:roles"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:add_role"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:add_roles"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:archive"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:deserialize"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:get_role"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:get_roles"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:get_subscription"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:init_roles"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:publish_message"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:role_names"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:run"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:serialize"}, {"predicate": "has_class_function", "source": "metagpt/environment.py:Environment", "target": "metagpt/environment.py:Environment:set_subscription"}, {"predicate": "isCompositeOf", "source": "metagpt/environment.py:Environment", "target": "metagpt/team.py:Team"}, {"predicate": "isCompositeOn", "source": "metagpt/environment.py:Environment", "target": "metagpt/team.py:Team:env"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:Environment", "target": "{\"lineno\":27,\"end_lineno\":168,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Environment\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/environment.py:Environment", "target": "{\"name\":\"Environment\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"history\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"members\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[Role, Set] \",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"roles\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[str, SerializeAsAny[Role]] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"is_idle\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"add_role\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Role\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"add_roles\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"roles\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Iterable[Role]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"archive\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"auto_archive\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"deserialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"Environment\"},{\"name\":\"get_role\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Role\"},{\"name\":\"get_roles\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict[str, Role]\"},{\"name\":\"get_subscription\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"obj\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"init_roles\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"publish_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"},{\"name\":\"peekable\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"}],\"return_type\":\"bool\"},{\"name\":\"role_names\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"list[str]\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"serialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_subscription\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"obj\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"tags\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:desc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/environment.py:Environment:desc", "target": "desc : str"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:history", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/environment.py:Environment:history", "target": "history : str"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:is_idle", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/environment.py:Environment:is_idle", "target": "is_idle"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:is_idle", "target": "class_function"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:members", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/environment.py:Environment:members", "target": "members : dict[Role, Set]"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/environment.py:Environment:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:roles", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/environment.py:Environment:roles", "target": "roles : dict[str, SerializeAsAny[Role]]"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:add_role", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:add_role", "target": "add_role(role: Role)"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:add_roles", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:add_roles", "target": "add_roles(roles: Iterable[Role])"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:archive", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:archive", "target": "archive(auto_archive)"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:deserialize", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:deserialize", "target": "deserialize(stg_path: Path): 'Environment'"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:get_role", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:get_role", "target": "get_role(name: str): Role"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:get_roles", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:get_roles", "target": "get_roles(): dict[str, Role]"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:get_subscription", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:get_subscription", "target": "get_subscription(obj)"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:init_roles", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:init_roles", "target": "init_roles()"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:publish_message", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:publish_message", "target": "publish_message(message: Message, peekable: bool): bool"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:role_names", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:role_names", "target": "role_names(): list[str]"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:run", "target": "run(k)"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:serialize", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:serialize", "target": "serialize(stg_path: Path)"}, {"predicate": "is", "source": "metagpt/environment.py:Environment:set_subscription", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/environment.py:Environment:set_subscription", "target": "set_subscription(obj, tags)"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Example", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Example", "target": "metagpt/learn/skill_loader.py:Example:answer"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Example", "target": "metagpt/learn/skill_loader.py:Example:ask"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:Example", "target": "{\"lineno\":19,\"end_lineno\":21,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Example\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/learn/skill_loader.py:Example", "target": "{\"name\":\"Example\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"answer\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"ask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Example:answer", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Example:answer", "target": "answer : str"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Example:ask", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Example:ask", "target": "ask : str"}, {"predicate": "is", "source": "metagpt/actions/execute_task.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/execute_task.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/execute_task.py", "target": "metagpt/actions/execute_task.py:ExecuteTask"}, {"predicate": "is", "source": "metagpt/actions/execute_task.py:ExecuteTask", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/execute_task.py:ExecuteTask", "target": "metagpt/actions/execute_task.py:ExecuteTask:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/execute_task.py:ExecuteTask", "target": "metagpt/actions/execute_task.py:ExecuteTask:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/execute_task.py:ExecuteTask", "target": "metagpt/actions/execute_task.py:ExecuteTask:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/execute_task.py:ExecuteTask", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/execute_task.py:ExecuteTask", "target": "metagpt/actions/execute_task.py:ExecuteTask:run"}, {"predicate": "has_page_info", "source": "metagpt/actions/execute_task.py:ExecuteTask", "target": "{\"lineno\":14,\"end_lineno\":19,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ExecuteTask\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/execute_task.py:ExecuteTask", "target": "{\"name\":\"ExecuteTask\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[Message] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/execute_task.py:ExecuteTask:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/execute_task.py:ExecuteTask:context", "target": "context : list[Message]"}, {"predicate": "is", "source": "metagpt/actions/execute_task.py:ExecuteTask:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/execute_task.py:ExecuteTask:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/execute_task.py:ExecuteTask:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/execute_task.py:ExecuteTask:run", "target": "run()"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/document_store/faiss_store.py", "target": "metagpt/document_store/faiss_store.py:FaissStore"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:content_col"}, {"predicate": "has_class_property", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:embedding"}, {"predicate": "has_class_property", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:meta_col"}, {"predicate": "has_class_property", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:store"}, {"predicate": "has_class_function", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:add"}, {"predicate": "has_class_function", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:asearch"}, {"predicate": "has_class_function", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:delete"}, {"predicate": "has_class_function", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:persist"}, {"predicate": "has_class_function", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:search"}, {"predicate": "has_class_function", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:write"}, {"predicate": "isGeneralizeOf", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/base_store.py:LocalStore"}, {"predicate": "has_class_function", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:__init__"}, {"predicate": "has_class_function", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:_load"}, {"predicate": "has_class_function", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:_write"}, {"predicate": "has_class_function", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "metagpt/document_store/faiss_store.py:FaissStore:delete"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "{\"lineno\":22,\"end_lineno\":77,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"FaissStore\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/document_store/faiss_store.py:FaissStore", "target": "{\"name\":\"FaissStore\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content_col\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"embedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"OpenAIEmbeddings \",\"default_value\":\"\"},{\"name\":\"meta_col\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"store\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"texts\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str]\",\"default_value\":\"\"}],\"return_type\":\"list[str]\"},{\"name\":\"asearch\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"delete\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"expand_cols\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"sep\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_load\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_write\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"delete\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:content_col", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/faiss_store.py:FaissStore:content_col", "target": "content_col : str"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:embedding", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/faiss_store.py:FaissStore:embedding", "target": "embedding : OpenAIEmbeddings"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:meta_col", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/faiss_store.py:FaissStore:meta_col", "target": "meta_col : str"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:store", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/faiss_store.py:FaissStore:store", "target": "store"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:add", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/faiss_store.py:FaissStore:add", "target": "add(texts: list[str]): list[str]"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:asearch", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/faiss_store.py:FaissStore:asearch", "target": "asearch()"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:delete", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/faiss_store.py:FaissStore:delete", "target": "delete()"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:persist", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/faiss_store.py:FaissStore:persist", "target": "persist()"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:search", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/faiss_store.py:FaissStore:search", "target": "search(query, expand_cols, sep)"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:write", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/faiss_store.py:FaissStore:write", "target": "write()"}, {"predicate": "is", "source": "metagpt/utils/file.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/file.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/file.py", "target": "metagpt/utils/file.py:File"}, {"predicate": "is", "source": "metagpt/utils/file.py:File", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/file.py:File", "target": "metagpt/utils/file.py:File:CHUNK_SIZE"}, {"predicate": "has_class_function", "source": "metagpt/utils/file.py:File", "target": "metagpt/utils/file.py:File:read"}, {"predicate": "has_class_function", "source": "metagpt/utils/file.py:File", "target": "metagpt/utils/file.py:File:write"}, {"predicate": "has_page_info", "source": "metagpt/utils/file.py:File", "target": "{\"lineno\":17,\"end_lineno\":70,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"File\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/file.py:File", "target": "{\"name\":\"File\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"CHUNK_SIZE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"read\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"file_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"},{\"name\":\"chunk_size\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"bytes\"},{\"name\":\"write\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"root_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bytes\",\"default_value\":\"\"}],\"return_type\":\"Path\"}]}"}, {"predicate": "is", "source": "metagpt/utils/file.py:File:CHUNK_SIZE", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/file.py:File:CHUNK_SIZE", "target": "CHUNK_SIZE : int"}, {"predicate": "is", "source": "metagpt/utils/file.py:File:read", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file.py:File:read", "target": "read(file_path: Path, chunk_size: int): bytes"}, {"predicate": "is", "source": "metagpt/utils/file.py:File:write", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file.py:File:write", "target": "write(root_path: Path, filename: str, content: bytes): Path"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/file_repository.py", "target": "metagpt/utils/file_repository.py:FileRepository"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:all_files"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:changed_files"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:root_path"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:workdir"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:delete"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:delete_file"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:get"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:get_all"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:get_all_files"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:get_change_dir_files"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:get_changed_dependency"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:get_dependency"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:get_file"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:new_filename"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:save"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:save_as"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:save_doc"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:save_file"}, {"predicate": "has_class_function", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "metagpt/utils/file_repository.py:FileRepository:__init__"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "{\"lineno\":26,\"end_lineno\":290,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"FileRepository\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/file_repository.py:FileRepository", "target": "{\"name\":\"FileRepository\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"all_files\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"changed_files\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"root_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"workdir\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"delete\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"delete_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"Document \\\\| None\"},{\"name\":\"get_all\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"List[Document]\"},{\"name\":\"get_all_files\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"List[Document]\"},{\"name\":\"get_change_dir_files\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"dir\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"List\"},{\"name\":\"get_changed_dependency\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"Set[str]\"},{\"name\":\"get_dependency\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"Set[str]\"},{\"name\":\"get_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"Document \\\\| None\"},{\"name\":\"new_filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"save\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"dependencies\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[str]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"save_as\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Document\",\"default_value\":\"\"},{\"name\":\"with_suffix\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"dependencies\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[str]\",\"default_value\":\"\"},{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"save_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Document\",\"default_value\":\"\"},{\"name\":\"with_suffix\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"dependencies\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[str]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"save_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"dependencies\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[str]\",\"default_value\":\"\"},{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:all_files", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/file_repository.py:FileRepository:all_files", "target": "all_files"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:all_files", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:changed_files", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/file_repository.py:FileRepository:changed_files", "target": "changed_files"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:changed_files", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:root_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/file_repository.py:FileRepository:root_path", "target": "root_path"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:root_path", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:workdir", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/file_repository.py:FileRepository:workdir", "target": "workdir"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:workdir", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:delete", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:delete", "target": "delete(filename: Path \\| str)"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:delete_file", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:delete_file", "target": "delete_file(filename: Path \\| str, relative_path: Path \\| str)"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:get", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:get", "target": "get(filename: Path \\| str): Document \\| None"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:get_all", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:get_all", "target": "get_all(): List[Document]"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:get_all_files", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:get_all_files", "target": "get_all_files(relative_path: Path \\| str): List[Document]"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:get_change_dir_files", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:get_change_dir_files", "target": "get_change_dir_files(dir: Path \\| str): List"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:get_changed_dependency", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:get_changed_dependency", "target": "get_changed_dependency(filename: Path \\| str): Set[str]"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:get_dependency", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:get_dependency", "target": "get_dependency(filename: Path \\| str): Set[str]"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:get_file", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:get_file", "target": "get_file(filename: Path \\| str, relative_path: Path \\| str): Document \\| None"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:new_filename", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:new_filename", "target": "new_filename()"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:save", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:save", "target": "save(filename: Path \\| str, content, dependencies: List[str])"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:save_as", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:save_as", "target": "save_as(doc: Document, with_suffix: str, dependencies: List[str], relative_path: Path \\| str)"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:save_doc", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:save_doc", "target": "save_doc(doc: Document, with_suffix: str, dependencies: List[str])"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:save_file", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/file_repository.py:FileRepository:save_file", "target": "save_file(filename: Path \\| str, content, dependencies: List[str], relative_path: Path \\| str)"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/fireworks_api.py", "target": "metagpt/provider/fireworks_api.py:FireworksCostManager"}, {"predicate": "has_class", "source": "metagpt/provider/fireworks_api.py", "target": "metagpt/provider/fireworks_api.py:FireworksLLM"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager", "target": "metagpt/provider/fireworks_api.py:FireworksCostManager:total_completion_tokens"}, {"predicate": "has_class_property", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager", "target": "metagpt/provider/fireworks_api.py:FireworksCostManager:total_cost"}, {"predicate": "has_class_property", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager", "target": "metagpt/provider/fireworks_api.py:FireworksCostManager:total_prompt_tokens"}, {"predicate": "has_class_function", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager", "target": "metagpt/provider/fireworks_api.py:FireworksCostManager:model_grade_token_costs"}, {"predicate": "has_class_function", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager", "target": "metagpt/provider/fireworks_api.py:FireworksCostManager:update_cost"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager", "target": "metagpt/utils/cost_manager.py:CostManager"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager", "target": "metagpt/provider/fireworks_api.py:FireworksLLM"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:_cost_manager"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager", "target": "{\"lineno\":32,\"end_lineno\":72,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"FireworksCostManager\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager", "target": "{\"name\":\"FireworksCostManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"total_completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"total_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"total_prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"model_grade_token_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"dict[str, float]\"},{\"name\":\"update_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager:total_completion_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager:total_completion_tokens", "target": "total_completion_tokens : int"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager:total_cost", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager:total_cost", "target": "total_cost"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager:total_prompt_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager:total_prompt_tokens", "target": "total_prompt_tokens : int"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager:model_grade_token_costs", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager:model_grade_token_costs", "target": "model_grade_token_costs(model: str): dict[str, float]"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager:update_cost", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/fireworks_api.py:FireworksCostManager:update_cost", "target": "update_cost(prompt_tokens: int, completion_tokens: int, model: str)"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:auto_max_tokens"}, {"predicate": "has_class_property", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:config"}, {"predicate": "has_class_property", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:is_azure"}, {"predicate": "has_class_property", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:model"}, {"predicate": "has_class_property", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:rpm"}, {"predicate": "has_class_function", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:acompletion_text"}, {"predicate": "has_class_function", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:get_costs"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/openai_api.py:OpenAILLM"}, {"predicate": "has_class_function", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:__init__"}, {"predicate": "has_class_function", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:__init_fireworks"}, {"predicate": "has_class_function", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:_make_client_kwargs"}, {"predicate": "has_class_function", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:_update_costs"}, {"predicate": "has_class_function", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "metagpt/provider/fireworks_api.py:FireworksLLM:_achat_completion_stream"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "{\"lineno\":76,\"end_lineno\":140,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"FireworksLLM\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/fireworks_api.py:FireworksLLM", "target": "{\"name\":\"FireworksLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"auto_max_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"is_azure\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"rpm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Costs\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init_fireworks\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_make_client_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion_stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:auto_max_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:auto_max_tokens", "target": "auto_max_tokens : bool"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:config", "target": "config"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:is_azure", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:is_azure", "target": "is_azure : bool"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:model", "target": "model"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:rpm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:rpm", "target": "rpm : int"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:acompletion_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:acompletion_text", "target": "acompletion_text(messages: list[dict], stream, timeout: int): str"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:get_costs", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:get_costs", "target": "get_costs(): Costs"}, {"predicate": "is", "source": "metagpt/actions/fix_bug.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/fix_bug.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/fix_bug.py", "target": "metagpt/actions/fix_bug.py:FixBug"}, {"predicate": "is", "source": "metagpt/actions/fix_bug.py:FixBug", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/fix_bug.py:FixBug", "target": "metagpt/actions/fix_bug.py:FixBug:name"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/fix_bug.py:FixBug", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/fix_bug.py:FixBug", "target": "{\"lineno\":10,\"end_lineno\":13,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"FixBug\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/fix_bug.py:FixBug", "target": "{\"name\":\"FixBug\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/actions/fix_bug.py:FixBug:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/fix_bug.py:FixBug:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator", "target": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen"}, {"predicate": "has_class_function", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator", "target": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen_chatbot_style"}, {"predicate": "has_class_function", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator", "target": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen_instruction_style"}, {"predicate": "has_class_function", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator", "target": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen_query_style"}, {"predicate": "has_class_function", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator", "target": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator", "target": "{\"lineno\":11,\"end_lineno\":49,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GPTPromptGenerator\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator", "target": "{\"name\":\"GPTPromptGenerator\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"gen\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"example\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"style\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Union[list[str], str]\"},{\"name\":\"gen_chatbot_style\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"example\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"gen_instruction_style\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"example\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"gen_query_style\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"example\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen", "target": "gen(example: str, style: str): Union[list[str], str]"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen_chatbot_style", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen_chatbot_style", "target": "gen_chatbot_style(example)"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen_instruction_style", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen_instruction_style", "target": "gen_instruction_style(example)"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen_query_style", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:gen_query_style", "target": "gen_query_style(example)"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/google_gemini_api.py", "target": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel"}, {"predicate": "has_class", "source": "metagpt/provider/google_gemini_api.py", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel", "target": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel:count_tokens"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel", "target": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel:count_tokens_async"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:llm"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel", "target": "{\"lineno\":29,\"end_lineno\":41,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GeminiGenerativeModel\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel", "target": "{\"name\":\"GeminiGenerativeModel\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"count_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"contents\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"content_types.ContentsType\",\"default_value\":\"\"}],\"return_type\":\"glm.CountTokensResponse\"},{\"name\":\"count_tokens_async\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"contents\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"content_types.ContentsType\",\"default_value\":\"\"}],\"return_type\":\"glm.CountTokensResponse\"}]}"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel:count_tokens", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel:count_tokens", "target": "count_tokens(contents: content_types.ContentsType): glm.CountTokensResponse"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel:count_tokens_async", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/google_gemini_api.py:GeminiGenerativeModel:count_tokens_async", "target": "count_tokens_async(contents: content_types.ContentsType): glm.CountTokensResponse"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:llm"}, {"predicate": "has_class_property", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:model"}, {"predicate": "has_class_property", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:use_system_prompt"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:acompletion"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:acompletion_text"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:aget_usage"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:completion"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:get_choice_text"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:get_usage"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/base_llm.py:BaseLLM"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:__init__"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:__init_gemini"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:_user_msg"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:_assistant_msg"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:_const_kwargs"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:_update_costs"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:_achat_completion"}, {"predicate": "has_class_function", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "metagpt/provider/google_gemini_api.py:GeminiLLM:_achat_completion_stream"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "{\"lineno\":45,\"end_lineno\":141,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GeminiLLM\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM", "target": "{\"name\":\"GeminiLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"use_system_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"aget_usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"resp_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"completion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"}],\"return_type\":\"GenerateContentResponse\"},{\"name\":\"get_choice_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"resp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"GenerateContentResponse\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"resp_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init_gemini\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_user_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_assistant_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_const_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion_stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:llm", "target": "llm"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:model", "target": "model : str"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:use_system_prompt", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:use_system_prompt", "target": "use_system_prompt : bool"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:acompletion", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:acompletion", "target": "acompletion(messages: list[dict]): dict"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:acompletion_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:acompletion_text", "target": "acompletion_text(messages: list[dict], stream, timeout: int): str"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:aget_usage", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:aget_usage", "target": "aget_usage(messages: list[dict], resp_text: str): dict"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:completion", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:completion", "target": "completion(messages: list[dict]): 'GenerateContentResponse'"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:get_choice_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:get_choice_text", "target": "get_choice_text(resp: GenerateContentResponse): str"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:get_usage", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:get_usage", "target": "get_usage(messages: list[dict], resp_text: str): dict"}, {"predicate": "is", "source": "metagpt/provider/general_api_requestor.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/general_api_requestor.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/general_api_requestor.py", "target": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_requestor.py", "target": "metagpt/provider/general_api_requestor.py:parse_stream_helper"}, {"predicate": "has_function", "source": "metagpt/provider/general_api_requestor.py", "target": "metagpt/provider/general_api_requestor.py:parse_stream"}, {"predicate": "is", "source": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor", "target": "class"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor", "target": "metagpt/provider/general_api_base.py:APIRequestor"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor", "target": "metagpt/provider/ollama_api.py:OllamaLLM"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor", "target": "metagpt/provider/ollama_api.py:OllamaLLM:client"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor", "target": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor:_interpret_response_line"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor", "target": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor:_interpret_response"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor", "target": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor:_interpret_async_response"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor", "target": "{\"lineno\":38,\"end_lineno\":106,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GeneralAPIRequestor\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor", "target": "{\"name\":\"GeneralAPIRequestor\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"_interpret_response_line\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_interpret_response\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_interpret_async_response\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/generate_questions.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/generate_questions.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/generate_questions.py", "target": "metagpt/actions/generate_questions.py:GenerateQuestions"}, {"predicate": "is", "source": "metagpt/actions/generate_questions.py:GenerateQuestions", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/generate_questions.py:GenerateQuestions", "target": "metagpt/actions/generate_questions.py:GenerateQuestions:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/generate_questions.py:GenerateQuestions", "target": "metagpt/actions/generate_questions.py:GenerateQuestions:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/generate_questions.py:GenerateQuestions", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/generate_questions.py:GenerateQuestions", "target": "{\"lineno\":20,\"end_lineno\":27,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GenerateQuestions\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/generate_questions.py:GenerateQuestions", "target": "{\"name\":\"GenerateQuestions\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/generate_questions.py:GenerateQuestions:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/generate_questions.py:GenerateQuestions:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/generate_questions.py:GenerateQuestions:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/generate_questions.py:GenerateQuestions:run", "target": "run(context)"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/invoice_ocr.py", "target": "metagpt/actions/invoice_ocr.py:GenerateTable"}, {"predicate": "has_class", "source": "metagpt/actions/invoice_ocr.py", "target": "metagpt/actions/invoice_ocr.py:InvoiceOCR"}, {"predicate": "has_class", "source": "metagpt/actions/invoice_ocr.py", "target": "metagpt/actions/invoice_ocr.py:ReplyQuestion"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:GenerateTable", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/invoice_ocr.py:GenerateTable", "target": "metagpt/actions/invoice_ocr.py:GenerateTable:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/invoice_ocr.py:GenerateTable", "target": "metagpt/actions/invoice_ocr.py:GenerateTable:language"}, {"predicate": "has_class_property", "source": "metagpt/actions/invoice_ocr.py:GenerateTable", "target": "metagpt/actions/invoice_ocr.py:GenerateTable:llm"}, {"predicate": "has_class_property", "source": "metagpt/actions/invoice_ocr.py:GenerateTable", "target": "metagpt/actions/invoice_ocr.py:GenerateTable:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/invoice_ocr.py:GenerateTable", "target": "metagpt/actions/invoice_ocr.py:GenerateTable:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/invoice_ocr.py:GenerateTable", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:GenerateTable", "target": "{\"lineno\":123,\"end_lineno\":165,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GenerateTable\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/invoice_ocr.py:GenerateTable", "target": "{\"name\":\"GenerateTable\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ocr_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list\",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"dict[str, str]\"}]}"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:GenerateTable:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/invoice_ocr.py:GenerateTable:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:GenerateTable:language", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/invoice_ocr.py:GenerateTable:language", "target": "language : str"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:GenerateTable:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/invoice_ocr.py:GenerateTable:llm", "target": "llm"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:GenerateTable:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/invoice_ocr.py:GenerateTable:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:GenerateTable:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/invoice_ocr.py:GenerateTable:run", "target": "run(ocr_results: list, filename: str): dict[str, str]"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/spark_api.py", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb"}, {"predicate": "has_class", "source": "metagpt/provider/spark_api.py", "target": "metagpt/provider/spark_api.py:SparkLLM"}, {"predicate": "has_class", "source": "metagpt/provider/spark_api.py", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:domain"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:ret"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_api_key"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_api_secret"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_appid"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_url"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:text"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:gen_params"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_close"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_error"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_message"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_open"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:run"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:send"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:__init__"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_close"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:_run"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "{\"lineno\":45,\"end_lineno\":167,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GetMessageFromWeb\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb", "target": "{\"name\":\"GetMessageFromWeb\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"domain\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"ret\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"spark_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_api_secret\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_appid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"spark_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"gen_params\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"on_close\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ws\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"one\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"two\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"on_error\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ws\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"error\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"on_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ws\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"on_open\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ws\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"send\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ws\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"on_close\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_run\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:domain", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:domain", "target": "domain"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:ret", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:ret", "target": "ret : str"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_api_key", "target": "spark_api_key"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_api_secret", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_api_secret", "target": "spark_api_secret"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_appid", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_appid", "target": "spark_appid"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_url", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:spark_url", "target": "spark_url"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:text", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:text", "target": "text"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:gen_params", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:gen_params", "target": "gen_params()"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_close", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_close", "target": "on_close(ws, one, two)"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_error", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_error", "target": "on_error(ws, error)"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_message", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_message", "target": "on_message(ws, message)"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_open", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_open", "target": "on_open(ws)"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:run", "target": "run()"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:send", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:send", "target": "send(ws)"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:changed_files"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:is_valid"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:status"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:workdir"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:add_change"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:archive"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:commit"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:delete_repository"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:filter_gitignore"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:get_dependency"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:get_files"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:is_git_dir"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:new_file_repository"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:open"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:rename_root"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:__init__"}, {"predicate": "has_class_function", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "metagpt/utils/git_repository.py:GitRepository:_init"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "{\"lineno\":35,\"end_lineno\":272,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GitRepository\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/git_repository.py:GitRepository", "target": "{\"name\":\"GitRepository\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"changed_files\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"is_valid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"status\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"workdir\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"add_change\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"files\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Dict\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"archive\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"comments\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"commit\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"comments\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"delete_repository\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"filter_gitignore\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filenames\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[str]\",\"default_value\":\"\"},{\"name\":\"root_relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"List[str]\"},{\"name\":\"get_dependency\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"DependencyFile\"},{\"name\":\"get_files\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"root_relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"},{\"name\":\"filter_ignored\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"List\"},{\"name\":\"is_git_dir\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"local_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"new_file_repository\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"relative_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path \\\\| str\",\"default_value\":\"\"}],\"return_type\":\"FileRepository\"},{\"name\":\"open\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"local_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"},{\"name\":\"auto_init\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"rename_root\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"new_dir_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_init\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:changed_files", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/git_repository.py:GitRepository:changed_files", "target": "changed_files"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:changed_files", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:is_valid", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/git_repository.py:GitRepository:is_valid", "target": "is_valid"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:is_valid", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:status", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/git_repository.py:GitRepository:status", "target": "status"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:status", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:workdir", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/git_repository.py:GitRepository:workdir", "target": "workdir"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:workdir", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:add_change", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/git_repository.py:GitRepository:add_change", "target": "add_change(files: Dict)"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:archive", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/git_repository.py:GitRepository:archive", "target": "archive(comments)"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:commit", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/git_repository.py:GitRepository:commit", "target": "commit(comments)"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:delete_repository", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/git_repository.py:GitRepository:delete_repository", "target": "delete_repository()"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:filter_gitignore", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/git_repository.py:GitRepository:filter_gitignore", "target": "filter_gitignore(filenames: List[str], root_relative_path: Path \\| str): List[str]"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:get_dependency", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/git_repository.py:GitRepository:get_dependency", "target": "get_dependency(): DependencyFile"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:get_files", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/git_repository.py:GitRepository:get_files", "target": "get_files(relative_path: Path \\| str, root_relative_path: Path \\| str, filter_ignored): List"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:is_git_dir", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/git_repository.py:GitRepository:is_git_dir", "target": "is_git_dir(local_path)"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:new_file_repository", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/git_repository.py:GitRepository:new_file_repository", "target": "new_file_repository(relative_path: Path \\| str): FileRepository"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:open", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/git_repository.py:GitRepository:open", "target": "open(local_path: Path, auto_init)"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:rename_root", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/git_repository.py:GitRepository:rename_root", "target": "rename_root(new_dir_name)"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/search_engine_googleapi.py", "target": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper"}, {"predicate": "has_function", "source": "metagpt/tools/search_engine_googleapi.py", "target": "metagpt/tools/search_engine_googleapi.py:safe_google_results"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper", "target": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:executor"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper", "target": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_api_client"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper", "target": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_api_key"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper", "target": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_cse_id"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper", "target": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:loop"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper", "target": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:model_config"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper", "target": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:check_google_api_key"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper", "target": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:check_google_cse_id"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper", "target": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:run"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper", "target": "{\"lineno\":27,\"end_lineno\":117,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GoogleAPIWrapper\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper", "target": "{\"name\":\"GoogleAPIWrapper\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"executor\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[futures.Executor] \",\"default_value\":\"\"},{\"name\":\"google_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"google_cse_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"loop\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[asyncio.AbstractEventLoop] \",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"google_api_client\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"check_google_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"val\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"check_google_cse_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"val\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"as_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"},{\"name\":\"focus\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str] \\\\| None\",\"default_value\":\"\"}],\"return_type\":\"str \\\\| list[dict]\"}]}"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:executor", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:executor", "target": "executor : Optional[futures.Executor]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_api_client", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_api_client", "target": "google_api_client"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_api_client", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_api_key", "target": "google_api_key : Optional[str]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_cse_id", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:google_cse_id", "target": "google_cse_id : Optional[str]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:loop", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:loop", "target": "loop : Optional[asyncio.AbstractEventLoop]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:check_google_api_key", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:check_google_api_key", "target": "check_google_api_key(val: str)"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:check_google_cse_id", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:check_google_cse_id", "target": "check_google_cse_id(val: str)"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_googleapi.py:GoogleAPIWrapper:run", "target": "run(query: str, max_results: int, as_string: bool, focus: list[str] \\| None): str \\| list[dict]"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/graph_repository.py", "target": "metagpt/utils/graph_repository.py:GraphKeyword"}, {"predicate": "has_class", "source": "metagpt/utils/graph_repository.py", "target": "metagpt/utils/graph_repository.py:GraphRepository"}, {"predicate": "has_class", "source": "metagpt/utils/graph_repository.py", "target": "metagpt/utils/graph_repository.py:SPO"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:CLASS"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:CLASS_FUNCTION"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:CLASS_PROPERTY"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:FUNCTION"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:GLOBAL_VARIABLE"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_ARGS_DESC"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS_FUNCTION"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS_PROPERTY"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS_VIEW"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_FUNCTION"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_PAGE_INFO"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_SEQUENCE_VIEW"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_TYPE_DESC"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:IS"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:NULL"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:OF"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:ON"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "metagpt/utils/graph_repository.py:GraphKeyword:SOURCE_CODE"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "{\"lineno\":21,\"end_lineno\":40,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GraphKeyword\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/graph_repository.py:GraphKeyword", "target": "{\"name\":\"GraphKeyword\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"CLASS\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"CLASS_FUNCTION\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"CLASS_PROPERTY\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"FUNCTION\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"GLOBAL_VARIABLE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_ARGS_DESC\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_CLASS\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_CLASS_FUNCTION\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_CLASS_PROPERTY\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_CLASS_VIEW\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_FUNCTION\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_PAGE_INFO\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_SEQUENCE_VIEW\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"HAS_TYPE_DESC\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"IS\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"NULL\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"OF\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"ON\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"SOURCE_CODE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:CLASS", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:CLASS", "target": "CLASS : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:CLASS_FUNCTION", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:CLASS_FUNCTION", "target": "CLASS_FUNCTION : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:CLASS_PROPERTY", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:CLASS_PROPERTY", "target": "CLASS_PROPERTY : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:FUNCTION", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:FUNCTION", "target": "FUNCTION : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:GLOBAL_VARIABLE", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:GLOBAL_VARIABLE", "target": "GLOBAL_VARIABLE : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_ARGS_DESC", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_ARGS_DESC", "target": "HAS_ARGS_DESC : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS", "target": "HAS_CLASS : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS_FUNCTION", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS_FUNCTION", "target": "HAS_CLASS_FUNCTION : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS_PROPERTY", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS_PROPERTY", "target": "HAS_CLASS_PROPERTY : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS_VIEW", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_CLASS_VIEW", "target": "HAS_CLASS_VIEW : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_FUNCTION", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_FUNCTION", "target": "HAS_FUNCTION : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_PAGE_INFO", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_PAGE_INFO", "target": "HAS_PAGE_INFO : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_SEQUENCE_VIEW", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_SEQUENCE_VIEW", "target": "HAS_SEQUENCE_VIEW : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_TYPE_DESC", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:HAS_TYPE_DESC", "target": "HAS_TYPE_DESC : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:IS", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:IS", "target": "IS : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:NULL", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:NULL", "target": "NULL : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:OF", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:OF", "target": "OF : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:ON", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:ON", "target": "ON : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphKeyword:SOURCE_CODE", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphKeyword:SOURCE_CODE", "target": "SOURCE_CODE : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:name"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:insert"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:select"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:update"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:update_graph_db_with_class_relationship_views"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:update_graph_db_with_class_views"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:update_graph_db_with_file_info"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:upsert"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:__init__"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:insert"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:upsert"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:update"}, {"predicate": "has_class_function", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "metagpt/utils/graph_repository.py:GraphRepository:select"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "{\"lineno\":49,\"end_lineno\":200,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"GraphRepository\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/graph_repository.py:GraphRepository", "target": "{\"name\":\"GraphRepository\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"insert\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"select\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"List[SPO]\"},{\"name\":\"update\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"update_graph_db_with_class_relationship_views\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"graph_db\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"GraphRepository\",\"default_value\":\"\"},{\"name\":\"relationship_views\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[ClassRelationship]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"update_graph_db_with_class_views\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"graph_db\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"GraphRepository\",\"default_value\":\"\"},{\"name\":\"class_views\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[ClassInfo]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"update_graph_db_with_file_info\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"graph_db\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"GraphRepository\",\"default_value\":\"\"},{\"name\":\"file_info\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"RepoFileInfo\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"upsert\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"insert\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"upsert\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"update\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"select\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:GraphRepository:name", "target": "name"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:name", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:insert", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/graph_repository.py:GraphRepository:insert", "target": "insert(subject: str, predicate: str, object_: str)"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:select", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/graph_repository.py:GraphRepository:select", "target": "select(subject: str, predicate: str, object_: str): List[SPO]"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:update", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/graph_repository.py:GraphRepository:update", "target": "update(subject: str, predicate: str, object_: str)"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:update_graph_db_with_class_relationship_views", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/graph_repository.py:GraphRepository:update_graph_db_with_class_relationship_views", "target": "update_graph_db_with_class_relationship_views(graph_db: 'GraphRepository', relationship_views: List[ClassRelationship])"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:update_graph_db_with_class_views", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/graph_repository.py:GraphRepository:update_graph_db_with_class_views", "target": "update_graph_db_with_class_views(graph_db: 'GraphRepository', class_views: List[ClassInfo])"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:update_graph_db_with_file_info", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/graph_repository.py:GraphRepository:update_graph_db_with_file_info", "target": "update_graph_db_with_file_info(graph_db: 'GraphRepository', file_info: RepoFileInfo)"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:upsert", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/graph_repository.py:GraphRepository:upsert", "target": "upsert(subject: str, predicate: str, object_: str)"}, {"predicate": "is", "source": "metagpt/provider/human_provider.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/human_provider.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/human_provider.py", "target": "metagpt/provider/human_provider.py:HumanProvider"}, {"predicate": "is", "source": "metagpt/provider/human_provider.py:HumanProvider", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/provider/human_provider.py:HumanProvider", "target": "metagpt/provider/human_provider.py:HumanProvider:aask"}, {"predicate": "has_class_function", "source": "metagpt/provider/human_provider.py:HumanProvider", "target": "metagpt/provider/human_provider.py:HumanProvider:acompletion"}, {"predicate": "has_class_function", "source": "metagpt/provider/human_provider.py:HumanProvider", "target": "metagpt/provider/human_provider.py:HumanProvider:acompletion_text"}, {"predicate": "has_class_function", "source": "metagpt/provider/human_provider.py:HumanProvider", "target": "metagpt/provider/human_provider.py:HumanProvider:ask"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/human_provider.py:HumanProvider", "target": "metagpt/provider/base_llm.py:BaseLLM"}, {"predicate": "has_page_info", "source": "metagpt/provider/human_provider.py:HumanProvider", "target": "{\"lineno\":12,\"end_lineno\":40,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"HumanProvider\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/human_provider.py:HumanProvider", "target": "{\"name\":\"HumanProvider\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"aask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"system_msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[list[str]]\",\"default_value\":\"\"},{\"name\":\"format_msgs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[list[dict[str, str]]]\",\"default_value\":\"\"},{\"name\":\"generator\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"ask\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"predicate": "is", "source": "metagpt/provider/human_provider.py:HumanProvider:aask", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/human_provider.py:HumanProvider:aask", "target": "aask(msg: str, system_msgs: Optional[list[str]], format_msgs: Optional[list[dict[str, str]]], generator: bool, timeout): str"}, {"predicate": "is", "source": "metagpt/provider/human_provider.py:HumanProvider:acompletion", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/human_provider.py:HumanProvider:acompletion", "target": "acompletion(messages: list[dict], timeout)"}, {"predicate": "is", "source": "metagpt/provider/human_provider.py:HumanProvider:acompletion_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/human_provider.py:HumanProvider:acompletion_text", "target": "acompletion_text(messages: list[dict], stream, timeout): str"}, {"predicate": "is", "source": "metagpt/provider/human_provider.py:HumanProvider:ask", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/human_provider.py:HumanProvider:ask", "target": "ask(msg: str, timeout): str"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:api_key"}, {"predicate": "has_class_property", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:api_secret"}, {"predicate": "has_class_property", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:app_id"}, {"predicate": "has_class_function", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:synthesize_speech"}, {"predicate": "has_class_function", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:__init__"}, {"predicate": "has_class_function", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:_create_url"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS", "target": "{\"lineno\":52,\"end_lineno\":114,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"IFlyTekTTS\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS", "target": "{\"name\":\"IFlyTekTTS\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"api_secret\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"app_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"synthesize_speech\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"output_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"voice\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_create_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:api_key", "target": "api_key"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:api_secret", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:api_secret", "target": "api_secret"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:app_id", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:app_id", "target": "app_id"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:synthesize_speech", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:synthesize_speech", "target": "synthesize_speech(text, output_file: str, voice)"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:code"}, {"predicate": "has_class_property", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:data"}, {"predicate": "has_class_property", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:message"}, {"predicate": "has_class_property", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:sid"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse", "target": "{\"lineno\":42,\"end_lineno\":46,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"IFlyTekTTSResponse\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse", "target": "{\"name\":\"IFlyTekTTSResponse\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[AudioData] \",\"default_value\":\"\"},{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"sid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:code", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:code", "target": "code : int"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:data", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:data", "target": "data : Optional[AudioData]"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:message", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:message", "target": "message : str"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:sid", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSResponse:sid", "target": "sid : str"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSStatus", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSStatus", "target": "metagpt/tools/iflytek_tts.py:IFlyTekTTSStatus:name"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSStatus", "target": "{\"lineno\":30,\"end_lineno\":33,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"IFlyTekTTSStatus\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSStatus", "target": "{\"name\":\"IFlyTekTTSStatus\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSStatus:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTSStatus:name", "target": "name"}, {"predicate": "is", "source": "metagpt/tools/metagpt_text_to_image.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/metagpt_text_to_image.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/metagpt_text_to_image.py", "target": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult"}, {"predicate": "has_class", "source": "metagpt/tools/metagpt_text_to_image.py", "target": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image"}, {"predicate": "has_function", "source": "metagpt/tools/metagpt_text_to_image.py", "target": "metagpt/tools/metagpt_text_to_image.py:oas3_metagpt_text_to_image"}, {"predicate": "is", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult", "target": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult:images"}, {"predicate": "has_class_property", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult", "target": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult:parameters"}, {"predicate": "is", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult:images", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult:images", "target": "images : List"}, {"predicate": "is", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult:parameters", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image:ImageResult:parameters", "target": "parameters : Dict"}, {"predicate": "is", "source": "metagpt/document.py:IndexableDocument", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/document.py:IndexableDocument", "target": "metagpt/document.py:IndexableDocument:content_col"}, {"predicate": "has_class_property", "source": "metagpt/document.py:IndexableDocument", "target": "metagpt/document.py:IndexableDocument:data"}, {"predicate": "has_class_property", "source": "metagpt/document.py:IndexableDocument", "target": "metagpt/document.py:IndexableDocument:meta_col"}, {"predicate": "has_class_property", "source": "metagpt/document.py:IndexableDocument", "target": "metagpt/document.py:IndexableDocument:model_config"}, {"predicate": "has_class_function", "source": "metagpt/document.py:IndexableDocument", "target": "metagpt/document.py:IndexableDocument:from_path"}, {"predicate": "has_class_function", "source": "metagpt/document.py:IndexableDocument", "target": "metagpt/document.py:IndexableDocument:get_docs_and_metadatas"}, {"predicate": "isGeneralizeOf", "source": "metagpt/document.py:IndexableDocument", "target": "metagpt/document.py:Document"}, {"predicate": "has_class_function", "source": "metagpt/document.py:IndexableDocument", "target": "metagpt/document.py:IndexableDocument:_get_docs_and_metadatas_by_df"}, {"predicate": "has_class_function", "source": "metagpt/document.py:IndexableDocument", "target": "metagpt/document.py:IndexableDocument:_get_docs_and_metadatas_by_langchain"}, {"predicate": "has_page_info", "source": "metagpt/document.py:IndexableDocument", "target": "{\"lineno\":114,\"end_lineno\":161,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"IndexableDocument\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/document.py:IndexableDocument", "target": "{\"name\":\"IndexableDocument\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content_col\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Union[pd.DataFrame, list] \",\"default_value\":\"\"},{\"name\":\"meta_col\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"from_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"},{\"name\":\"content_col\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"meta_col\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_docs_and_metadatas\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Tuple[list, list]\"},{\"name\":\"_get_docs_and_metadatas_by_df\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_docs_and_metadatas_by_langchain\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/document.py:IndexableDocument:content_col", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:IndexableDocument:content_col", "target": "content_col : Optional[str]"}, {"predicate": "is", "source": "metagpt/document.py:IndexableDocument:data", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:IndexableDocument:data", "target": "data : Union[pd.DataFrame, list]"}, {"predicate": "is", "source": "metagpt/document.py:IndexableDocument:meta_col", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:IndexableDocument:meta_col", "target": "meta_col : Optional[str]"}, {"predicate": "is", "source": "metagpt/document.py:IndexableDocument:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:IndexableDocument:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/document.py:IndexableDocument:from_path", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document.py:IndexableDocument:from_path", "target": "from_path(data_path: Path, content_col, meta_col)"}, {"predicate": "is", "source": "metagpt/document.py:IndexableDocument:get_docs_and_metadatas", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document.py:IndexableDocument:get_docs_and_metadatas", "target": "get_docs_and_metadatas(): (list, list)"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/invoice_ocr_assistant.py", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceData"}, {"predicate": "has_class", "source": "metagpt/roles/invoice_ocr_assistant.py", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant"}, {"predicate": "has_class", "source": "metagpt/roles/invoice_ocr_assistant.py", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoicePath"}, {"predicate": "has_class", "source": "metagpt/roles/invoice_ocr_assistant.py", "target": "metagpt/roles/invoice_ocr_assistant.py:OCRResults"}, {"predicate": "has_class", "source": "metagpt/roles/invoice_ocr_assistant.py", "target": "metagpt/roles/invoice_ocr_assistant.py:ReplyData"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceData", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceData", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceData:invoice_data"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceData", "target": "{\"lineno\":31,\"end_lineno\":32,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"InvoiceData\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceData", "target": "{\"name\":\"InvoiceData\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"invoice_data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[dict] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceData:invoice_data", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceData:invoice_data", "target": "invoice_data : list[dict]"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR", "target": "metagpt/actions/invoice_ocr.py:InvoiceOCR:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR", "target": "metagpt/actions/invoice_ocr.py:InvoiceOCR:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR", "target": "metagpt/actions/invoice_ocr.py:InvoiceOCR:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR", "target": "metagpt/actions/invoice_ocr.py:InvoiceOCR:_check_file_type"}, {"predicate": "has_class_function", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR", "target": "metagpt/actions/invoice_ocr.py:InvoiceOCR:_unzip"}, {"predicate": "has_class_function", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR", "target": "metagpt/actions/invoice_ocr.py:InvoiceOCR:_ocr"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR", "target": "{\"lineno\":34,\"end_lineno\":120,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"InvoiceOCR\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR", "target": "{\"name\":\"InvoiceOCR\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"file_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"list\"},{\"name\":\"_check_file_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_unzip\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_ocr\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR:run", "target": "run(file_path: Path): list"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:constraints"}, {"predicate": "has_class_property", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:filename"}, {"predicate": "has_class_property", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:language"}, {"predicate": "has_class_property", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:orc_data"}, {"predicate": "has_class_property", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:origin_query"}, {"predicate": "has_class_property", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:profile"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:__init__"}, {"predicate": "has_class_function", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:_act"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "{\"lineno\":39,\"end_lineno\":112,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"InvoiceOCRAssistant\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant", "target": "{\"name\":\"InvoiceOCRAssistant\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"orc_data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[list] \",\"default_value\":\"\"},{\"name\":\"origin_query\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:filename", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:filename", "target": "filename : str"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:language", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:language", "target": "language : str"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:orc_data", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:orc_data", "target": "orc_data : Optional[list]"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:origin_query", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:origin_query", "target": "origin_query : str"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoicePath", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoicePath", "target": "metagpt/roles/invoice_ocr_assistant.py:InvoicePath:file_path"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoicePath", "target": "{\"lineno\":23,\"end_lineno\":24,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"InvoicePath\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoicePath", "target": "{\"name\":\"InvoicePath\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"file_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Path \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoicePath:file_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoicePath:file_path", "target": "file_path : Path"}, {"predicate": "is", "source": "metagpt/config.py:LLMProviderEnum", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/config.py:LLMProviderEnum", "target": "metagpt/config.py:LLMProviderEnum:name"}, {"predicate": "has_class_function", "source": "metagpt/config.py:LLMProviderEnum", "target": "metagpt/config.py:LLMProviderEnum:__missing__"}, {"predicate": "has_page_info", "source": "metagpt/config.py:LLMProviderEnum", "target": "{\"lineno\":41,\"end_lineno\":54,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"LLMProviderEnum\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/config.py:LLMProviderEnum", "target": "{\"name\":\"LLMProviderEnum\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__missing__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/config.py:LLMProviderEnum:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:LLMProviderEnum:name", "target": "name"}, {"predicate": "is", "source": "metagpt/provider/llm_provider_registry.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/llm_provider_registry.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/llm_provider_registry.py", "target": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry"}, {"predicate": "has_function", "source": "metagpt/provider/llm_provider_registry.py", "target": "metagpt/provider/llm_provider_registry.py:register_provider"}, {"predicate": "is", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry", "target": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:providers"}, {"predicate": "has_class_function", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry", "target": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:get_provider"}, {"predicate": "has_class_function", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry", "target": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:register"}, {"predicate": "has_class_function", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry", "target": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:__init__"}, {"predicate": "has_page_info", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry", "target": "{\"lineno\":11,\"end_lineno\":20,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"LLMProviderRegistry\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry", "target": "{\"name\":\"LLMProviderRegistry\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"providers\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_provider\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"enum\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"LLMProviderEnum\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"register\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"provider_cls\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:providers", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:providers", "target": "providers : dict"}, {"predicate": "is", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:get_provider", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:get_provider", "target": "get_provider(enum: LLMProviderEnum)"}, {"predicate": "is", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:register", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:register", "target": "register(key, provider_cls)"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/document_store/lancedb_store.py", "target": "metagpt/document_store/lancedb_store.py:LanceStore"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "metagpt/document_store/lancedb_store.py:LanceStore:db"}, {"predicate": "has_class_property", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "metagpt/document_store/lancedb_store.py:LanceStore:name"}, {"predicate": "has_class_property", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "metagpt/document_store/lancedb_store.py:LanceStore:table"}, {"predicate": "has_class_function", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "metagpt/document_store/lancedb_store.py:LanceStore:add"}, {"predicate": "has_class_function", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "metagpt/document_store/lancedb_store.py:LanceStore:delete"}, {"predicate": "has_class_function", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "metagpt/document_store/lancedb_store.py:LanceStore:drop"}, {"predicate": "has_class_function", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "metagpt/document_store/lancedb_store.py:LanceStore:persist"}, {"predicate": "has_class_function", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "metagpt/document_store/lancedb_store.py:LanceStore:search"}, {"predicate": "has_class_function", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "metagpt/document_store/lancedb_store.py:LanceStore:write"}, {"predicate": "has_class_function", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "metagpt/document_store/lancedb_store.py:LanceStore:__init__"}, {"predicate": "has_class_function", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "metagpt/document_store/lancedb_store.py:LanceStore:persist"}, {"predicate": "has_page_info", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "{\"lineno\":14,\"end_lineno\":89,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"LanceStore\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/document_store/lancedb_store.py:LanceStore", "target": "{\"name\":\"LanceStore\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"db\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"LanceDBConnection, RemoteDBConnection \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"table\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"LanceTable, NoneType, RemoteTable \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"metadata\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"delete\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"drop\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"n_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"metric\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"nprobes\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"metadatas\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"ids\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py:LanceStore:db", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/lancedb_store.py:LanceStore:db", "target": "db : LanceDBConnection, RemoteDBConnection"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py:LanceStore:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/lancedb_store.py:LanceStore:name", "target": "name"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py:LanceStore:table", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/lancedb_store.py:LanceStore:table", "target": "table : LanceTable, NoneType, RemoteTable"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py:LanceStore:add", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/lancedb_store.py:LanceStore:add", "target": "add(data, metadata, _id)"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py:LanceStore:delete", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/lancedb_store.py:LanceStore:delete", "target": "delete(_id)"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py:LanceStore:drop", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/lancedb_store.py:LanceStore:drop", "target": "drop(name)"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py:LanceStore:persist", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/lancedb_store.py:LanceStore:persist", "target": "persist()"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py:LanceStore:search", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/lancedb_store.py:LanceStore:search", "target": "search(query, n_results, metric, nprobes)"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py:LanceStore:write", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/lancedb_store.py:LanceStore:write", "target": "write(data, metadatas, ids)"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "metagpt/document_store/base_store.py:LocalStore:cache_dir"}, {"predicate": "has_class_property", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "metagpt/document_store/base_store.py:LocalStore:config"}, {"predicate": "has_class_property", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "metagpt/document_store/base_store.py:LocalStore:fname"}, {"predicate": "has_class_property", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "metagpt/document_store/base_store.py:LocalStore:raw_data_path"}, {"predicate": "has_class_property", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "metagpt/document_store/base_store.py:LocalStore:store"}, {"predicate": "isGeneralizeOf", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "metagpt/document_store/base_store.py:BaseStore"}, {"predicate": "has_class_function", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "metagpt/document_store/base_store.py:LocalStore:__init__"}, {"predicate": "has_class_function", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "metagpt/document_store/base_store.py:LocalStore:_get_index_and_store_fname"}, {"predicate": "has_class_function", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "metagpt/document_store/base_store.py:LocalStore:_load"}, {"predicate": "has_class_function", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "metagpt/document_store/base_store.py:LocalStore:_write"}, {"predicate": "has_page_info", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "{\"lineno\":30,\"end_lineno\":55,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"LocalStore\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/document_store/base_store.py:LocalStore", "target": "{\"name\":\"LocalStore\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"cache_dir\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Path] \",\"default_value\":\"\"},{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"fname\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"raw_data_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Path \",\"default_value\":\"\"},{\"name\":\"store\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_index_and_store_fname\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_load\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_write\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:LocalStore:cache_dir", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/base_store.py:LocalStore:cache_dir", "target": "cache_dir : Optional[Path]"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:LocalStore:config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/base_store.py:LocalStore:config", "target": "config"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:LocalStore:fname", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/base_store.py:LocalStore:fname", "target": "fname"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:LocalStore:raw_data_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/base_store.py:LocalStore:raw_data_path", "target": "raw_data_path : Path"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:LocalStore:store", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/base_store.py:LocalStore:store", "target": "store"}, {"predicate": "is", "source": "metagpt/memory/longterm_memory.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/memory/longterm_memory.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/memory/longterm_memory.py", "target": "metagpt/memory/longterm_memory.py:LongTermMemory"}, {"predicate": "is", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "metagpt/memory/longterm_memory.py:LongTermMemory:memory_storage"}, {"predicate": "has_class_property", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "metagpt/memory/longterm_memory.py:LongTermMemory:model_config"}, {"predicate": "has_class_property", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "metagpt/memory/longterm_memory.py:LongTermMemory:msg_from_recover"}, {"predicate": "has_class_property", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "metagpt/memory/longterm_memory.py:LongTermMemory:rc"}, {"predicate": "has_class_function", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "metagpt/memory/longterm_memory.py:LongTermMemory:add"}, {"predicate": "has_class_function", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "metagpt/memory/longterm_memory.py:LongTermMemory:clear"}, {"predicate": "has_class_function", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "metagpt/memory/longterm_memory.py:LongTermMemory:delete"}, {"predicate": "has_class_function", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "metagpt/memory/longterm_memory.py:LongTermMemory:find_news"}, {"predicate": "has_class_function", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "metagpt/memory/longterm_memory.py:LongTermMemory:recover_memory"}, {"predicate": "isGeneralizeOf", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "metagpt/memory/memory.py:Memory"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "{\"lineno\":19,\"end_lineno\":78,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"LongTermMemory\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/memory/longterm_memory.py:LongTermMemory", "target": "{\"name\":\"LongTermMemory\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"memory_storage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"msg_from_recover\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"rc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[RoleContext] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"clear\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"delete\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"find_news\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"observed\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[Message]\",\"default_value\":\"\"},{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"recover_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"rc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"RoleContext\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:memory_storage", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:memory_storage", "target": "memory_storage"}, {"predicate": "is", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:msg_from_recover", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:msg_from_recover", "target": "msg_from_recover : bool"}, {"predicate": "is", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:rc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:rc", "target": "rc : Optional[RoleContext]"}, {"predicate": "is", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:add", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:add", "target": "add(message: Message)"}, {"predicate": "is", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:clear", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:clear", "target": "clear()"}, {"predicate": "is", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:delete", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:delete", "target": "delete(message: Message)"}, {"predicate": "is", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:find_news", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:find_news", "target": "find_news(observed: list[Message], k): list[Message]"}, {"predicate": "is", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:recover_memory", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/longterm_memory.py:LongTermMemory:recover_memory", "target": "recover_memory(role_id: str, rc: RoleContext)"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:MCTSSolver", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:MCTSSolver", "target": "metagpt/strategy/tot.py:MCTSSolver:solve"}, {"predicate": "isGeneralizeOf", "source": "metagpt/strategy/tot.py:MCTSSolver", "target": "metagpt/strategy/tot.py:ThoughtSolverBase"}, {"predicate": "isCompositeOf", "source": "metagpt/strategy/tot.py:MCTSSolver", "target": "metagpt/strategy/tot.py:TreeofThought"}, {"predicate": "isCompositeOn", "source": "metagpt/strategy/tot.py:MCTSSolver", "target": "metagpt/strategy/tot.py:TreeofThought:solver"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:MCTSSolver", "target": "metagpt/strategy/tot.py:MCTSSolver:solve"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:MCTSSolver", "target": "{\"lineno\":230,\"end_lineno\":232,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MCTSSolver\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/strategy/tot.py:MCTSSolver", "target": "{\"name\":\"MCTSSolver\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"solve\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"init_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"solve\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:MCTSSolver:solve", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/tot.py:MCTSSolver:solve", "target": "solve(init_prompt)"}, {"predicate": "is", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine", "target": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:client"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine", "target": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:add_documents"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine", "target": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:search"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine", "target": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:set_index"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine", "target": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine", "target": "{\"lineno\":23,\"end_lineno\":42,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MeilisearchEngine\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine", "target": "{\"name\":\"MeilisearchEngine\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"client\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Client \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add_documents\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data_source\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"DataSource\",\"default_value\":\"\"},{\"name\":\"documents\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[dict]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_index\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"index\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:client", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:client", "target": "client : Client"}, {"predicate": "is", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:add_documents", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:add_documents", "target": "add_documents(data_source: DataSource, documents: List[dict])"}, {"predicate": "is", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:search", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:search", "target": "search(query)"}, {"predicate": "is", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:set_index", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:set_index", "target": "set_index(index)"}, {"predicate": "is", "source": "metagpt/memory/memory.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/memory/memory.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/memory/memory.py", "target": "metagpt/memory/memory.py:Memory"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:ignore_id"}, {"predicate": "has_class_property", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:index"}, {"predicate": "has_class_property", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:storage"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:add"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:add_batch"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:clear"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:count"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:delete"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:delete_newest"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:deserialize"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:find_news"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:get"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:get_by_action"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:get_by_actions"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:get_by_content"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:get_by_role"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:serialize"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/memory/memory.py:Memory:try_remember"}, {"predicate": "isCompositeOf", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/roles/role.py:RoleContext"}, {"predicate": "isCompositeOn", "source": "metagpt/memory/memory.py:Memory", "target": "metagpt/roles/role.py:RoleContext:memory"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:Memory", "target": "{\"lineno\":25,\"end_lineno\":128,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Memory\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/memory/memory.py:Memory", "target": "{\"name\":\"Memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"ignore_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"index\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"DefaultDict[str, list[SerializeAsAny[Message]]] \",\"default_value\":\"\"},{\"name\":\"storage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[SerializeAsAny[Message]] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"add_batch\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Iterable[Message]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"clear\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"count\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"int\"},{\"name\":\"delete\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"delete_newest\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Message\"},{\"name\":\"deserialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"Memory\"},{\"name\":\"find_news\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"observed\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[Message]\",\"default_value\":\"\"},{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"get_by_action\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"action\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"get_by_actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Set\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"get_by_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"get_by_role\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"serialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"try_remember\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"keyword\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"}]}"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:ignore_id", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/memory.py:Memory:ignore_id", "target": "ignore_id : bool"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:index", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/memory.py:Memory:index", "target": "index : DefaultDict[str, list[SerializeAsAny[Message]]]"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:storage", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/memory.py:Memory:storage", "target": "storage : list[SerializeAsAny[Message]]"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:add", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:add", "target": "add(message: Message)"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:add_batch", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:add_batch", "target": "add_batch(messages: Iterable[Message])"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:clear", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:clear", "target": "clear()"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:count", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:count", "target": "count(): int"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:delete", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:delete", "target": "delete(message: Message)"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:delete_newest", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:delete_newest", "target": "delete_newest(): 'Message'"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:deserialize", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:deserialize", "target": "deserialize(stg_path: Path): 'Memory'"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:find_news", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:find_news", "target": "find_news(observed: list[Message], k): list[Message]"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:get", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:get", "target": "get(k): list[Message]"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:get_by_action", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:get_by_action", "target": "get_by_action(action): list[Message]"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:get_by_actions", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:get_by_actions", "target": "get_by_actions(actions: Set): list[Message]"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:get_by_content", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:get_by_content", "target": "get_by_content(content: str): list[Message]"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:get_by_role", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:get_by_role", "target": "get_by_role(role: str): list[Message]"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:serialize", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:serialize", "target": "serialize(stg_path: Path)"}, {"predicate": "is", "source": "metagpt/memory/memory.py:Memory:try_remember", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory.py:Memory:try_remember", "target": "try_remember(keyword: str): list[Message]"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/memory/memory_storage.py", "target": "metagpt/memory/memory_storage.py:MemoryStorage"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:embedding"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:is_initialized"}, {"predicate": "has_class_property", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:mem_ttl"}, {"predicate": "has_class_property", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:role_id"}, {"predicate": "has_class_property", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:role_mem_path"}, {"predicate": "has_class_property", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:store"}, {"predicate": "has_class_property", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:threshold"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:add"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:clean"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:persist"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:recover_memory"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:search_dissimilar"}, {"predicate": "isGeneralizeOf", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/document_store/faiss_store.py:FaissStore"}, {"predicate": "isCompositeOf", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/longterm_memory.py:LongTermMemory"}, {"predicate": "isCompositeOn", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/longterm_memory.py:LongTermMemory:memory_storage"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:__init__"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:_load"}, {"predicate": "has_class_function", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "metagpt/memory/memory_storage.py:MemoryStorage:_get_index_and_store_fname"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "{\"lineno\":22,\"end_lineno\":118,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MemoryStorage\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/memory/memory_storage.py:MemoryStorage", "target": "{\"name\":\"MemoryStorage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"embedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"OpenAIEmbeddings \",\"default_value\":\"\"},{\"name\":\"mem_ttl\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"role_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"role_mem_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str], Path \",\"default_value\":\"\"},{\"name\":\"store\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"NoneType, Optional[FAISS] \",\"default_value\":\"\"},{\"name\":\"threshold\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"is_initialized\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"bool\"},{\"name\":\"clean\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"persist\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"recover_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"search_dissimilar\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"},{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_load\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_index_and_store_fname\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:embedding", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/memory_storage.py:MemoryStorage:embedding", "target": "embedding : OpenAIEmbeddings"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:is_initialized", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/memory_storage.py:MemoryStorage:is_initialized", "target": "is_initialized"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:is_initialized", "target": "class_function"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:mem_ttl", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/memory_storage.py:MemoryStorage:mem_ttl", "target": "mem_ttl : int"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:role_id", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/memory_storage.py:MemoryStorage:role_id", "target": "role_id : Optional[str]"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:role_mem_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/memory_storage.py:MemoryStorage:role_mem_path", "target": "role_mem_path : Optional[str], Path"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:store", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/memory_storage.py:MemoryStorage:store", "target": "store : NoneType, Optional[FAISS]"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:threshold", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/memory/memory_storage.py:MemoryStorage:threshold", "target": "threshold : float"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:add", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory_storage.py:MemoryStorage:add", "target": "add(message: Message): bool"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:clean", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory_storage.py:MemoryStorage:clean", "target": "clean()"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:persist", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory_storage.py:MemoryStorage:persist", "target": "persist()"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:recover_memory", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory_storage.py:MemoryStorage:recover_memory", "target": "recover_memory(role_id: str): list[Message]"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:search_dissimilar", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/memory/memory_storage.py:MemoryStorage:search_dissimilar", "target": "search_dissimilar(message: Message, k): list[Message]"}, {"predicate": "is", "source": "metagpt/schema.py:Message", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:cause_by"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:content"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:id"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:instruct_content"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:role"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:send_to"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:sent_from"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:check_cause_by"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:check_id"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:check_instruct_content"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:check_send_to"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:check_sent_from"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:dump"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:load"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:ser_instruct_content"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:to_dict"}, {"predicate": "isCompositeOf", "source": "metagpt/schema.py:Message", "target": "metagpt/actions/skill_action.py:ArgumentsParingAction"}, {"predicate": "isCompositeOn", "source": "metagpt/schema.py:Message", "target": "metagpt/actions/skill_action.py:ArgumentsParingAction:rsp"}, {"predicate": "isCompositeOf", "source": "metagpt/schema.py:Message", "target": "metagpt/actions/skill_action.py:SkillAction"}, {"predicate": "isCompositeOn", "source": "metagpt/schema.py:Message", "target": "metagpt/actions/skill_action.py:SkillAction:rsp"}, {"predicate": "isCompositeOf", "source": "metagpt/schema.py:Message", "target": "metagpt/actions/talk_action.py:TalkAction"}, {"predicate": "isCompositeOn", "source": "metagpt/schema.py:Message", "target": "metagpt/actions/talk_action.py:TalkAction:rsp"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:__init__"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:__setattr__"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:__str__"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:Message", "target": "metagpt/schema.py:Message:__repr__"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:Message", "target": "{\"lineno\":177,\"end_lineno\":284,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Message\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:Message", "target": "{\"name\":\"Message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"cause_by\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"instruct_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[BaseModel] \",\"default_value\":\"\"},{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"send_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"set[str] \",\"default_value\":\"\"},{\"name\":\"sent_from\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"check_cause_by\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"cause_by\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Any\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"check_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"check_instruct_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Any\",\"default_value\":\"\"}],\"return_type\":\"BaseModel\"},{\"name\":\"check_send_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"send_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Any\",\"default_value\":\"\"}],\"return_type\":\"set\"},{\"name\":\"check_sent_from\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"sent_from\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Any\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"dump\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"},{\"name\":\"load\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"val\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"ser_instruct_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"ic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"BaseModel\",\"default_value\":\"\"}],\"return_type\":\"Union[str, None]\"},{\"name\":\"to_dict\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__setattr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__str__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__repr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/schema.py:Message:cause_by", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Message:cause_by", "target": "cause_by : str"}, {"predicate": "is", "source": "metagpt/schema.py:Message:content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Message:content", "target": "content : str"}, {"predicate": "is", "source": "metagpt/schema.py:Message:id", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Message:id", "target": "id : str"}, {"predicate": "is", "source": "metagpt/schema.py:Message:instruct_content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Message:instruct_content", "target": "instruct_content : Optional[BaseModel]"}, {"predicate": "is", "source": "metagpt/schema.py:Message:role", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Message:role", "target": "role : str"}, {"predicate": "is", "source": "metagpt/schema.py:Message:send_to", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Message:send_to", "target": "send_to : set[str]"}, {"predicate": "is", "source": "metagpt/schema.py:Message:sent_from", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:Message:sent_from", "target": "sent_from : str"}, {"predicate": "is", "source": "metagpt/schema.py:Message:check_cause_by", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:Message:check_cause_by", "target": "check_cause_by(cause_by: Any): str"}, {"predicate": "is", "source": "metagpt/schema.py:Message:check_id", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:Message:check_id", "target": "check_id(id: str): str"}, {"predicate": "is", "source": "metagpt/schema.py:Message:check_instruct_content", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:Message:check_instruct_content", "target": "check_instruct_content(ic: Any): BaseModel"}, {"predicate": "is", "source": "metagpt/schema.py:Message:check_send_to", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:Message:check_send_to", "target": "check_send_to(send_to: Any): set"}, {"predicate": "is", "source": "metagpt/schema.py:Message:check_sent_from", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:Message:check_sent_from", "target": "check_sent_from(sent_from: Any): str"}, {"predicate": "is", "source": "metagpt/schema.py:Message:dump", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:Message:dump", "target": "dump(): str"}, {"predicate": "is", "source": "metagpt/schema.py:Message:load", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:Message:load", "target": "load(val)"}, {"predicate": "is", "source": "metagpt/schema.py:Message:ser_instruct_content", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:Message:ser_instruct_content", "target": "ser_instruct_content(ic: BaseModel): Union[str, None]"}, {"predicate": "is", "source": "metagpt/schema.py:Message:to_dict", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:Message:to_dict", "target": "to_dict(): dict"}, {"predicate": "is", "source": "metagpt/schema.py:MessageQueue", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:MessageQueue", "target": "metagpt/schema.py:MessageQueue:model_config"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:MessageQueue", "target": "metagpt/schema.py:MessageQueue:dump"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:MessageQueue", "target": "metagpt/schema.py:MessageQueue:empty"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:MessageQueue", "target": "metagpt/schema.py:MessageQueue:load"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:MessageQueue", "target": "metagpt/schema.py:MessageQueue:pop"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:MessageQueue", "target": "metagpt/schema.py:MessageQueue:pop_all"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:MessageQueue", "target": "metagpt/schema.py:MessageQueue:push"}, {"predicate": "isCompositeOf", "source": "metagpt/schema.py:MessageQueue", "target": "metagpt/roles/role.py:RoleContext"}, {"predicate": "isCompositeOn", "source": "metagpt/schema.py:MessageQueue", "target": "metagpt/roles/role.py:RoleContext:msg_buffer"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:MessageQueue", "target": "{\"lineno\":314,\"end_lineno\":383,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MessageQueue\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:MessageQueue", "target": "{\"name\":\"MessageQueue\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"dump\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"str\"},{\"name\":\"empty\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"load\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"MessageQueue\"},{\"name\":\"pop\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Message \\\\| None\"},{\"name\":\"pop_all\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"List[Message]\"},{\"name\":\"push\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/schema.py:MessageQueue:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:MessageQueue:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/schema.py:MessageQueue:dump", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:MessageQueue:dump", "target": "dump(): str"}, {"predicate": "is", "source": "metagpt/schema.py:MessageQueue:empty", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:MessageQueue:empty", "target": "empty()"}, {"predicate": "is", "source": "metagpt/schema.py:MessageQueue:load", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:MessageQueue:load", "target": "load(data): 'MessageQueue'"}, {"predicate": "is", "source": "metagpt/schema.py:MessageQueue:pop", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:MessageQueue:pop", "target": "pop(): Message \\| None"}, {"predicate": "is", "source": "metagpt/schema.py:MessageQueue:pop_all", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:MessageQueue:pop_all", "target": "pop_all(): List[Message]"}, {"predicate": "is", "source": "metagpt/schema.py:MessageQueue:push", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/schema.py:MessageQueue:push", "target": "push(msg: Message)"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:MessageType", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/assistant.py:MessageType", "target": "metagpt/roles/assistant.py:MessageType:name"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:MessageType", "target": "{\"lineno\":33,\"end_lineno\":35,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MessageType\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/assistant.py:MessageType", "target": "{\"name\":\"MessageType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:MessageType:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/assistant.py:MessageType:name", "target": "name"}, {"predicate": "is", "source": "metagpt/provider/metagpt_api.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/metagpt_api.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/metagpt_api.py", "target": "metagpt/provider/metagpt_api.py:MetaGPTLLM"}, {"predicate": "is", "source": "metagpt/provider/metagpt_api.py:MetaGPTLLM", "target": "class"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/metagpt_api.py:MetaGPTLLM", "target": "metagpt/provider/openai_api.py:OpenAILLM"}, {"predicate": "has_class_function", "source": "metagpt/provider/metagpt_api.py:MetaGPTLLM", "target": "metagpt/provider/metagpt_api.py:MetaGPTLLM:__init__"}, {"predicate": "has_page_info", "source": "metagpt/provider/metagpt_api.py:MetaGPTLLM", "target": "{\"lineno\":14,\"end_lineno\":16,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MetaGPTLLM\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/metagpt_api.py:MetaGPTLLM", "target": "{\"name\":\"MetaGPTLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image", "target": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:model_url"}, {"predicate": "has_class_function", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image", "target": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image"}, {"predicate": "has_class_function", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image", "target": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image", "target": "{\"lineno\":20,\"end_lineno\":82,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MetaGPTText2Image\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image", "target": "{\"name\":\"MetaGPTText2Image\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"model_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"text_2_image\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"size_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:model_url", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:model_url", "target": "model_url"}, {"predicate": "is", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:text_2_image", "target": "text_2_image(text, size_type)"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/strategy/tot_schema.py", "target": "metagpt/strategy/tot_schema.py:MethodSelect"}, {"predicate": "has_class", "source": "metagpt/strategy/tot_schema.py", "target": "metagpt/strategy/tot_schema.py:Strategy"}, {"predicate": "has_class", "source": "metagpt/strategy/tot_schema.py", "target": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py:MethodSelect", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot_schema.py:MethodSelect", "target": "metagpt/strategy/tot_schema.py:MethodSelect:name"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot_schema.py:MethodSelect", "target": "{\"lineno\":12,\"end_lineno\":14,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"MethodSelect\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/strategy/tot_schema.py:MethodSelect", "target": "{\"name\":\"MethodSelect\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py:MethodSelect:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot_schema.py:MethodSelect:name", "target": "name"}, {"predicate": "is", "source": "metagpt/tools/moderation.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/moderation.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/moderation.py", "target": "metagpt/tools/moderation.py:Moderation"}, {"predicate": "is", "source": "metagpt/tools/moderation.py:Moderation", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/moderation.py:Moderation", "target": "metagpt/tools/moderation.py:Moderation:llm"}, {"predicate": "has_class_function", "source": "metagpt/tools/moderation.py:Moderation", "target": "metagpt/tools/moderation.py:Moderation:amoderation"}, {"predicate": "has_class_function", "source": "metagpt/tools/moderation.py:Moderation", "target": "metagpt/tools/moderation.py:Moderation:amoderation_with_categories"}, {"predicate": "has_class_function", "source": "metagpt/tools/moderation.py:Moderation", "target": "metagpt/tools/moderation.py:Moderation:handle_moderation_results"}, {"predicate": "has_class_function", "source": "metagpt/tools/moderation.py:Moderation", "target": "metagpt/tools/moderation.py:Moderation:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/moderation.py:Moderation", "target": "{\"lineno\":13,\"end_lineno\":40,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Moderation\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/moderation.py:Moderation", "target": "{\"name\":\"Moderation\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"amoderation\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Union[str, list[str]]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"amoderation_with_categories\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Union[str, list[str]]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"handle_moderation_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/moderation.py:Moderation:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/moderation.py:Moderation:llm", "target": "llm"}, {"predicate": "is", "source": "metagpt/tools/moderation.py:Moderation:amoderation", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/moderation.py:Moderation:amoderation", "target": "amoderation(content: Union[str, list[str]])"}, {"predicate": "is", "source": "metagpt/tools/moderation.py:Moderation:amoderation_with_categories", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/moderation.py:Moderation:amoderation_with_categories", "target": "amoderation_with_categories(content: Union[str, list[str]])"}, {"predicate": "is", "source": "metagpt/tools/moderation.py:Moderation:handle_moderation_results", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/moderation.py:Moderation:handle_moderation_results", "target": "handle_moderation_results(results)"}, {"predicate": "is", "source": "metagpt/utils/common.py:NoMoneyException", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/common.py:NoMoneyException", "target": "metagpt/utils/common.py:NoMoneyException:amount"}, {"predicate": "has_class_property", "source": "metagpt/utils/common.py:NoMoneyException", "target": "metagpt/utils/common.py:NoMoneyException:message"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:NoMoneyException", "target": "metagpt/utils/common.py:NoMoneyException:__init__"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:NoMoneyException", "target": "metagpt/utils/common.py:NoMoneyException:__str__"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:NoMoneyException", "target": "{\"lineno\":307,\"end_lineno\":316,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"NoMoneyException\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/common.py:NoMoneyException", "target": "{\"name\":\"NoMoneyException\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"amount\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__str__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/common.py:NoMoneyException:amount", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/common.py:NoMoneyException:amount", "target": "amount"}, {"predicate": "is", "source": "metagpt/utils/common.py:NoMoneyException:message", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/common.py:NoMoneyException:message", "target": "message : str"}, {"predicate": "is", "source": "metagpt/config.py:NotConfiguredException", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/config.py:NotConfiguredException", "target": "metagpt/config.py:NotConfiguredException:message"}, {"predicate": "has_class_function", "source": "metagpt/config.py:NotConfiguredException", "target": "metagpt/config.py:NotConfiguredException:__init__"}, {"predicate": "has_page_info", "source": "metagpt/config.py:NotConfiguredException", "target": "{\"lineno\":29,\"end_lineno\":38,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"NotConfiguredException\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/config.py:NotConfiguredException", "target": "{\"name\":\"NotConfiguredException\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/config.py:NotConfiguredException:message", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/config.py:NotConfiguredException:message", "target": "message : str"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:OCRResults", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/invoice_ocr_assistant.py:OCRResults", "target": "metagpt/roles/invoice_ocr_assistant.py:OCRResults:ocr_result"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:OCRResults", "target": "{\"lineno\":27,\"end_lineno\":28,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OCRResults\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/invoice_ocr_assistant.py:OCRResults", "target": "{\"name\":\"OCRResults\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"ocr_result\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:OCRResults:ocr_result", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/invoice_ocr_assistant.py:OCRResults:ocr_result", "target": "ocr_result : str"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/ollama_api.py", "target": "metagpt/provider/ollama_api.py:OllamaCostManager"}, {"predicate": "has_class", "source": "metagpt/provider/ollama_api.py", "target": "metagpt/provider/ollama_api.py:OllamaLLM"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaCostManager", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/ollama_api.py:OllamaCostManager", "target": "metagpt/provider/ollama_api.py:OllamaCostManager:total_completion_tokens"}, {"predicate": "has_class_property", "source": "metagpt/provider/ollama_api.py:OllamaCostManager", "target": "metagpt/provider/ollama_api.py:OllamaCostManager:total_prompt_tokens"}, {"predicate": "has_class_function", "source": "metagpt/provider/ollama_api.py:OllamaCostManager", "target": "metagpt/provider/ollama_api.py:OllamaCostManager:update_cost"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/ollama_api.py:OllamaCostManager", "target": "metagpt/utils/cost_manager.py:CostManager"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/ollama_api.py:OllamaCostManager", "target": "metagpt/provider/ollama_api.py:OllamaLLM"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/ollama_api.py:OllamaCostManager", "target": "metagpt/provider/ollama_api.py:OllamaLLM:_cost_manager"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:OllamaCostManager", "target": "{\"lineno\":26,\"end_lineno\":38,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OllamaCostManager\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/ollama_api.py:OllamaCostManager", "target": "{\"name\":\"OllamaCostManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"total_completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"total_prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"update_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaCostManager:total_completion_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/ollama_api.py:OllamaCostManager:total_completion_tokens", "target": "total_completion_tokens"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaCostManager:total_prompt_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/ollama_api.py:OllamaCostManager:total_prompt_tokens", "target": "total_prompt_tokens"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaCostManager:update_cost", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/ollama_api.py:OllamaCostManager:update_cost", "target": "update_cost(prompt_tokens, completion_tokens, model)"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:client"}, {"predicate": "has_class_property", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:http_method"}, {"predicate": "has_class_property", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:model"}, {"predicate": "has_class_property", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:suffix_url"}, {"predicate": "has_class_property", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:use_system_prompt"}, {"predicate": "has_class_function", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:acompletion"}, {"predicate": "has_class_function", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:acompletion_text"}, {"predicate": "has_class_function", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:get_choice_text"}, {"predicate": "has_class_function", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:get_usage"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/base_llm.py:BaseLLM"}, {"predicate": "has_class_function", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:__init__"}, {"predicate": "has_class_function", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:__init_ollama"}, {"predicate": "has_class_function", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:_const_kwargs"}, {"predicate": "has_class_function", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:_update_costs"}, {"predicate": "has_class_function", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:_decode_and_load"}, {"predicate": "has_class_function", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:_achat_completion"}, {"predicate": "has_class_function", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "metagpt/provider/ollama_api.py:OllamaLLM:_achat_completion_stream"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "{\"lineno\":42,\"end_lineno\":139,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OllamaLLM\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/ollama_api.py:OllamaLLM", "target": "{\"name\":\"OllamaLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"client\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"http_method\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"suffix_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"use_system_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_choice_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"resp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"resp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init_ollama\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_const_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_decode_and_load\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion_stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:client", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/ollama_api.py:OllamaLLM:client", "target": "client"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:http_method", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/ollama_api.py:OllamaLLM:http_method", "target": "http_method : str"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/ollama_api.py:OllamaLLM:model", "target": "model"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:suffix_url", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/ollama_api.py:OllamaLLM:suffix_url", "target": "suffix_url : str"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:use_system_prompt", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/ollama_api.py:OllamaLLM:use_system_prompt", "target": "use_system_prompt : bool"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:acompletion", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/ollama_api.py:OllamaLLM:acompletion", "target": "acompletion(messages: list[dict], timeout): dict"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:acompletion_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/ollama_api.py:OllamaLLM:acompletion_text", "target": "acompletion_text(messages: list[dict], stream, timeout: int): str"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:get_choice_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/ollama_api.py:OllamaLLM:get_choice_text", "target": "get_choice_text(resp: dict): str"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:get_usage", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/ollama_api.py:OllamaLLM:get_usage", "target": "get_usage(resp: dict): dict"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/openai_api.py", "target": "metagpt/provider/openai_api.py:OpenAILLM"}, {"predicate": "has_function", "source": "metagpt/provider/openai_api.py", "target": "metagpt/provider/openai_api.py:log_and_reraise"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:aclient"}, {"predicate": "has_class_property", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:auto_max_tokens"}, {"predicate": "has_class_property", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:config"}, {"predicate": "has_class_property", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:model"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:aask_code"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:acompletion"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:acompletion_text"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:amoderation"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:get_choice_function_arguments"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:get_choice_text"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:get_costs"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/base_llm.py:BaseLLM"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:__init__"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_init_openai"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_init_client"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_make_client_kwargs"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_get_proxy_params"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_achat_completion_stream"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_cons_kwargs"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_achat_completion"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_func_configs"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_achat_completion_function"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_process_message"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_calc_usage"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_update_costs"}, {"predicate": "has_class_function", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "metagpt/provider/openai_api.py:OpenAILLM:_get_max_tokens"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "{\"lineno\":54,\"end_lineno\":235,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OpenAILLM\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/openai_api.py:OpenAILLM", "target": "{\"name\":\"OpenAILLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"aclient\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"AsyncOpenAI \",\"default_value\":\"\"},{\"name\":\"auto_max_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"aask_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Union[str, Message, list[dict]]\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"ChatCompletion\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"amoderation\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Union[str, list[str]]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_choice_function_arguments\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"ChatCompletion\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"get_choice_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"ChatCompletion\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Costs\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_init_openai\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_init_client\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_make_client_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_proxy_params\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion_stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_cons_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_func_configs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion_function\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_process_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_calc_usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_max_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:aclient", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/openai_api.py:OpenAILLM:aclient", "target": "aclient : AsyncOpenAI"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:auto_max_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/openai_api.py:OpenAILLM:auto_max_tokens", "target": "auto_max_tokens : bool"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/openai_api.py:OpenAILLM:config", "target": "config"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/openai_api.py:OpenAILLM:model", "target": "model"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:aask_code", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/openai_api.py:OpenAILLM:aask_code", "target": "aask_code(messages: Union[str, Message, list[dict]]): dict"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:acompletion", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/openai_api.py:OpenAILLM:acompletion", "target": "acompletion(messages: list[dict], timeout): ChatCompletion"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:acompletion_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/openai_api.py:OpenAILLM:acompletion_text", "target": "acompletion_text(messages: list[dict], stream, timeout): str"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:amoderation", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/openai_api.py:OpenAILLM:amoderation", "target": "amoderation(content: Union[str, list[str]])"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:get_choice_function_arguments", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/openai_api.py:OpenAILLM:get_choice_function_arguments", "target": "get_choice_function_arguments(rsp: ChatCompletion): dict"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:get_choice_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/openai_api.py:OpenAILLM:get_choice_text", "target": "get_choice_text(rsp: ChatCompletion): str"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:get_costs", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/openai_api.py:OpenAILLM:get_costs", "target": "get_costs(): Costs"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/general_api_base.py:OpenAIResponse", "target": "metagpt/provider/general_api_base.py:OpenAIResponse:data"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:OpenAIResponse", "target": "metagpt/provider/general_api_base.py:OpenAIResponse:operation_location"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:OpenAIResponse", "target": "metagpt/provider/general_api_base.py:OpenAIResponse:organization"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:OpenAIResponse", "target": "metagpt/provider/general_api_base.py:OpenAIResponse:request_id"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:OpenAIResponse", "target": "metagpt/provider/general_api_base.py:OpenAIResponse:response_ms"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:OpenAIResponse", "target": "metagpt/provider/general_api_base.py:OpenAIResponse:retry_after"}, {"predicate": "has_class_function", "source": "metagpt/provider/general_api_base.py:OpenAIResponse", "target": "metagpt/provider/general_api_base.py:OpenAIResponse:__init__"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:OpenAIResponse", "target": "{\"lineno\":123,\"end_lineno\":150,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OpenAIResponse\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/general_api_base.py:OpenAIResponse", "target": "{\"name\":\"OpenAIResponse\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"operation_location\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"organization\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"request_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"response_ms\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"retry_after\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:data", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:data", "target": "data"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:operation_location", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:operation_location", "target": "operation_location"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:operation_location", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:organization", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:organization", "target": "organization"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:organization", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:request_id", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:request_id", "target": "request_id"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:request_id", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:response_ms", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:response_ms", "target": "response_ms"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:response_ms", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:retry_after", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:retry_after", "target": "retry_after"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:retry_after", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding", "target": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding:openai_api_key"}, {"predicate": "has_class_function", "source": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding", "target": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding:text_2_embedding"}, {"predicate": "has_class_function", "source": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding", "target": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding", "target": "{\"lineno\":45,\"end_lineno\":71,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OpenAIText2Embedding\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding", "target": "{\"name\":\"OpenAIText2Embedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"openai_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"text_2_embedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding:openai_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding:openai_api_key", "target": "openai_api_key"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding:text_2_embedding", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding:text_2_embedding", "target": "text_2_embedding(text, model)"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_image.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_image.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/openai_text_to_image.py", "target": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image"}, {"predicate": "has_function", "source": "metagpt/tools/openai_text_to_image.py", "target": "metagpt/tools/openai_text_to_image.py:oas3_openai_text_to_image"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image", "target": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image:get_image_data"}, {"predicate": "has_class_function", "source": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image", "target": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image:text_2_image"}, {"predicate": "has_class_function", "source": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image", "target": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image", "target": "{\"lineno\":17,\"end_lineno\":56,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OpenAIText2Image\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image", "target": "{\"name\":\"OpenAIText2Image\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"get_image_data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"text_2_image\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"size_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image:get_image_data", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image:get_image_data", "target": "get_image_data(url)"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image:text_2_image", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image:text_2_image", "target": "text_2_image(text, size_type)"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/open_llm_api.py", "target": "metagpt/provider/open_llm_api.py:OpenLLM"}, {"predicate": "has_class", "source": "metagpt/provider/open_llm_api.py", "target": "metagpt/provider/open_llm_api.py:OpenLLMCostManager"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "metagpt/provider/open_llm_api.py:OpenLLM:auto_max_tokens"}, {"predicate": "has_class_property", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "metagpt/provider/open_llm_api.py:OpenLLM:config"}, {"predicate": "has_class_property", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "metagpt/provider/open_llm_api.py:OpenLLM:is_azure"}, {"predicate": "has_class_property", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "metagpt/provider/open_llm_api.py:OpenLLM:model"}, {"predicate": "has_class_property", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "metagpt/provider/open_llm_api.py:OpenLLM:rpm"}, {"predicate": "has_class_function", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "metagpt/provider/open_llm_api.py:OpenLLM:get_costs"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "metagpt/provider/openai_api.py:OpenAILLM"}, {"predicate": "has_class_function", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "metagpt/provider/open_llm_api.py:OpenLLM:__init__"}, {"predicate": "has_class_function", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "metagpt/provider/open_llm_api.py:OpenLLM:__init_openllm"}, {"predicate": "has_class_function", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "metagpt/provider/open_llm_api.py:OpenLLM:_make_client_kwargs"}, {"predicate": "has_class_function", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "metagpt/provider/open_llm_api.py:OpenLLM:_calc_usage"}, {"predicate": "has_class_function", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "metagpt/provider/open_llm_api.py:OpenLLM:_update_costs"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "{\"lineno\":37,\"end_lineno\":76,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OpenLLM\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/open_llm_api.py:OpenLLM", "target": "{\"name\":\"OpenLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"auto_max_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"is_azure\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"rpm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Costs\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init_openllm\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_make_client_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_calc_usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLM:auto_max_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/open_llm_api.py:OpenLLM:auto_max_tokens", "target": "auto_max_tokens : bool"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLM:config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/open_llm_api.py:OpenLLM:config", "target": "config"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLM:is_azure", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/open_llm_api.py:OpenLLM:is_azure", "target": "is_azure : bool"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLM:model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/open_llm_api.py:OpenLLM:model", "target": "model"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLM:rpm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/open_llm_api.py:OpenLLM:rpm", "target": "rpm : int"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLM:get_costs", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/open_llm_api.py:OpenLLM:get_costs", "target": "get_costs(): Costs"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager", "target": "metagpt/provider/open_llm_api.py:OpenLLMCostManager:total_completion_tokens"}, {"predicate": "has_class_property", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager", "target": "metagpt/provider/open_llm_api.py:OpenLLMCostManager:total_prompt_tokens"}, {"predicate": "has_class_function", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager", "target": "metagpt/provider/open_llm_api.py:OpenLLMCostManager:update_cost"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager", "target": "metagpt/utils/cost_manager.py:CostManager"}, {"predicate": "isCompositeOf", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager", "target": "metagpt/provider/open_llm_api.py:OpenLLM"}, {"predicate": "isCompositeOn", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager", "target": "metagpt/provider/open_llm_api.py:OpenLLM:_cost_manager"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager", "target": "{\"lineno\":15,\"end_lineno\":33,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OpenLLMCostManager\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager", "target": "{\"name\":\"OpenLLMCostManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"total_completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"total_prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"update_cost\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"completion_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager:total_completion_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager:total_completion_tokens", "target": "total_completion_tokens"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager:total_prompt_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager:total_prompt_tokens", "target": "total_prompt_tokens"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager:update_cost", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/open_llm_api.py:OpenLLMCostManager:update_cost", "target": "update_cost(prompt_tokens, completion_tokens, model)"}, {"predicate": "is", "source": "metagpt/utils/common.py:OutputParser", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:OutputParser", "target": "metagpt/utils/common.py:OutputParser:extract_content"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:OutputParser", "target": "metagpt/utils/common.py:OutputParser:extract_struct"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:OutputParser", "target": "metagpt/utils/common.py:OutputParser:parse_blocks"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:OutputParser", "target": "metagpt/utils/common.py:OutputParser:parse_code"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:OutputParser", "target": "metagpt/utils/common.py:OutputParser:parse_data"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:OutputParser", "target": "metagpt/utils/common.py:OutputParser:parse_data_with_mapping"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:OutputParser", "target": "metagpt/utils/common.py:OutputParser:parse_file_list"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:OutputParser", "target": "metagpt/utils/common.py:OutputParser:parse_python_code"}, {"predicate": "has_class_function", "source": "metagpt/utils/common.py:OutputParser", "target": "metagpt/utils/common.py:OutputParser:parse_str"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:OutputParser", "target": "{\"lineno\":57,\"end_lineno\":231,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"OutputParser\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/common.py:OutputParser", "target": "{\"name\":\"OutputParser\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"extract_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"tag\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"extract_struct\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"data_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Union[type(list), type(dict)]\",\"default_value\":\"\"}],\"return_type\":\"Union[list, dict]\"},{\"name\":\"parse_blocks\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"parse_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"lang\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"parse_data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"parse_data_with_mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"parse_file_list\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[str]\"},{\"name\":\"parse_python_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"parse_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/common.py:OutputParser:extract_content", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:OutputParser:extract_content", "target": "extract_content(text, tag)"}, {"predicate": "is", "source": "metagpt/utils/common.py:OutputParser:extract_struct", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:OutputParser:extract_struct", "target": "extract_struct(text: str, data_type: Union[type(list), type(dict)]): Union[list, dict]"}, {"predicate": "is", "source": "metagpt/utils/common.py:OutputParser:parse_blocks", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:OutputParser:parse_blocks", "target": "parse_blocks(text: str)"}, {"predicate": "is", "source": "metagpt/utils/common.py:OutputParser:parse_code", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:OutputParser:parse_code", "target": "parse_code(text: str, lang: str): str"}, {"predicate": "is", "source": "metagpt/utils/common.py:OutputParser:parse_data", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:OutputParser:parse_data", "target": "parse_data(data)"}, {"predicate": "is", "source": "metagpt/utils/common.py:OutputParser:parse_data_with_mapping", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:OutputParser:parse_data_with_mapping", "target": "parse_data_with_mapping(data, mapping)"}, {"predicate": "is", "source": "metagpt/utils/common.py:OutputParser:parse_file_list", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:OutputParser:parse_file_list", "target": "parse_file_list(text: str): list[str]"}, {"predicate": "is", "source": "metagpt/utils/common.py:OutputParser:parse_python_code", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:OutputParser:parse_python_code", "target": "parse_python_code(text: str): str"}, {"predicate": "is", "source": "metagpt/utils/common.py:OutputParser:parse_str", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/common.py:OutputParser:parse_str", "target": "parse_str(text: str)"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Parameter", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Parameter", "target": "metagpt/learn/skill_loader.py:Parameter:description"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Parameter", "target": "metagpt/learn/skill_loader.py:Parameter:type"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:Parameter", "target": "{\"lineno\":29,\"end_lineno\":31,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Parameter\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/learn/skill_loader.py:Parameter", "target": "{\"name\":\"Parameter\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"description\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Parameter:description", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Parameter:description", "target": "description : Optional[str]"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Parameter:type", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Parameter:type", "target": "type : str"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/web_browser_engine_playwright.py", "target": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper"}, {"predicate": "has_function", "source": "metagpt/tools/web_browser_engine_playwright.py", "target": "metagpt/tools/web_browser_engine_playwright.py:_get_install_lock"}, {"predicate": "has_function", "source": "metagpt/tools/web_browser_engine_playwright.py", "target": "metagpt/tools/web_browser_engine_playwright.py:_install_browsers"}, {"predicate": "has_function", "source": "metagpt/tools/web_browser_engine_playwright.py", "target": "metagpt/tools/web_browser_engine_playwright.py:_log_stream"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper", "target": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:browser_type"}, {"predicate": "has_class_property", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper", "target": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:launch_kwargs"}, {"predicate": "has_class_function", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper", "target": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:run"}, {"predicate": "has_class_function", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper", "target": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:__init__"}, {"predicate": "has_class_function", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper", "target": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:_scrape"}, {"predicate": "has_class_function", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper", "target": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:_run_precheck"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper", "target": "{\"lineno\":20,\"end_lineno\":99,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"PlaywrightWrapper\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper", "target": "{\"name\":\"PlaywrightWrapper\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"browser_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Literal[chromium, firefox, webkit] \\\\| None \",\"default_value\":\"\"},{\"name\":\"launch_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \\\\| None \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"WebPage \\\\| list[WebPage]\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_scrape\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_run_precheck\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:browser_type", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:browser_type", "target": "browser_type : Literal['chromium', 'firefox', 'webkit'] \\| None"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:launch_kwargs", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:launch_kwargs", "target": "launch_kwargs : dict \\| None"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:run", "target": "run(url: str): WebPage \\| list[WebPage]"}, {"predicate": "is", "source": "metagpt/actions/prepare_documents.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/prepare_documents.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/prepare_documents.py", "target": "metagpt/actions/prepare_documents.py:PrepareDocuments"}, {"predicate": "is", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments", "target": "metagpt/actions/prepare_documents.py:PrepareDocuments:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments", "target": "metagpt/actions/prepare_documents.py:PrepareDocuments:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments", "target": "metagpt/actions/prepare_documents.py:PrepareDocuments:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments", "target": "metagpt/actions/prepare_documents.py:PrepareDocuments:_init_repo"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments", "target": "{\"lineno\":22,\"end_lineno\":51,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"PrepareDocuments\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments", "target": "{\"name\":\"PrepareDocuments\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_init_repo\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments:run", "target": "run(with_messages)"}, {"predicate": "is", "source": "metagpt/actions/prepare_interview.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/prepare_interview.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/prepare_interview.py", "target": "metagpt/actions/prepare_interview.py:PrepareInterview"}, {"predicate": "is", "source": "metagpt/actions/prepare_interview.py:PrepareInterview", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/prepare_interview.py:PrepareInterview", "target": "metagpt/actions/prepare_interview.py:PrepareInterview:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/prepare_interview.py:PrepareInterview", "target": "metagpt/actions/prepare_interview.py:PrepareInterview:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/prepare_interview.py:PrepareInterview", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_interview.py:PrepareInterview", "target": "{\"lineno\":21,\"end_lineno\":25,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"PrepareInterview\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/prepare_interview.py:PrepareInterview", "target": "{\"name\":\"PrepareInterview\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/prepare_interview.py:PrepareInterview:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/prepare_interview.py:PrepareInterview:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/prepare_interview.py:PrepareInterview:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/prepare_interview.py:PrepareInterview:run", "target": "run(context)"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/product_manager.py", "target": "metagpt/roles/product_manager.py:ProductManager"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "metagpt/roles/product_manager.py:ProductManager:constraints"}, {"predicate": "has_class_property", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "metagpt/roles/product_manager.py:ProductManager:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "metagpt/roles/product_manager.py:ProductManager:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "metagpt/roles/product_manager.py:ProductManager:profile"}, {"predicate": "has_class_function", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "metagpt/roles/product_manager.py:ProductManager:todo"}, {"predicate": "has_class_property", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "metagpt/roles/product_manager.py:ProductManager:todo_action"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "metagpt/roles/product_manager.py:ProductManager:__init__"}, {"predicate": "has_class_function", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "metagpt/roles/product_manager.py:ProductManager:_think"}, {"predicate": "has_class_function", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "metagpt/roles/product_manager.py:ProductManager:_observe"}, {"predicate": "has_page_info", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "{\"lineno\":17,\"end_lineno\":57,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ProductManager\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/product_manager.py:ProductManager", "target": "{\"name\":\"ProductManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"todo_action\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"todo\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_think\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_observe\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py:ProductManager:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/product_manager.py:ProductManager:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py:ProductManager:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/product_manager.py:ProductManager:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py:ProductManager:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/product_manager.py:ProductManager:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py:ProductManager:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/product_manager.py:ProductManager:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py:ProductManager:todo", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/product_manager.py:ProductManager:todo", "target": "todo"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py:ProductManager:todo", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py:ProductManager:todo_action", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/product_manager.py:ProductManager:todo_action", "target": "todo_action : str"}, {"predicate": "is", "source": "metagpt/roles/project_manager.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/project_manager.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/project_manager.py", "target": "metagpt/roles/project_manager.py:ProjectManager"}, {"predicate": "is", "source": "metagpt/roles/project_manager.py:ProjectManager", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/project_manager.py:ProjectManager", "target": "metagpt/roles/project_manager.py:ProjectManager:constraints"}, {"predicate": "has_class_property", "source": "metagpt/roles/project_manager.py:ProjectManager", "target": "metagpt/roles/project_manager.py:ProjectManager:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/project_manager.py:ProjectManager", "target": "metagpt/roles/project_manager.py:ProjectManager:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/project_manager.py:ProjectManager", "target": "metagpt/roles/project_manager.py:ProjectManager:profile"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/project_manager.py:ProjectManager", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/project_manager.py:ProjectManager", "target": "metagpt/roles/project_manager.py:ProjectManager:__init__"}, {"predicate": "has_page_info", "source": "metagpt/roles/project_manager.py:ProjectManager", "target": "{\"lineno\":14,\"end_lineno\":37,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ProjectManager\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/project_manager.py:ProjectManager", "target": "{\"name\":\"ProjectManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/project_manager.py:ProjectManager:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/project_manager.py:ProjectManager:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/project_manager.py:ProjectManager:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/project_manager.py:ProjectManager:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/project_manager.py:ProjectManager:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/project_manager.py:ProjectManager:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/project_manager.py:ProjectManager:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/project_manager.py:ProjectManager:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/prompt.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/prompt.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/prompt.py", "target": "metagpt/roles/prompt.py:PromptString"}, {"predicate": "is", "source": "metagpt/roles/prompt.py:PromptString", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/prompt.py:PromptString", "target": "metagpt/roles/prompt.py:PromptString:name"}, {"predicate": "has_page_info", "source": "metagpt/roles/prompt.py:PromptString", "target": "{\"lineno\":27,\"end_lineno\":46,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"PromptString\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/prompt.py:PromptString", "target": "{\"name\":\"PromptString\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/roles/prompt.py:PromptString:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/prompt.py:PromptString:name", "target": "name"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/qa_engineer.py", "target": "metagpt/roles/qa_engineer.py:QaEngineer"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/qa_engineer.py:QaEngineer:constraints"}, {"predicate": "has_class_property", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/qa_engineer.py:QaEngineer:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/qa_engineer.py:QaEngineer:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/qa_engineer.py:QaEngineer:profile"}, {"predicate": "has_class_property", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/qa_engineer.py:QaEngineer:test_round"}, {"predicate": "has_class_property", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/qa_engineer.py:QaEngineer:test_round_allowed"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/qa_engineer.py:QaEngineer:__init__"}, {"predicate": "has_class_function", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/qa_engineer.py:QaEngineer:_write_test"}, {"predicate": "has_class_function", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/qa_engineer.py:QaEngineer:_run_code"}, {"predicate": "has_class_function", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/qa_engineer.py:QaEngineer:_debug_error"}, {"predicate": "has_class_function", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/qa_engineer.py:QaEngineer:_act"}, {"predicate": "has_class_function", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "metagpt/roles/qa_engineer.py:QaEngineer:_observe"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "{\"lineno\":34,\"end_lineno\":186,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"QaEngineer\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/qa_engineer.py:QaEngineer", "target": "{\"name\":\"QaEngineer\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"test_round\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"test_round_allowed\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_write_test\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_run_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_debug_error\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_observe\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/qa_engineer.py:QaEngineer:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/qa_engineer.py:QaEngineer:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/qa_engineer.py:QaEngineer:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/qa_engineer.py:QaEngineer:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer:test_round", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/qa_engineer.py:QaEngineer:test_round", "target": "test_round : int"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer:test_round_allowed", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/qa_engineer.py:QaEngineer:test_round_allowed", "target": "test_round_allowed : int"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/document_store/qdrant_store.py", "target": "metagpt/document_store/qdrant_store.py:QdrantConnection"}, {"predicate": "has_class", "source": "metagpt/document_store/qdrant_store.py", "target": "metagpt/document_store/qdrant_store.py:QdrantStore"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection", "target": "metagpt/document_store/qdrant_store.py:QdrantConnection:api_key"}, {"predicate": "has_class_property", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection", "target": "metagpt/document_store/qdrant_store.py:QdrantConnection:host"}, {"predicate": "has_class_property", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection", "target": "metagpt/document_store/qdrant_store.py:QdrantConnection:memory"}, {"predicate": "has_class_property", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection", "target": "metagpt/document_store/qdrant_store.py:QdrantConnection:port"}, {"predicate": "has_class_property", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection", "target": "metagpt/document_store/qdrant_store.py:QdrantConnection:url"}, {"predicate": "has_page_info", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection", "target": "{\"lineno\":11,\"end_lineno\":25,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"QdrantConnection\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection", "target": "{\"name\":\"QdrantConnection\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"host\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"port\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[int] \",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection:api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection:api_key", "target": "api_key : Optional[str]"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection:host", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection:host", "target": "host : Optional[str]"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection:memory", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection:memory", "target": "memory : bool"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection:port", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection:port", "target": "port : Optional[int]"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection:url", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/qdrant_store.py:QdrantConnection:url", "target": "url : Optional[str]"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "metagpt/document_store/qdrant_store.py:QdrantStore:client"}, {"predicate": "has_class_function", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "metagpt/document_store/qdrant_store.py:QdrantStore:add"}, {"predicate": "has_class_function", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "metagpt/document_store/qdrant_store.py:QdrantStore:create_collection"}, {"predicate": "has_class_function", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "metagpt/document_store/qdrant_store.py:QdrantStore:delete_collection"}, {"predicate": "has_class_function", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "metagpt/document_store/qdrant_store.py:QdrantStore:has_collection"}, {"predicate": "has_class_function", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "metagpt/document_store/qdrant_store.py:QdrantStore:search"}, {"predicate": "has_class_function", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "metagpt/document_store/qdrant_store.py:QdrantStore:write"}, {"predicate": "isGeneralizeOf", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "metagpt/document_store/base_store.py:BaseStore"}, {"predicate": "has_class_function", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "metagpt/document_store/qdrant_store.py:QdrantStore:__init__"}, {"predicate": "has_class_function", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "metagpt/document_store/qdrant_store.py:QdrantStore:write"}, {"predicate": "has_page_info", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "{\"lineno\":28,\"end_lineno\":124,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"QdrantStore\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/document_store/qdrant_store.py:QdrantStore", "target": "{\"name\":\"QdrantStore\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"client\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"QdrantClient \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"add\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"collection_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"points\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[PointStruct]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"create_collection\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"collection_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"vectors_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"VectorParams\",\"default_value\":\"\"},{\"name\":\"force_recreate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"delete_collection\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"collection_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"has_collection\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"collection_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"search\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"collection_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[float]\",\"default_value\":\"\"},{\"name\":\"query_filter\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Filter\",\"default_value\":\"\"},{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"return_vector\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"write\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:client", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:client", "target": "client : QdrantClient"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:add", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:add", "target": "add(collection_name: str, points: List[PointStruct])"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:create_collection", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:create_collection", "target": "create_collection(collection_name: str, vectors_config: VectorParams, force_recreate)"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:delete_collection", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:delete_collection", "target": "delete_collection(collection_name: str, timeout)"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:has_collection", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:has_collection", "target": "has_collection(collection_name: str)"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:search", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:search", "target": "search(collection_name: str, query: List[float], query_filter: Filter, k, return_vector)"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:write", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:write", "target": "write()"}, {"predicate": "is", "source": "metagpt/actions/rebuild_class_view.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/rebuild_class_view.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/rebuild_class_view.py", "target": "metagpt/actions/rebuild_class_view.py:RebuildClassView"}, {"predicate": "is", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "metagpt/actions/rebuild_class_view.py:RebuildClassView:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_create_mermaid_class_views"}, {"predicate": "has_class_function", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_create_mermaid_class"}, {"predicate": "has_class_function", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_create_mermaid_relationship"}, {"predicate": "has_class_function", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_parse_name"}, {"predicate": "has_class_function", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_parse_variable_type"}, {"predicate": "has_class_function", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_parse_function_args"}, {"predicate": "has_class_function", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_diff_path"}, {"predicate": "has_class_function", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_align_root"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "{\"lineno\":31,\"end_lineno\":217,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RebuildClassView\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView", "target": "{\"name\":\"RebuildClassView\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"format\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_create_mermaid_class_views\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_create_mermaid_class\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_create_mermaid_relationship\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_variable_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_function_args\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_diff_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_align_root\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView:run", "target": "run(with_messages, format)"}, {"predicate": "is", "source": "metagpt/actions/rebuild_sequence_view.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/rebuild_sequence_view.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/rebuild_sequence_view.py", "target": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView"}, {"predicate": "is", "source": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView", "target": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView", "target": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView:_search_main_entry"}, {"predicate": "has_class_function", "source": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView", "target": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView:_rebuild_sequence_view"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView", "target": "{\"lineno\":18,\"end_lineno\":44,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RebuildSequenceView\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView", "target": "{\"name\":\"RebuildSequenceView\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"format\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_search_main_entry\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_rebuild_sequence_view\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView:run", "target": "run(with_messages, format)"}, {"predicate": "is", "source": "metagpt/utils/redis.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/redis.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/redis.py", "target": "metagpt/utils/redis.py:Redis"}, {"predicate": "is", "source": "metagpt/utils/redis.py:Redis", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/utils/redis.py:Redis", "target": "metagpt/utils/redis.py:Redis:is_configured"}, {"predicate": "has_class_function", "source": "metagpt/utils/redis.py:Redis", "target": "metagpt/utils/redis.py:Redis:is_valid"}, {"predicate": "has_class_function", "source": "metagpt/utils/redis.py:Redis", "target": "metagpt/utils/redis.py:Redis:close"}, {"predicate": "has_class_function", "source": "metagpt/utils/redis.py:Redis", "target": "metagpt/utils/redis.py:Redis:get"}, {"predicate": "has_class_function", "source": "metagpt/utils/redis.py:Redis", "target": "metagpt/utils/redis.py:Redis:set"}, {"predicate": "has_class_function", "source": "metagpt/utils/redis.py:Redis", "target": "metagpt/utils/redis.py:Redis:__init__"}, {"predicate": "has_class_function", "source": "metagpt/utils/redis.py:Redis", "target": "metagpt/utils/redis.py:Redis:_connect"}, {"predicate": "has_page_info", "source": "metagpt/utils/redis.py:Redis", "target": "{\"lineno\":19,\"end_lineno\":79,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Redis\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/redis.py:Redis", "target": "{\"name\":\"Redis\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"is_configured\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"is_valid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"close\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"bytes \\\\| None\"},{\"name\":\"set\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"key\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"timeout_sec\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_connect\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/redis.py:Redis:is_configured", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/redis.py:Redis:is_configured", "target": "is_configured"}, {"predicate": "is", "source": "metagpt/utils/redis.py:Redis:is_configured", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/redis.py:Redis:is_valid", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/redis.py:Redis:is_valid", "target": "is_valid"}, {"predicate": "is", "source": "metagpt/utils/redis.py:Redis:is_valid", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/redis.py:Redis:close", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/redis.py:Redis:close", "target": "close()"}, {"predicate": "is", "source": "metagpt/utils/redis.py:Redis:get", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/redis.py:Redis:get", "target": "get(key: str): bytes \\| None"}, {"predicate": "is", "source": "metagpt/utils/redis.py:Redis:set", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/redis.py:Redis:set", "target": "set(key: str, data: str, timeout_sec: int)"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "metagpt/utils/repair_llm_raw_output.py:RepairType"}, {"predicate": "has_function", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "metagpt/utils/repair_llm_raw_output.py:repair_case_sensitivity"}, {"predicate": "has_function", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "metagpt/utils/repair_llm_raw_output.py:repair_special_character_missing"}, {"predicate": "has_function", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "metagpt/utils/repair_llm_raw_output.py:repair_required_key_pair_missing"}, {"predicate": "has_function", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "metagpt/utils/repair_llm_raw_output.py:repair_json_format"}, {"predicate": "has_function", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "metagpt/utils/repair_llm_raw_output.py:_repair_llm_raw_output"}, {"predicate": "has_function", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "metagpt/utils/repair_llm_raw_output.py:repair_llm_raw_output"}, {"predicate": "has_function", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "metagpt/utils/repair_llm_raw_output.py:repair_invalid_json"}, {"predicate": "has_function", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "metagpt/utils/repair_llm_raw_output.py:run_after_exp_and_passon_next_retry"}, {"predicate": "has_function", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "metagpt/utils/repair_llm_raw_output.py:retry_parse_json_text"}, {"predicate": "has_function", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "metagpt/utils/repair_llm_raw_output.py:extract_content_from_output"}, {"predicate": "has_function", "source": "metagpt/utils/repair_llm_raw_output.py", "target": "metagpt/utils/repair_llm_raw_output.py:extract_state_value_from_output"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:RepairType", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/repair_llm_raw_output.py:RepairType", "target": "metagpt/utils/repair_llm_raw_output.py:RepairType:name"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:RepairType", "target": "{\"lineno\":17,\"end_lineno\":21,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RepairType\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/repair_llm_raw_output.py:RepairType", "target": "{\"name\":\"RepairType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:RepairType:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/repair_llm_raw_output.py:RepairType:name", "target": "name"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:ReplyData", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/invoice_ocr_assistant.py:ReplyData", "target": "metagpt/roles/invoice_ocr_assistant.py:ReplyData:content"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:ReplyData", "target": "{\"lineno\":35,\"end_lineno\":36,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ReplyData\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/invoice_ocr_assistant.py:ReplyData", "target": "{\"name\":\"ReplyData\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:ReplyData:content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/invoice_ocr_assistant.py:ReplyData:content", "target": "content : str"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion", "target": "metagpt/actions/invoice_ocr.py:ReplyQuestion:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion", "target": "metagpt/actions/invoice_ocr.py:ReplyQuestion:language"}, {"predicate": "has_class_property", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion", "target": "metagpt/actions/invoice_ocr.py:ReplyQuestion:llm"}, {"predicate": "has_class_property", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion", "target": "metagpt/actions/invoice_ocr.py:ReplyQuestion:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion", "target": "metagpt/actions/invoice_ocr.py:ReplyQuestion:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion", "target": "{\"lineno\":168,\"end_lineno\":194,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ReplyQuestion\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion", "target": "{\"name\":\"ReplyQuestion\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"ocr_result\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion:language", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion:language", "target": "language : str"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion:llm", "target": "llm"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/invoice_ocr.py:ReplyQuestion:run", "target": "run(query: str, ocr_result: list): str"}, {"predicate": "is", "source": "metagpt/document.py:Repo", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:assets"}, {"predicate": "has_class_property", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:codes"}, {"predicate": "has_class_property", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:docs"}, {"predicate": "has_class_property", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:name"}, {"predicate": "has_class_property", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:path"}, {"predicate": "has_class_function", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:eda"}, {"predicate": "has_class_function", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:from_path"}, {"predicate": "has_class_function", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:get"}, {"predicate": "has_class_function", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:get_text_documents"}, {"predicate": "has_class_function", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:set"}, {"predicate": "has_class_function", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:to_path"}, {"predicate": "has_class_function", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:_path"}, {"predicate": "has_class_function", "source": "metagpt/document.py:Repo", "target": "metagpt/document.py:Repo:_set"}, {"predicate": "has_page_info", "source": "metagpt/document.py:Repo", "target": "{\"lineno\":171,\"end_lineno\":235,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Repo\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/document.py:Repo", "target": "{\"name\":\"Repo\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"assets\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[Path, Document] \",\"default_value\":\"\"},{\"name\":\"codes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[Path, Document] \",\"default_value\":\"\"},{\"name\":\"docs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[Path, Document] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Path \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"eda\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"RepoMetadata\"},{\"name\":\"from_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Optional[Document]\"},{\"name\":\"get_text_documents\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"list[Document]\"},{\"name\":\"set\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"to_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_set\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/document.py:Repo:assets", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:Repo:assets", "target": "assets : dict[Path, Document]"}, {"predicate": "is", "source": "metagpt/document.py:Repo:codes", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:Repo:codes", "target": "codes : dict[Path, Document]"}, {"predicate": "is", "source": "metagpt/document.py:Repo:docs", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:Repo:docs", "target": "docs : dict[Path, Document]"}, {"predicate": "is", "source": "metagpt/document.py:Repo:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:Repo:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/document.py:Repo:path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:Repo:path", "target": "path : Path"}, {"predicate": "is", "source": "metagpt/document.py:Repo:eda", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document.py:Repo:eda", "target": "eda(): RepoMetadata"}, {"predicate": "is", "source": "metagpt/document.py:Repo:from_path", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document.py:Repo:from_path", "target": "from_path(path: Path)"}, {"predicate": "is", "source": "metagpt/document.py:Repo:get", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document.py:Repo:get", "target": "get(filename: str): Optional[Document]"}, {"predicate": "is", "source": "metagpt/document.py:Repo:get_text_documents", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document.py:Repo:get_text_documents", "target": "get_text_documents(): list[Document]"}, {"predicate": "is", "source": "metagpt/document.py:Repo:set", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document.py:Repo:set", "target": "set(filename: str, content: str)"}, {"predicate": "is", "source": "metagpt/document.py:Repo:to_path", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/document.py:Repo:to_path", "target": "to_path()"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoFileInfo", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:RepoFileInfo", "target": "metagpt/repo_parser.py:RepoFileInfo:classes"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:RepoFileInfo", "target": "metagpt/repo_parser.py:RepoFileInfo:file"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:RepoFileInfo", "target": "metagpt/repo_parser.py:RepoFileInfo:functions"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:RepoFileInfo", "target": "metagpt/repo_parser.py:RepoFileInfo:globals"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:RepoFileInfo", "target": "metagpt/repo_parser.py:RepoFileInfo:page_info"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:RepoFileInfo", "target": "{\"lineno\":26,\"end_lineno\":31,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RepoFileInfo\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/repo_parser.py:RepoFileInfo", "target": "{\"name\":\"RepoFileInfo\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"classes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List \",\"default_value\":\"\"},{\"name\":\"file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"functions\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List \",\"default_value\":\"\"},{\"name\":\"globals\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List \",\"default_value\":\"\"},{\"name\":\"page_info\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoFileInfo:classes", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:RepoFileInfo:classes", "target": "classes : List"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoFileInfo:file", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:RepoFileInfo:file", "target": "file : str"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoFileInfo:functions", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:RepoFileInfo:functions", "target": "functions : List"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoFileInfo:globals", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:RepoFileInfo:globals", "target": "globals : List"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoFileInfo:page_info", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:RepoFileInfo:page_info", "target": "page_info : List"}, {"predicate": "is", "source": "metagpt/document.py:RepoMetadata", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/document.py:RepoMetadata", "target": "metagpt/document.py:RepoMetadata:n_chars"}, {"predicate": "has_class_property", "source": "metagpt/document.py:RepoMetadata", "target": "metagpt/document.py:RepoMetadata:n_docs"}, {"predicate": "has_class_property", "source": "metagpt/document.py:RepoMetadata", "target": "metagpt/document.py:RepoMetadata:name"}, {"predicate": "has_class_property", "source": "metagpt/document.py:RepoMetadata", "target": "metagpt/document.py:RepoMetadata:symbols"}, {"predicate": "has_page_info", "source": "metagpt/document.py:RepoMetadata", "target": "{\"lineno\":164,\"end_lineno\":168,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RepoMetadata\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/document.py:RepoMetadata", "target": "{\"name\":\"RepoMetadata\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"n_chars\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"n_docs\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"symbols\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/document.py:RepoMetadata:n_chars", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:RepoMetadata:n_chars", "target": "n_chars : int"}, {"predicate": "is", "source": "metagpt/document.py:RepoMetadata:n_docs", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:RepoMetadata:n_docs", "target": "n_docs : int"}, {"predicate": "is", "source": "metagpt/document.py:RepoMetadata:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:RepoMetadata:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/document.py:RepoMetadata:symbols", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/document.py:RepoMetadata:symbols", "target": "symbols : list"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:base_directory"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:extract_class_and_function_info"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:generate_dataframe_structure"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:generate_json_structure"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:generate_structure"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:generate_symbols"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:node_to_str"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:rebuild_class_views"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_parse_file"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_parse_expr"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_parse_name"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_parse_if"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_parse_if_compare"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_parse_variable"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_parse_assign"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_parse_classes"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_parse_class_relationships"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_split_class_line"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_split_relationship_line"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_get_label"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_create_path_mapping"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_repair_namespaces"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_repair_ns"}, {"predicate": "has_class_function", "source": "metagpt/repo_parser.py:RepoParser", "target": "metagpt/repo_parser.py:RepoParser:_find_root"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:RepoParser", "target": "{\"lineno\":56,\"end_lineno\":417,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RepoParser\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/repo_parser.py:RepoParser", "target": "{\"name\":\"RepoParser\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"base_directory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Path \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"extract_class_and_function_info\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"tree\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"file_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"RepoFileInfo\"},{\"name\":\"generate_dataframe_structure\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"output_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"generate_json_structure\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"output_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"generate_structure\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"output_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Path\"},{\"name\":\"generate_symbols\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"List[RepoFileInfo]\"},{\"name\":\"node_to_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"CodeBlockInfo \\\\| None\"},{\"name\":\"rebuild_class_views\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str \\\\| Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_parse_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_expr\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_if\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_if_compare\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_variable\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_assign\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_classes\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_parse_class_relationships\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_split_class_line\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_split_relationship_line\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_label\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_create_path_mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_repair_namespaces\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_repair_ns\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_find_root\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:base_directory", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/repo_parser.py:RepoParser:base_directory", "target": "base_directory : Path"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:extract_class_and_function_info", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/repo_parser.py:RepoParser:extract_class_and_function_info", "target": "extract_class_and_function_info(tree, file_path): RepoFileInfo"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:generate_dataframe_structure", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/repo_parser.py:RepoParser:generate_dataframe_structure", "target": "generate_dataframe_structure(output_path)"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:generate_json_structure", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/repo_parser.py:RepoParser:generate_json_structure", "target": "generate_json_structure(output_path)"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:generate_structure", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/repo_parser.py:RepoParser:generate_structure", "target": "generate_structure(output_path, mode): Path"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:generate_symbols", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/repo_parser.py:RepoParser:generate_symbols", "target": "generate_symbols(): List[RepoFileInfo]"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:node_to_str", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/repo_parser.py:RepoParser:node_to_str", "target": "node_to_str(node): CodeBlockInfo \\| None"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:rebuild_class_views", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/repo_parser.py:RepoParser:rebuild_class_views", "target": "rebuild_class_views(path: str \\| Path)"}, {"predicate": "is", "source": "metagpt/roles/researcher.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/researcher.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/researcher.py", "target": "metagpt/roles/researcher.py:Report"}, {"predicate": "has_class", "source": "metagpt/roles/researcher.py", "target": "metagpt/roles/researcher.py:Researcher"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Report", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/researcher.py:Report", "target": "metagpt/roles/researcher.py:Report:content"}, {"predicate": "has_class_property", "source": "metagpt/roles/researcher.py:Report", "target": "metagpt/roles/researcher.py:Report:links"}, {"predicate": "has_class_property", "source": "metagpt/roles/researcher.py:Report", "target": "metagpt/roles/researcher.py:Report:summaries"}, {"predicate": "has_class_property", "source": "metagpt/roles/researcher.py:Report", "target": "metagpt/roles/researcher.py:Report:topic"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:Report", "target": "{\"lineno\":21,\"end_lineno\":25,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Report\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/researcher.py:Report", "target": "{\"name\":\"Report\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"links\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[dict[str, list[str]]] \",\"default_value\":\"\"},{\"name\":\"summaries\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[list[tuple[str, str]]] \",\"default_value\":\"\"},{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Report:content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/researcher.py:Report:content", "target": "content : str"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Report:links", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/researcher.py:Report:links", "target": "links : Optional[dict[str, list[str]]]"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Report:summaries", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/researcher.py:Report:summaries", "target": "summaries : Optional[list[tuple[str, str]]]"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Report:topic", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/researcher.py:Report:topic", "target": "topic : str"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Researcher", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/researcher.py:Researcher", "target": "metagpt/roles/researcher.py:Researcher:constraints"}, {"predicate": "has_class_property", "source": "metagpt/roles/researcher.py:Researcher", "target": "metagpt/roles/researcher.py:Researcher:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/researcher.py:Researcher", "target": "metagpt/roles/researcher.py:Researcher:language"}, {"predicate": "has_class_property", "source": "metagpt/roles/researcher.py:Researcher", "target": "metagpt/roles/researcher.py:Researcher:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/researcher.py:Researcher", "target": "metagpt/roles/researcher.py:Researcher:profile"}, {"predicate": "has_class_function", "source": "metagpt/roles/researcher.py:Researcher", "target": "metagpt/roles/researcher.py:Researcher:react"}, {"predicate": "has_class_function", "source": "metagpt/roles/researcher.py:Researcher", "target": "metagpt/roles/researcher.py:Researcher:research_system_text"}, {"predicate": "has_class_function", "source": "metagpt/roles/researcher.py:Researcher", "target": "metagpt/roles/researcher.py:Researcher:write_report"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/researcher.py:Researcher", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/researcher.py:Researcher", "target": "metagpt/roles/researcher.py:Researcher:__init__"}, {"predicate": "has_class_function", "source": "metagpt/roles/researcher.py:Researcher", "target": "metagpt/roles/researcher.py:Researcher:_think"}, {"predicate": "has_class_function", "source": "metagpt/roles/researcher.py:Researcher", "target": "metagpt/roles/researcher.py:Researcher:_act"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:Researcher", "target": "{\"lineno\":28,\"end_lineno\":116,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Researcher\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/researcher.py:Researcher", "target": "{\"name\":\"Researcher\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"react\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Message\"},{\"name\":\"research_system_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"current_task\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Action\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"write_report\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_think\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Researcher:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/researcher.py:Researcher:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Researcher:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/researcher.py:Researcher:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Researcher:language", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/researcher.py:Researcher:language", "target": "language : str"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Researcher:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/researcher.py:Researcher:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Researcher:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/researcher.py:Researcher:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Researcher:react", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/researcher.py:Researcher:react", "target": "react(): Message"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Researcher:research_system_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/researcher.py:Researcher:research_system_text", "target": "research_system_text(topic, current_task: Action): str"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Researcher:write_report", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/researcher.py:Researcher:write_report", "target": "write_report(topic: str, content: str)"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding", "target": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:data"}, {"predicate": "has_class_property", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding", "target": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:model"}, {"predicate": "has_class_property", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding", "target": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:object_"}, {"predicate": "has_class_property", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding", "target": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:usage"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding", "target": "{\"lineno\":35,\"end_lineno\":42,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ResultEmbedding\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding", "target": "{\"name\":\"ResultEmbedding\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[Embedding] \",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:data", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:data", "target": "data : List[Embedding]"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:model", "target": "model : str"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:object_", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:object_", "target": "object_ : str"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:usage", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:usage", "target": "usage"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Returns", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Returns", "target": "metagpt/learn/skill_loader.py:Returns:format"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Returns", "target": "metagpt/learn/skill_loader.py:Returns:type"}, {"predicate": "isCompositeOf", "source": "metagpt/learn/skill_loader.py:Returns", "target": "metagpt/learn/skill_loader.py:Skill"}, {"predicate": "isCompositeOn", "source": "metagpt/learn/skill_loader.py:Returns", "target": "metagpt/learn/skill_loader.py:Skill:returns"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:Returns", "target": "{\"lineno\":24,\"end_lineno\":26,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Returns\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/learn/skill_loader.py:Returns", "target": "{\"name\":\"Returns\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"format\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Returns:format", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Returns:format", "target": "format : Optional[str]"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Returns:type", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Returns:type", "target": "type : str"}, {"predicate": "is", "source": "metagpt/roles/role.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/role.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/role.py", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class", "source": "metagpt/roles/role.py", "target": "metagpt/roles/role.py:RoleContext"}, {"predicate": "has_class", "source": "metagpt/roles/role.py", "target": "metagpt/roles/role.py:RoleReactMode"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:action_count"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:actions"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:constraints"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:desc"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:is_human"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:is_idle"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:latest_observed_msg"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:llm"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:model_config"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:profile"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:rc"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:recovered"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:role_id"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:states"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:subscription"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:todo"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:act"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:check_subscription"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:deserialize"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:get_memories"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:init_actions"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:is_watch"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:publish_message"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:put_message"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:react"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:refresh_system_message"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:run"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:serialize"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:set_env"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:set_memory"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:set_recovered"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:subscribe"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:think"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/role.py:Role", "target": "metagpt/schema.py:SerializationMixin"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:__init__"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_reset"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_setting"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_init_action_system_message"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_init_actions"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_set_react_mode"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_watch"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_set_state"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_get_prefix"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_think"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_act"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_observe"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_react"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_act_by_order"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:Role", "target": "metagpt/roles/role.py:Role:_plan_and_act"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:Role", "target": "{\"lineno\":129,\"end_lineno\":510,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Role\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/role.py:Role", "target": "{\"name\":\"Role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[SerializeAsAny[Action]] \",\"default_value\":\"\"},{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"is_human\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"latest_observed_msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Message] \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"rc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"recovered\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"role_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"states\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[str] \",\"default_value\":\"\"},{\"name\":\"subscription\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"set[str] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"action_count\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"is_idle\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"todo\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"act\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"ActionOutput\"},{\"name\":\"check_subscription\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"deserialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"Role\"},{\"name\":\"get_memories\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"k\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"list[Message]\"},{\"name\":\"init_actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"is_watch\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"caused_by\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"publish_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"msg\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"put_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"react\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Message\"},{\"name\":\"refresh_system_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Message \\\\| None\"},{\"name\":\"serialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_env\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"env\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Environment\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Memory\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"set_recovered\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"recovered\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"subscribe\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"tags\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Set[str]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"think\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Action\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_reset\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_setting\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_init_action_system_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_init_actions\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_set_react_mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_watch\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_set_state\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_get_prefix\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_think\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_observe\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_react\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act_by_order\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_plan_and_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:action_count", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:action_count", "target": "action_count"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:action_count", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:actions", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:actions", "target": "actions : list[SerializeAsAny[Action]]"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:desc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:desc", "target": "desc : str"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:is_human", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:is_human", "target": "is_human : bool"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:is_idle", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:is_idle", "target": "is_idle"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:is_idle", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:latest_observed_msg", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:latest_observed_msg", "target": "latest_observed_msg : Optional[Message]"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:llm", "target": "llm"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:rc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:rc", "target": "rc"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:recovered", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:recovered", "target": "recovered : bool"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:role_id", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:role_id", "target": "role_id : str"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:states", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:states", "target": "states : list[str]"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:subscription", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:subscription", "target": "subscription : set[str]"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:todo", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:Role:todo", "target": "todo"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:todo", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:act", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:act", "target": "act(): ActionOutput"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:check_subscription", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:check_subscription", "target": "check_subscription()"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:deserialize", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:deserialize", "target": "deserialize(stg_path: Path): 'Role'"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:get_memories", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:get_memories", "target": "get_memories(k): list[Message]"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:init_actions", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:init_actions", "target": "init_actions(actions)"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:is_watch", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:is_watch", "target": "is_watch(caused_by: str)"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:publish_message", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:publish_message", "target": "publish_message(msg)"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:put_message", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:put_message", "target": "put_message(message)"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:react", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:react", "target": "react(): Message"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:refresh_system_message", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:refresh_system_message", "target": "refresh_system_message()"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:run", "target": "run(with_message): Message \\| None"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:serialize", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:serialize", "target": "serialize(stg_path: Path)"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:set_env", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:set_env", "target": "set_env(env: 'Environment')"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:set_memory", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:set_memory", "target": "set_memory(memory: Memory)"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:set_recovered", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:set_recovered", "target": "set_recovered(recovered: bool)"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:subscribe", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:subscribe", "target": "subscribe(tags: Set[str])"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:think", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:Role:think", "target": "think(): Action"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:env"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:history"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:important_memory"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:max_react_loop"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:memory"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:model_config"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:msg_buffer"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:news"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:react_mode"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:state"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:todo"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:watch"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:check"}, {"predicate": "isCompositeOf", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:Role"}, {"predicate": "isCompositeOn", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:Role:rc"}, {"predicate": "isAggregateOf", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/memory/longterm_memory.py:LongTermMemory"}, {"predicate": "isAggregateOn", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/memory/longterm_memory.py:LongTermMemory:rc"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:RoleContext", "target": "metagpt/roles/role.py:RoleContext:check"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:RoleContext", "target": "{\"lineno\":91,\"end_lineno\":126,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RoleContext\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/role.py:RoleContext", "target": "{\"name\":\"RoleContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"env\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"max_react_loop\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"msg_buffer\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"news\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list[Type[Message]] \",\"default_value\":\"\"},{\"name\":\"react_mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"state\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"todo\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"watch\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"set[str] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"history\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"important_memory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"check\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role_id\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"check\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:env", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleContext:env", "target": "env : str"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:history", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleContext:history", "target": "history"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:history", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:important_memory", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleContext:important_memory", "target": "important_memory"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:important_memory", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:max_react_loop", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleContext:max_react_loop", "target": "max_react_loop : int"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:memory", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleContext:memory", "target": "memory"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleContext:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:msg_buffer", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleContext:msg_buffer", "target": "msg_buffer"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:news", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleContext:news", "target": "news : list[Type[Message]]"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:react_mode", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleContext:react_mode", "target": "react_mode"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:state", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleContext:state", "target": "state : int"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:todo", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleContext:todo", "target": "todo"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:watch", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleContext:watch", "target": "watch : set[str]"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:check", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:RoleContext:check", "target": "check(role_id: str)"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleReactMode", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/role.py:RoleReactMode", "target": "metagpt/roles/role.py:RoleReactMode:name"}, {"predicate": "has_class_function", "source": "metagpt/roles/role.py:RoleReactMode", "target": "metagpt/roles/role.py:RoleReactMode:values"}, {"predicate": "isCompositeOf", "source": "metagpt/roles/role.py:RoleReactMode", "target": "metagpt/roles/role.py:RoleContext"}, {"predicate": "isCompositeOn", "source": "metagpt/roles/role.py:RoleReactMode", "target": "metagpt/roles/role.py:RoleContext:react_mode"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:RoleReactMode", "target": "{\"lineno\":81,\"end_lineno\":88,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RoleReactMode\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/role.py:RoleReactMode", "target": "{\"name\":\"RoleReactMode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"values\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleReactMode:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/role.py:RoleReactMode:name", "target": "name"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleReactMode:values", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/role.py:RoleReactMode:values", "target": "values()"}, {"predicate": "is", "source": "metagpt/actions/run_code.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/run_code.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/run_code.py", "target": "metagpt/actions/run_code.py:RunCode"}, {"predicate": "is", "source": "metagpt/actions/run_code.py:RunCode", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/run_code.py:RunCode", "target": "metagpt/actions/run_code.py:RunCode:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/run_code.py:RunCode", "target": "metagpt/actions/run_code.py:RunCode:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/run_code.py:RunCode", "target": "metagpt/actions/run_code.py:RunCode:run"}, {"predicate": "has_class_function", "source": "metagpt/actions/run_code.py:RunCode", "target": "metagpt/actions/run_code.py:RunCode:run_script"}, {"predicate": "has_class_function", "source": "metagpt/actions/run_code.py:RunCode", "target": "metagpt/actions/run_code.py:RunCode:run_text"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/run_code.py:RunCode", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/run_code.py:RunCode", "target": "metagpt/actions/run_code.py:RunCode:_install_via_subprocess"}, {"predicate": "has_class_function", "source": "metagpt/actions/run_code.py:RunCode", "target": "metagpt/actions/run_code.py:RunCode:_install_dependencies"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:RunCode", "target": "{\"lineno\":78,\"end_lineno\":162,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RunCode\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/run_code.py:RunCode", "target": "{\"name\":\"RunCode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"RunCodeResult\"},{\"name\":\"run_script\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"working_directory\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"additional_python_paths\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"command\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Tuple[str, str]\"},{\"name\":\"run_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"code\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Tuple[str, str]\"},{\"name\":\"_install_via_subprocess\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_install_dependencies\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/run_code.py:RunCode:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/run_code.py:RunCode:context", "target": "context"}, {"predicate": "is", "source": "metagpt/actions/run_code.py:RunCode:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/run_code.py:RunCode:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/run_code.py:RunCode:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/run_code.py:RunCode:run", "target": "run(): RunCodeResult"}, {"predicate": "is", "source": "metagpt/actions/run_code.py:RunCode:run_script", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/run_code.py:RunCode:run_script", "target": "run_script(working_directory, additional_python_paths, command): Tuple[str, str]"}, {"predicate": "is", "source": "metagpt/actions/run_code.py:RunCode:run_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/run_code.py:RunCode:run_text", "target": "run_text(code): Tuple[str, str]"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeContext", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/schema.py:RunCodeContext:additional_python_paths"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/schema.py:RunCodeContext:code"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/schema.py:RunCodeContext:code_filename"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/schema.py:RunCodeContext:command"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/schema.py:RunCodeContext:mode"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/schema.py:RunCodeContext:output"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/schema.py:RunCodeContext:output_filename"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/schema.py:RunCodeContext:test_code"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/schema.py:RunCodeContext:test_filename"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/schema.py:RunCodeContext:working_directory"}, {"predicate": "isGeneralizeOf", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/schema.py:BaseContext"}, {"predicate": "isCompositeOf", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/actions/debug_error.py:DebugError"}, {"predicate": "isCompositeOn", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/actions/debug_error.py:DebugError:context"}, {"predicate": "isCompositeOf", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/actions/run_code.py:RunCode"}, {"predicate": "isCompositeOn", "source": "metagpt/schema.py:RunCodeContext", "target": "metagpt/actions/run_code.py:RunCode:context"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:RunCodeContext", "target": "{\"lineno\":411,\"end_lineno\":421,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RunCodeContext\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:RunCodeContext", "target": "{\"name\":\"RunCodeContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"additional_python_paths\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[str] \",\"default_value\":\"\"},{\"name\":\"code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"code_filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"command\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[str] \",\"default_value\":\"\"},{\"name\":\"mode\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"output\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"output_filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"test_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"test_filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"working_directory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeContext:additional_python_paths", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeContext:additional_python_paths", "target": "additional_python_paths : List[str]"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeContext:code", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeContext:code", "target": "code : Optional[str]"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeContext:code_filename", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeContext:code_filename", "target": "code_filename : str"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeContext:command", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeContext:command", "target": "command : List[str]"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeContext:mode", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeContext:mode", "target": "mode : str"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeContext:output", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeContext:output", "target": "output : Optional[str]"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeContext:output_filename", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeContext:output_filename", "target": "output_filename : Optional[str]"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeContext:test_code", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeContext:test_code", "target": "test_code : Optional[str]"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeContext:test_filename", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeContext:test_filename", "target": "test_filename : str"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeContext:working_directory", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeContext:working_directory", "target": "working_directory : str"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeResult", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeResult", "target": "metagpt/schema.py:RunCodeResult:stderr"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeResult", "target": "metagpt/schema.py:RunCodeResult:stdout"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:RunCodeResult", "target": "metagpt/schema.py:RunCodeResult:summary"}, {"predicate": "isGeneralizeOf", "source": "metagpt/schema.py:RunCodeResult", "target": "metagpt/schema.py:BaseContext"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:RunCodeResult", "target": "{\"lineno\":424,\"end_lineno\":427,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"RunCodeResult\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:RunCodeResult", "target": "{\"name\":\"RunCodeResult\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"stderr\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"stdout\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeResult:stderr", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeResult:stderr", "target": "stderr : str"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeResult:stdout", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeResult:stdout", "target": "stdout : str"}, {"predicate": "is", "source": "metagpt/schema.py:RunCodeResult:summary", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:RunCodeResult:summary", "target": "summary : str"}, {"predicate": "is", "source": "metagpt/utils/s3.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/s3.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/s3.py", "target": "metagpt/utils/s3.py:S3"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/s3.py:S3", "target": "metagpt/utils/s3.py:S3:auth_config"}, {"predicate": "has_class_function", "source": "metagpt/utils/s3.py:S3", "target": "metagpt/utils/s3.py:S3:is_configured"}, {"predicate": "has_class_function", "source": "metagpt/utils/s3.py:S3", "target": "metagpt/utils/s3.py:S3:is_valid"}, {"predicate": "has_class_property", "source": "metagpt/utils/s3.py:S3", "target": "metagpt/utils/s3.py:S3:session"}, {"predicate": "has_class_function", "source": "metagpt/utils/s3.py:S3", "target": "metagpt/utils/s3.py:S3:cache"}, {"predicate": "has_class_function", "source": "metagpt/utils/s3.py:S3", "target": "metagpt/utils/s3.py:S3:download_file"}, {"predicate": "has_class_function", "source": "metagpt/utils/s3.py:S3", "target": "metagpt/utils/s3.py:S3:get_object"}, {"predicate": "has_class_function", "source": "metagpt/utils/s3.py:S3", "target": "metagpt/utils/s3.py:S3:get_object_url"}, {"predicate": "has_class_function", "source": "metagpt/utils/s3.py:S3", "target": "metagpt/utils/s3.py:S3:upload_file"}, {"predicate": "has_class_function", "source": "metagpt/utils/s3.py:S3", "target": "metagpt/utils/s3.py:S3:__init__"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:S3", "target": "{\"lineno\":16,\"end_lineno\":170,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"S3\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/s3.py:S3", "target": "{\"name\":\"S3\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"auth_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"},{\"name\":\"session\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Session \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"is_configured\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"is_valid\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"cache\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"data\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"file_ext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"format\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"download_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"bucket\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"local_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"chunk_size\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Optional[int]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_object\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"bucket\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"bytes\"},{\"name\":\"get_object_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"bucket\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"upload_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"bucket\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"local_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"object_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3:auth_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/s3.py:S3:auth_config", "target": "auth_config : dict"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3:is_configured", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/s3.py:S3:is_configured", "target": "is_configured"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3:is_configured", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3:is_valid", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/s3.py:S3:is_valid", "target": "is_valid"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3:is_valid", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3:session", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/s3.py:S3:session", "target": "session : Session"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3:cache", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/s3.py:S3:cache", "target": "cache(data: str, file_ext: str, format: str): str"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3:download_file", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/s3.py:S3:download_file", "target": "download_file(bucket: str, object_name: str, local_path: str, chunk_size: Optional[int]): None"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3:get_object", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/s3.py:S3:get_object", "target": "get_object(bucket: str, object_name: str): bytes"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3:get_object_url", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/s3.py:S3:get_object_url", "target": "get_object_url(bucket: str, object_name: str): str"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3:upload_file", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/s3.py:S3:upload_file", "target": "upload_file(bucket: str, local_path: str, object_name: str): None"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/sd_engine.py", "target": "metagpt/tools/sd_engine.py:SDEngine"}, {"predicate": "has_function", "source": "metagpt/tools/sd_engine.py", "target": "metagpt/tools/sd_engine.py:decode_base64_to_image"}, {"predicate": "has_function", "source": "metagpt/tools/sd_engine.py", "target": "metagpt/tools/sd_engine.py:batch_decode_base64_to_image"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "metagpt/tools/sd_engine.py:SDEngine:payload"}, {"predicate": "has_class_property", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "metagpt/tools/sd_engine.py:SDEngine:sd_t2i_url"}, {"predicate": "has_class_property", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "metagpt/tools/sd_engine.py:SDEngine:sd_url"}, {"predicate": "has_class_function", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "metagpt/tools/sd_engine.py:SDEngine:construct_payload"}, {"predicate": "has_class_function", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "metagpt/tools/sd_engine.py:SDEngine:run"}, {"predicate": "has_class_function", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "metagpt/tools/sd_engine.py:SDEngine:run_i2i"}, {"predicate": "has_class_function", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "metagpt/tools/sd_engine.py:SDEngine:run_sam"}, {"predicate": "has_class_function", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "metagpt/tools/sd_engine.py:SDEngine:run_t2i"}, {"predicate": "has_class_function", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "metagpt/tools/sd_engine.py:SDEngine:__init__"}, {"predicate": "has_class_function", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "metagpt/tools/sd_engine.py:SDEngine:_save"}, {"predicate": "has_class_function", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "metagpt/tools/sd_engine.py:SDEngine:run_i2i"}, {"predicate": "has_class_function", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "metagpt/tools/sd_engine.py:SDEngine:run_sam"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "{\"lineno\":53,\"end_lineno\":109,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SDEngine\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/sd_engine.py:SDEngine", "target": "{\"name\":\"SDEngine\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"payload\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"},{\"name\":\"sd_t2i_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"sd_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"construct_payload\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"negtive_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"width\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"height\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"sd_model\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"payload\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"session\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run_i2i\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run_sam\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run_t2i\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompts\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run_i2i\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run_sam\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine:payload", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/sd_engine.py:SDEngine:payload", "target": "payload : dict"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine:sd_t2i_url", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/sd_engine.py:SDEngine:sd_t2i_url", "target": "sd_t2i_url"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine:sd_url", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/sd_engine.py:SDEngine:sd_url", "target": "sd_url"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine:construct_payload", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/sd_engine.py:SDEngine:construct_payload", "target": "construct_payload(prompt, negtive_prompt, width, height, sd_model)"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/sd_engine.py:SDEngine:run", "target": "run(url, payload, session)"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine:run_i2i", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/sd_engine.py:SDEngine:run_i2i", "target": "run_i2i()"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine:run_sam", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/sd_engine.py:SDEngine:run_sam", "target": "run_sam()"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine:run_t2i", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/sd_engine.py:SDEngine:run_t2i", "target": "run_t2i(prompts: List)"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:SPO", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:SPO", "target": "metagpt/utils/graph_repository.py:SPO:object_"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:SPO", "target": "metagpt/utils/graph_repository.py:SPO:predicate"}, {"predicate": "has_class_property", "source": "metagpt/utils/graph_repository.py:SPO", "target": "metagpt/utils/graph_repository.py:SPO:subject"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:SPO", "target": "{\"lineno\":43,\"end_lineno\":46,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SPO\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/graph_repository.py:SPO", "target": "{\"name\":\"SPO\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"object_\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"predicate\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"subject\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:SPO:object_", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:SPO:object_", "target": "object_ : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:SPO:predicate", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:SPO:predicate", "target": "predicate : str"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:SPO:subject", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/graph_repository.py:SPO:subject", "target": "subject : str"}, {"predicate": "is", "source": "metagpt/roles/sales.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/sales.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/sales.py", "target": "metagpt/roles/sales.py:Sales"}, {"predicate": "is", "source": "metagpt/roles/sales.py:Sales", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/sales.py:Sales", "target": "metagpt/roles/sales.py:Sales:desc"}, {"predicate": "has_class_property", "source": "metagpt/roles/sales.py:Sales", "target": "metagpt/roles/sales.py:Sales:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/sales.py:Sales", "target": "metagpt/roles/sales.py:Sales:profile"}, {"predicate": "has_class_property", "source": "metagpt/roles/sales.py:Sales", "target": "metagpt/roles/sales.py:Sales:store"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/sales.py:Sales", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/sales.py:Sales", "target": "metagpt/roles/sales.py:Sales:__init__"}, {"predicate": "has_class_function", "source": "metagpt/roles/sales.py:Sales", "target": "metagpt/roles/sales.py:Sales:_set_store"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:Sales", "target": "{\"lineno\":19,\"end_lineno\":42,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Sales\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/sales.py:Sales", "target": "{\"name\":\"Sales\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"store\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[BaseStore] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_set_store\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/sales.py:Sales:desc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sales.py:Sales:desc", "target": "desc : str"}, {"predicate": "is", "source": "metagpt/roles/sales.py:Sales:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sales.py:Sales:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/sales.py:Sales:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sales.py:Sales:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/sales.py:Sales:store", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sales.py:Sales:store", "target": "store : Optional[BaseStore]"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/search_and_summarize.py", "target": "metagpt/actions/search_and_summarize.py:SearchAndSummarize"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:config"}, {"predicate": "has_class_property", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:content"}, {"predicate": "has_class_property", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:engine"}, {"predicate": "has_class_property", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:name"}, {"predicate": "has_class_property", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:result"}, {"predicate": "has_class_property", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:search_engine"}, {"predicate": "has_class_property", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:search_func"}, {"predicate": "has_class_function", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:run"}, {"predicate": "has_class_function", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:validate_engine_and_run_func"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "{\"lineno\":107,\"end_lineno\":158,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SearchAndSummarize\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize", "target": "{\"name\":\"SearchAndSummarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[SearchEngineType] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"result\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"search_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[SearchEngine] \",\"default_value\":\"\"},{\"name\":\"search_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Any] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[Message]\",\"default_value\":\"\"},{\"name\":\"system_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"validate_engine_and_run_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"values\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:config", "target": "config : NoneType"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:content", "target": "content : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:engine", "target": "engine : Optional[SearchEngineType]"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:result", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:result", "target": "result : str"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:search_engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:search_engine", "target": "search_engine : Optional[SearchEngine]"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:search_func", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:search_func", "target": "search_func : Optional[Any]"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:run", "target": "run(context: list[Message], system_text): str"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:validate_engine_and_run_func", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/search_and_summarize.py:SearchAndSummarize:validate_engine_and_run_func", "target": "validate_engine_and_run_func(values)"}, {"predicate": "is", "source": "metagpt/tools/search_engine.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/search_engine.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/search_engine.py", "target": "metagpt/tools/search_engine.py:SearchEngine"}, {"predicate": "has_class", "source": "metagpt/tools/search_engine.py", "target": "metagpt/tools/search_engine.py:SkSearchEngine"}, {"predicate": "is", "source": "metagpt/tools/search_engine.py:SearchEngine", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine.py:SearchEngine", "target": "metagpt/tools/search_engine.py:SearchEngine:engine"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine.py:SearchEngine", "target": "metagpt/tools/search_engine.py:SearchEngine:run_func"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine.py:SearchEngine", "target": "metagpt/tools/search_engine.py:SearchEngine:run"}, {"predicate": "isCompositeOf", "source": "metagpt/tools/search_engine.py:SearchEngine", "target": "metagpt/actions/research.py:CollectLinks"}, {"predicate": "isCompositeOn", "source": "metagpt/tools/search_engine.py:SearchEngine", "target": "metagpt/actions/research.py:CollectLinks:search_engine"}, {"predicate": "isCompositeOf", "source": "metagpt/tools/search_engine.py:SearchEngine", "target": "metagpt/tools/search_engine.py:SkSearchEngine"}, {"predicate": "isCompositeOn", "source": "metagpt/tools/search_engine.py:SearchEngine", "target": "metagpt/tools/search_engine.py:SkSearchEngine:search_engine"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine.py:SearchEngine", "target": "metagpt/tools/search_engine.py:SearchEngine:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine.py:SearchEngine", "target": "{\"lineno\":32,\"end_lineno\":98,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SearchEngine\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/search_engine.py:SearchEngine", "target": "{\"name\":\"SearchEngine\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[SearchEngineType] \",\"default_value\":\"\"},{\"name\":\"run_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Callable[[str, int, bool], Coroutine[None, None, Union[str, list[str]]]]] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"as_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Literal[True]\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/search_engine.py:SearchEngine:engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine.py:SearchEngine:engine", "target": "engine : Optional[SearchEngineType]"}, {"predicate": "is", "source": "metagpt/tools/search_engine.py:SearchEngine:run_func", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine.py:SearchEngine:run_func", "target": "run_func : Optional[Callable[[str, int, bool], Coroutine[None, None, Union[str, list[str]]]]]"}, {"predicate": "is", "source": "metagpt/tools/search_engine.py:SearchEngine:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine.py:SearchEngine:run", "target": "run(query: str, max_results: int, as_string: Literal[True]): str"}, {"predicate": "is", "source": "metagpt/tools", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools", "target": ""}, {"predicate": "has_class", "source": "metagpt/tools", "target": "metagpt/tools:SearchEngineType"}, {"predicate": "has_class", "source": "metagpt/tools", "target": "metagpt/tools:WebBrowserEngineType"}, {"predicate": "is", "source": "metagpt/tools:SearchEngineType", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools:SearchEngineType", "target": "metagpt/tools:SearchEngineType:name"}, {"predicate": "isCompositeOf", "source": "metagpt/tools:SearchEngineType", "target": "metagpt/config.py:Config"}, {"predicate": "isCompositeOn", "source": "metagpt/tools:SearchEngineType", "target": "metagpt/config.py:Config:search_engine"}, {"predicate": "isCompositeOf", "source": "metagpt/tools:SearchEngineType", "target": "metagpt/roles/searcher.py:Searcher"}, {"predicate": "isCompositeOn", "source": "metagpt/tools:SearchEngineType", "target": "metagpt/roles/searcher.py:Searcher:engine"}, {"predicate": "has_class_view", "source": "metagpt/tools:SearchEngineType", "target": "{\"name\":\"SearchEngineType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/tools:SearchEngineType:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools:SearchEngineType:name", "target": "name"}, {"predicate": "is", "source": "metagpt/roles/searcher.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/searcher.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/searcher.py", "target": "metagpt/roles/searcher.py:Searcher"}, {"predicate": "is", "source": "metagpt/roles/searcher.py:Searcher", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/searcher.py:Searcher", "target": "metagpt/roles/searcher.py:Searcher:constraints"}, {"predicate": "has_class_property", "source": "metagpt/roles/searcher.py:Searcher", "target": "metagpt/roles/searcher.py:Searcher:engine"}, {"predicate": "has_class_property", "source": "metagpt/roles/searcher.py:Searcher", "target": "metagpt/roles/searcher.py:Searcher:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/searcher.py:Searcher", "target": "metagpt/roles/searcher.py:Searcher:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/searcher.py:Searcher", "target": "metagpt/roles/searcher.py:Searcher:profile"}, {"predicate": "has_class_function", "source": "metagpt/roles/searcher.py:Searcher", "target": "metagpt/roles/searcher.py:Searcher:set_search_func"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/searcher.py:Searcher", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/searcher.py:Searcher", "target": "metagpt/roles/searcher.py:Searcher:__init__"}, {"predicate": "has_class_function", "source": "metagpt/roles/searcher.py:Searcher", "target": "metagpt/roles/searcher.py:Searcher:_act_sp"}, {"predicate": "has_class_function", "source": "metagpt/roles/searcher.py:Searcher", "target": "metagpt/roles/searcher.py:Searcher:_act"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:Searcher", "target": "{\"lineno\":21,\"end_lineno\":77,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Searcher\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/searcher.py:Searcher", "target": "{\"name\":\"Searcher\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"set_search_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"search_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act_sp\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/searcher.py:Searcher:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/searcher.py:Searcher:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/searcher.py:Searcher:engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/searcher.py:Searcher:engine", "target": "engine"}, {"predicate": "is", "source": "metagpt/roles/searcher.py:Searcher:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/searcher.py:Searcher:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/searcher.py:Searcher:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/searcher.py:Searcher:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/searcher.py:Searcher:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/searcher.py:Searcher:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/searcher.py:Searcher:set_search_func", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/searcher.py:Searcher:set_search_func", "target": "set_search_func(search_func)"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/web_browser_engine_selenium.py", "target": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper"}, {"predicate": "has_class", "source": "metagpt/tools/web_browser_engine_selenium.py", "target": "metagpt/tools/web_browser_engine_selenium.py:WDMHttpProxyClient"}, {"predicate": "has_function", "source": "metagpt/tools/web_browser_engine_selenium.py", "target": "metagpt/tools/web_browser_engine_selenium.py:_gen_get_driver_func"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper", "target": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:browser_type"}, {"predicate": "has_class_property", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper", "target": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:executable_path"}, {"predicate": "has_class_property", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper", "target": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:executor"}, {"predicate": "has_class_property", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper", "target": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:launch_args"}, {"predicate": "has_class_property", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper", "target": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:loop"}, {"predicate": "has_class_function", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper", "target": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:run"}, {"predicate": "has_class_function", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper", "target": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:__init__"}, {"predicate": "has_class_function", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper", "target": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:_run_precheck"}, {"predicate": "has_class_function", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper", "target": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:_scrape_website"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper", "target": "{\"lineno\":24,\"end_lineno\":87,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SeleniumWrapper\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper", "target": "{\"name\":\"SeleniumWrapper\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"browser_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Literal[chrome, firefox, edge, ie] \\\\| None \",\"default_value\":\"\"},{\"name\":\"executable_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"executor\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"launch_args\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"loop\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"WebPage \\\\| list[WebPage]\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_run_precheck\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_scrape_website\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:browser_type", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:browser_type", "target": "browser_type : Literal['chrome', 'firefox', 'edge', 'ie'] \\| None"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:executable_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:executable_path", "target": "executable_path"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:executor", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:executor", "target": "executor : NoneType"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:launch_args", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:launch_args", "target": "launch_args"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:loop", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:loop", "target": "loop : NoneType"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:run", "target": "run(url: str): WebPage \\| list[WebPage]"}, {"predicate": "is", "source": "metagpt/schema.py:SerializationMixin", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:SerializationMixin", "target": "metagpt/schema.py:SerializationMixin:__get_pydantic_core_schema__"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:SerializationMixin", "target": "metagpt/schema.py:SerializationMixin:__serialize_add_class_type__"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:SerializationMixin", "target": "metagpt/schema.py:SerializationMixin:__deserialize_with_real_type__"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:SerializationMixin", "target": "metagpt/schema.py:SerializationMixin:__init_subclass__"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:SerializationMixin", "target": "{\"lineno\":57,\"end_lineno\":121,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SerializationMixin\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:SerializationMixin", "target": "{\"name\":\"SerializationMixin\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__get_pydantic_core_schema__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__serialize_add_class_type__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__deserialize_with_real_type__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init_subclass__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/search_engine_serpapi.py", "target": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:aiosession"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:model_config"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:params"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:search_engine"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:serpapi_api_key"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:check_serpapi_api_key"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:get_params"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:results"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:run"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:_process_response"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "{\"lineno\":16,\"end_lineno\":110,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SerpAPIWrapper\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper", "target": "{\"name\":\"SerpAPIWrapper\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"aiosession\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[aiohttp.ClientSession] \",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"params\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"},{\"name\":\"search_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Any] \",\"default_value\":\"\"},{\"name\":\"serpapi_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"check_serpapi_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"val\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_params\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Dict[str, str]\"},{\"name\":\"results\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"as_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"_process_response\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:aiosession", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:aiosession", "target": "aiosession : Optional[aiohttp.ClientSession]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:params", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:params", "target": "params : dict"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:search_engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:search_engine", "target": "search_engine : Optional[Any]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:serpapi_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:serpapi_api_key", "target": "serpapi_api_key : Optional[str]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:check_serpapi_api_key", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:check_serpapi_api_key", "target": "check_serpapi_api_key(val: str)"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:get_params", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:get_params", "target": "get_params(query: str): Dict[str, str]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:results", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:results", "target": "results(query: str, max_results: int): dict"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:run", "target": "run(query, max_results: int, as_string: bool): str"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/search_engine_serper.py", "target": "metagpt/tools/search_engine_serper.py:SerperWrapper"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "metagpt/tools/search_engine_serper.py:SerperWrapper:aiosession"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "metagpt/tools/search_engine_serper.py:SerperWrapper:model_config"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "metagpt/tools/search_engine_serper.py:SerperWrapper:payload"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "metagpt/tools/search_engine_serper.py:SerperWrapper:search_engine"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "metagpt/tools/search_engine_serper.py:SerperWrapper:serper_api_key"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "metagpt/tools/search_engine_serper.py:SerperWrapper:check_serper_api_key"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "metagpt/tools/search_engine_serper.py:SerperWrapper:get_headers"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "metagpt/tools/search_engine_serper.py:SerperWrapper:get_payloads"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "metagpt/tools/search_engine_serper.py:SerperWrapper:results"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "metagpt/tools/search_engine_serper.py:SerperWrapper:run"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "metagpt/tools/search_engine_serper.py:SerperWrapper:_process_response"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "{\"lineno\":17,\"end_lineno\":112,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SerperWrapper\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper", "target": "{\"name\":\"SerperWrapper\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"aiosession\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[aiohttp.ClientSession] \",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"payload\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"},{\"name\":\"search_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Any] \",\"default_value\":\"\"},{\"name\":\"serper_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"check_serper_api_key\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"val\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"get_headers\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Dict[str, str]\"},{\"name\":\"get_payloads\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"queries\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str]\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"Dict[str, str]\"},{\"name\":\"results\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"queries\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[str]\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"max_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"},{\"name\":\"as_string\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"_process_response\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:aiosession", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:aiosession", "target": "aiosession : Optional[aiohttp.ClientSession]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:payload", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:payload", "target": "payload : dict"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:search_engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:search_engine", "target": "search_engine : Optional[Any]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:serper_api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:serper_api_key", "target": "serper_api_key : Optional[str]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:check_serper_api_key", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:check_serper_api_key", "target": "check_serper_api_key(val: str)"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:get_headers", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:get_headers", "target": "get_headers(): Dict[str, str]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:get_payloads", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:get_payloads", "target": "get_payloads(queries: list[str], max_results: int): Dict[str, str]"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:results", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:results", "target": "results(queries: list[str], max_results: int): dict"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:run", "target": "run(query: str, max_results: int, as_string: bool): str"}, {"predicate": "is", "source": "metagpt/schema.py:SimpleMessage", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:SimpleMessage", "target": "metagpt/schema.py:SimpleMessage:content"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:SimpleMessage", "target": "metagpt/schema.py:SimpleMessage:role"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:SimpleMessage", "target": "{\"lineno\":124,\"end_lineno\":126,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SimpleMessage\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:SimpleMessage", "target": "{\"name\":\"SimpleMessage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/schema.py:SimpleMessage:content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:SimpleMessage:content", "target": "content : str"}, {"predicate": "is", "source": "metagpt/schema.py:SimpleMessage:role", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:SimpleMessage:role", "target": "role : str"}, {"predicate": "is", "source": "metagpt/utils/singleton.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/singleton.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/singleton.py", "target": "metagpt/utils/singleton.py:Singleton"}, {"predicate": "is", "source": "metagpt/utils/singleton.py:Singleton", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/utils/singleton.py:Singleton", "target": "metagpt/utils/singleton.py:Singleton:__call__"}, {"predicate": "has_page_info", "source": "metagpt/utils/singleton.py:Singleton", "target": "{\"lineno\":11,\"end_lineno\":22,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Singleton\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/singleton.py:Singleton", "target": "{\"name\":\"Singleton\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__call__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/sk_agent.py", "target": "metagpt/roles/sk_agent.py:SkAgent"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:constraints"}, {"predicate": "has_class_property", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:import_semantic_skill_from_directory"}, {"predicate": "has_class_property", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:import_skill"}, {"predicate": "has_class_property", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:kernel"}, {"predicate": "has_class_property", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:llm"}, {"predicate": "has_class_property", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:plan"}, {"predicate": "has_class_property", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:planner"}, {"predicate": "has_class_property", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:planner_cls"}, {"predicate": "has_class_property", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:profile"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:__init__"}, {"predicate": "has_class_function", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:_think"}, {"predicate": "has_class_function", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "metagpt/roles/sk_agent.py:SkAgent:_act"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "{\"lineno\":28,\"end_lineno\":90,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SkAgent\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/sk_agent.py:SkAgent", "target": "{\"name\":\"SkAgent\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"import_semantic_skill_from_directory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Callable \",\"default_value\":\"\"},{\"name\":\"import_skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Callable \",\"default_value\":\"\"},{\"name\":\"kernel\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Kernel \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"plan\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Plan \",\"default_value\":\"\"},{\"name\":\"planner\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Union[BasicPlanner, SequentialPlanner, ActionPlanner]] \",\"default_value\":\"\"},{\"name\":\"planner_cls\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Any] \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_think\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sk_agent.py:SkAgent:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sk_agent.py:SkAgent:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:import_semantic_skill_from_directory", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sk_agent.py:SkAgent:import_semantic_skill_from_directory", "target": "import_semantic_skill_from_directory : Callable"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:import_skill", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sk_agent.py:SkAgent:import_skill", "target": "import_skill : Callable"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:kernel", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sk_agent.py:SkAgent:kernel", "target": "kernel : Kernel"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sk_agent.py:SkAgent:llm", "target": "llm"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sk_agent.py:SkAgent:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:plan", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sk_agent.py:SkAgent:plan", "target": "plan : Plan"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:planner", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sk_agent.py:SkAgent:planner", "target": "planner : Optional[Union[BasicPlanner, SequentialPlanner, ActionPlanner]]"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:planner_cls", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sk_agent.py:SkAgent:planner_cls", "target": "planner_cls : Optional[Any]"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/sk_agent.py:SkAgent:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/tools/search_engine.py:SkSearchEngine", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/search_engine.py:SkSearchEngine", "target": "metagpt/tools/search_engine.py:SkSearchEngine:search_engine"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine.py:SkSearchEngine", "target": "metagpt/tools/search_engine.py:SkSearchEngine:run"}, {"predicate": "has_class_function", "source": "metagpt/tools/search_engine.py:SkSearchEngine", "target": "metagpt/tools/search_engine.py:SkSearchEngine:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine.py:SkSearchEngine", "target": "{\"lineno\":17,\"end_lineno\":29,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SkSearchEngine\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/search_engine.py:SkSearchEngine", "target": "{\"name\":\"SkSearchEngine\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"search_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"query\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/search_engine.py:SkSearchEngine:search_engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/search_engine.py:SkSearchEngine:search_engine", "target": "search_engine"}, {"predicate": "is", "source": "metagpt/tools/search_engine.py:SkSearchEngine:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/search_engine.py:SkSearchEngine:run", "target": "run(query: str): str"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Skill", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/learn/skill_loader.py:Skill", "target": "metagpt/learn/skill_loader.py:Skill:arguments"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Skill", "target": "metagpt/learn/skill_loader.py:Skill:description"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Skill", "target": "metagpt/learn/skill_loader.py:Skill:examples"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Skill", "target": "metagpt/learn/skill_loader.py:Skill:id"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Skill", "target": "metagpt/learn/skill_loader.py:Skill:name"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Skill", "target": "metagpt/learn/skill_loader.py:Skill:parameters"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Skill", "target": "metagpt/learn/skill_loader.py:Skill:returns"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:Skill", "target": "metagpt/learn/skill_loader.py:Skill:x_prerequisite"}, {"predicate": "isCompositeOf", "source": "metagpt/learn/skill_loader.py:Skill", "target": "metagpt/actions/skill_action.py:ArgumentsParingAction"}, {"predicate": "isCompositeOn", "source": "metagpt/learn/skill_loader.py:Skill", "target": "metagpt/actions/skill_action.py:ArgumentsParingAction:skill"}, {"predicate": "isCompositeOf", "source": "metagpt/learn/skill_loader.py:Skill", "target": "metagpt/actions/skill_action.py:SkillAction"}, {"predicate": "isCompositeOn", "source": "metagpt/learn/skill_loader.py:Skill", "target": "metagpt/actions/skill_action.py:SkillAction:skill"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:Skill", "target": "{\"lineno\":34,\"end_lineno\":50,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Skill\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/learn/skill_loader.py:Skill", "target": "{\"name\":\"Skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"description\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"examples\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"List[Example] \",\"default_value\":\"\"},{\"name\":\"id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"parameters\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Dict[str, Parameter]] \",\"default_value\":\"\"},{\"name\":\"returns\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"x_prerequisite\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"arguments\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Skill:arguments", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Skill:arguments", "target": "arguments"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Skill:arguments", "target": "class_function"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Skill:description", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Skill:description", "target": "description : Optional[str]"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Skill:examples", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Skill:examples", "target": "examples : List[Example]"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Skill:id", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Skill:id", "target": "id : Optional[str]"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Skill:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Skill:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Skill:parameters", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Skill:parameters", "target": "parameters : Optional[Dict[str, Parameter]]"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Skill:returns", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Skill:returns", "target": "returns"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:Skill:x_prerequisite", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:Skill:x_prerequisite", "target": "x_prerequisite : Dict"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:SkillAction", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/skill_action.py:SkillAction", "target": "metagpt/actions/skill_action.py:SkillAction:args"}, {"predicate": "has_class_property", "source": "metagpt/actions/skill_action.py:SkillAction", "target": "metagpt/actions/skill_action.py:SkillAction:rsp"}, {"predicate": "has_class_property", "source": "metagpt/actions/skill_action.py:SkillAction", "target": "metagpt/actions/skill_action.py:SkillAction:skill"}, {"predicate": "has_class_function", "source": "metagpt/actions/skill_action.py:SkillAction", "target": "metagpt/actions/skill_action.py:SkillAction:find_and_call_function"}, {"predicate": "has_class_function", "source": "metagpt/actions/skill_action.py:SkillAction", "target": "metagpt/actions/skill_action.py:SkillAction:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/skill_action.py:SkillAction", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:SkillAction", "target": "{\"lineno\":81,\"end_lineno\":111,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SkillAction\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/skill_action.py:SkillAction", "target": "{\"name\":\"SkillAction\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"args\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict \",\"default_value\":\"\"},{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Message] \",\"default_value\":\"\"},{\"name\":\"skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"find_and_call_function\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"function_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"args\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Message\"}]}"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:SkillAction:args", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/skill_action.py:SkillAction:args", "target": "args : Dict"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:SkillAction:rsp", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/skill_action.py:SkillAction:rsp", "target": "rsp : Optional[Message]"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:SkillAction:skill", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/skill_action.py:SkillAction:skill", "target": "skill"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:SkillAction:find_and_call_function", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/skill_action.py:SkillAction:find_and_call_function", "target": "find_and_call_function(function_name, args): str"}, {"predicate": "is", "source": "metagpt/actions/skill_action.py:SkillAction:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/skill_action.py:SkillAction:run", "target": "run(with_message): Message"}, {"predicate": "is", "source": "metagpt/management/skill_manager.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/management/skill_manager.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/management/skill_manager.py", "target": "metagpt/management/skill_manager.py:SkillManager"}, {"predicate": "is", "source": "metagpt/management/skill_manager.py:SkillManager", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/management/skill_manager.py:SkillManager", "target": "metagpt/management/skill_manager.py:SkillManager:add_skill"}, {"predicate": "has_class_function", "source": "metagpt/management/skill_manager.py:SkillManager", "target": "metagpt/management/skill_manager.py:SkillManager:del_skill"}, {"predicate": "has_class_function", "source": "metagpt/management/skill_manager.py:SkillManager", "target": "metagpt/management/skill_manager.py:SkillManager:generate_skill_desc"}, {"predicate": "has_class_function", "source": "metagpt/management/skill_manager.py:SkillManager", "target": "metagpt/management/skill_manager.py:SkillManager:get_skill"}, {"predicate": "has_class_function", "source": "metagpt/management/skill_manager.py:SkillManager", "target": "metagpt/management/skill_manager.py:SkillManager:retrieve_skill"}, {"predicate": "has_class_function", "source": "metagpt/management/skill_manager.py:SkillManager", "target": "metagpt/management/skill_manager.py:SkillManager:retrieve_skill_scored"}, {"predicate": "has_class_function", "source": "metagpt/management/skill_manager.py:SkillManager", "target": "metagpt/management/skill_manager.py:SkillManager:__init__"}, {"predicate": "has_page_info", "source": "metagpt/management/skill_manager.py:SkillManager", "target": "{\"lineno\":17,\"end_lineno\":74,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SkillManager\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/management/skill_manager.py:SkillManager", "target": "{\"name\":\"SkillManager\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"add_skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Skill\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"del_skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"skill_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"generate_skill_desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Skill\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"skill_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Skill\"},{\"name\":\"retrieve_skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"n_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"list[Skill]\"},{\"name\":\"retrieve_skill_scored\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"n_results\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/management/skill_manager.py:SkillManager:add_skill", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/management/skill_manager.py:SkillManager:add_skill", "target": "add_skill(skill: Skill)"}, {"predicate": "is", "source": "metagpt/management/skill_manager.py:SkillManager:del_skill", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/management/skill_manager.py:SkillManager:del_skill", "target": "del_skill(skill_name: str)"}, {"predicate": "is", "source": "metagpt/management/skill_manager.py:SkillManager:generate_skill_desc", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/management/skill_manager.py:SkillManager:generate_skill_desc", "target": "generate_skill_desc(skill: Skill): str"}, {"predicate": "is", "source": "metagpt/management/skill_manager.py:SkillManager:get_skill", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/management/skill_manager.py:SkillManager:get_skill", "target": "get_skill(skill_name: str): Skill"}, {"predicate": "is", "source": "metagpt/management/skill_manager.py:SkillManager:retrieve_skill", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/management/skill_manager.py:SkillManager:retrieve_skill", "target": "retrieve_skill(desc: str, n_results: int): list[Skill]"}, {"predicate": "is", "source": "metagpt/management/skill_manager.py:SkillManager:retrieve_skill_scored", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/management/skill_manager.py:SkillManager:retrieve_skill_scored", "target": "retrieve_skill_scored(desc: str, n_results: int): dict"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration", "target": "metagpt/learn/skill_loader.py:SkillsDeclaration:components"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration", "target": "metagpt/learn/skill_loader.py:SkillsDeclaration:entities"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration", "target": "metagpt/learn/skill_loader.py:SkillsDeclaration:skillapi"}, {"predicate": "has_class_function", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration", "target": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill"}, {"predicate": "has_class_function", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration", "target": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill_list"}, {"predicate": "has_class_function", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration", "target": "metagpt/learn/skill_loader.py:SkillsDeclaration:load"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration", "target": "{\"lineno\":62,\"end_lineno\":100,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SkillsDeclaration\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration", "target": "{\"name\":\"SkillsDeclaration\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"components\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Components] \",\"default_value\":\"\"},{\"name\":\"entities\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Dict[str, Entity] \",\"default_value\":\"\"},{\"name\":\"skillapi\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_skill\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"entity_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Skill\"},{\"name\":\"get_skill_list\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"entity_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Dict\"},{\"name\":\"load\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"skill_yaml_file_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"SkillsDeclaration\"}]}"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:components", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:components", "target": "components : Optional[Components]"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:entities", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:entities", "target": "entities : Dict[str, Entity]"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:skillapi", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:skillapi", "target": "skillapi : str"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill", "target": "get_skill(name, entity_name: str): Skill"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill_list", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill_list", "target": "get_skill_list(entity_name: str): Dict"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:load", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:load", "target": "load(skill_yaml_file_name: Path): 'SkillsDeclaration'"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:SparkLLM", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:SparkLLM", "target": "metagpt/provider/spark_api.py:SparkLLM:acompletion"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:SparkLLM", "target": "metagpt/provider/spark_api.py:SparkLLM:acompletion_text"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:SparkLLM", "target": "metagpt/provider/spark_api.py:SparkLLM:get_choice_text"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/spark_api.py:SparkLLM", "target": "metagpt/provider/base_llm.py:BaseLLM"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:SparkLLM", "target": "metagpt/provider/spark_api.py:SparkLLM:__init__"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:SparkLLM", "target": "{\"lineno\":26,\"end_lineno\":42,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SparkLLM\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/spark_api.py:SparkLLM", "target": "{\"name\":\"SparkLLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"get_choice_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:SparkLLM:acompletion", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/spark_api.py:SparkLLM:acompletion", "target": "acompletion(messages: list[dict], timeout)"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:SparkLLM:acompletion_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/spark_api.py:SparkLLM:acompletion_text", "target": "acompletion_text(messages: list[dict], stream, timeout: int): str"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:SparkLLM:get_choice_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/spark_api.py:SparkLLM:get_choice_text", "target": "get_choice_text(rsp: dict): str"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py:Strategy", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot_schema.py:Strategy", "target": "metagpt/strategy/tot_schema.py:Strategy:name"}, {"predicate": "isCompositeOf", "source": "metagpt/strategy/tot_schema.py:Strategy", "target": "metagpt/strategy/tot.py:TreeofThought"}, {"predicate": "isCompositeOn", "source": "metagpt/strategy/tot_schema.py:Strategy", "target": "metagpt/strategy/tot.py:TreeofThought:strategy"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot_schema.py:Strategy", "target": "{\"lineno\":17,\"end_lineno\":20,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Strategy\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/strategy/tot_schema.py:Strategy", "target": "{\"name\":\"Strategy\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py:Strategy:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot_schema.py:Strategy:name", "target": "name"}, {"predicate": "is", "source": "metagpt/subscription.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/subscription.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/subscription.py", "target": "metagpt/subscription.py:SubscriptionRunner"}, {"predicate": "is", "source": "metagpt/subscription.py:SubscriptionRunner", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/subscription.py:SubscriptionRunner", "target": "metagpt/subscription.py:SubscriptionRunner:model_config"}, {"predicate": "has_class_property", "source": "metagpt/subscription.py:SubscriptionRunner", "target": "metagpt/subscription.py:SubscriptionRunner:tasks"}, {"predicate": "has_class_function", "source": "metagpt/subscription.py:SubscriptionRunner", "target": "metagpt/subscription.py:SubscriptionRunner:run"}, {"predicate": "has_class_function", "source": "metagpt/subscription.py:SubscriptionRunner", "target": "metagpt/subscription.py:SubscriptionRunner:subscribe"}, {"predicate": "has_class_function", "source": "metagpt/subscription.py:SubscriptionRunner", "target": "metagpt/subscription.py:SubscriptionRunner:unsubscribe"}, {"predicate": "has_page_info", "source": "metagpt/subscription.py:SubscriptionRunner", "target": "{\"lineno\":11,\"end_lineno\":100,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SubscriptionRunner\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/subscription.py:SubscriptionRunner", "target": "{\"name\":\"SubscriptionRunner\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"tasks\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict[Role, asyncio.Task] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"raise_exception\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"subscribe\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Role\",\"default_value\":\"\"},{\"name\":\"trigger\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"AsyncGenerator[Message, None]\",\"default_value\":\"\"},{\"name\":\"callback\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Callable[[Message], Awaitable[None]]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"unsubscribe\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"role\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Role\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/subscription.py:SubscriptionRunner:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/subscription.py:SubscriptionRunner:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/subscription.py:SubscriptionRunner:tasks", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/subscription.py:SubscriptionRunner:tasks", "target": "tasks : dict[Role, asyncio.Task]"}, {"predicate": "is", "source": "metagpt/subscription.py:SubscriptionRunner:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/subscription.py:SubscriptionRunner:run", "target": "run(raise_exception: bool)"}, {"predicate": "is", "source": "metagpt/subscription.py:SubscriptionRunner:subscribe", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/subscription.py:SubscriptionRunner:subscribe", "target": "subscribe(role: Role, trigger: AsyncGenerator[Message, None], callback: Callable[[Message], Awaitable[None]])"}, {"predicate": "is", "source": "metagpt/subscription.py:SubscriptionRunner:unsubscribe", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/subscription.py:SubscriptionRunner:unsubscribe", "target": "unsubscribe(role: Role)"}, {"predicate": "is", "source": "metagpt/actions/summarize_code.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/summarize_code.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/summarize_code.py", "target": "metagpt/actions/summarize_code.py:SummarizeCode"}, {"predicate": "is", "source": "metagpt/actions/summarize_code.py:SummarizeCode", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/summarize_code.py:SummarizeCode", "target": "metagpt/actions/summarize_code.py:SummarizeCode:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/summarize_code.py:SummarizeCode", "target": "metagpt/actions/summarize_code.py:SummarizeCode:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/summarize_code.py:SummarizeCode", "target": "metagpt/actions/summarize_code.py:SummarizeCode:run"}, {"predicate": "has_class_function", "source": "metagpt/actions/summarize_code.py:SummarizeCode", "target": "metagpt/actions/summarize_code.py:SummarizeCode:summarize_code"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/summarize_code.py:SummarizeCode", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:SummarizeCode", "target": "{\"lineno\":94,\"end_lineno\":123,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SummarizeCode\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/summarize_code.py:SummarizeCode", "target": "{\"name\":\"SummarizeCode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"summarize_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/summarize_code.py:SummarizeCode:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/summarize_code.py:SummarizeCode:context", "target": "context"}, {"predicate": "is", "source": "metagpt/actions/summarize_code.py:SummarizeCode:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/summarize_code.py:SummarizeCode:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/summarize_code.py:SummarizeCode:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/summarize_code.py:SummarizeCode:run", "target": "run()"}, {"predicate": "is", "source": "metagpt/actions/summarize_code.py:SummarizeCode:summarize_code", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/summarize_code.py:SummarizeCode:summarize_code", "target": "summarize_code(prompt)"}, {"predicate": "is", "source": "metagpt/schema.py:SystemMessage", "target": "class"}, {"predicate": "isGeneralizeOf", "source": "metagpt/schema.py:SystemMessage", "target": "metagpt/schema.py:Message"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:SystemMessage", "target": "metagpt/schema.py:SystemMessage:__init__"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:SystemMessage", "target": "{\"lineno\":296,\"end_lineno\":302,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SystemMessage\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:SystemMessage", "target": "{\"name\":\"SystemMessage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/talk_action.py", "target": "metagpt/actions/talk_action.py:TalkAction"}, {"predicate": "has_class", "source": "metagpt/actions/talk_action.py", "target": "metagpt/actions/talk_action.py:TalkActionPrompt"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkAction", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/actions/talk_action.py:TalkAction", "target": "metagpt/actions/talk_action.py:TalkAction:aask_args"}, {"predicate": "has_class_property", "source": "metagpt/actions/talk_action.py:TalkAction", "target": "metagpt/actions/talk_action.py:TalkAction:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/talk_action.py:TalkAction", "target": "metagpt/actions/talk_action.py:TalkAction:history_summary"}, {"predicate": "has_class_property", "source": "metagpt/actions/talk_action.py:TalkAction", "target": "metagpt/actions/talk_action.py:TalkAction:knowledge"}, {"predicate": "has_class_function", "source": "metagpt/actions/talk_action.py:TalkAction", "target": "metagpt/actions/talk_action.py:TalkAction:prompt"}, {"predicate": "has_class_function", "source": "metagpt/actions/talk_action.py:TalkAction", "target": "metagpt/actions/talk_action.py:TalkAction:prompt_gpt4"}, {"predicate": "has_class_property", "source": "metagpt/actions/talk_action.py:TalkAction", "target": "metagpt/actions/talk_action.py:TalkAction:rsp"}, {"predicate": "has_class_function", "source": "metagpt/actions/talk_action.py:TalkAction", "target": "metagpt/actions/talk_action.py:TalkAction:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/talk_action.py:TalkAction", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:TalkAction", "target": "{\"lineno\":19,\"end_lineno\":91,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"TalkAction\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/talk_action.py:TalkAction", "target": "{\"name\":\"TalkAction\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"history_summary\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"knowledge\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Message] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"aask_args\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"prompt_gpt4\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"Message\"}]}"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkAction:aask_args", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/talk_action.py:TalkAction:aask_args", "target": "aask_args"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkAction:aask_args", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkAction:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/talk_action.py:TalkAction:context", "target": "context : str"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkAction:history_summary", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/talk_action.py:TalkAction:history_summary", "target": "history_summary : str"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkAction:knowledge", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/talk_action.py:TalkAction:knowledge", "target": "knowledge : str"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkAction:prompt", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/talk_action.py:TalkAction:prompt", "target": "prompt"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkAction:prompt", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkAction:prompt_gpt4", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/talk_action.py:TalkAction:prompt_gpt4", "target": "prompt_gpt4"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkAction:prompt_gpt4", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkAction:rsp", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/talk_action.py:TalkAction:rsp", "target": "rsp : Optional[Message]"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkAction:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/talk_action.py:TalkAction:run", "target": "run(with_message): Message"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkActionPrompt", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/talk_action.py:TalkActionPrompt", "target": "metagpt/actions/talk_action.py:TalkActionPrompt:FORMATION"}, {"predicate": "has_class_property", "source": "metagpt/actions/talk_action.py:TalkActionPrompt", "target": "metagpt/actions/talk_action.py:TalkActionPrompt:FORMATION_LOOSE"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:TalkActionPrompt", "target": "{\"lineno\":94,\"end_lineno\":163,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"TalkActionPrompt\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/talk_action.py:TalkActionPrompt", "target": "{\"name\":\"TalkActionPrompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"FORMATION\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"FORMATION_LOOSE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkActionPrompt:FORMATION", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/talk_action.py:TalkActionPrompt:FORMATION", "target": "FORMATION : str"}, {"predicate": "is", "source": "metagpt/actions/talk_action.py:TalkActionPrompt:FORMATION_LOOSE", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/talk_action.py:TalkActionPrompt:FORMATION_LOOSE", "target": "FORMATION_LOOSE : str"}, {"predicate": "is", "source": "metagpt/roles/teacher.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/teacher.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/teacher.py", "target": "metagpt/roles/teacher.py:Teacher"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/teacher.py:Teacher", "target": "metagpt/roles/teacher.py:Teacher:constraints"}, {"predicate": "has_class_function", "source": "metagpt/roles/teacher.py:Teacher", "target": "metagpt/roles/teacher.py:Teacher:course_title"}, {"predicate": "has_class_property", "source": "metagpt/roles/teacher.py:Teacher", "target": "metagpt/roles/teacher.py:Teacher:desc"}, {"predicate": "has_class_property", "source": "metagpt/roles/teacher.py:Teacher", "target": "metagpt/roles/teacher.py:Teacher:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/teacher.py:Teacher", "target": "metagpt/roles/teacher.py:Teacher:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/teacher.py:Teacher", "target": "metagpt/roles/teacher.py:Teacher:profile"}, {"predicate": "has_class_function", "source": "metagpt/roles/teacher.py:Teacher", "target": "metagpt/roles/teacher.py:Teacher:new_file_name"}, {"predicate": "has_class_function", "source": "metagpt/roles/teacher.py:Teacher", "target": "metagpt/roles/teacher.py:Teacher:save"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/teacher.py:Teacher", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/teacher.py:Teacher", "target": "metagpt/roles/teacher.py:Teacher:__init__"}, {"predicate": "has_class_function", "source": "metagpt/roles/teacher.py:Teacher", "target": "metagpt/roles/teacher.py:Teacher:_think"}, {"predicate": "has_class_function", "source": "metagpt/roles/teacher.py:Teacher", "target": "metagpt/roles/teacher.py:Teacher:_react"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:Teacher", "target": "{\"lineno\":25,\"end_lineno\":118,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Teacher\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/teacher.py:Teacher", "target": "{\"name\":\"Teacher\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"course_title\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"new_file_name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"lesson_title\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"ext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"save\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_think\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_react\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/teacher.py:Teacher:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher:course_title", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/teacher.py:Teacher:course_title", "target": "course_title"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher:course_title", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher:desc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/teacher.py:Teacher:desc", "target": "desc : str"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/teacher.py:Teacher:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/teacher.py:Teacher:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/teacher.py:Teacher:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher:new_file_name", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/teacher.py:Teacher:new_file_name", "target": "new_file_name(lesson_title, ext)"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher:save", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/teacher.py:Teacher:save", "target": "save(content)"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/write_teaching_plan.py", "target": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock"}, {"predicate": "has_class", "source": "metagpt/actions/write_teaching_plan.py", "target": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock", "target": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:COURSE_TITLE"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock", "target": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:DATA_BEGIN_TAG"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock", "target": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:DATA_END_TAG"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock", "target": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:FORMATION"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock", "target": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:PROMPT_TEMPLATE"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock", "target": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:PROMPT_TITLE_TEMPLATE"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock", "target": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:TOPICS"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock", "target": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:TOPIC_STATEMENTS"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock", "target": "{\"lineno\":89,\"end_lineno\":188,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"TeachingPlanBlock\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock", "target": "{\"name\":\"TeachingPlanBlock\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"COURSE_TITLE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"DATA_BEGIN_TAG\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"DATA_END_TAG\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"FORMATION\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"PROMPT_TEMPLATE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"PROMPT_TITLE_TEMPLATE\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"TOPICS\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"list \",\"default_value\":\"\"},{\"name\":\"TOPIC_STATEMENTS\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:COURSE_TITLE", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:COURSE_TITLE", "target": "COURSE_TITLE : str"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:DATA_BEGIN_TAG", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:DATA_BEGIN_TAG", "target": "DATA_BEGIN_TAG : str"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:DATA_END_TAG", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:DATA_END_TAG", "target": "DATA_END_TAG : str"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:FORMATION", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:FORMATION", "target": "FORMATION : str"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:PROMPT_TEMPLATE", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:PROMPT_TEMPLATE", "target": "PROMPT_TEMPLATE : str"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:PROMPT_TITLE_TEMPLATE", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:PROMPT_TITLE_TEMPLATE", "target": "PROMPT_TITLE_TEMPLATE : str"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:TOPICS", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:TOPICS", "target": "TOPICS : list"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:TOPIC_STATEMENTS", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_teaching_plan.py:TeachingPlanBlock:TOPIC_STATEMENTS", "target": "TOPIC_STATEMENTS : dict"}, {"predicate": "is", "source": "metagpt/team.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/team.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/team.py", "target": "metagpt/team.py:Team"}, {"predicate": "is", "source": "metagpt/team.py:Team", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:env"}, {"predicate": "has_class_property", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:idea"}, {"predicate": "has_class_property", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:investment"}, {"predicate": "has_class_property", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:model_config"}, {"predicate": "has_class_function", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:deserialize"}, {"predicate": "has_class_function", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:hire"}, {"predicate": "has_class_function", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:invest"}, {"predicate": "has_class_function", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:run"}, {"predicate": "has_class_function", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:run_project"}, {"predicate": "has_class_function", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:serialize"}, {"predicate": "has_class_function", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:start_project"}, {"predicate": "has_class_function", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:__init__"}, {"predicate": "has_class_function", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:_check_balance"}, {"predicate": "has_class_function", "source": "metagpt/team.py:Team", "target": "metagpt/team.py:Team:_save"}, {"predicate": "has_page_info", "source": "metagpt/team.py:Team", "target": "{\"lineno\":32,\"end_lineno\":135,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Team\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/team.py:Team", "target": "{\"name\":\"Team\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"env\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"idea\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"investment\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"float \",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"deserialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"Team\"},{\"name\":\"hire\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"roles\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[Role]\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"invest\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"investment\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"float\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"n_round\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"idea\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"send_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"auto_archive\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run_project\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"idea\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"send_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"serialize\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"stg_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Path\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"start_project\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"idea\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"send_to\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_check_balance\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/team.py:Team:env", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/team.py:Team:env", "target": "env"}, {"predicate": "is", "source": "metagpt/team.py:Team:idea", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/team.py:Team:idea", "target": "idea : str"}, {"predicate": "is", "source": "metagpt/team.py:Team:investment", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/team.py:Team:investment", "target": "investment : float"}, {"predicate": "is", "source": "metagpt/team.py:Team:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/team.py:Team:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/team.py:Team:deserialize", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/team.py:Team:deserialize", "target": "deserialize(stg_path: Path): 'Team'"}, {"predicate": "is", "source": "metagpt/team.py:Team:hire", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/team.py:Team:hire", "target": "hire(roles: list[Role])"}, {"predicate": "is", "source": "metagpt/team.py:Team:invest", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/team.py:Team:invest", "target": "invest(investment: float)"}, {"predicate": "is", "source": "metagpt/team.py:Team:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/team.py:Team:run", "target": "run(n_round, idea, send_to, auto_archive)"}, {"predicate": "is", "source": "metagpt/team.py:Team:run_project", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/team.py:Team:run_project", "target": "run_project(idea, send_to: str)"}, {"predicate": "is", "source": "metagpt/team.py:Team:serialize", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/team.py:Team:serialize", "target": "serialize(stg_path: Path)"}, {"predicate": "is", "source": "metagpt/team.py:Team:start_project", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/team.py:Team:start_project", "target": "start_project(idea, send_to: str)"}, {"predicate": "is", "source": "metagpt/schema.py:TestingContext", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:TestingContext", "target": "metagpt/schema.py:TestingContext:code_doc"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:TestingContext", "target": "metagpt/schema.py:TestingContext:filename"}, {"predicate": "has_class_property", "source": "metagpt/schema.py:TestingContext", "target": "metagpt/schema.py:TestingContext:test_doc"}, {"predicate": "isGeneralizeOf", "source": "metagpt/schema.py:TestingContext", "target": "metagpt/schema.py:BaseContext"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:TestingContext", "target": "{\"lineno\":405,\"end_lineno\":408,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"TestingContext\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:TestingContext", "target": "{\"name\":\"TestingContext\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"code_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"test_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Document] \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/schema.py:TestingContext:code_doc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:TestingContext:code_doc", "target": "code_doc"}, {"predicate": "is", "source": "metagpt/schema.py:TestingContext:filename", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:TestingContext:filename", "target": "filename : str"}, {"predicate": "is", "source": "metagpt/schema.py:TestingContext:test_doc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/schema.py:TestingContext:test_doc", "target": "test_doc : Optional[Document]"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtNode", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/strategy/base.py:ThoughtNode", "target": "metagpt/strategy/base.py:ThoughtNode:id"}, {"predicate": "has_class_property", "source": "metagpt/strategy/base.py:ThoughtNode", "target": "metagpt/strategy/base.py:ThoughtNode:name"}, {"predicate": "has_class_property", "source": "metagpt/strategy/base.py:ThoughtNode", "target": "metagpt/strategy/base.py:ThoughtNode:valid_status"}, {"predicate": "has_class_property", "source": "metagpt/strategy/base.py:ThoughtNode", "target": "metagpt/strategy/base.py:ThoughtNode:value"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:ThoughtNode", "target": "metagpt/strategy/base.py:ThoughtNode:update_valid_status"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:ThoughtNode", "target": "metagpt/strategy/base.py:ThoughtNode:update_value"}, {"predicate": "has_page_info", "source": "metagpt/strategy/base.py:ThoughtNode", "target": "{\"lineno\":34,\"end_lineno\":48,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ThoughtNode\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/strategy/base.py:ThoughtNode", "target": "{\"name\":\"ThoughtNode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"id\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"valid_status\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"},{\"name\":\"value\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"update_valid_status\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"status\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"update_value\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"value\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtNode:id", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/base.py:ThoughtNode:id", "target": "id : int"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtNode:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/base.py:ThoughtNode:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtNode:valid_status", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/base.py:ThoughtNode:valid_status", "target": "valid_status : bool"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtNode:value", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/base.py:ThoughtNode:value", "target": "value : int"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtNode:update_valid_status", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/base.py:ThoughtNode:update_valid_status", "target": "update_valid_status(status): None"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtNode:update_value", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/base.py:ThoughtNode:update_value", "target": "update_value(value): None"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:config"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:llm"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:model_config"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:thought_tree"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:evaluate_node"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:generate_thoughts"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:select_nodes"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:solve"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:update_solution"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:__init__"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:solve"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "{\"lineno\":33,\"end_lineno\":123,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ThoughtSolverBase\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/strategy/tot.py:ThoughtSolverBase", "target": "{\"name\":\"ThoughtSolverBase\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model_config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"thought_tree\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[ThoughtTree] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"evaluate_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"parent_value\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"generate_thoughts\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"current_state\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"current_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"List[ThoughtNode]\"},{\"name\":\"select_nodes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"thought_nodes\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[ThoughtNode]\",\"default_value\":\"\"}],\"return_type\":\"List[ThoughtNode]\"},{\"name\":\"solve\",\"abstraction\":true,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"init_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"update_solution\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"solve\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:config", "target": "config"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:llm", "target": "llm"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:model_config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:model_config", "target": "model_config"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:thought_tree", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:thought_tree", "target": "thought_tree : Optional[ThoughtTree]"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:evaluate_node", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:evaluate_node", "target": "evaluate_node(node, parent_value): None"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:generate_thoughts", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:generate_thoughts", "target": "generate_thoughts(current_state, current_node): List[ThoughtNode]"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:select_nodes", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:select_nodes", "target": "select_nodes(thought_nodes: List[ThoughtNode]): List[ThoughtNode]"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:solve", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:solve", "target": "solve(init_prompt)"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:update_solution", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:update_solution", "target": "update_solution()"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:evaluator"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:max_steps"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:method_select"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:n_generate_sample"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:n_select_sample"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:n_solution_sample"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:parser"}, {"predicate": "isCompositeOf", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "metagpt/strategy/tot.py:ThoughtSolverBase"}, {"predicate": "isCompositeOn", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "metagpt/strategy/tot.py:ThoughtSolverBase:config"}, {"predicate": "isCompositeOf", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "metagpt/strategy/tot.py:TreeofThought"}, {"predicate": "isCompositeOn", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "metagpt/strategy/tot.py:TreeofThought:config"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "{\"lineno\":23,\"end_lineno\":30,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ThoughtSolverConfig\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig", "target": "{\"name\":\"ThoughtSolverConfig\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"evaluator\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"max_steps\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"method_select\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"n_generate_sample\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"n_select_sample\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"n_solution_sample\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"parser\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:evaluator", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:evaluator", "target": "evaluator"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:max_steps", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:max_steps", "target": "max_steps : int"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:method_select", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:method_select", "target": "method_select : str"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:n_generate_sample", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:n_generate_sample", "target": "n_generate_sample : int"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:n_select_sample", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:n_select_sample", "target": "n_select_sample : int"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:n_solution_sample", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:n_solution_sample", "target": "n_solution_sample : int"}, {"predicate": "is", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:parser", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot_schema.py:ThoughtSolverConfig:parser", "target": "parser"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtTree", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:ThoughtTree", "target": "metagpt/strategy/base.py:ThoughtTree:all_nodes"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:ThoughtTree", "target": "metagpt/strategy/base.py:ThoughtTree:parse_node_path"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:ThoughtTree", "target": "metagpt/strategy/base.py:ThoughtTree:show"}, {"predicate": "has_class_function", "source": "metagpt/strategy/base.py:ThoughtTree", "target": "metagpt/strategy/base.py:ThoughtTree:update_node"}, {"predicate": "isCompositeOf", "source": "metagpt/strategy/base.py:ThoughtTree", "target": "metagpt/strategy/tot.py:BFSSolver"}, {"predicate": "isCompositeOn", "source": "metagpt/strategy/base.py:ThoughtTree", "target": "metagpt/strategy/tot.py:BFSSolver:thought_tree"}, {"predicate": "isCompositeOf", "source": "metagpt/strategy/base.py:ThoughtTree", "target": "metagpt/strategy/tot.py:DFSSolver"}, {"predicate": "isCompositeOn", "source": "metagpt/strategy/base.py:ThoughtTree", "target": "metagpt/strategy/tot.py:DFSSolver:thought_tree"}, {"predicate": "has_page_info", "source": "metagpt/strategy/base.py:ThoughtTree", "target": "{\"lineno\":51,\"end_lineno\":109,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ThoughtTree\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/strategy/base.py:ThoughtTree", "target": "{\"name\":\"ThoughtTree\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"all_nodes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"parse_node_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"List[str]\"},{\"name\":\"show\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"update_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"thought\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"List[dict]\",\"default_value\":\"\"},{\"name\":\"current_node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"ThoughtNode\",\"default_value\":\"\"}],\"return_type\":\"List[ThoughtNode]\"}]}"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtTree:all_nodes", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/base.py:ThoughtTree:all_nodes", "target": "all_nodes"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtTree:all_nodes", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtTree:parse_node_path", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/base.py:ThoughtTree:parse_node_path", "target": "parse_node_path(node): List[str]"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtTree:show", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/base.py:ThoughtTree:show", "target": "show(): None"}, {"predicate": "is", "source": "metagpt/strategy/base.py:ThoughtTree:update_node", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/base.py:ThoughtTree:update_node", "target": "update_node(thought: List[dict], current_node: ThoughtNode): List[ThoughtNode]"}, {"predicate": "is", "source": "metagpt/tools/translator.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/translator.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/translator.py", "target": "metagpt/tools/translator.py:Translator"}, {"predicate": "is", "source": "metagpt/tools/translator.py:Translator", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/tools/translator.py:Translator", "target": "metagpt/tools/translator.py:Translator:translate_prompt"}, {"predicate": "has_page_info", "source": "metagpt/tools/translator.py:Translator", "target": "{\"lineno\":23,\"end_lineno\":26,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Translator\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/translator.py:Translator", "target": "{\"name\":\"Translator\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"translate_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"original\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"lang\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/translator.py:Translator:translate_prompt", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/translator.py:Translator:translate_prompt", "target": "translate_prompt(original, lang)"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:TreeofThought", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot.py:TreeofThought", "target": "metagpt/strategy/tot.py:TreeofThought:config"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot.py:TreeofThought", "target": "metagpt/strategy/tot.py:TreeofThought:solver"}, {"predicate": "has_class_property", "source": "metagpt/strategy/tot.py:TreeofThought", "target": "metagpt/strategy/tot.py:TreeofThought:strategy"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:TreeofThought", "target": "metagpt/strategy/tot.py:TreeofThought:solve"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:TreeofThought", "target": "metagpt/strategy/tot.py:TreeofThought:__init__"}, {"predicate": "has_class_function", "source": "metagpt/strategy/tot.py:TreeofThought", "target": "metagpt/strategy/tot.py:TreeofThought:_initialize_solver"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:TreeofThought", "target": "{\"lineno\":235,\"end_lineno\":277,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"TreeofThought\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/strategy/tot.py:TreeofThought", "target": "{\"name\":\"TreeofThought\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"config\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"solver\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"strategy\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[{\"name\":\"solve\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"init_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_initialize_solver\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:TreeofThought:config", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot.py:TreeofThought:config", "target": "config"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:TreeofThought:solver", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot.py:TreeofThought:solver", "target": "solver"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:TreeofThought:strategy", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/strategy/tot.py:TreeofThought:strategy", "target": "strategy"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:TreeofThought:solve", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/strategy/tot.py:TreeofThought:solve", "target": "solve(init_prompt)"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/roles/tutorial_assistant.py", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:constraints"}, {"predicate": "has_class_property", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:goal"}, {"predicate": "has_class_property", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:language"}, {"predicate": "has_class_property", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:main_title"}, {"predicate": "has_class_property", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:name"}, {"predicate": "has_class_property", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:profile"}, {"predicate": "has_class_property", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:topic"}, {"predicate": "has_class_property", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:total_content"}, {"predicate": "has_class_function", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:react"}, {"predicate": "isGeneralizeOf", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/role.py:Role"}, {"predicate": "has_class_function", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:__init__"}, {"predicate": "has_class_function", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:_handle_directory"}, {"predicate": "has_class_function", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:_act"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "{\"lineno\":20,\"end_lineno\":94,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"TutorialAssistant\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant", "target": "{\"name\":\"TutorialAssistant\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"constraints\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"goal\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"main_title\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"profile\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"total_content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"react\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Message\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_handle_directory\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_act\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:constraints", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:constraints", "target": "constraints : str"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:goal", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:goal", "target": "goal : str"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:language", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:language", "target": "language : str"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:main_title", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:main_title", "target": "main_title : str"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:profile", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:profile", "target": "profile : str"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:topic", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:topic", "target": "topic : str"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:total_content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:total_content", "target": "total_content : str"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:react", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:react", "target": "react(): Message"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/ut_writer.py", "target": "metagpt/tools/ut_writer.py:UTGenerator"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:chatgpt_method"}, {"predicate": "has_class_property", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:icl_sample"}, {"predicate": "has_class_property", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:questions_path"}, {"predicate": "has_class_property", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:swagger_file"}, {"predicate": "has_class_property", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:template_prefix"}, {"predicate": "has_class_property", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:ut_py_path"}, {"predicate": "has_class_function", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:ask_gpt_and_save"}, {"predicate": "has_class_function", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:build_api_doc"}, {"predicate": "has_class_function", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:build_object_properties"}, {"predicate": "has_class_function", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:generate_ut"}, {"predicate": "has_class_function", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:get_swagger_json"}, {"predicate": "has_class_function", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:get_tags_mapping"}, {"predicate": "has_class_function", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:gpt_msgs_to_code"}, {"predicate": "has_class_function", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:para_to_str"}, {"predicate": "has_class_function", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:__init__"}, {"predicate": "has_class_function", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:__para_to_str"}, {"predicate": "has_class_function", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:_para_to_str"}, {"predicate": "has_class_function", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "metagpt/tools/ut_writer.py:UTGenerator:_generate_ut"}, {"predicate": "has_page_info", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "{\"lineno\":103,\"end_lineno\":286,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"UTGenerator\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/ut_writer.py:UTGenerator", "target": "{\"name\":\"UTGenerator\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"chatgpt_method\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"icl_sample\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"questions_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"swagger_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"template_prefix\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"ut_py_path\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"ask_gpt_and_save\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"question\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"tag\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"fname\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"build_api_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"},{\"name\":\"path\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"build_object_properties\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"node\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"prop_object_required\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"level\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"int\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"generate_ut\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"include_tags\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"bool\"},{\"name\":\"get_swagger_json\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict\"},{\"name\":\"get_tags_mapping\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict\"},{\"name\":\"gpt_msgs_to_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"para_to_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"prop\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"prop_object_required\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__para_to_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_para_to_str\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_generate_ut\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:chatgpt_method", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:chatgpt_method", "target": "chatgpt_method : str"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:icl_sample", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:icl_sample", "target": "icl_sample : str"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:questions_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:questions_path", "target": "questions_path : str"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:swagger_file", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:swagger_file", "target": "swagger_file : str"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:template_prefix", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:template_prefix", "target": "template_prefix : str"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:ut_py_path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:ut_py_path", "target": "ut_py_path : str"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:ask_gpt_and_save", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:ask_gpt_and_save", "target": "ask_gpt_and_save(question: str, tag: str, fname: str)"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:build_api_doc", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:build_api_doc", "target": "build_api_doc(node: dict, path: str, method: str): str"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:build_object_properties", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:build_object_properties", "target": "build_object_properties(node, prop_object_required, level: int): str"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:generate_ut", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:generate_ut", "target": "generate_ut(include_tags): bool"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:get_swagger_json", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:get_swagger_json", "target": "get_swagger_json(): dict"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:get_tags_mapping", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:get_tags_mapping", "target": "get_tags_mapping(): dict"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:gpt_msgs_to_code", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:gpt_msgs_to_code", "target": "gpt_msgs_to_code(messages: list): str"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:para_to_str", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/ut_writer.py:UTGenerator:para_to_str", "target": "para_to_str(name, prop, prop_object_required)"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:Usage", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/openai_text_to_embedding.py:Usage", "target": "metagpt/tools/openai_text_to_embedding.py:Usage:prompt_tokens"}, {"predicate": "has_class_property", "source": "metagpt/tools/openai_text_to_embedding.py:Usage", "target": "metagpt/tools/openai_text_to_embedding.py:Usage:total_tokens"}, {"predicate": "isCompositeOf", "source": "metagpt/tools/openai_text_to_embedding.py:Usage", "target": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding"}, {"predicate": "isCompositeOn", "source": "metagpt/tools/openai_text_to_embedding.py:Usage", "target": "metagpt/tools/openai_text_to_embedding.py:ResultEmbedding:usage"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:Usage", "target": "{\"lineno\":30,\"end_lineno\":32,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"Usage\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/openai_text_to_embedding.py:Usage", "target": "{\"name\":\"Usage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"prompt_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"},{\"name\":\"total_tokens\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"int \",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:Usage:prompt_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/openai_text_to_embedding.py:Usage:prompt_tokens", "target": "prompt_tokens : int"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:Usage:total_tokens", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/openai_text_to_embedding.py:Usage:total_tokens", "target": "total_tokens : int"}, {"predicate": "is", "source": "metagpt/schema.py:UserMessage", "target": "class"}, {"predicate": "isGeneralizeOf", "source": "metagpt/schema.py:UserMessage", "target": "metagpt/schema.py:Message"}, {"predicate": "has_class_function", "source": "metagpt/schema.py:UserMessage", "target": "metagpt/schema.py:UserMessage:__init__"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:UserMessage", "target": "{\"lineno\":287,\"end_lineno\":293,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"UserMessage\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/schema.py:UserMessage", "target": "{\"name\":\"UserMessage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/add_requirement.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/add_requirement.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/add_requirement.py", "target": "metagpt/actions/add_requirement.py:UserRequirement"}, {"predicate": "is", "source": "metagpt/actions/add_requirement.py:UserRequirement", "target": "class"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/add_requirement.py:UserRequirement", "target": "metagpt/actions/action.py:Action"}, {"predicate": "isAggregateOf", "source": "metagpt/actions/add_requirement.py:UserRequirement", "target": "metagpt/schema.py:Message"}, {"predicate": "isAggregateOn", "source": "metagpt/actions/add_requirement.py:UserRequirement", "target": "metagpt/schema.py:Message:cause_by"}, {"predicate": "has_page_info", "source": "metagpt/actions/add_requirement.py:UserRequirement", "target": "{\"lineno\":11,\"end_lineno\":12,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"UserRequirement\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/add_requirement.py:UserRequirement", "target": "{\"name\":\"UserRequirement\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:WDMHttpProxyClient", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/tools/web_browser_engine_selenium.py:WDMHttpProxyClient", "target": "metagpt/tools/web_browser_engine_selenium.py:WDMHttpProxyClient:get"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:WDMHttpProxyClient", "target": "{\"lineno\":98,\"end_lineno\":102,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WDMHttpProxyClient\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/web_browser_engine_selenium.py:WDMHttpProxyClient", "target": "{\"name\":\"WDMHttpProxyClient\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"get\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:WDMHttpProxyClient:get", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/web_browser_engine_selenium.py:WDMHttpProxyClient:get", "target": "get(url)"}, {"predicate": "is", "source": "metagpt/actions/research.py:WebBrowseAndSummarize", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:WebBrowseAndSummarize", "target": "metagpt/actions/research.py:WebBrowseAndSummarize:browse_func"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:WebBrowseAndSummarize", "target": "metagpt/actions/research.py:WebBrowseAndSummarize:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:WebBrowseAndSummarize", "target": "metagpt/actions/research.py:WebBrowseAndSummarize:desc"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:WebBrowseAndSummarize", "target": "metagpt/actions/research.py:WebBrowseAndSummarize:llm"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:WebBrowseAndSummarize", "target": "metagpt/actions/research.py:WebBrowseAndSummarize:name"}, {"predicate": "has_class_property", "source": "metagpt/actions/research.py:WebBrowseAndSummarize", "target": "metagpt/actions/research.py:WebBrowseAndSummarize:web_browser_engine"}, {"predicate": "has_class_function", "source": "metagpt/actions/research.py:WebBrowseAndSummarize", "target": "metagpt/actions/research.py:WebBrowseAndSummarize:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/research.py:WebBrowseAndSummarize", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/research.py:WebBrowseAndSummarize", "target": "metagpt/actions/research.py:WebBrowseAndSummarize:__init__"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:WebBrowseAndSummarize", "target": "{\"lineno\":176,\"end_lineno\":244,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WebBrowseAndSummarize\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/research.py:WebBrowseAndSummarize", "target": "{\"name\":\"WebBrowseAndSummarize\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"browse_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[Union[Callable[[list[str]], None], None]] \",\"default_value\":\"\"},{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"web_browser_engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[WebBrowserEngine] \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"dict[str, str]\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:browse_func", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:browse_func", "target": "browse_func : Optional[Union[Callable[[list[str]], None], None]]"}, {"predicate": "is", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:desc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:desc", "target": "desc : str"}, {"predicate": "is", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:llm", "target": "llm"}, {"predicate": "is", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:web_browser_engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:web_browser_engine", "target": "web_browser_engine : Optional[WebBrowserEngine]"}, {"predicate": "is", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:run", "target": "run(url: str): dict[str, str]"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/web_browser_engine.py", "target": "metagpt/tools/web_browser_engine.py:WebBrowserEngine"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine", "target": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:engine"}, {"predicate": "has_class_property", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine", "target": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:run_func"}, {"predicate": "has_class_function", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine", "target": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:run"}, {"predicate": "isCompositeOf", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine", "target": "metagpt/actions/research.py:WebBrowseAndSummarize"}, {"predicate": "isCompositeOn", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine", "target": "metagpt/actions/research.py:WebBrowseAndSummarize:web_browser_engine"}, {"predicate": "has_class_function", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine", "target": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine", "target": "{\"lineno\":16,\"end_lineno\":48,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WebBrowserEngine\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine", "target": "{\"name\":\"WebBrowserEngine\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"engine\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"WebBrowserEngineType \\\\| None \",\"default_value\":\"\"},{\"name\":\"run_func\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Callable[..., Coroutine[Any, Any, WebPage \\\\| list[WebPage]]] \\\\| None \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"WebPage\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:engine", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:engine", "target": "engine : WebBrowserEngineType \\| None"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:run_func", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:run_func", "target": "run_func : Callable[..., Coroutine[Any, Any, WebPage \\| list[WebPage]]] \\| None"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:run", "target": "run(url: str): WebPage"}, {"predicate": "is", "source": "metagpt/tools:WebBrowserEngineType", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/tools:WebBrowserEngineType", "target": "metagpt/tools:WebBrowserEngineType:name"}, {"predicate": "isCompositeOf", "source": "metagpt/tools:WebBrowserEngineType", "target": "metagpt/config.py:Config"}, {"predicate": "isCompositeOn", "source": "metagpt/tools:WebBrowserEngineType", "target": "metagpt/config.py:Config:web_browser_engine"}, {"predicate": "has_class_view", "source": "metagpt/tools:WebBrowserEngineType", "target": "{\"name\":\"WebBrowserEngineType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/tools:WebBrowserEngineType:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/tools:WebBrowserEngineType:name", "target": "name"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/utils/parse_html.py", "target": "metagpt/utils/parse_html.py:WebPage"}, {"predicate": "has_function", "source": "metagpt/utils/parse_html.py", "target": "metagpt/utils/parse_html.py:get_html_content"}, {"predicate": "has_function", "source": "metagpt/utils/parse_html.py", "target": "metagpt/utils/parse_html.py:_get_soup"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py:WebPage", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/utils/parse_html.py:WebPage", "target": "metagpt/utils/parse_html.py:WebPage:html"}, {"predicate": "has_class_property", "source": "metagpt/utils/parse_html.py:WebPage", "target": "metagpt/utils/parse_html.py:WebPage:inner_text"}, {"predicate": "has_class_function", "source": "metagpt/utils/parse_html.py:WebPage", "target": "metagpt/utils/parse_html.py:WebPage:soup"}, {"predicate": "has_class_function", "source": "metagpt/utils/parse_html.py:WebPage", "target": "metagpt/utils/parse_html.py:WebPage:title"}, {"predicate": "has_class_property", "source": "metagpt/utils/parse_html.py:WebPage", "target": "metagpt/utils/parse_html.py:WebPage:url"}, {"predicate": "has_class_function", "source": "metagpt/utils/parse_html.py:WebPage", "target": "metagpt/utils/parse_html.py:WebPage:get_links"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:WebPage", "target": "{\"lineno\":11,\"end_lineno\":39,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WebPage\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/utils/parse_html.py:WebPage", "target": "{\"name\":\"WebPage\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"html\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"inner_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"soup\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"title\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"\"},{\"name\":\"get_links\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"Generator[str, None, None]\"}]}"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py:WebPage:html", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/parse_html.py:WebPage:html", "target": "html : str"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py:WebPage:inner_text", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/parse_html.py:WebPage:inner_text", "target": "inner_text : str"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py:WebPage:soup", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/parse_html.py:WebPage:soup", "target": "soup"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py:WebPage:soup", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py:WebPage:title", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/parse_html.py:WebPage:title", "target": "title"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py:WebPage:title", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py:WebPage:url", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/utils/parse_html.py:WebPage:url", "target": "url : str"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py:WebPage:get_links", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/utils/parse_html.py:WebPage:get_links", "target": "get_links(): Generator[str, None, None]"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:WikiHowTemplate", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/tools/prompt_writer.py:WikiHowTemplate", "target": "metagpt/tools/prompt_writer.py:WikiHowTemplate:gen"}, {"predicate": "has_class_function", "source": "metagpt/tools/prompt_writer.py:WikiHowTemplate", "target": "metagpt/tools/prompt_writer.py:WikiHowTemplate:__init__"}, {"predicate": "has_page_info", "source": "metagpt/tools/prompt_writer.py:WikiHowTemplate", "target": "{\"lineno\":52,\"end_lineno\":74,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WikiHowTemplate\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/prompt_writer.py:WikiHowTemplate", "target": "{\"name\":\"WikiHowTemplate\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"gen\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"question\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"step\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"list[str]\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:WikiHowTemplate:gen", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/tools/prompt_writer.py:WikiHowTemplate:gen", "target": "gen(question: str, step: str): list[str]"}, {"predicate": "is", "source": "metagpt/actions/write_code.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/write_code.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/write_code.py", "target": "metagpt/actions/write_code.py:WriteCode"}, {"predicate": "is", "source": "metagpt/actions/write_code.py:WriteCode", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_code.py:WriteCode", "target": "metagpt/actions/write_code.py:WriteCode:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_code.py:WriteCode", "target": "metagpt/actions/write_code.py:WriteCode:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_code.py:WriteCode", "target": "metagpt/actions/write_code.py:WriteCode:get_codes"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_code.py:WriteCode", "target": "metagpt/actions/write_code.py:WriteCode:run"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_code.py:WriteCode", "target": "metagpt/actions/write_code.py:WriteCode:write_code"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/write_code.py:WriteCode", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:WriteCode", "target": "{\"lineno\":88,\"end_lineno\":154,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteCode\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/write_code.py:WriteCode", "target": "{\"name\":\"WriteCode\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"get_codes\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"task_doc\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"exclude\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"CodingContext\"},{\"name\":\"write_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"predicate": "is", "source": "metagpt/actions/write_code.py:WriteCode:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_code.py:WriteCode:context", "target": "context"}, {"predicate": "is", "source": "metagpt/actions/write_code.py:WriteCode:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_code.py:WriteCode:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/write_code.py:WriteCode:get_codes", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_code.py:WriteCode:get_codes", "target": "get_codes(task_doc, exclude): str"}, {"predicate": "is", "source": "metagpt/actions/write_code.py:WriteCode:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_code.py:WriteCode:run", "target": "run(): CodingContext"}, {"predicate": "is", "source": "metagpt/actions/write_code.py:WriteCode:write_code", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_code.py:WriteCode:write_code", "target": "write_code(prompt): str"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/write_code_an_draft.py", "target": "metagpt/actions/write_code_an_draft.py:WriteCodeAN"}, {"predicate": "has_function", "source": "metagpt/actions/write_code_an_draft.py", "target": "metagpt/actions/write_code_an_draft.py:main"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:WriteCodeAN", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_code_an_draft.py:WriteCodeAN", "target": "metagpt/actions/write_code_an_draft.py:WriteCodeAN:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/write_code_an_draft.py:WriteCodeAN", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:WriteCodeAN", "target": "{\"lineno\":577,\"end_lineno\":582,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteCodeAN\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/write_code_an_draft.py:WriteCodeAN", "target": "{\"name\":\"WriteCodeAN\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:WriteCodeAN:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_code_an_draft.py:WriteCodeAN:run", "target": "run(context)"}, {"predicate": "is", "source": "metagpt/actions/write_code_review.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/write_code_review.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/write_code_review.py", "target": "metagpt/actions/write_code_review.py:WriteCodeReview"}, {"predicate": "is", "source": "metagpt/actions/write_code_review.py:WriteCodeReview", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_code_review.py:WriteCodeReview", "target": "metagpt/actions/write_code_review.py:WriteCodeReview:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_code_review.py:WriteCodeReview", "target": "metagpt/actions/write_code_review.py:WriteCodeReview:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_code_review.py:WriteCodeReview", "target": "metagpt/actions/write_code_review.py:WriteCodeReview:run"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_code_review.py:WriteCodeReview", "target": "metagpt/actions/write_code_review.py:WriteCodeReview:write_code_review_and_rewrite"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/write_code_review.py:WriteCodeReview", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:WriteCodeReview", "target": "{\"lineno\":121,\"end_lineno\":176,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteCodeReview\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/write_code_review.py:WriteCodeReview", "target": "{\"name\":\"WriteCodeReview\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"CodingContext\"},{\"name\":\"write_code_review_and_rewrite\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"cr_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/write_code_review.py:WriteCodeReview:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_code_review.py:WriteCodeReview:context", "target": "context"}, {"predicate": "is", "source": "metagpt/actions/write_code_review.py:WriteCodeReview:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_code_review.py:WriteCodeReview:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/write_code_review.py:WriteCodeReview:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_code_review.py:WriteCodeReview:run", "target": "run(): CodingContext"}, {"predicate": "is", "source": "metagpt/actions/write_code_review.py:WriteCodeReview:write_code_review_and_rewrite", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_code_review.py:WriteCodeReview:write_code_review_and_rewrite", "target": "write_code_review_and_rewrite(context_prompt, cr_prompt, filename)"}, {"predicate": "is", "source": "metagpt/actions/write_tutorial.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/write_tutorial.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/write_tutorial.py", "target": "metagpt/actions/write_tutorial.py:WriteContent"}, {"predicate": "has_class", "source": "metagpt/actions/write_tutorial.py", "target": "metagpt/actions/write_tutorial.py:WriteDirectory"}, {"predicate": "is", "source": "metagpt/actions/write_tutorial.py:WriteContent", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_tutorial.py:WriteContent", "target": "metagpt/actions/write_tutorial.py:WriteContent:directory"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_tutorial.py:WriteContent", "target": "metagpt/actions/write_tutorial.py:WriteContent:language"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_tutorial.py:WriteContent", "target": "metagpt/actions/write_tutorial.py:WriteContent:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_tutorial.py:WriteContent", "target": "metagpt/actions/write_tutorial.py:WriteContent:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/write_tutorial.py:WriteContent", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_tutorial.py:WriteContent", "target": "{\"lineno\":42,\"end_lineno\":65,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteContent\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/write_tutorial.py:WriteContent", "target": "{\"name\":\"WriteContent\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"directory\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"dict \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"predicate": "is", "source": "metagpt/actions/write_tutorial.py:WriteContent:directory", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_tutorial.py:WriteContent:directory", "target": "directory : dict"}, {"predicate": "is", "source": "metagpt/actions/write_tutorial.py:WriteContent:language", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_tutorial.py:WriteContent:language", "target": "language : str"}, {"predicate": "is", "source": "metagpt/actions/write_tutorial.py:WriteContent:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_tutorial.py:WriteContent:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/write_tutorial.py:WriteContent:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_tutorial.py:WriteContent:run", "target": "run(topic: str): str"}, {"predicate": "is", "source": "metagpt/actions/design_api.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/design_api.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/design_api.py", "target": "metagpt/actions/design_api.py:WriteDesign"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "metagpt/actions/design_api.py:WriteDesign:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "metagpt/actions/design_api.py:WriteDesign:desc"}, {"predicate": "has_class_property", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "metagpt/actions/design_api.py:WriteDesign:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "metagpt/actions/design_api.py:WriteDesign:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "metagpt/actions/design_api.py:WriteDesign:_new_system_design"}, {"predicate": "has_class_function", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "metagpt/actions/design_api.py:WriteDesign:_merge"}, {"predicate": "has_class_function", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "metagpt/actions/design_api.py:WriteDesign:_update_system_design"}, {"predicate": "has_class_function", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "metagpt/actions/design_api.py:WriteDesign:_save_data_api_design"}, {"predicate": "has_class_function", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "metagpt/actions/design_api.py:WriteDesign:_save_seq_flow"}, {"predicate": "has_class_function", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "metagpt/actions/design_api.py:WriteDesign:_save_pdf"}, {"predicate": "has_class_function", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "metagpt/actions/design_api.py:WriteDesign:_save_mermaid_file"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "{\"lineno\":40,\"end_lineno\":136,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteDesign\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/design_api.py:WriteDesign", "target": "{\"name\":\"WriteDesign\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Message\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_new_system_design\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_merge\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_system_design\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_data_api_design\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_seq_flow\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_pdf\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_mermaid_file\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:WriteDesign:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/design_api.py:WriteDesign:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:WriteDesign:desc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/design_api.py:WriteDesign:desc", "target": "desc : str"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:WriteDesign:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/design_api.py:WriteDesign:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:WriteDesign:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/design_api.py:WriteDesign:run", "target": "run(with_messages: Message, schema: str)"}, {"predicate": "is", "source": "metagpt/actions/write_tutorial.py:WriteDirectory", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_tutorial.py:WriteDirectory", "target": "metagpt/actions/write_tutorial.py:WriteDirectory:language"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_tutorial.py:WriteDirectory", "target": "metagpt/actions/write_tutorial.py:WriteDirectory:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_tutorial.py:WriteDirectory", "target": "metagpt/actions/write_tutorial.py:WriteDirectory:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/write_tutorial.py:WriteDirectory", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_tutorial.py:WriteDirectory", "target": "{\"lineno\":17,\"end_lineno\":39,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteDirectory\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/write_tutorial.py:WriteDirectory", "target": "{\"name\":\"WriteDirectory\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"}],\"return_type\":\"Dict\"}]}"}, {"predicate": "is", "source": "metagpt/actions/write_tutorial.py:WriteDirectory:language", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_tutorial.py:WriteDirectory:language", "target": "language : str"}, {"predicate": "is", "source": "metagpt/actions/write_tutorial.py:WriteDirectory:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_tutorial.py:WriteDirectory:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/write_tutorial.py:WriteDirectory:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_tutorial.py:WriteDirectory:run", "target": "run(topic: str): Dict"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/write_docstring.py", "target": "metagpt/actions/write_docstring.py:WriteDocstring"}, {"predicate": "has_function", "source": "metagpt/actions/write_docstring.py", "target": "metagpt/actions/write_docstring.py:_simplify_python_code"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py:WriteDocstring", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_docstring.py:WriteDocstring", "target": "metagpt/actions/write_docstring.py:WriteDocstring:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_docstring.py:WriteDocstring", "target": "metagpt/actions/write_docstring.py:WriteDocstring:desc"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_docstring.py:WriteDocstring", "target": "metagpt/actions/write_docstring.py:WriteDocstring:run"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_docstring.py:WriteDocstring", "target": "metagpt/actions/write_docstring.py:WriteDocstring:write_docstring"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/write_docstring.py:WriteDocstring", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:WriteDocstring", "target": "{\"lineno\":156,\"end_lineno\":196,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteDocstring\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/write_docstring.py:WriteDocstring", "target": "{\"name\":\"WriteDocstring\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"code\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"system_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"style\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Literal[google, numpy, sphinx]\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"write_docstring\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"filename\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str \\\\| Path\",\"default_value\":\"\"},{\"name\":\"overwrite\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"},{\"name\":\"style\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"Literal[google, numpy, sphinx]\",\"default_value\":\"\"}],\"return_type\":\"str\"}]}"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py:WriteDocstring:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_docstring.py:WriteDocstring:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py:WriteDocstring:desc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_docstring.py:WriteDocstring:desc", "target": "desc : str"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py:WriteDocstring:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_docstring.py:WriteDocstring:run", "target": "run(code: str, system_text: str, style: Literal['google', 'numpy', 'sphinx']): str"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py:WriteDocstring:write_docstring", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_docstring.py:WriteDocstring:write_docstring", "target": "write_docstring(filename: str \\| Path, overwrite: bool, style: Literal['google', 'numpy', 'sphinx']): str"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/write_prd.py", "target": "metagpt/actions/write_prd.py:WritePRD"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "metagpt/actions/write_prd.py:WritePRD:content"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "metagpt/actions/write_prd.py:WritePRD:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "metagpt/actions/write_prd.py:WritePRD:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "metagpt/actions/write_prd.py:WritePRD:_run_new_requirement"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "metagpt/actions/write_prd.py:WritePRD:_is_relative"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "metagpt/actions/write_prd.py:WritePRD:_merge"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "metagpt/actions/write_prd.py:WritePRD:_update_prd"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "metagpt/actions/write_prd.py:WritePRD:_save_competitive_analysis"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "metagpt/actions/write_prd.py:WritePRD:_save_pdf"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "metagpt/actions/write_prd.py:WritePRD:_rename_workspace"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "metagpt/actions/write_prd.py:WritePRD:_is_bugfix"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "{\"lineno\":64,\"end_lineno\":194,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WritePRD\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/write_prd.py:WritePRD", "target": "{\"name\":\"WritePRD\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"content\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"ActionOutput \\\\| Message\"},{\"name\":\"_run_new_requirement\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_is_relative\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_merge\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_prd\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_competitive_analysis\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_pdf\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_rename_workspace\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_is_bugfix\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:WritePRD:content", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_prd.py:WritePRD:content", "target": "content : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:WritePRD:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_prd.py:WritePRD:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:WritePRD:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_prd.py:WritePRD:run", "target": "run(with_messages, schema): ActionOutput \\| Message"}, {"predicate": "is", "source": "metagpt/actions/write_prd_review.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/write_prd_review.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/write_prd_review.py", "target": "metagpt/actions/write_prd_review.py:WritePRDReview"}, {"predicate": "is", "source": "metagpt/actions/write_prd_review.py:WritePRDReview", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_prd_review.py:WritePRDReview", "target": "metagpt/actions/write_prd_review.py:WritePRDReview:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_prd_review.py:WritePRDReview", "target": "metagpt/actions/write_prd_review.py:WritePRDReview:desc"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_prd_review.py:WritePRDReview", "target": "metagpt/actions/write_prd_review.py:WritePRDReview:name"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_prd_review.py:WritePRDReview", "target": "metagpt/actions/write_prd_review.py:WritePRDReview:prd"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_prd_review.py:WritePRDReview", "target": "metagpt/actions/write_prd_review.py:WritePRDReview:prd_review_prompt_template"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_prd_review.py:WritePRDReview", "target": "metagpt/actions/write_prd_review.py:WritePRDReview:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/write_prd_review.py:WritePRDReview", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_review.py:WritePRDReview", "target": "{\"lineno\":14,\"end_lineno\":31,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WritePRDReview\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/write_prd_review.py:WritePRDReview", "target": "{\"name\":\"WritePRDReview\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"desc\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"prd\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"prd_review_prompt_template\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prd\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_review.py:WritePRDReview:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_prd_review.py:WritePRDReview:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/write_prd_review.py:WritePRDReview:desc", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_prd_review.py:WritePRDReview:desc", "target": "desc : str"}, {"predicate": "is", "source": "metagpt/actions/write_prd_review.py:WritePRDReview:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_prd_review.py:WritePRDReview:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/write_prd_review.py:WritePRDReview:prd", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_prd_review.py:WritePRDReview:prd", "target": "prd : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/write_prd_review.py:WritePRDReview:prd_review_prompt_template", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_prd_review.py:WritePRDReview:prd_review_prompt_template", "target": "prd_review_prompt_template : str"}, {"predicate": "is", "source": "metagpt/actions/write_prd_review.py:WritePRDReview:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_prd_review.py:WritePRDReview:run", "target": "run(prd)"}, {"predicate": "is", "source": "metagpt/actions/write_review.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/write_review.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/write_review.py", "target": "metagpt/actions/write_review.py:WriteReview"}, {"predicate": "is", "source": "metagpt/actions/write_review.py:WriteReview", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_review.py:WriteReview", "target": "metagpt/actions/write_review.py:WriteReview:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_review.py:WriteReview", "target": "metagpt/actions/write_review.py:WriteReview:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/write_review.py:WriteReview", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_review.py:WriteReview", "target": "{\"lineno\":33,\"end_lineno\":39,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteReview\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/write_review.py:WriteReview", "target": "{\"name\":\"WriteReview\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/write_review.py:WriteReview:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_review.py:WriteReview:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/write_review.py:WriteReview:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_review.py:WriteReview:run", "target": "run(context)"}, {"predicate": "is", "source": "metagpt/actions/project_management.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/project_management.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/project_management.py", "target": "metagpt/actions/project_management.py:WriteTasks"}, {"predicate": "is", "source": "metagpt/actions/project_management.py:WriteTasks", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/project_management.py:WriteTasks", "target": "metagpt/actions/project_management.py:WriteTasks:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/project_management.py:WriteTasks", "target": "metagpt/actions/project_management.py:WriteTasks:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/project_management.py:WriteTasks", "target": "metagpt/actions/project_management.py:WriteTasks:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/project_management.py:WriteTasks", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/project_management.py:WriteTasks", "target": "metagpt/actions/project_management.py:WriteTasks:_update_tasks"}, {"predicate": "has_class_function", "source": "metagpt/actions/project_management.py:WriteTasks", "target": "metagpt/actions/project_management.py:WriteTasks:_run_new_tasks"}, {"predicate": "has_class_function", "source": "metagpt/actions/project_management.py:WriteTasks", "target": "metagpt/actions/project_management.py:WriteTasks:_merge"}, {"predicate": "has_class_function", "source": "metagpt/actions/project_management.py:WriteTasks", "target": "metagpt/actions/project_management.py:WriteTasks:_update_requirements"}, {"predicate": "has_class_function", "source": "metagpt/actions/project_management.py:WriteTasks", "target": "metagpt/actions/project_management.py:WriteTasks:_save_pdf"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:WriteTasks", "target": "{\"lineno\":39,\"end_lineno\":117,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteTasks\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/project_management.py:WriteTasks", "target": "{\"name\":\"WriteTasks\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"schema\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_update_tasks\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_run_new_tasks\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_merge\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_requirements\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_save_pdf\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/project_management.py:WriteTasks:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/project_management.py:WriteTasks:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/project_management.py:WriteTasks:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/project_management.py:WriteTasks:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/project_management.py:WriteTasks:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/project_management.py:WriteTasks:run", "target": "run(with_messages, schema)"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:language"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:rsp"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:topic"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:format_value"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:run"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:_set_result"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:__str__"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:__repr__"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "{\"lineno\":15,\"end_lineno\":86,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteTeachingPlanPart\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart", "target": "{\"name\":\"WriteTeachingPlanPart\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"language\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"rsp\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[str] \",\"default_value\":\"\"},{\"name\":\"topic\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"format_value\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"value\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"with_message\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"_set_result\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__str__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__repr__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:context", "target": "context : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:language", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:language", "target": "language : str"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:rsp", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:rsp", "target": "rsp : Optional[str]"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:topic", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:topic", "target": "topic : str"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:format_value", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:format_value", "target": "format_value(value)"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:run", "target": "run(with_message)"}, {"predicate": "is", "source": "metagpt/actions/write_test.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/write_test.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/write_test.py", "target": "metagpt/actions/write_test.py:WriteTest"}, {"predicate": "is", "source": "metagpt/actions/write_test.py:WriteTest", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_test.py:WriteTest", "target": "metagpt/actions/write_test.py:WriteTest:context"}, {"predicate": "has_class_property", "source": "metagpt/actions/write_test.py:WriteTest", "target": "metagpt/actions/write_test.py:WriteTest:name"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_test.py:WriteTest", "target": "metagpt/actions/write_test.py:WriteTest:run"}, {"predicate": "has_class_function", "source": "metagpt/actions/write_test.py:WriteTest", "target": "metagpt/actions/write_test.py:WriteTest:write_code"}, {"predicate": "isGeneralizeOf", "source": "metagpt/actions/write_test.py:WriteTest", "target": "metagpt/actions/action.py:Action"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:WriteTest", "target": "{\"lineno\":41,\"end_lineno\":70,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WriteTest\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/write_test.py:WriteTest", "target": "{\"name\":\"WriteTest\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"context\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"Optional[TestingContext] \",\"default_value\":\"\"},{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"run\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"TestingContext\"},{\"name\":\"write_code\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/actions/write_test.py:WriteTest:context", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_test.py:WriteTest:context", "target": "context : Optional[TestingContext]"}, {"predicate": "is", "source": "metagpt/actions/write_test.py:WriteTest:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/actions/write_test.py:WriteTest:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/actions/write_test.py:WriteTest:run", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_test.py:WriteTest:run", "target": "run(): TestingContext"}, {"predicate": "is", "source": "metagpt/actions/write_test.py:WriteTest:write_code", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/actions/write_test.py:WriteTest:write_code", "target": "write_code(prompt)"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:api_key"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:api_secret"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:app_id"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:host"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:message"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:path"}, {"predicate": "has_class_property", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:spark_url"}, {"predicate": "has_class_function", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam", "target": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:create_url"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:api_key", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:api_key", "target": "api_key"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:api_secret", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:api_secret", "target": "api_secret"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:app_id", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:app_id", "target": "app_id"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:host", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:host", "target": "host"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:message", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:message", "target": "message : NoneType"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:path", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:path", "target": "path"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:spark_url", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:spark_url", "target": "spark_url"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:create_url", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:WsParam:create_url", "target": "create_url()"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/zhipuai_api.py", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM"}, {"predicate": "has_class", "source": "metagpt/provider/zhipuai_api.py", "target": "metagpt/provider/zhipuai_api.py:ZhiPuEvent"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:llm"}, {"predicate": "has_class_property", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:model"}, {"predicate": "has_class_property", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:use_system_prompt"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:acompletion"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:acompletion_text"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:completion"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:get_choice_text"}, {"predicate": "isGeneralizeOf", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/base_llm.py:BaseLLM"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:__init__"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:__init_zhipuai"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:_const_kwargs"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:_update_costs"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:_achat_completion"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:_achat_completion_stream"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "{\"lineno\":35,\"end_lineno\":138,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ZhiPuAILLM\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM", "target": "{\"name\":\"ZhiPuAILLM\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"llm\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"model\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"str \",\"default_value\":\"\"},{\"name\":\"use_system_prompt\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"bool \",\"default_value\":\"\"}],\"methods\":[{\"name\":\"acompletion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"acompletion_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"completion\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"messages\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"list[dict]\",\"default_value\":\"\"},{\"name\":\"timeout\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"dict\"},{\"name\":\"get_choice_text\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"resp\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"}],\"return_type\":\"str\"},{\"name\":\"__init__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"__init_zhipuai\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_const_kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_update_costs\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"},{\"name\":\"_achat_completion_stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"#\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:llm", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:llm", "target": "llm"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:model", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:model", "target": "model : str"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:use_system_prompt", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:use_system_prompt", "target": "use_system_prompt : bool"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:acompletion", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:acompletion", "target": "acompletion(messages: list[dict], timeout): dict"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:acompletion_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:acompletion_text", "target": "acompletion_text(messages: list[dict], stream, timeout): str"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:completion", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:completion", "target": "completion(messages: list[dict], timeout): dict"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:get_choice_text", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:get_choice_text", "target": "get_choice_text(resp: dict): str"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuEvent", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/provider/zhipuai_api.py:ZhiPuEvent", "target": "metagpt/provider/zhipuai_api.py:ZhiPuEvent:name"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:ZhiPuEvent", "target": "{\"lineno\":27,\"end_lineno\":31,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ZhiPuEvent\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/zhipuai_api.py:ZhiPuEvent", "target": "{\"name\":\"ZhiPuEvent\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[{\"name\":\"name\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"value_type\":\"\",\"default_value\":\"\"}],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuEvent:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/provider/zhipuai_api.py:ZhiPuEvent:name", "target": "name"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/zhipu_model_api.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/zhipu_model_api.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/provider/zhipuai/zhipu_model_api.py", "target": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI", "target": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:ainvoke"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI", "target": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:arequest"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI", "target": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:asse_invoke"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI", "target": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:get_header"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI", "target": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:get_sse_header"}, {"predicate": "has_class_function", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI", "target": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:split_zhipu_api_url"}, {"predicate": "isAggregateOf", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM"}, {"predicate": "isAggregateOn", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI", "target": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:llm"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI", "target": "{\"lineno\":15,\"end_lineno\":75,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ZhiPuModelAPI\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI", "target": "{\"name\":\"ZhiPuModelAPI\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"ainvoke\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict\"},{\"name\":\"arequest\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"invoke_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"InvokeType\",\"default_value\":\"\"},{\"name\":\"stream\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"bool\",\"default_value\":\"\"},{\"name\":\"method\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"str\",\"default_value\":\"\"},{\"name\":\"headers\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"dict\",\"default_value\":\"\"},{\"name\":\"kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"},{\"name\":\"asse_invoke\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"AsyncSSEClient\"},{\"name\":\"get_header\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict\"},{\"name\":\"get_sse_header\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[],\"return_type\":\"dict\"},{\"name\":\"split_zhipu_api_url\",\"abstraction\":false,\"static\":false,\"visibility\":\"+\",\"args\":[{\"name\":\"invoke_type\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"InvokeType\",\"default_value\":\"\"},{\"name\":\"kwargs\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"value_type\":\"\",\"default_value\":\"\"}],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:ainvoke", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:ainvoke", "target": "ainvoke(): dict"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:arequest", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:arequest", "target": "arequest(invoke_type: InvokeType, stream: bool, method: str, headers: dict, kwargs)"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:asse_invoke", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:asse_invoke", "target": "asse_invoke(): AsyncSSEClient"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:get_header", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:get_header", "target": "get_header(): dict"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:get_sse_header", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:get_sse_header", "target": "get_sse_header(): dict"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:split_zhipu_api_url", "target": "class_function"}, {"predicate": "has_args_desc", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:ZhiPuModelAPI:split_zhipu_api_url", "target": "split_zhipu_api_url(invoke_type: InvokeType, kwargs)"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill_list:_AgentSkill", "target": "class"}, {"predicate": "has_class_property", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill_list:_AgentSkill", "target": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill_list:_AgentSkill:name"}, {"predicate": "is", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill_list:_AgentSkill:name", "target": "class_property"}, {"predicate": "has_type_desc", "source": "metagpt/learn/skill_loader.py:SkillsDeclaration:get_skill_list:_AgentSkill:name", "target": "name : str"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_parse_file", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_parse_expr", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_parse_name", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_parse_if", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_parse_if_compare", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_parse_variable", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_parse_assign", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_parse_classes", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_parse_class_relationships", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_split_class_line", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_split_relationship_line", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_get_label", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_create_path_mapping", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_repair_namespaces", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_repair_ns", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:RepoParser:_find_root", "target": "class_function"}, {"predicate": "is", "source": "metagpt/repo_parser.py:is_func", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:is_func", "target": "{\"lineno\":420,\"end_lineno\":421,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"is_func\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:ast.Constant:\n@Time : 2023/11/17 17:58\n@Author : alexanderwu\n@File : repo_parser.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/11/17 17:58\\n@Author : alexanderwu\\n@File : repo_parser.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:module:__future__", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:names:['annotations']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:ast", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"ast\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:json", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:re", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:subprocess", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"subprocess\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:module:pathlib", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:names:['Path']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:module:typing", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:names:['Dict', 'List', 'Optional']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:pandas as pd", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Import\",\"tokens\":[\"pandas as pd\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:module:pydantic", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:names:['BaseModel', 'Field']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:module:metagpt.const", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"AGGREGATION\",\"COMPOSITION\",\"GENERALIZATION\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:names:['AGGREGATION', 'COMPOSITION', 'GENERALIZATION']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"AGGREGATION\",\"COMPOSITION\",\"GENERALIZATION\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:module:metagpt.logs", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:names:['logger']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:module:metagpt.utils.common", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str\",\"aread\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:names:['any_to_str', 'aread']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str\",\"aread\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:module:metagpt.utils.exceptions", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/repo_parser.py:names:['handle_exception']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "is", "source": "metagpt/startup.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/startup.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/startup.py", "target": "metagpt/startup.py:startup"}, {"predicate": "is", "source": "metagpt/startup.py:startup", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/startup.py:startup", "target": "{\"lineno\":14,\"end_lineno\":75,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"startup\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/startup.py:app", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/startup.py:app", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Assign\",\"tokens\":[\"app\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/startup.py:asyncio", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/startup.py:module:pathlib", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/startup.py:names:['Path']", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/startup.py:typer", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Import\",\"tokens\":[\"typer\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/startup.py:module:metagpt.config", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/startup.py:names:['CONFIG']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/startup.py:__name__:__main__", "target": "{\"lineno\":78,\"end_lineno\":79,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/config.py:NotConfiguredException:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/config.py:LLMProviderEnum:__missing__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/config.py:Config:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/config.py:Config:_is_valid_llm_key", "target": "class_function"}, {"predicate": "is", "source": "metagpt/config.py:Config:_update", "target": "class_function"}, {"predicate": "is", "source": "metagpt/config.py:Config:_ensure_workspace_exists", "target": "class_function"}, {"predicate": "is", "source": "metagpt/config.py:Config:_init_with_config_files_and_env", "target": "class_function"}, {"predicate": "is", "source": "metagpt/config.py:Config:_get", "target": "class_function"}, {"predicate": "is", "source": "metagpt/config.py:Config:__setattr__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/config.py:Config:__getattr__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/config.py:CONFIG", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/config.py:CONFIG", "target": "{\"lineno\":287,\"end_lineno\":287,\"type_name\":\"ast.Assign\",\"tokens\":[\"CONFIG\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:ast.Constant:\nProvide configuration, singleton\n@Modified By: mashenquan, 2023/11/27.\n 1. According to Section 2.2.3.11 of RFC 135, add git repository support.\n 2. Add the parameter `src_workspace` for the old version project path.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\nProvide configuration, singleton\\n@Modified By: mashenquan, 2023/11/27.\\n 1. According to Section 2.2.3.11 of RFC 135, add git repository support.\\n 2. Add the parameter `src_workspace` for the old version project path.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:datetime", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"datetime\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:json", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:os", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:warnings", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"warnings\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:module:copy", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"copy\",\"names\":[\"deepcopy\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:names:['deepcopy']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"copy\",\"names\":[\"deepcopy\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:module:enum", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:names:['Enum']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:module:pathlib", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:names:['Path']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:module:typing", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:names:['Any']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:module:uuid", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"uuid\",\"names\":[\"uuid4\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:names:['uuid4']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"uuid\",\"names\":[\"uuid4\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:yaml", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.Import\",\"tokens\":[\"yaml\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:module:metagpt.const", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DEFAULT_WORKSPACE_ROOT\",\"METAGPT_ROOT\",\"OPTIONS\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:names:['DEFAULT_WORKSPACE_ROOT', 'METAGPT_ROOT', 'OPTIONS']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DEFAULT_WORKSPACE_ROOT\",\"METAGPT_ROOT\",\"OPTIONS\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:module:metagpt.logs", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:names:['logger']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:module:metagpt.tools", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\",\"WebBrowserEngineType\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:names:['SearchEngineType', 'WebBrowserEngineType']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\",\"WebBrowserEngineType\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:module:metagpt.utils.common", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"require_python_version\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:names:['require_python_version']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"require_python_version\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:module:metagpt.utils.cost_manager", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"CostManager\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:names:['CostManager']", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"CostManager\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:module:metagpt.utils.singleton", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.singleton\",\"names\":[\"Singleton\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/config.py:names:['Singleton']", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.singleton\",\"names\":[\"Singleton\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/subscription.py:asyncio", "target": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/subscription.py:module:typing", "target": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"AsyncGenerator\",\"Awaitable\",\"Callable\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/subscription.py:names:['AsyncGenerator', 'Awaitable', 'Callable']", "target": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"AsyncGenerator\",\"Awaitable\",\"Callable\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/subscription.py:module:pydantic", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/subscription.py:names:['BaseModel', 'ConfigDict', 'Field']", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/subscription.py:module:metagpt.logs", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/subscription.py:names:['logger']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/subscription.py:module:metagpt.roles", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/subscription.py:names:['Role']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/subscription.py:module:metagpt.schema", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/subscription.py:names:['Message']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "is", "source": "metagpt/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/__init__.py", "target": "python"}, {"predicate": "has_page_info", "source": "metagpt/__init__.py:module:metagpt", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt\",\"names\":[\"_compat as _\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/__init__.py:names:['_compat as _']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt\",\"names\":[\"_compat as _\"]}}"}, {"predicate": "is", "source": "metagpt/llm.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/llm.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/llm.py", "target": "metagpt/llm.py:LLM"}, {"predicate": "is", "source": "metagpt/llm.py:LLM", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:LLM", "target": "{\"lineno\":19,\"end_lineno\":24,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"LLM\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/llm.py:_", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:_", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.Assign\",\"tokens\":[\"_\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:ast.Constant:\n@Time : 2023/5/11 14:45\n@Author : alexanderwu\n@File : llm.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:45\\n@Author : alexanderwu\\n@File : llm.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:module:typing", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:names:['Optional']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:module:metagpt.config", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:names:['CONFIG', 'LLMProviderEnum']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:names:['BaseLLM']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:module:metagpt.provider.human_provider", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.human_provider\",\"names\":[\"HumanProvider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:names:['HumanProvider']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.human_provider\",\"names\":[\"HumanProvider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:module:metagpt.provider.llm_provider_registry", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"LLM_REGISTRY\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/llm.py:names:['LLM_REGISTRY']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"LLM_REGISTRY\"]}}"}, {"predicate": "is", "source": "metagpt/team.py:Team:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/team.py:Team:_check_balance", "target": "class_function"}, {"predicate": "is", "source": "metagpt/team.py:Team:_save", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/team.py:ast.Constant:\n@Time : 2023/5/12 00:30\n@Author : alexanderwu\n@File : team.py\n@Modified By: mashenquan, 2023/11/27. Add an archiving operation after completing the project, as specified in\n Section 2.2.3.3 of RFC 135.\n", "target": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/12 00:30\\n@Author : alexanderwu\\n@File : team.py\\n@Modified By: mashenquan, 2023/11/27. Add an archiving operation after completing the project, as specified in\\n Section 2.2.3.3 of RFC 135.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:warnings", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"warnings\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:module:pathlib", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:names:['Path']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:module:typing", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:names:['Any']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:module:pydantic", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:names:['BaseModel', 'ConfigDict', 'Field']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:module:metagpt.actions", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"UserRequirement\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:names:['UserRequirement']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"UserRequirement\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:module:metagpt.config", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:names:['CONFIG']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:module:metagpt.const", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"MESSAGE_ROUTE_TO_ALL\",\"SERDESER_PATH\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:names:['MESSAGE_ROUTE_TO_ALL', 'SERDESER_PATH']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"MESSAGE_ROUTE_TO_ALL\",\"SERDESER_PATH\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:module:metagpt.environment", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.environment\",\"names\":[\"Environment\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:names:['Environment']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.environment\",\"names\":[\"Environment\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:module:metagpt.logs", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:names:['logger']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:module:metagpt.roles", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:names:['Role']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:module:metagpt.schema", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:names:['Message']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:module:metagpt.utils.common", "target": "{\"lineno\":24,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"NoMoneyException\",\"read_json_file\",\"serialize_decorator\",\"write_json_file\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/team.py:names:['NoMoneyException', 'read_json_file', 'serialize_decorator', 'write_json_file']", "target": "{\"lineno\":24,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"NoMoneyException\",\"read_json_file\",\"serialize_decorator\",\"write_json_file\"]}}"}, {"predicate": "is", "source": "metagpt/logs.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/logs.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/logs.py", "target": "metagpt/logs.py:define_log_level"}, {"predicate": "has_function", "source": "metagpt/logs.py", "target": "metagpt/logs.py:log_llm_stream"}, {"predicate": "has_function", "source": "metagpt/logs.py", "target": "metagpt/logs.py:set_llm_stream_logfunc"}, {"predicate": "is", "source": "metagpt/logs.py:define_log_level", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:define_log_level", "target": "{\"lineno\":18,\"end_lineno\":26,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"define_log_level\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/logs.py:log_llm_stream", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:log_llm_stream", "target": "{\"lineno\":32,\"end_lineno\":33,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"log_llm_stream\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/logs.py:set_llm_stream_logfunc", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:set_llm_stream_logfunc", "target": "{\"lineno\":36,\"end_lineno\":38,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"set_llm_stream_logfunc\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/logs.py:logger", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:logger", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.Assign\",\"tokens\":[\"logger\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/logs.py:_llm_stream_log", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:_llm_stream_log", "target": "{\"lineno\":41,\"end_lineno\":41,\"type_name\":\"ast.Assign\",\"tokens\":[\"_llm_stream_log\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:ast.Constant:\n@Time : 2023/6/1 12:41\n@Author : alexanderwu\n@File : logs.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/6/1 12:41\\n@Author : alexanderwu\\n@File : logs.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:sys", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"sys\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:module:datetime", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:names:['datetime']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:module:functools", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"functools\",\"names\":[\"partial\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:names:['partial']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"functools\",\"names\":[\"partial\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:module:loguru", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"loguru\",\"names\":[\"logger as _logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:names:['logger as _logger']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"loguru\",\"names\":[\"logger as _logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:module:metagpt.const", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"METAGPT_ROOT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/logs.py:names:['METAGPT_ROOT']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"METAGPT_ROOT\"]}}"}, {"predicate": "is", "source": "metagpt/document.py:IndexableDocument:_get_docs_and_metadatas_by_df", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document.py:IndexableDocument:_get_docs_and_metadatas_by_langchain", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document.py:Repo:_path", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document.py:Repo:_set", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document.py:validate_cols", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/document.py:validate_cols", "target": "{\"lineno\":26,\"end_lineno\":28,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"validate_cols\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/document.py:read_data", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/document.py:read_data", "target": "{\"lineno\":31,\"end_lineno\":50,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"read_data\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:ast.Constant:\n@Time : 2023/6/8 14:03\n@Author : alexanderwu\n@File : document.py\n@Desc : Classes and Operations Related to Files in the File System.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/6/8 14:03\\n@Author : alexanderwu\\n@File : document.py\\n@Desc : Classes and Operations Related to Files in the File System.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:module:enum", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:names:['Enum']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:module:pathlib", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:names:['Path']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:module:typing", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:names:['Optional', 'Union']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:pandas as pd", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"pandas as pd\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:module:langchain.document_loaders", "target": "{\"lineno\":14,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.document_loaders\",\"names\":[\"TextLoader\",\"UnstructuredPDFLoader\",\"UnstructuredWordDocumentLoader\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:names:['TextLoader', 'UnstructuredPDFLoader', 'UnstructuredWordDocumentLoader']", "target": "{\"lineno\":14,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.document_loaders\",\"names\":[\"TextLoader\",\"UnstructuredPDFLoader\",\"UnstructuredWordDocumentLoader\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:module:langchain.text_splitter", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.text_splitter\",\"names\":[\"CharacterTextSplitter\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:names:['CharacterTextSplitter']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.text_splitter\",\"names\":[\"CharacterTextSplitter\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:module:pydantic", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:names:['BaseModel', 'ConfigDict', 'Field']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:module:tqdm", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tqdm\",\"names\":[\"tqdm\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:names:['tqdm']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tqdm\",\"names\":[\"tqdm\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:module:metagpt.repo_parser", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.repo_parser\",\"names\":[\"RepoParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document.py:names:['RepoParser']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.repo_parser\",\"names\":[\"RepoParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:ast.Constant:\n@Time : 2023/5/11 22:12\n@Author : alexanderwu\n@File : environment.py\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.2 of RFC 116:\n 1. Remove the functionality of `Environment` class as a public message buffer.\n 2. Standardize the message forwarding behavior of the `Environment` class.\n 3. Add the `is_idle` property.\n@Modified By: mashenquan, 2023-11-4. According to the routing feature plan in Chapter 2.2.3.2 of RFC 113, the routing\n functionality is to be consolidated into the `Environment` class.\n", "target": "{\"lineno\":3,\"end_lineno\":13,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 22:12\\n@Author : alexanderwu\\n@File : environment.py\\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.2 of RFC 116:\\n 1. Remove the functionality of `Environment` class as a public message buffer.\\n 2. Standardize the message forwarding behavior of the `Environment` class.\\n 3. Add the `is_idle` property.\\n@Modified By: mashenquan, 2023-11-4. According to the routing feature plan in Chapter 2.2.3.2 of RFC 113, the routing\\n functionality is to be consolidated into the `Environment` class.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:asyncio", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:module:pathlib", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:names:['Path']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:module:typing", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Iterable\",\"Set\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:names:['Iterable', 'Set']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Iterable\",\"Set\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:module:pydantic", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"SerializeAsAny\",\"model_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:names:['BaseModel', 'ConfigDict', 'Field', 'SerializeAsAny', 'model_validator']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"SerializeAsAny\",\"model_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:module:metagpt.config", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:names:['CONFIG']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:module:metagpt.logs", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:names:['logger']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:module:metagpt.roles.role", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:names:['Role']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:module:metagpt.schema", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:names:['Message']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:module:metagpt.utils.common", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"is_subscribed\",\"read_json_file\",\"write_json_file\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/environment.py:names:['is_subscribed', 'read_json_file', 'write_json_file']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"is_subscribed\",\"read_json_file\",\"write_json_file\"]}}"}, {"predicate": "is", "source": "metagpt/_compat.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/_compat.py", "target": "python"}, {"predicate": "has_page_info", "source": "metagpt/_compat.py:platform", "target": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.Import\",\"tokens\":[\"platform\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/_compat.py:sys", "target": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.Import\",\"tokens\":[\"sys\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/_compat.py:warnings", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.Import\",\"tokens\":[\"warnings\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/_compat.py:n:a:m:e:p:l:a:t:f:o:r:m:.:s:y:s:t:e:m", "target": "{\"lineno\":5,\"end_lineno\":23,\"type_name\":\"ast.If\",\"tokens\":[\"n\",\"a\",\"m\",\"e\",\"p\",\"l\",\"a\",\"t\",\"f\",\"o\",\"r\",\"m\",\".\",\"s\",\"y\",\"s\",\"t\",\"e\",\"m\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/const.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/const.py", "target": "metagpt/const.py:get_metagpt_package_root"}, {"predicate": "has_function", "source": "metagpt/const.py", "target": "metagpt/const.py:get_metagpt_root"}, {"predicate": "is", "source": "metagpt/const.py:get_metagpt_package_root", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/const.py:get_metagpt_package_root", "target": "{\"lineno\":23,\"end_lineno\":33,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_metagpt_package_root\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:get_metagpt_root", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/const.py:get_metagpt_root", "target": "{\"lineno\":36,\"end_lineno\":46,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_metagpt_root\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:OPTIONS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:OPTIONS", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.Assign\",\"tokens\":[\"OPTIONS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:METAGPT_ROOT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:METAGPT_ROOT", "target": "{\"lineno\":51,\"end_lineno\":51,\"type_name\":\"ast.Assign\",\"tokens\":[\"METAGPT_ROOT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:DEFAULT_WORKSPACE_ROOT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:DEFAULT_WORKSPACE_ROOT", "target": "{\"lineno\":52,\"end_lineno\":52,\"type_name\":\"ast.Assign\",\"tokens\":[\"DEFAULT_WORKSPACE_ROOT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:EXAMPLE_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:EXAMPLE_PATH", "target": "{\"lineno\":54,\"end_lineno\":54,\"type_name\":\"ast.Assign\",\"tokens\":[\"EXAMPLE_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:DATA_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:DATA_PATH", "target": "{\"lineno\":55,\"end_lineno\":55,\"type_name\":\"ast.Assign\",\"tokens\":[\"DATA_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:TEST_DATA_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:TEST_DATA_PATH", "target": "{\"lineno\":56,\"end_lineno\":56,\"type_name\":\"ast.Assign\",\"tokens\":[\"TEST_DATA_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:RESEARCH_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:RESEARCH_PATH", "target": "{\"lineno\":57,\"end_lineno\":57,\"type_name\":\"ast.Assign\",\"tokens\":[\"RESEARCH_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:TUTORIAL_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:TUTORIAL_PATH", "target": "{\"lineno\":58,\"end_lineno\":58,\"type_name\":\"ast.Assign\",\"tokens\":[\"TUTORIAL_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:INVOICE_OCR_TABLE_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:INVOICE_OCR_TABLE_PATH", "target": "{\"lineno\":59,\"end_lineno\":59,\"type_name\":\"ast.Assign\",\"tokens\":[\"INVOICE_OCR_TABLE_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:UT_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:UT_PATH", "target": "{\"lineno\":61,\"end_lineno\":61,\"type_name\":\"ast.Assign\",\"tokens\":[\"UT_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:SWAGGER_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:SWAGGER_PATH", "target": "{\"lineno\":62,\"end_lineno\":62,\"type_name\":\"ast.Assign\",\"tokens\":[\"SWAGGER_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:UT_PY_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:UT_PY_PATH", "target": "{\"lineno\":63,\"end_lineno\":63,\"type_name\":\"ast.Assign\",\"tokens\":[\"UT_PY_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:API_QUESTIONS_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:API_QUESTIONS_PATH", "target": "{\"lineno\":64,\"end_lineno\":64,\"type_name\":\"ast.Assign\",\"tokens\":[\"API_QUESTIONS_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:SERDESER_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:SERDESER_PATH", "target": "{\"lineno\":66,\"end_lineno\":66,\"type_name\":\"ast.Assign\",\"tokens\":[\"SERDESER_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:TMP", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:TMP", "target": "{\"lineno\":68,\"end_lineno\":68,\"type_name\":\"ast.Assign\",\"tokens\":[\"TMP\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:SOURCE_ROOT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:SOURCE_ROOT", "target": "{\"lineno\":70,\"end_lineno\":70,\"type_name\":\"ast.Assign\",\"tokens\":[\"SOURCE_ROOT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:PROMPT_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:PROMPT_PATH", "target": "{\"lineno\":71,\"end_lineno\":71,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:SKILL_DIRECTORY", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:SKILL_DIRECTORY", "target": "{\"lineno\":72,\"end_lineno\":72,\"type_name\":\"ast.Assign\",\"tokens\":[\"SKILL_DIRECTORY\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:MEM_TTL", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:MEM_TTL", "target": "{\"lineno\":77,\"end_lineno\":77,\"type_name\":\"ast.Assign\",\"tokens\":[\"MEM_TTL\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:MESSAGE_ROUTE_FROM", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:MESSAGE_ROUTE_FROM", "target": "{\"lineno\":80,\"end_lineno\":80,\"type_name\":\"ast.Assign\",\"tokens\":[\"MESSAGE_ROUTE_FROM\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:MESSAGE_ROUTE_TO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:MESSAGE_ROUTE_TO", "target": "{\"lineno\":81,\"end_lineno\":81,\"type_name\":\"ast.Assign\",\"tokens\":[\"MESSAGE_ROUTE_TO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:MESSAGE_ROUTE_CAUSE_BY", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:MESSAGE_ROUTE_CAUSE_BY", "target": "{\"lineno\":82,\"end_lineno\":82,\"type_name\":\"ast.Assign\",\"tokens\":[\"MESSAGE_ROUTE_CAUSE_BY\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:MESSAGE_META_ROLE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:MESSAGE_META_ROLE", "target": "{\"lineno\":83,\"end_lineno\":83,\"type_name\":\"ast.Assign\",\"tokens\":[\"MESSAGE_META_ROLE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:MESSAGE_ROUTE_TO_ALL", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:MESSAGE_ROUTE_TO_ALL", "target": "{\"lineno\":84,\"end_lineno\":84,\"type_name\":\"ast.Assign\",\"tokens\":[\"MESSAGE_ROUTE_TO_ALL\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:MESSAGE_ROUTE_TO_NONE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:MESSAGE_ROUTE_TO_NONE", "target": "{\"lineno\":85,\"end_lineno\":85,\"type_name\":\"ast.Assign\",\"tokens\":[\"MESSAGE_ROUTE_TO_NONE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:REQUIREMENT_FILENAME", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:REQUIREMENT_FILENAME", "target": "{\"lineno\":87,\"end_lineno\":87,\"type_name\":\"ast.Assign\",\"tokens\":[\"REQUIREMENT_FILENAME\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:BUGFIX_FILENAME", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:BUGFIX_FILENAME", "target": "{\"lineno\":88,\"end_lineno\":88,\"type_name\":\"ast.Assign\",\"tokens\":[\"BUGFIX_FILENAME\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:PACKAGE_REQUIREMENTS_FILENAME", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:PACKAGE_REQUIREMENTS_FILENAME", "target": "{\"lineno\":89,\"end_lineno\":89,\"type_name\":\"ast.Assign\",\"tokens\":[\"PACKAGE_REQUIREMENTS_FILENAME\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:DOCS_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:DOCS_FILE_REPO", "target": "{\"lineno\":91,\"end_lineno\":91,\"type_name\":\"ast.Assign\",\"tokens\":[\"DOCS_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:PRDS_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:PRDS_FILE_REPO", "target": "{\"lineno\":92,\"end_lineno\":92,\"type_name\":\"ast.Assign\",\"tokens\":[\"PRDS_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:SYSTEM_DESIGN_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:SYSTEM_DESIGN_FILE_REPO", "target": "{\"lineno\":93,\"end_lineno\":93,\"type_name\":\"ast.Assign\",\"tokens\":[\"SYSTEM_DESIGN_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:TASK_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:TASK_FILE_REPO", "target": "{\"lineno\":94,\"end_lineno\":94,\"type_name\":\"ast.Assign\",\"tokens\":[\"TASK_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:COMPETITIVE_ANALYSIS_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:COMPETITIVE_ANALYSIS_FILE_REPO", "target": "{\"lineno\":95,\"end_lineno\":95,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMPETITIVE_ANALYSIS_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:DATA_API_DESIGN_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:DATA_API_DESIGN_FILE_REPO", "target": "{\"lineno\":96,\"end_lineno\":96,\"type_name\":\"ast.Assign\",\"tokens\":[\"DATA_API_DESIGN_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:SEQ_FLOW_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:SEQ_FLOW_FILE_REPO", "target": "{\"lineno\":97,\"end_lineno\":97,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEQ_FLOW_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:SYSTEM_DESIGN_PDF_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:SYSTEM_DESIGN_PDF_FILE_REPO", "target": "{\"lineno\":98,\"end_lineno\":98,\"type_name\":\"ast.Assign\",\"tokens\":[\"SYSTEM_DESIGN_PDF_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:PRD_PDF_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:PRD_PDF_FILE_REPO", "target": "{\"lineno\":99,\"end_lineno\":99,\"type_name\":\"ast.Assign\",\"tokens\":[\"PRD_PDF_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:TASK_PDF_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:TASK_PDF_FILE_REPO", "target": "{\"lineno\":100,\"end_lineno\":100,\"type_name\":\"ast.Assign\",\"tokens\":[\"TASK_PDF_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:TEST_CODES_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:TEST_CODES_FILE_REPO", "target": "{\"lineno\":101,\"end_lineno\":101,\"type_name\":\"ast.Assign\",\"tokens\":[\"TEST_CODES_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:TEST_OUTPUTS_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:TEST_OUTPUTS_FILE_REPO", "target": "{\"lineno\":102,\"end_lineno\":102,\"type_name\":\"ast.Assign\",\"tokens\":[\"TEST_OUTPUTS_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:CODE_SUMMARIES_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:CODE_SUMMARIES_FILE_REPO", "target": "{\"lineno\":103,\"end_lineno\":103,\"type_name\":\"ast.Assign\",\"tokens\":[\"CODE_SUMMARIES_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:CODE_SUMMARIES_PDF_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:CODE_SUMMARIES_PDF_FILE_REPO", "target": "{\"lineno\":104,\"end_lineno\":104,\"type_name\":\"ast.Assign\",\"tokens\":[\"CODE_SUMMARIES_PDF_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:RESOURCES_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:RESOURCES_FILE_REPO", "target": "{\"lineno\":105,\"end_lineno\":105,\"type_name\":\"ast.Assign\",\"tokens\":[\"RESOURCES_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:SD_OUTPUT_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:SD_OUTPUT_FILE_REPO", "target": "{\"lineno\":106,\"end_lineno\":106,\"type_name\":\"ast.Assign\",\"tokens\":[\"SD_OUTPUT_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:GRAPH_REPO_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:GRAPH_REPO_FILE_REPO", "target": "{\"lineno\":107,\"end_lineno\":107,\"type_name\":\"ast.Assign\",\"tokens\":[\"GRAPH_REPO_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:CLASS_VIEW_FILE_REPO", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:CLASS_VIEW_FILE_REPO", "target": "{\"lineno\":108,\"end_lineno\":108,\"type_name\":\"ast.Assign\",\"tokens\":[\"CLASS_VIEW_FILE_REPO\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:YAPI_URL", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:YAPI_URL", "target": "{\"lineno\":110,\"end_lineno\":110,\"type_name\":\"ast.Assign\",\"tokens\":[\"YAPI_URL\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:DEFAULT_LANGUAGE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:DEFAULT_LANGUAGE", "target": "{\"lineno\":112,\"end_lineno\":112,\"type_name\":\"ast.Assign\",\"tokens\":[\"DEFAULT_LANGUAGE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:DEFAULT_MAX_TOKENS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:DEFAULT_MAX_TOKENS", "target": "{\"lineno\":113,\"end_lineno\":113,\"type_name\":\"ast.Assign\",\"tokens\":[\"DEFAULT_MAX_TOKENS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:COMMAND_TOKENS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:COMMAND_TOKENS", "target": "{\"lineno\":114,\"end_lineno\":114,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMMAND_TOKENS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:BRAIN_MEMORY", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:BRAIN_MEMORY", "target": "{\"lineno\":115,\"end_lineno\":115,\"type_name\":\"ast.Assign\",\"tokens\":[\"BRAIN_MEMORY\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:SKILL_PATH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:SKILL_PATH", "target": "{\"lineno\":116,\"end_lineno\":116,\"type_name\":\"ast.Assign\",\"tokens\":[\"SKILL_PATH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:SERPER_API_KEY", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:SERPER_API_KEY", "target": "{\"lineno\":117,\"end_lineno\":117,\"type_name\":\"ast.Assign\",\"tokens\":[\"SERPER_API_KEY\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:DEFAULT_TOKEN_SIZE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:DEFAULT_TOKEN_SIZE", "target": "{\"lineno\":118,\"end_lineno\":118,\"type_name\":\"ast.Assign\",\"tokens\":[\"DEFAULT_TOKEN_SIZE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:BASE64_FORMAT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:BASE64_FORMAT", "target": "{\"lineno\":121,\"end_lineno\":121,\"type_name\":\"ast.Assign\",\"tokens\":[\"BASE64_FORMAT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:REDIS_KEY", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:REDIS_KEY", "target": "{\"lineno\":124,\"end_lineno\":124,\"type_name\":\"ast.Assign\",\"tokens\":[\"REDIS_KEY\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:LLM_API_TIMEOUT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:LLM_API_TIMEOUT", "target": "{\"lineno\":125,\"end_lineno\":125,\"type_name\":\"ast.Assign\",\"tokens\":[\"LLM_API_TIMEOUT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:IGNORED_MESSAGE_ID", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:IGNORED_MESSAGE_ID", "target": "{\"lineno\":128,\"end_lineno\":128,\"type_name\":\"ast.Assign\",\"tokens\":[\"IGNORED_MESSAGE_ID\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:GENERALIZATION", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:GENERALIZATION", "target": "{\"lineno\":131,\"end_lineno\":131,\"type_name\":\"ast.Assign\",\"tokens\":[\"GENERALIZATION\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:COMPOSITION", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:COMPOSITION", "target": "{\"lineno\":132,\"end_lineno\":132,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMPOSITION\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/const.py:AGGREGATION", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/const.py:AGGREGATION", "target": "{\"lineno\":133,\"end_lineno\":133,\"type_name\":\"ast.Assign\",\"tokens\":[\"AGGREGATION\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/const.py:ast.Constant:\n@Time : 2023/5/1 11:59\n@Author : alexanderwu\n@File : const.py\n@Modified By: mashenquan, 2023-11-1. According to Section 2.2.1 and 2.2.2 of RFC 116, added key definitions for\n common properties in the Message.\n@Modified By: mashenquan, 2023-11-27. Defines file repository paths according to Section 2.2.3.4 of RFC 135.\n@Modified By: mashenquan, 2023/12/5. Add directories for code summarization..\n", "target": "{\"lineno\":3,\"end_lineno\":11,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/1 11:59\\n@Author : alexanderwu\\n@File : const.py\\n@Modified By: mashenquan, 2023-11-1. According to Section 2.2.1 and 2.2.2 of RFC 116, added key definitions for\\n common properties in the Message.\\n@Modified By: mashenquan, 2023-11-27. Defines file repository paths according to Section 2.2.3.4 of RFC 135.\\n@Modified By: mashenquan, 2023/12/5. Add directories for code summarization..\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/const.py:contextvars", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"contextvars\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/const.py:os", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/const.py:module:pathlib", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/const.py:names:['Path']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/const.py:module:loguru", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"loguru\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/const.py:names:['logger']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"loguru\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/const.py:metagpt", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.Import\",\"tokens\":[\"metagpt\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/schema.py:SerializationMixin:__get_pydantic_core_schema__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:SerializationMixin:__serialize_add_class_type__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:SerializationMixin:__deserialize_with_real_type__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:SerializationMixin:__init_subclass__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:Document:__str__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:Document:__repr__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:Message:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:Message:__setattr__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:Message:__str__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:Message:__repr__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:UserMessage:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:SystemMessage:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:AIMessage:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:CodeSummarizeContext:__hash__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/schema.py:T", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:T", "target": "{\"lineno\":387,\"end_lineno\":387,\"type_name\":\"ast.Assign\",\"tokens\":[\"T\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:ast.Constant:\n@Time : 2023/5/8 22:12\n@Author : alexanderwu\n@File : schema.py\n@Modified By: mashenquan, 2023-10-31. According to Chapter 2.2.1 of RFC 116:\n Replanned the distribution of responsibilities and functional positioning of `Message` class attributes.\n@Modified By: mashenquan, 2023/11/22.\n 1. Add `Document` and `Documents` for `FileRepository` in Section 2.2.3.4 of RFC 135.\n 2. Encapsulate the common key-values set to pydantic structures to standardize and unify parameter passing\n between actions.\n 3. Add `id` to `Message` according to Section 2.2.3.1.1 of RFC 135.\n", "target": "{\"lineno\":3,\"end_lineno\":14,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/8 22:12\\n@Author : alexanderwu\\n@File : schema.py\\n@Modified By: mashenquan, 2023-10-31. According to Chapter 2.2.1 of RFC 116:\\n Replanned the distribution of responsibilities and functional positioning of `Message` class attributes.\\n@Modified By: mashenquan, 2023/11/22.\\n 1. Add `Document` and `Documents` for `FileRepository` in Section 2.2.3.4 of RFC 135.\\n 2. Encapsulate the common key-values set to pydantic structures to standardize and unify parameter passing\\n between actions.\\n 3. Add `id` to `Message` according to Section 2.2.3.1.1 of RFC 135.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:__future__", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['annotations']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:asyncio", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:json", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:os.path", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.Import\",\"tokens\":[\"os.path\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:uuid", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.Import\",\"tokens\":[\"uuid\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:abc", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['ABC']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:asyncio", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"asyncio\",\"names\":[\"Queue\",\"QueueEmpty\",\"wait_for\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['Queue', 'QueueEmpty', 'wait_for']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"asyncio\",\"names\":[\"Queue\",\"QueueEmpty\",\"wait_for\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:json", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"json\",\"names\":[\"JSONDecodeError\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['JSONDecodeError']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"json\",\"names\":[\"JSONDecodeError\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:pathlib", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['Path']", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:typing", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Callable\",\"Dict\",\"List\",\"Optional\",\"Type\",\"TypeVar\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['Any', 'Callable', 'Dict', 'List', 'Optional', 'Type', 'TypeVar', 'Union']", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Callable\",\"Dict\",\"List\",\"Optional\",\"Type\",\"TypeVar\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:pydantic", "target": "{\"lineno\":28,\"end_lineno\":35,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"PrivateAttr\",\"field_serializer\",\"field_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['BaseModel', 'ConfigDict', 'Field', 'PrivateAttr', 'field_serializer', 'field_validator']", "target": "{\"lineno\":28,\"end_lineno\":35,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"PrivateAttr\",\"field_serializer\",\"field_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:pydantic_core", "target": "{\"lineno\":36,\"end_lineno\":36,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic_core\",\"names\":[\"core_schema\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['core_schema']", "target": "{\"lineno\":36,\"end_lineno\":36,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic_core\",\"names\":[\"core_schema\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:metagpt.config", "target": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['CONFIG']", "target": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:metagpt.const", "target": "{\"lineno\":39,\"end_lineno\":46,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"MESSAGE_ROUTE_CAUSE_BY\",\"MESSAGE_ROUTE_FROM\",\"MESSAGE_ROUTE_TO\",\"MESSAGE_ROUTE_TO_ALL\",\"SYSTEM_DESIGN_FILE_REPO\",\"TASK_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['MESSAGE_ROUTE_CAUSE_BY', 'MESSAGE_ROUTE_FROM', 'MESSAGE_ROUTE_TO', 'MESSAGE_ROUTE_TO_ALL', 'SYSTEM_DESIGN_FILE_REPO', 'TASK_FILE_REPO']", "target": "{\"lineno\":39,\"end_lineno\":46,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"MESSAGE_ROUTE_CAUSE_BY\",\"MESSAGE_ROUTE_FROM\",\"MESSAGE_ROUTE_TO\",\"MESSAGE_ROUTE_TO_ALL\",\"SYSTEM_DESIGN_FILE_REPO\",\"TASK_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:metagpt.logs", "target": "{\"lineno\":47,\"end_lineno\":47,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['logger']", "target": "{\"lineno\":47,\"end_lineno\":47,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:metagpt.utils.common", "target": "{\"lineno\":48,\"end_lineno\":48,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str\",\"any_to_str_set\",\"import_class\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['any_to_str', 'any_to_str_set', 'import_class']", "target": "{\"lineno\":48,\"end_lineno\":48,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str\",\"any_to_str_set\",\"import_class\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:metagpt.utils.exceptions", "target": "{\"lineno\":49,\"end_lineno\":49,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['handle_exception']", "target": "{\"lineno\":49,\"end_lineno\":49,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:module:metagpt.utils.serialize", "target": "{\"lineno\":50,\"end_lineno\":54,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.serialize\",\"names\":[\"actionoutout_schema_to_mapping\",\"actionoutput_mapping_to_str\",\"actionoutput_str_to_mapping\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/schema.py:names:['actionoutout_schema_to_mapping', 'actionoutput_mapping_to_str', 'actionoutput_str_to_mapping']", "target": "{\"lineno\":50,\"end_lineno\":54,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.serialize\",\"names\":[\"actionoutout_schema_to_mapping\",\"actionoutput_mapping_to_str\",\"actionoutput_str_to_mapping\"]}}"}, {"predicate": "is", "source": "metagpt/learn/text_to_image.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/learn/text_to_image.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/learn/text_to_image.py", "target": "metagpt/learn/text_to_image.py:text_to_image"}, {"predicate": "is", "source": "metagpt/learn/text_to_image.py:text_to_image", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:text_to_image", "target": "{\"lineno\":18,\"end_lineno\":40,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"text_to_image\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:ast.Constant:\n@Time : 2023/8/18\n@Author : mashenquan\n@File : text_to_image.py\n@Desc : Text-to-Image skill, which provides text-to-image functionality.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/18\\n@Author : mashenquan\\n@File : text_to_image.py\\n@Desc : Text-to-Image skill, which provides text-to-image functionality.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:base64", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:module:metagpt.config", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:names:['CONFIG']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:module:metagpt.const", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BASE64_FORMAT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:names:['BASE64_FORMAT']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BASE64_FORMAT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:module:metagpt.tools.metagpt_text_to_image", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.metagpt_text_to_image\",\"names\":[\"oas3_metagpt_text_to_image\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:names:['oas3_metagpt_text_to_image']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.metagpt_text_to_image\",\"names\":[\"oas3_metagpt_text_to_image\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:module:metagpt.tools.openai_text_to_image", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.openai_text_to_image\",\"names\":[\"oas3_openai_text_to_image\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:names:['oas3_openai_text_to_image']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.openai_text_to_image\",\"names\":[\"oas3_openai_text_to_image\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:module:metagpt.utils.s3", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.s3\",\"names\":[\"S3\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_image.py:names:['S3']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.s3\",\"names\":[\"S3\"]}}"}, {"predicate": "is", "source": "metagpt/learn/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/learn/__init__.py", "target": "python"}, {"predicate": "is", "source": "metagpt/learn/__init__.py:__all__", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/learn/__init__.py:__all__", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/__init__.py:ast.Constant:\n@Time : 2023/4/30 20:57\n@Author : alexanderwu\n@File : __init__.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/30 20:57\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/__init__.py:module:metagpt.learn.text_to_image", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.text_to_image\",\"names\":[\"text_to_image\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/__init__.py:names:['text_to_image']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.text_to_image\",\"names\":[\"text_to_image\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/__init__.py:module:metagpt.learn.text_to_speech", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.text_to_speech\",\"names\":[\"text_to_speech\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/__init__.py:names:['text_to_speech']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.text_to_speech\",\"names\":[\"text_to_speech\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/__init__.py:module:metagpt.learn.google_search", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.google_search\",\"names\":[\"google_search\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/__init__.py:names:['google_search']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.google_search\",\"names\":[\"google_search\"]}}"}, {"predicate": "is", "source": "metagpt/learn/google_search.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/learn/google_search.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/learn/google_search.py", "target": "metagpt/learn/google_search.py:google_search"}, {"predicate": "is", "source": "metagpt/learn/google_search.py:google_search", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/learn/google_search.py:google_search", "target": "{\"lineno\":4,\"end_lineno\":12,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"google_search\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/google_search.py:module:metagpt.tools.search_engine", "target": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.search_engine\",\"names\":[\"SearchEngine\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/google_search.py:names:['SearchEngine']", "target": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.search_engine\",\"names\":[\"SearchEngine\"]}}"}, {"predicate": "is", "source": "metagpt/learn/text_to_speech.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/learn/text_to_speech.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/learn/text_to_speech.py", "target": "metagpt/learn/text_to_speech.py:text_to_speech"}, {"predicate": "is", "source": "metagpt/learn/text_to_speech.py:text_to_speech", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_speech.py:text_to_speech", "target": "{\"lineno\":17,\"end_lineno\":70,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"text_to_speech\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_speech.py:ast.Constant:\n@Time : 2023/8/17\n@Author : mashenquan\n@File : text_to_speech.py\n@Desc : Text-to-Speech skill, which provides text-to-speech functionality\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/17\\n@Author : mashenquan\\n@File : text_to_speech.py\\n@Desc : Text-to-Speech skill, which provides text-to-speech functionality\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_speech.py:module:metagpt.config", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_speech.py:names:['CONFIG']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_speech.py:module:metagpt.const", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BASE64_FORMAT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_speech.py:names:['BASE64_FORMAT']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BASE64_FORMAT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_speech.py:module:metagpt.tools.azure_tts", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.azure_tts\",\"names\":[\"oas3_azsure_tts\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_speech.py:names:['oas3_azsure_tts']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.azure_tts\",\"names\":[\"oas3_azsure_tts\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_speech.py:module:metagpt.tools.iflytek_tts", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.iflytek_tts\",\"names\":[\"oas3_iflytek_tts\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_speech.py:names:['oas3_iflytek_tts']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.iflytek_tts\",\"names\":[\"oas3_iflytek_tts\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_speech.py:module:metagpt.utils.s3", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.s3\",\"names\":[\"S3\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_speech.py:names:['S3']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.s3\",\"names\":[\"S3\"]}}"}, {"predicate": "is", "source": "metagpt/learn/text_to_embedding.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/learn/text_to_embedding.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/learn/text_to_embedding.py", "target": "metagpt/learn/text_to_embedding.py:text_to_embedding"}, {"predicate": "is", "source": "metagpt/learn/text_to_embedding.py:text_to_embedding", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_embedding.py:text_to_embedding", "target": "{\"lineno\":14,\"end_lineno\":24,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"text_to_embedding\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_embedding.py:ast.Constant:\n@Time : 2023/8/18\n@Author : mashenquan\n@File : text_to_embedding.py\n@Desc : Text-to-Embedding skill, which provides text-to-embedding functionality.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/18\\n@Author : mashenquan\\n@File : text_to_embedding.py\\n@Desc : Text-to-Embedding skill, which provides text-to-embedding functionality.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_embedding.py:module:metagpt.config", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_embedding.py:names:['CONFIG']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_embedding.py:module:metagpt.tools.openai_text_to_embedding", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.openai_text_to_embedding\",\"names\":[\"oas3_openai_text_to_embedding\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/text_to_embedding.py:names:['oas3_openai_text_to_embedding']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.openai_text_to_embedding\",\"names\":[\"oas3_openai_text_to_embedding\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:ast.Constant:\n@Time : 2023/8/18\n@Author : mashenquan\n@File : skill_loader.py\n@Desc : Skill YAML Configuration Loader.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/18\\n@Author : mashenquan\\n@File : skill_loader.py\\n@Desc : Skill YAML Configuration Loader.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:module:pathlib", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:names:['Path']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:module:typing", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:names:['Dict', 'List', 'Optional']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:aiofiles", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:yaml", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"yaml\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:module:pydantic", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:names:['BaseModel', 'Field']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:module:metagpt.config", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/learn/skill_loader.py:names:['CONFIG']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "is", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/search_engine_ddg.py:DDGAPIWrapper:_search_from_ddgs", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_ddg.py:module:__future__", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_ddg.py:names:['annotations']", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_ddg.py:asyncio", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_ddg.py:json", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_ddg.py:module:concurrent", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"concurrent\",\"names\":[\"futures\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_ddg.py:names:['futures']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"concurrent\",\"names\":[\"futures\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_ddg.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Literal\",\"overload\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_ddg.py:names:['Literal', 'overload']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Literal\",\"overload\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_ddg.py:module:metagpt.config", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_ddg.py:names:['CONFIG']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_ddg.py:__name__:__main__", "target": "{\"lineno\":99,\"end_lineno\":102,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/metagpt_oas3_api_svc.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/metagpt_oas3_api_svc.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/tools/metagpt_oas3_api_svc.py", "target": "metagpt/tools/metagpt_oas3_api_svc.py:oas_http_svc"}, {"predicate": "is", "source": "metagpt/tools/metagpt_oas3_api_svc.py:oas_http_svc", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_oas3_api_svc.py:oas_http_svc", "target": "{\"lineno\":21,\"end_lineno\":28,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"oas_http_svc\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_oas3_api_svc.py:ast.Constant:\n@Time : 2023/8/17\n@Author : mashenquan\n@File : metagpt_oas3_api_svc.py\n@Desc : MetaGPT OpenAPI Specification 3.0 REST API service\n\n curl -X 'POST' 'http://localhost:8080/openapi/greeting/dave' -H 'accept: text/plain' -H 'Content-Type: application/json' -d '{}'\n", "target": "{\"lineno\":3,\"end_lineno\":14,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/17\\n@Author : mashenquan\\n@File : metagpt_oas3_api_svc.py\\n@Desc : MetaGPT OpenAPI Specification 3.0 REST API service\\n\\n curl -X 'POST' 'http://localhost:8080/openapi/greeting/dave' -H 'accept: text/plain' -H 'Content-Type: application/json' -d '{}'\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_oas3_api_svc.py:module:pathlib", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_oas3_api_svc.py:names:['Path']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_oas3_api_svc.py:connexion", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.Import\",\"tokens\":[\"connexion\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_oas3_api_svc.py:__name__:__main__", "target": "{\"lineno\":31,\"end_lineno\":32,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/search_engine_meilisearch.py:DataSource:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/search_engine_meilisearch.py:MeilisearchEngine:__init__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_meilisearch.py:ast.Constant:\n@Time : 2023/5/22 21:33\n@Author : alexanderwu\n@File : search_engine_meilisearch.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/22 21:33\\n@Author : alexanderwu\\n@File : search_engine_meilisearch.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_meilisearch.py:module:typing", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_meilisearch.py:names:['List']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_meilisearch.py:meilisearch", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"meilisearch\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_meilisearch.py:module:meilisearch.index", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"meilisearch.index\",\"names\":[\"Index\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_meilisearch.py:names:['Index']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"meilisearch.index\",\"names\":[\"Index\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_meilisearch.py:module:metagpt.utils.exceptions", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_meilisearch.py:names:['handle_exception']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:OpenAIText2Embedding:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_embedding.py:oas3_openai_text_to_embedding", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:oas3_openai_text_to_embedding", "target": "{\"lineno\":75,\"end_lineno\":87,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"oas3_openai_text_to_embedding\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:ast.Constant:\n@Time : 2023/8/18\n@Author : mashenquan\n@File : openai_text_to_embedding.py\n@Desc : OpenAI Text-to-Embedding OAS3 api, which provides text-to-embedding functionality.\n For more details, checkout: `https://platform.openai.com/docs/api-reference/embeddings/object`\n", "target": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/18\\n@Author : mashenquan\\n@File : openai_text_to_embedding.py\\n@Desc : OpenAI Text-to-Embedding OAS3 api, which provides text-to-embedding functionality.\\n For more details, checkout: `https://platform.openai.com/docs/api-reference/embeddings/object`\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:module:typing", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:names:['List']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:aiohttp", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:requests", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"requests\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:module:pydantic", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:names:['BaseModel', 'Field']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:module:metagpt.config", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:names:['CONFIG']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:module:metagpt.logs", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_embedding.py:names:['logger']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serpapi.py:SerpAPIWrapper:_process_response", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serpapi.py:ast.Constant:\n@Time : 2023/5/23 18:27\n@Author : alexanderwu\n@File : search_engine_serpapi.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/23 18:27\\n@Author : alexanderwu\\n@File : search_engine_serpapi.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serpapi.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Dict\",\"Optional\",\"Tuple\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serpapi.py:names:['Any', 'Dict', 'Optional', 'Tuple']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Dict\",\"Optional\",\"Tuple\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serpapi.py:aiohttp", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serpapi.py:module:pydantic", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"field_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serpapi.py:names:['BaseModel', 'ConfigDict', 'Field', 'field_validator']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"field_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serpapi.py:module:metagpt.config", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serpapi.py:names:['CONFIG']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serpapi.py:__name__:__main__", "target": "{\"lineno\":113,\"end_lineno\":116,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:_scrape", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py:PlaywrightWrapper:_run_precheck", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py:_get_install_lock", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:_get_install_lock", "target": "{\"lineno\":102,\"end_lineno\":106,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_get_install_lock\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py:_install_browsers", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:_install_browsers", "target": "{\"lineno\":109,\"end_lineno\":132,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"_install_browsers\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py:_log_stream", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:_log_stream", "target": "{\"lineno\":135,\"end_lineno\":140,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"_log_stream\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py:_install_lock", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:_install_lock", "target": "{\"lineno\":143,\"end_lineno\":143,\"type_name\":\"ast.AnnAssign\",\"tokens\":[\"_install_lock\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_playwright.py:_install_cache", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:_install_cache", "target": "{\"lineno\":144,\"end_lineno\":144,\"type_name\":\"ast.Assign\",\"tokens\":[\"_install_cache\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:ast.Constant:\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\n", "target": "{\"lineno\":2,\"end_lineno\":4,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:module:__future__", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:names:['annotations']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:asyncio", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:sys", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"sys\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:module:pathlib", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:names:['Path']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:module:typing", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Literal\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:names:['Literal']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Literal\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:module:playwright.async_api", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"playwright.async_api\",\"names\":[\"async_playwright\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:names:['async_playwright']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"playwright.async_api\",\"names\":[\"async_playwright\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:module:metagpt.config", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:names:['CONFIG']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:module:metagpt.logs", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:names:['logger']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:module:metagpt.utils.parse_html", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.parse_html\",\"names\":[\"WebPage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_playwright.py:names:['WebPage']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.parse_html\",\"names\":[\"WebPage\"]}}"}, {"predicate": "is", "source": "metagpt/tools/search_engine.py:SkSearchEngine:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/search_engine.py:SearchEngine:__init__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine.py:ast.Constant:\n@Time : 2023/5/6 20:15\n@Author : alexanderwu\n@File : search_engine.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/6 20:15\\n@Author : alexanderwu\\n@File : search_engine.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine.py:importlib", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"importlib\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine.py:module:typing", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Callable\",\"Coroutine\",\"Literal\",\"Optional\",\"Union\",\"overload\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine.py:names:['Callable', 'Coroutine', 'Literal', 'Optional', 'Union', 'overload']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Callable\",\"Coroutine\",\"Literal\",\"Optional\",\"Union\",\"overload\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine.py:module:semantic_kernel.skill_definition", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.skill_definition\",\"names\":[\"sk_function\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine.py:names:['sk_function']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.skill_definition\",\"names\":[\"sk_function\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine.py:module:metagpt.config", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine.py:names:['CONFIG']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine.py:module:metagpt.tools", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine.py:names:['SearchEngineType']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\"]}}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine.py:WebBrowserEngine:__init__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:ast.Constant:\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\n", "target": "{\"lineno\":2,\"end_lineno\":4,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:module:__future__", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:names:['annotations']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:importlib", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"importlib\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:module:typing", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Callable\",\"Coroutine\",\"overload\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:names:['Any', 'Callable', 'Coroutine', 'overload']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Callable\",\"Coroutine\",\"overload\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:module:metagpt.config", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:names:['CONFIG']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:module:metagpt.tools", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"WebBrowserEngineType\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:names:['WebBrowserEngineType']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"WebBrowserEngineType\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:module:metagpt.utils.parse_html", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.parse_html\",\"names\":[\"WebPage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine.py:names:['WebPage']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.parse_html\",\"names\":[\"WebPage\"]}}"}, {"predicate": "is", "source": "metagpt/tools/search_engine_serper.py:SerperWrapper:_process_response", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serper.py:ast.Constant:\n@Time : 2023/5/23 18:27\n@Author : alexanderwu\n@File : search_engine_serpapi.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/23 18:27\\n@Author : alexanderwu\\n@File : search_engine_serpapi.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serper.py:json", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serper.py:module:typing", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Dict\",\"Optional\",\"Tuple\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serper.py:names:['Any', 'Dict', 'Optional', 'Tuple']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Dict\",\"Optional\",\"Tuple\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serper.py:aiohttp", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serper.py:module:pydantic", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"field_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serper.py:names:['BaseModel', 'ConfigDict', 'Field', 'field_validator']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"field_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serper.py:module:metagpt.config", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serper.py:names:['CONFIG']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_serper.py:__name__:__main__", "target": "{\"lineno\":115,\"end_lineno\":118,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/moderation.py:Moderation:__init__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/tools/moderation.py:ast.Constant:\n@Time : 2023/9/26 14:27\n@Author : zhanglei\n@File : moderation.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/26 14:27\\n@Author : zhanglei\\n@File : moderation.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/moderation.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/moderation.py:names:['Union']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/moderation.py:module:metagpt.llm", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/moderation.py:names:['LLM']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "is", "source": "metagpt/tools/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/__init__.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/tools/__init__.py", "target": "metagpt/tools/__init__.py:SearchEngineType"}, {"predicate": "has_class", "source": "metagpt/tools/__init__.py", "target": "metagpt/tools/__init__.py:WebBrowserEngineType"}, {"predicate": "is", "source": "metagpt/tools/__init__.py:SearchEngineType", "target": "class"}, {"predicate": "has_page_info", "source": "metagpt/tools/__init__.py:SearchEngineType", "target": "{\"lineno\":13,\"end_lineno\":18,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"SearchEngineType\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/__init__.py:SearchEngineType", "target": "{\"name\":\"SearchEngineType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/tools/__init__.py:WebBrowserEngineType", "target": "class"}, {"predicate": "has_class_function", "source": "metagpt/tools/__init__.py:WebBrowserEngineType", "target": "metagpt/tools/__init__.py:WebBrowserEngineType:__missing__"}, {"predicate": "has_page_info", "source": "metagpt/tools/__init__.py:WebBrowserEngineType", "target": "{\"lineno\":21,\"end_lineno\":29,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"WebBrowserEngineType\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/tools/__init__.py:WebBrowserEngineType", "target": "{\"name\":\"WebBrowserEngineType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[{\"name\":\"__missing__\",\"abstraction\":false,\"static\":false,\"visibility\":\"-\",\"args\":[],\"return_type\":\"\"}]}"}, {"predicate": "is", "source": "metagpt/tools/__init__.py:WebBrowserEngineType:__missing__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/tools/__init__.py:ast.Constant:\n@Time : 2023/4/29 15:35\n@Author : alexanderwu\n@File : __init__.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/29 15:35\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/__init__.py:module:enum", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/__init__.py:names:['Enum']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "is", "source": "metagpt/tools/search_engine_googleapi.py:safe_google_results", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:safe_google_results", "target": "{\"lineno\":120,\"end_lineno\":133,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"safe_google_results\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:module:__future__", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:names:['annotations']", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:asyncio", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:json", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:module:concurrent", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"concurrent\",\"names\":[\"futures\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:names:['futures']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"concurrent\",\"names\":[\"futures\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:names:['Optional']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:module:urllib.parse", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urlparse\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:names:['urlparse']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urlparse\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:httplib2", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"httplib2\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:module:pydantic", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"field_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:names:['BaseModel', 'ConfigDict', 'Field', 'field_validator']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"field_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:module:metagpt.config", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:names:['CONFIG']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:module:metagpt.logs", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:names:['logger']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/search_engine_googleapi.py:__name__:__main__", "target": "{\"lineno\":136,\"end_lineno\":139,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:_run_precheck", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:SeleniumWrapper:_scrape_website", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:_gen_get_driver_func", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:_gen_get_driver_func", "target": "{\"lineno\":105,\"end_lineno\":129,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_gen_get_driver_func\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/web_browser_engine_selenium.py:_webdriver_manager_types", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:_webdriver_manager_types", "target": "{\"lineno\":90,\"end_lineno\":95,\"type_name\":\"ast.Assign\",\"tokens\":[\"_webdriver_manager_types\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:ast.Constant:\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\n", "target": "{\"lineno\":2,\"end_lineno\":4,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:module:__future__", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:names:['annotations']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:asyncio", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:importlib", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"importlib\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:module:concurrent", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"concurrent\",\"names\":[\"futures\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:names:['futures']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"concurrent\",\"names\":[\"futures\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:module:copy", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"copy\",\"names\":[\"deepcopy\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:names:['deepcopy']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"copy\",\"names\":[\"deepcopy\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:module:typing", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Literal\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:names:['Literal']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Literal\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:module:selenium.webdriver.common.by", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"selenium.webdriver.common.by\",\"names\":[\"By\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:names:['By']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"selenium.webdriver.common.by\",\"names\":[\"By\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:module:selenium.webdriver.support", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"selenium.webdriver.support\",\"names\":[\"expected_conditions as EC\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:names:['expected_conditions as EC']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"selenium.webdriver.support\",\"names\":[\"expected_conditions as EC\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:module:selenium.webdriver.support.wait", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"selenium.webdriver.support.wait\",\"names\":[\"WebDriverWait\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:names:['WebDriverWait']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"selenium.webdriver.support.wait\",\"names\":[\"WebDriverWait\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:module:webdriver_manager.core.download_manager", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"webdriver_manager.core.download_manager\",\"names\":[\"WDMDownloadManager\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:names:['WDMDownloadManager']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"webdriver_manager.core.download_manager\",\"names\":[\"WDMDownloadManager\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:module:webdriver_manager.core.http", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"webdriver_manager.core.http\",\"names\":[\"WDMHttpClient\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:names:['WDMHttpClient']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"webdriver_manager.core.http\",\"names\":[\"WDMHttpClient\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:module:metagpt.config", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:names:['CONFIG']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:module:metagpt.utils.parse_html", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.parse_html\",\"names\":[\"WebPage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/web_browser_engine_selenium.py:names:['WebPage']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.parse_html\",\"names\":[\"WebPage\"]}}"}, {"predicate": "is", "source": "metagpt/tools/openapi_v3_hello.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/tools/openapi_v3_hello.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/tools/openapi_v3_hello.py", "target": "metagpt/tools/openapi_v3_hello.py:post_greeting"}, {"predicate": "is", "source": "metagpt/tools/openapi_v3_hello.py:post_greeting", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/openapi_v3_hello.py:post_greeting", "target": "{\"lineno\":21,\"end_lineno\":22,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"post_greeting\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openapi_v3_hello.py:ast.Constant:\n@Time : 2023/5/2 16:03\n@Author : mashenquan\n@File : openapi_v3_hello.py\n@Desc : Implement the OpenAPI Specification 3.0 demo and use the following command to test the HTTP service:\n\n curl -X 'POST' 'http://localhost:8082/openapi/greeting/dave' -H 'accept: text/plain' -H 'Content-Type: application/json' -d '{}'\n", "target": "{\"lineno\":3,\"end_lineno\":14,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/2 16:03\\n@Author : mashenquan\\n@File : openapi_v3_hello.py\\n@Desc : Implement the OpenAPI Specification 3.0 demo and use the following command to test the HTTP service:\\n\\n curl -X 'POST' 'http://localhost:8082/openapi/greeting/dave' -H 'accept: text/plain' -H 'Content-Type: application/json' -d '{}'\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openapi_v3_hello.py:module:pathlib", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openapi_v3_hello.py:names:['Path']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openapi_v3_hello.py:connexion", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Import\",\"tokens\":[\"connexion\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openapi_v3_hello.py:__name__:__main__", "target": "{\"lineno\":25,\"end_lineno\":29,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/azure_tts.py:AzureTTS:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/azure_tts.py:oas3_azsure_tts", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:oas3_azsure_tts", "target": "{\"lineno\":61,\"end_lineno\":105,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"oas3_azsure_tts\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:ast.Constant:\n@Time : 2023/6/9 22:22\n@Author : Leo Xiao\n@File : azure_tts.py\n@Modified by: mashenquan, 2023/8/17. Azure TTS OAS3 api, which provides text-to-speech functionality\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/6/9 22:22\\n@Author : Leo Xiao\\n@File : azure_tts.py\\n@Modified by: mashenquan, 2023/8/17. Azure TTS OAS3 api, which provides text-to-speech functionality\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:base64", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:module:pathlib", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:names:['Path']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:module:uuid", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"uuid\",\"names\":[\"uuid4\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:names:['uuid4']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"uuid\",\"names\":[\"uuid4\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:aiofiles", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:module:azure.cognitiveservices.speech", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"azure.cognitiveservices.speech\",\"names\":[\"AudioConfig\",\"SpeechConfig\",\"SpeechSynthesizer\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:names:['AudioConfig', 'SpeechConfig', 'SpeechSynthesizer']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"azure.cognitiveservices.speech\",\"names\":[\"AudioConfig\",\"SpeechConfig\",\"SpeechSynthesizer\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:module:metagpt.config", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:names:['CONFIG']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:module:metagpt.logs", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/azure_tts.py:names:['logger']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine:_save", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine:run_i2i", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:SDEngine:run_sam", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:decode_base64_to_image", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:decode_base64_to_image", "target": "{\"lineno\":112,\"end_lineno\":117,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"decode_base64_to_image\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:batch_decode_base64_to_image", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:batch_decode_base64_to_image", "target": "{\"lineno\":120,\"end_lineno\":123,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"batch_decode_base64_to_image\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:payload", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:payload", "target": "{\"lineno\":19,\"end_lineno\":48,\"type_name\":\"ast.Assign\",\"tokens\":[\"payload\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/sd_engine.py:default_negative_prompt", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:default_negative_prompt", "target": "{\"lineno\":50,\"end_lineno\":50,\"type_name\":\"ast.Assign\",\"tokens\":[\"default_negative_prompt\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:asyncio", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:base64", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:io", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"io\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:json", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:module:os.path", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"os.path\",\"names\":[\"join\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:names:['join']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"os.path\",\"names\":[\"join\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:module:typing", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:names:['List']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:module:aiohttp", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"aiohttp\",\"names\":[\"ClientSession\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:names:['ClientSession']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"aiohttp\",\"names\":[\"ClientSession\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:module:PIL", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"PIL\",\"names\":[\"Image\",\"PngImagePlugin\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:names:['Image', 'PngImagePlugin']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"PIL\",\"names\":[\"Image\",\"PngImagePlugin\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:module:metagpt.config", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:names:['CONFIG']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:module:metagpt.const", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"SD_OUTPUT_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:names:['SD_OUTPUT_FILE_REPO']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"SD_OUTPUT_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:module:metagpt.logs", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:names:['logger']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/sd_engine.py:__name__:__main__", "target": "{\"lineno\":126,\"end_lineno\":133,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_image.py:OpenAIText2Image:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/openai_text_to_image.py:oas3_openai_text_to_image", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_image.py:oas3_openai_text_to_image", "target": "{\"lineno\":60,\"end_lineno\":69,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"oas3_openai_text_to_image\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_image.py:ast.Constant:\n@Time : 2023/8/17\n@Author : mashenquan\n@File : openai_text_to_image.py\n@Desc : OpenAI Text-to-Image OAS3 api, which provides text-to-image functionality.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/17\\n@Author : mashenquan\\n@File : openai_text_to_image.py\\n@Desc : OpenAI Text-to-Image OAS3 api, which provides text-to-image functionality.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_image.py:aiohttp", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_image.py:requests", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"requests\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_image.py:module:metagpt.llm", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_image.py:names:['LLM']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_image.py:module:metagpt.logs", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/openai_text_to_image.py:names:['logger']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:__para_to_str", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:_para_to_str", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:UTGenerator:_generate_ut", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:ICL_SAMPLE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/tools/ut_writer.py:ICL_SAMPLE", "target": "{\"lineno\":10,\"end_lineno\":64,\"type_name\":\"ast.Assign\",\"tokens\":[\"ICL_SAMPLE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:ACT_PROMPT_PREFIX", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/tools/ut_writer.py:ACT_PROMPT_PREFIX", "target": "{\"lineno\":66,\"end_lineno\":69,\"type_name\":\"ast.Assign\",\"tokens\":[\"ACT_PROMPT_PREFIX\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:YFT_PROMPT_PREFIX", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/tools/ut_writer.py:YFT_PROMPT_PREFIX", "target": "{\"lineno\":71,\"end_lineno\":75,\"type_name\":\"ast.Assign\",\"tokens\":[\"YFT_PROMPT_PREFIX\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/ut_writer.py:OCR_API_DOC", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/tools/ut_writer.py:OCR_API_DOC", "target": "{\"lineno\":77,\"end_lineno\":100,\"type_name\":\"ast.Assign\",\"tokens\":[\"OCR_API_DOC\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/ut_writer.py:json", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/ut_writer.py:module:pathlib", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/ut_writer.py:names:['Path']", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/ut_writer.py:module:metagpt.provider.openai_api", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM as GPTAPI\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/ut_writer.py:names:['OpenAILLM as GPTAPI']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM as GPTAPI\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/ut_writer.py:module:metagpt.utils.common", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"awrite\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/ut_writer.py:names:['awrite']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"awrite\"]}}"}, {"predicate": "is", "source": "metagpt/tools/translator.py:prompt", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/tools/translator.py:prompt", "target": "{\"lineno\":9,\"end_lineno\":20,\"type_name\":\"ast.Assign\",\"tokens\":[\"prompt\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/translator.py:ast.Constant:\n@Time : 2023/4/29 15:36\n@Author : alexanderwu\n@File : translator.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/29 15:36\\n@Author : alexanderwu\\n@File : translator.py\\n\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/metagpt_text_to_image.py:MetaGPTText2Image:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/metagpt_text_to_image.py:oas3_metagpt_text_to_image", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:oas3_metagpt_text_to_image", "target": "{\"lineno\":86,\"end_lineno\":98,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"oas3_metagpt_text_to_image\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:ast.Constant:\n@Time : 2023/8/18\n@Author : mashenquan\n@File : metagpt_text_to_image.py\n@Desc : MetaGPT Text-to-Image OAS3 api, which provides text-to-image functionality.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/18\\n@Author : mashenquan\\n@File : metagpt_text_to_image.py\\n@Desc : MetaGPT Text-to-Image OAS3 api, which provides text-to-image functionality.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:base64", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:module:typing", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:names:['Dict', 'List']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:aiohttp", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:requests", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"requests\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:module:pydantic", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:names:['BaseModel']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:module:metagpt.config", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:names:['CONFIG']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:module:metagpt.logs", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/metagpt_text_to_image.py:names:['logger']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:IFlyTekTTS:_create_url", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:oas3_iflytek_tts", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:oas3_iflytek_tts", "target": "{\"lineno\":118,\"end_lineno\":152,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"oas3_iflytek_tts\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/tools/iflytek_tts.py:DEFAULT_IFLYTEK_VOICE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:DEFAULT_IFLYTEK_VOICE", "target": "{\"lineno\":49,\"end_lineno\":49,\"type_name\":\"ast.Assign\",\"tokens\":[\"DEFAULT_IFLYTEK_VOICE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:ast.Constant:\n@Time : 2023/8/17\n@Author : mashenquan\n@File : iflytek_tts.py\n@Desc : iFLYTEK TTS OAS3 api, which provides text-to-speech functionality\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/17\\n@Author : mashenquan\\n@File : iflytek_tts.py\\n@Desc : iFLYTEK TTS OAS3 api, which provides text-to-speech functionality\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:base64", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:hashlib", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"hashlib\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:hmac", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"hmac\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:json", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:uuid", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"uuid\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:module:datetime", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:names:['datetime']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:module:enum", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:names:['Enum']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:module:pathlib", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:names:['Path']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:module:time", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"time\",\"names\":[\"mktime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:names:['mktime']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"time\",\"names\":[\"mktime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:module:typing", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:names:['Optional']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:module:urllib.parse", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urlencode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:names:['urlencode']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urlencode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:module:wsgiref.handlers", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"wsgiref.handlers\",\"names\":[\"format_date_time\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:names:['format_date_time']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"wsgiref.handlers\",\"names\":[\"format_date_time\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:aiofiles", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:websockets as websockets", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.Import\",\"tokens\":[\"websockets as websockets\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:module:pydantic", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:names:['BaseModel']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:module:metagpt.config", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:names:['CONFIG']", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:module:metagpt.logs", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/iflytek_tts.py:names:['logger']", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:GPTPromptGenerator:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:WikiHowTemplate:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:EnronTemplate:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/tools/prompt_writer.py:BEAGECTemplate:__init__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/tools/prompt_writer.py:ast.Constant:\n@Time : 2023/5/2 16:03\n@Author : alexanderwu\n@File : prompt_writer.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/2 16:03\\n@Author : alexanderwu\\n@File : prompt_writer.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/prompt_writer.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/tools/prompt_writer.py:names:['Union']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:ast.Constant:\n@Time : 2023/5/20 12:15\n@Author : alexanderwu\n@File : memory.py\n@Modified By: mashenquan, 2023-11-1. According to RFC 116: Updated the type of index key.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/20 12:15\\n@Author : alexanderwu\\n@File : memory.py\\n@Modified By: mashenquan, 2023-11-1. According to RFC 116: Updated the type of index key.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:module:collections", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"collections\",\"names\":[\"defaultdict\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:names:['defaultdict']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"collections\",\"names\":[\"defaultdict\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:module:pathlib", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:names:['Path']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:module:typing", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"DefaultDict\",\"Iterable\",\"Set\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:names:['DefaultDict', 'Iterable', 'Set']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"DefaultDict\",\"Iterable\",\"Set\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:module:pydantic", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\",\"SerializeAsAny\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:names:['BaseModel', 'Field', 'SerializeAsAny']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\",\"SerializeAsAny\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:module:metagpt.const", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"IGNORED_MESSAGE_ID\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:names:['IGNORED_MESSAGE_ID']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"IGNORED_MESSAGE_ID\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:module:metagpt.schema", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:names:['Message']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:module:metagpt.utils.common", "target": "{\"lineno\":17,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str\",\"any_to_str_set\",\"read_json_file\",\"write_json_file\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory.py:names:['any_to_str', 'any_to_str_set', 'read_json_file', 'write_json_file']", "target": "{\"lineno\":17,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str\",\"any_to_str_set\",\"read_json_file\",\"write_json_file\"]}}"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:_openai_summarize", "target": "class_function"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:_metagpt_summarize", "target": "class_function"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:_metagpt_is_related", "target": "class_function"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:_openai_is_related", "target": "class_function"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:_metagpt_rewrite", "target": "class_function"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:_openai_rewrite", "target": "class_function"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:_summarize", "target": "class_function"}, {"predicate": "is", "source": "metagpt/memory/brain_memory.py:BrainMemory:_get_summary", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:ast.Constant:\n@Time : 2023/8/18\n@Author : mashenquan\n@File : brain_memory.py\n@Desc : Used by AgentStore. Used for long-term storage and automatic compression.\n@Modified By: mashenquan, 2023/9/4. + redis memory cache.\n@Modified By: mashenquan, 2023/12/25. Simplify Functionality.\n", "target": "{\"lineno\":3,\"end_lineno\":10,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/18\\n@Author : mashenquan\\n@File : brain_memory.py\\n@Desc : Used by AgentStore. Used for long-term storage and automatic compression.\\n@Modified By: mashenquan, 2023/9/4. + redis memory cache.\\n@Modified By: mashenquan, 2023/12/25. Simplify Functionality.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:json", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:re", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:module:typing", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:names:['Dict', 'List', 'Optional']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:module:pydantic", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:names:['BaseModel', 'Field']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:module:metagpt.config", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:names:['CONFIG']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:module:metagpt.const", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DEFAULT_LANGUAGE\",\"DEFAULT_MAX_TOKENS\",\"DEFAULT_TOKEN_SIZE\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:names:['DEFAULT_LANGUAGE', 'DEFAULT_MAX_TOKENS', 'DEFAULT_TOKEN_SIZE']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DEFAULT_LANGUAGE\",\"DEFAULT_MAX_TOKENS\",\"DEFAULT_TOKEN_SIZE\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:module:metagpt.logs", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:names:['logger']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:module:metagpt.provider", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider\",\"names\":[\"MetaGPTLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:names:['MetaGPTLLM']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider\",\"names\":[\"MetaGPTLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:names:['BaseLLM']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:module:metagpt.schema", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\",\"SimpleMessage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:names:['Message', 'SimpleMessage']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\",\"SimpleMessage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:module:metagpt.utils.redis", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.redis\",\"names\":[\"Redis\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/brain_memory.py:names:['Redis']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.redis\",\"names\":[\"Redis\"]}}"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:_load", "target": "class_function"}, {"predicate": "is", "source": "metagpt/memory/memory_storage.py:MemoryStorage:_get_index_and_store_fname", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:ast.Constant:\n@Desc : the implement of memory storage\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\n", "target": "{\"lineno\":3,\"end_lineno\":6,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Desc : the implement of memory storage\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:module:pathlib", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:names:['Path']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:module:typing", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:names:['Optional']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:module:langchain.embeddings", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.embeddings\",\"names\":[\"OpenAIEmbeddings\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:names:['OpenAIEmbeddings']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.embeddings\",\"names\":[\"OpenAIEmbeddings\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:module:langchain.vectorstores.faiss", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.vectorstores.faiss\",\"names\":[\"FAISS\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:names:['FAISS']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.vectorstores.faiss\",\"names\":[\"FAISS\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:module:langchain_core.embeddings", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain_core.embeddings\",\"names\":[\"Embeddings\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:names:['Embeddings']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain_core.embeddings\",\"names\":[\"Embeddings\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:module:metagpt.const", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DATA_PATH\",\"MEM_TTL\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:names:['DATA_PATH', 'MEM_TTL']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DATA_PATH\",\"MEM_TTL\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:module:metagpt.document_store.faiss_store", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.faiss_store\",\"names\":[\"FaissStore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:names:['FaissStore']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.faiss_store\",\"names\":[\"FaissStore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:module:metagpt.logs", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:names:['logger']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:module:metagpt.schema", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:names:['Message']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:module:metagpt.utils.serialize", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.serialize\",\"names\":[\"deserialize_message\",\"serialize_message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/memory_storage.py:names:['deserialize_message', 'serialize_message']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.serialize\",\"names\":[\"deserialize_message\",\"serialize_message\"]}}"}, {"predicate": "is", "source": "metagpt/memory/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/memory/__init__.py", "target": "python"}, {"predicate": "is", "source": "metagpt/memory/__init__.py:__all__", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/memory/__init__.py:__all__", "target": "{\"lineno\":14,\"end_lineno\":17,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/__init__.py:ast.Constant:\n@Time : 2023/4/30 20:57\n@Author : alexanderwu\n@File : __init__.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/30 20:57\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/__init__.py:module:metagpt.memory.memory", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory.memory\",\"names\":[\"Memory\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/__init__.py:names:['Memory']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory.memory\",\"names\":[\"Memory\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:ast.Constant:\n@Desc : the implement of Long-term memory\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\n", "target": "{\"lineno\":3,\"end_lineno\":6,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Desc : the implement of Long-term memory\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:names:['Optional']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:module:pydantic", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"ConfigDict\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:names:['ConfigDict', 'Field']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"ConfigDict\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:module:metagpt.logs", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:names:['logger']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:module:metagpt.memory", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory\",\"names\":[\"Memory\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:names:['Memory']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory\",\"names\":[\"Memory\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:module:metagpt.memory.memory_storage", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory.memory_storage\",\"names\":[\"MemoryStorage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:names:['MemoryStorage']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory.memory_storage\",\"names\":[\"MemoryStorage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:module:metagpt.roles.role", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"RoleContext\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:names:['RoleContext']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"RoleContext\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:module:metagpt.schema", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/memory/longterm_memory.py:names:['Message']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document_store/qdrant_store.py:QdrantStore:write", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/document_store/qdrant_store.py:module:dataclasses", "target": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"dataclasses\",\"names\":[\"dataclass\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/qdrant_store.py:names:['dataclass']", "target": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"dataclasses\",\"names\":[\"dataclass\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/qdrant_store.py:module:typing", "target": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/qdrant_store.py:names:['List']", "target": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/qdrant_store.py:module:qdrant_client", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"qdrant_client\",\"names\":[\"QdrantClient\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/qdrant_store.py:names:['QdrantClient']", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"qdrant_client\",\"names\":[\"QdrantClient\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/qdrant_store.py:module:qdrant_client.models", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"qdrant_client.models\",\"names\":[\"Filter\",\"PointStruct\",\"VectorParams\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/qdrant_store.py:names:['Filter', 'PointStruct', 'VectorParams']", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"qdrant_client.models\",\"names\":[\"Filter\",\"PointStruct\",\"VectorParams\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/qdrant_store.py:module:metagpt.document_store.base_store", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.base_store\",\"names\":[\"BaseStore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/qdrant_store.py:names:['BaseStore']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.base_store\",\"names\":[\"BaseStore\"]}}"}, {"predicate": "is", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document_store/chromadb_store.py:ChromaStore:persist", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/document_store/chromadb_store.py:ast.Constant:\n@Time : 2023/5/29 14:46\n@Author : alexanderwu\n@File : chromadb_store.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/29 14:46\\n@Author : alexanderwu\\n@File : chromadb_store.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/chromadb_store.py:chromadb", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"chromadb\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py:LanceStore:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document_store/lancedb_store.py:LanceStore:persist", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/document_store/lancedb_store.py:ast.Constant:\n@Time : 2023/8/9 15:42\n@Author : unkn-wn (Leon Yee)\n@File : lancedb_store.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/9 15:42\\n@Author : unkn-wn (Leon Yee)\\n@File : lancedb_store.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/lancedb_store.py:os", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/lancedb_store.py:shutil", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"shutil\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/lancedb_store.py:lancedb", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"lancedb\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/document_store/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/document_store/__init__.py", "target": "python"}, {"predicate": "is", "source": "metagpt/document_store/__init__.py:__all__", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/document_store/__init__.py:__all__", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/__init__.py:ast.Constant:\n@Time : 2023/5/25 10:20\n@Author : alexanderwu\n@File : __init__.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/25 10:20\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/__init__.py:module:metagpt.document_store.faiss_store", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.faiss_store\",\"names\":[\"FaissStore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/__init__.py:names:['FaissStore']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.faiss_store\",\"names\":[\"FaissStore\"]}}"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:_load", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:_write", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document_store/faiss_store.py:FaissStore:delete", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:ast.Constant:\n@Time : 2023/5/25 10:20\n@Author : alexanderwu\n@File : faiss_store.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/25 10:20\\n@Author : alexanderwu\\n@File : faiss_store.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:asyncio", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:module:pathlib", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:names:['Path']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:module:typing", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:names:['Optional']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:module:langchain.embeddings", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.embeddings\",\"names\":[\"OpenAIEmbeddings\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:names:['OpenAIEmbeddings']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.embeddings\",\"names\":[\"OpenAIEmbeddings\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:module:langchain.vectorstores", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.vectorstores\",\"names\":[\"FAISS\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:names:['FAISS']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain.vectorstores\",\"names\":[\"FAISS\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:module:langchain_core.embeddings", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain_core.embeddings\",\"names\":[\"Embeddings\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:names:['Embeddings']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"langchain_core.embeddings\",\"names\":[\"Embeddings\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:module:metagpt.config", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:names:['CONFIG']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:module:metagpt.document", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document\",\"names\":[\"IndexableDocument\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:names:['IndexableDocument']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document\",\"names\":[\"IndexableDocument\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:module:metagpt.document_store.base_store", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.base_store\",\"names\":[\"LocalStore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:names:['LocalStore']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.base_store\",\"names\":[\"LocalStore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:module:metagpt.logs", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/faiss_store.py:names:['logger']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:BaseStore:search", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:BaseStore:write", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:BaseStore:add", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:LocalStore:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:LocalStore:_get_index_and_store_fname", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:LocalStore:_load", "target": "class_function"}, {"predicate": "is", "source": "metagpt/document_store/base_store.py:LocalStore:_write", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/document_store/base_store.py:ast.Constant:\n@Time : 2023/5/28 00:01\n@Author : alexanderwu\n@File : base_store.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/28 00:01\\n@Author : alexanderwu\\n@File : base_store.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/base_store.py:module:abc", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\",\"abstractmethod\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/base_store.py:names:['ABC', 'abstractmethod']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\",\"abstractmethod\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/base_store.py:module:pathlib", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/base_store.py:names:['Path']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/base_store.py:module:metagpt.config", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"Config\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/document_store/base_store.py:names:['Config']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"Config\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/anthropic_api.py:ast.Constant:\n@Time : 2023/7/21 11:15\n@Author : Leo Xiao\n@File : anthropic_api.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/7/21 11:15\\n@Author : Leo Xiao\\n@File : anthropic_api.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/anthropic_api.py:anthropic", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"anthropic\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/anthropic_api.py:module:anthropic", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"anthropic\",\"names\":[\"Anthropic\",\"AsyncAnthropic\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/anthropic_api.py:names:['Anthropic', 'AsyncAnthropic']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"anthropic\",\"names\":[\"Anthropic\",\"AsyncAnthropic\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/anthropic_api.py:module:metagpt.config", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/anthropic_api.py:names:['CONFIG']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:__init_gemini", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:_user_msg", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:_assistant_msg", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:_const_kwargs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:_update_costs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:_achat_completion", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/google_gemini_api.py:GeminiLLM:_achat_completion_stream", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:google.generativeai as genai", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"google.generativeai as genai\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:module:google.ai", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"google.ai\",\"names\":[\"generativelanguage as glm\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:names:['generativelanguage as glm']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"google.ai\",\"names\":[\"generativelanguage as glm\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:module:google.generativeai.generative_models", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"google.generativeai.generative_models\",\"names\":[\"GenerativeModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:names:['GenerativeModel']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"google.generativeai.generative_models\",\"names\":[\"GenerativeModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:module:google.generativeai.types", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"google.generativeai.types\",\"names\":[\"content_types\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:names:['content_types']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"google.generativeai.types\",\"names\":[\"content_types\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:module:google.generativeai.types.generation_types", "target": "{\"lineno\":9,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"google.generativeai.types.generation_types\",\"names\":[\"AsyncGenerateContentResponse\",\"GenerateContentResponse\",\"GenerationConfig\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:names:['AsyncGenerateContentResponse', 'GenerateContentResponse', 'GenerationConfig']", "target": "{\"lineno\":9,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"google.generativeai.types.generation_types\",\"names\":[\"AsyncGenerateContentResponse\",\"GenerateContentResponse\",\"GenerationConfig\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:module:tenacity", "target": "{\"lineno\":14,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:names:['after_log', 'retry', 'retry_if_exception_type', 'stop_after_attempt', 'wait_random_exponential']", "target": "{\"lineno\":14,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:module:metagpt.config", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:names:['CONFIG', 'LLMProviderEnum']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:module:metagpt.logs", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"log_llm_stream\",\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:names:['log_llm_stream', 'logger']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"log_llm_stream\",\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:names:['BaseLLM']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:module:metagpt.provider.llm_provider_registry", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:names:['register_provider']", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:module:metagpt.provider.openai_api", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"log_and_reraise\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/google_gemini_api.py:names:['log_and_reraise']", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"log_and_reraise\"]}}"}, {"predicate": "is", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:_init_client", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/azure_openai_api.py:AzureOpenAILLM:_make_client_kwargs", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/provider/azure_openai_api.py:ast.Constant:\n@Time : 2023/5/5 23:08\n@Author : alexanderwu\n@File : openai.py\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation;\n Change cost control from global to company level.\n@Modified By: mashenquan, 2023/11/21. Fix bug: ReadTimeout.\n@Modified By: mashenquan, 2023/12/1. Fix bug: Unclosed connection caused by openai 0.x.\n", "target": "{\"lineno\":2,\"end_lineno\":10,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/5 23:08\\n@Author : alexanderwu\\n@File : openai.py\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation;\\n Change cost control from global to company level.\\n@Modified By: mashenquan, 2023/11/21. Fix bug: ReadTimeout.\\n@Modified By: mashenquan, 2023/12/1. Fix bug: Unclosed connection caused by openai 0.x.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/azure_openai_api.py:module:openai", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai\",\"names\":[\"AsyncAzureOpenAI\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/azure_openai_api.py:names:['AsyncAzureOpenAI']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai\",\"names\":[\"AsyncAzureOpenAI\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/azure_openai_api.py:module:openai._base_client", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai._base_client\",\"names\":[\"AsyncHttpxClientWrapper\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/azure_openai_api.py:names:['AsyncHttpxClientWrapper']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai._base_client\",\"names\":[\"AsyncHttpxClientWrapper\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/azure_openai_api.py:module:metagpt.config", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/azure_openai_api.py:names:['LLMProviderEnum']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/azure_openai_api.py:module:metagpt.provider.llm_provider_registry", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/azure_openai_api.py:names:['register_provider']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/azure_openai_api.py:module:metagpt.provider.openai_api", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/azure_openai_api.py:names:['OpenAILLM']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM\"]}}"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:__init_fireworks", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:_make_client_kwargs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:_update_costs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:FireworksLLM:_achat_completion_stream", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/fireworks_api.py:MODEL_GRADE_TOKEN_COSTS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:MODEL_GRADE_TOKEN_COSTS", "target": "{\"lineno\":24,\"end_lineno\":29,\"type_name\":\"ast.Assign\",\"tokens\":[\"MODEL_GRADE_TOKEN_COSTS\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:re", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:module:openai", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai\",\"names\":[\"APIConnectionError\",\"AsyncStream\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:names:['APIConnectionError', 'AsyncStream']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai\",\"names\":[\"APIConnectionError\",\"AsyncStream\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:module:openai.types", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types\",\"names\":[\"CompletionUsage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:names:['CompletionUsage']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types\",\"names\":[\"CompletionUsage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:module:openai.types.chat", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types.chat\",\"names\":[\"ChatCompletionChunk\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:names:['ChatCompletionChunk']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types.chat\",\"names\":[\"ChatCompletionChunk\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:module:tenacity", "target": "{\"lineno\":10,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:names:['after_log', 'retry', 'retry_if_exception_type', 'stop_after_attempt', 'wait_random_exponential']", "target": "{\"lineno\":10,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:module:metagpt.config", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"Config\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:names:['CONFIG', 'Config', 'LLMProviderEnum']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"Config\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:module:metagpt.logs", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:names:['logger']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:module:metagpt.provider.llm_provider_registry", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:names:['register_provider']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:module:metagpt.provider.openai_api", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM\",\"log_and_reraise\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:names:['OpenAILLM', 'log_and_reraise']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM\",\"log_and_reraise\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:module:metagpt.utils.cost_manager", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"CostManager\",\"Costs\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/fireworks_api.py:names:['CostManager', 'Costs']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"CostManager\",\"Costs\"]}}"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:__init_ollama", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:_const_kwargs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:_update_costs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:_decode_and_load", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:_achat_completion", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/ollama_api.py:OllamaLLM:_achat_completion_stream", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:json", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:module:requests", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"requests\",\"names\":[\"ConnectionError\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:names:['ConnectionError']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"requests\",\"names\":[\"ConnectionError\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:module:tenacity", "target": "{\"lineno\":8,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:names:['after_log', 'retry', 'retry_if_exception_type', 'stop_after_attempt', 'wait_random_exponential']", "target": "{\"lineno\":8,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:module:metagpt.config", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:names:['CONFIG', 'LLMProviderEnum']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:module:metagpt.const", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"LLM_API_TIMEOUT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:names:['LLM_API_TIMEOUT']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"LLM_API_TIMEOUT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:module:metagpt.logs", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"log_llm_stream\",\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:names:['log_llm_stream', 'logger']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"log_llm_stream\",\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:names:['BaseLLM']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:module:metagpt.provider.general_api_requestor", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.general_api_requestor\",\"names\":[\"GeneralAPIRequestor\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:names:['GeneralAPIRequestor']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.general_api_requestor\",\"names\":[\"GeneralAPIRequestor\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:module:metagpt.provider.llm_provider_registry", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:names:['register_provider']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:module:metagpt.provider.openai_api", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"log_and_reraise\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:names:['log_and_reraise']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"log_and_reraise\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:module:metagpt.utils.cost_manager", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"CostManager\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/ollama_api.py:names:['CostManager']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"CostManager\"]}}"}, {"predicate": "is", "source": "metagpt/provider/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/__init__.py", "target": "python"}, {"predicate": "is", "source": "metagpt/provider/__init__.py:__all__", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:__all__", "target": "{\"lineno\":18,\"end_lineno\":27,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:ast.Constant:\n@Time : 2023/5/5 22:59\n@Author : alexanderwu\n@File : __init__.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/5 22:59\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:module:metagpt.provider.fireworks_api", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.fireworks_api\",\"names\":[\"FireworksLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:names:['FireworksLLM']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.fireworks_api\",\"names\":[\"FireworksLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:module:metagpt.provider.google_gemini_api", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.google_gemini_api\",\"names\":[\"GeminiLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:names:['GeminiLLM']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.google_gemini_api\",\"names\":[\"GeminiLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:module:metagpt.provider.ollama_api", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.ollama_api\",\"names\":[\"OllamaLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:names:['OllamaLLM']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.ollama_api\",\"names\":[\"OllamaLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:module:metagpt.provider.open_llm_api", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.open_llm_api\",\"names\":[\"OpenLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:names:['OpenLLM']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.open_llm_api\",\"names\":[\"OpenLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:module:metagpt.provider.openai_api", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:names:['OpenAILLM']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:module:metagpt.provider.zhipuai_api", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.zhipuai_api\",\"names\":[\"ZhiPuAILLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:names:['ZhiPuAILLM']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.zhipuai_api\",\"names\":[\"ZhiPuAILLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:module:metagpt.provider.azure_openai_api", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.azure_openai_api\",\"names\":[\"AzureOpenAILLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:names:['AzureOpenAILLM']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.azure_openai_api\",\"names\":[\"AzureOpenAILLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:module:metagpt.provider.metagpt_api", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.metagpt_api\",\"names\":[\"MetaGPTLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/__init__.py:names:['MetaGPTLLM']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.metagpt_api\",\"names\":[\"MetaGPTLLM\"]}}"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_init_openai", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_init_client", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_make_client_kwargs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_get_proxy_params", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_achat_completion_stream", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_cons_kwargs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_achat_completion", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_func_configs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_achat_completion_function", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_process_message", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_calc_usage", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_update_costs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:OpenAILLM:_get_max_tokens", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/openai_api.py:log_and_reraise", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:log_and_reraise", "target": "{\"lineno\":42,\"end_lineno\":50,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"log_and_reraise\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:ast.Constant:\n@Time : 2023/5/5 23:08\n@Author : alexanderwu\n@File : openai.py\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for isolation;\n Change cost control from global to company level.\n@Modified By: mashenquan, 2023/11/21. Fix bug: ReadTimeout.\n@Modified By: mashenquan, 2023/12/1. Fix bug: Unclosed connection caused by openai 0.x.\n", "target": "{\"lineno\":2,\"end_lineno\":10,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/5 23:08\\n@Author : alexanderwu\\n@File : openai.py\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for isolation;\\n Change cost control from global to company level.\\n@Modified By: mashenquan, 2023/11/21. Fix bug: ReadTimeout.\\n@Modified By: mashenquan, 2023/12/1. Fix bug: Unclosed connection caused by openai 0.x.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:json", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:typing", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"AsyncIterator\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['AsyncIterator', 'Union']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"AsyncIterator\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:openai", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai\",\"names\":[\"APIConnectionError\",\"AsyncOpenAI\",\"AsyncStream\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['APIConnectionError', 'AsyncOpenAI', 'AsyncStream']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai\",\"names\":[\"APIConnectionError\",\"AsyncOpenAI\",\"AsyncStream\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:openai._base_client", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai._base_client\",\"names\":[\"AsyncHttpxClientWrapper\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['AsyncHttpxClientWrapper']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai._base_client\",\"names\":[\"AsyncHttpxClientWrapper\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:openai.types", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types\",\"names\":[\"CompletionUsage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['CompletionUsage']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types\",\"names\":[\"CompletionUsage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:openai.types.chat", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types.chat\",\"names\":[\"ChatCompletion\",\"ChatCompletionChunk\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['ChatCompletion', 'ChatCompletionChunk']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types.chat\",\"names\":[\"ChatCompletion\",\"ChatCompletionChunk\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:tenacity", "target": "{\"lineno\":19,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['after_log', 'retry', 'retry_if_exception_type', 'stop_after_attempt', 'wait_random_exponential']", "target": "{\"lineno\":19,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:metagpt.config", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"Config\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['CONFIG', 'Config', 'LLMProviderEnum']", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"Config\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:metagpt.logs", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"log_llm_stream\",\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['log_llm_stream', 'logger']", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"log_llm_stream\",\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['BaseLLM']", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:metagpt.provider.constant", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.constant\",\"names\":[\"GENERAL_FUNCTION_SCHEMA\",\"GENERAL_TOOL_CHOICE\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['GENERAL_FUNCTION_SCHEMA', 'GENERAL_TOOL_CHOICE']", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.constant\",\"names\":[\"GENERAL_FUNCTION_SCHEMA\",\"GENERAL_TOOL_CHOICE\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:metagpt.provider.llm_provider_registry", "target": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['register_provider']", "target": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:metagpt.schema", "target": "{\"lineno\":32,\"end_lineno\":32,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['Message']", "target": "{\"lineno\":32,\"end_lineno\":32,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:metagpt.utils.cost_manager", "target": "{\"lineno\":33,\"end_lineno\":33,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"Costs\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['Costs']", "target": "{\"lineno\":33,\"end_lineno\":33,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"Costs\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:metagpt.utils.exceptions", "target": "{\"lineno\":34,\"end_lineno\":34,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['handle_exception']", "target": "{\"lineno\":34,\"end_lineno\":34,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:module:metagpt.utils.token_counter", "target": "{\"lineno\":35,\"end_lineno\":39,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"count_message_tokens\",\"count_string_tokens\",\"get_max_completion_tokens\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/openai_api.py:names:['count_message_tokens', 'count_string_tokens', 'get_max_completion_tokens']", "target": "{\"lineno\":35,\"end_lineno\":39,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"count_message_tokens\",\"count_string_tokens\",\"get_max_completion_tokens\"]}}"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:SparkLLM:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:on_close", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/spark_api.py:GetMessageFromWeb:_run", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:ast.Constant:\n@File : spark_api.py\n", "target": "{\"lineno\":3,\"end_lineno\":5,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@File : spark_api.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:_thread as thread", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Import\",\"tokens\":[\"_thread as thread\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:base64", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:datetime", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"datetime\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:hashlib", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"hashlib\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:hmac", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"hmac\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:json", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:ssl", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"ssl\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:module:time", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"time\",\"names\":[\"mktime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:names:['mktime']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"time\",\"names\":[\"mktime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:module:urllib.parse", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urlencode\",\"urlparse\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:names:['urlencode', 'urlparse']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urlencode\",\"urlparse\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:module:wsgiref.handlers", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"wsgiref.handlers\",\"names\":[\"format_date_time\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:names:['format_date_time']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"wsgiref.handlers\",\"names\":[\"format_date_time\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:websocket", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Import\",\"tokens\":[\"websocket\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:module:metagpt.config", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:names:['CONFIG', 'LLMProviderEnum']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:module:metagpt.logs", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:names:['logger']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:names:['BaseLLM']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:module:metagpt.provider.llm_provider_registry", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/spark_api.py:names:['register_provider']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor:_interpret_response_line", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor:_interpret_response", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_requestor.py:GeneralAPIRequestor:_interpret_async_response", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_requestor.py:parse_stream_helper", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_requestor.py:parse_stream_helper", "target": "{\"lineno\":15,\"end_lineno\":28,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"parse_stream_helper\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_requestor.py:parse_stream", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_requestor.py:parse_stream", "target": "{\"lineno\":31,\"end_lineno\":35,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"parse_stream\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_requestor.py:asyncio", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_requestor.py:module:typing", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"AsyncGenerator\",\"Generator\",\"Iterator\",\"Tuple\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_requestor.py:names:['AsyncGenerator', 'Generator', 'Iterator', 'Tuple', 'Union']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"AsyncGenerator\",\"Generator\",\"Iterator\",\"Tuple\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_requestor.py:aiohttp", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_requestor.py:requests", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"requests\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_requestor.py:module:metagpt.logs", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_requestor.py:names:['logger']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_requestor.py:module:metagpt.provider.general_api_base", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.general_api_base\",\"names\":[\"APIRequestor\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_requestor.py:names:['APIRequestor']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.general_api_base\",\"names\":[\"APIRequestor\"]}}"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:_user_msg", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:_assistant_msg", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:_system_msg", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:_system_msgs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:_default_system_msg", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:_extract_assistant_rsp", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:acompletion", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/base_llm.py:BaseLLM:acompletion_text", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/provider/base_llm.py:ast.Constant:\n@Time : 2023/5/5 23:04\n@Author : alexanderwu\n@File : base_llm.py\n@Desc : mashenquan, 2023/8/22. + try catch\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/5 23:04\\n@Author : alexanderwu\\n@File : base_llm.py\\n@Desc : mashenquan, 2023/8/22. + try catch\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/base_llm.py:json", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/base_llm.py:module:abc", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\",\"abstractmethod\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/base_llm.py:names:['ABC', 'abstractmethod']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\",\"abstractmethod\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/base_llm.py:module:typing", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/base_llm.py:names:['Optional']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "is", "source": "metagpt/provider/constant.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/constant.py", "target": "python"}, {"predicate": "is", "source": "metagpt/provider/constant.py:GENERAL_FUNCTION_SCHEMA", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/provider/constant.py:GENERAL_FUNCTION_SCHEMA", "target": "{\"lineno\":3,\"end_lineno\":26,\"type_name\":\"ast.Assign\",\"tokens\":[\"GENERAL_FUNCTION_SCHEMA\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/constant.py:GENERAL_TOOL_CHOICE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/provider/constant.py:GENERAL_TOOL_CHOICE", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.Assign\",\"tokens\":[\"GENERAL_TOOL_CHOICE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:__init_zhipuai", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:_const_kwargs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:_update_costs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:_achat_completion", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/zhipuai_api.py:ZhiPuAILLM:_achat_completion_stream", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:json", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:module:enum", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:names:['Enum']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:openai", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"openai\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:zhipuai", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"zhipuai\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:module:requests", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"requests\",\"names\":[\"ConnectionError\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:names:['ConnectionError']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"requests\",\"names\":[\"ConnectionError\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:module:tenacity", "target": "{\"lineno\":11,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:names:['after_log', 'retry', 'retry_if_exception_type', 'stop_after_attempt', 'wait_random_exponential']", "target": "{\"lineno\":11,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"after_log\",\"retry\",\"retry_if_exception_type\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:module:metagpt.config", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:names:['CONFIG', 'LLMProviderEnum']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:module:metagpt.logs", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"log_llm_stream\",\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:names:['log_llm_stream', 'logger']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"log_llm_stream\",\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:names:['BaseLLM']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:module:metagpt.provider.llm_provider_registry", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:names:['register_provider']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:module:metagpt.provider.openai_api", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"log_and_reraise\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:names:['log_and_reraise']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"log_and_reraise\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:module:metagpt.provider.zhipuai.zhipu_model_api", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.zhipuai.zhipu_model_api\",\"names\":[\"ZhiPuModelAPI\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai_api.py:names:['ZhiPuModelAPI']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.zhipuai.zhipu_model_api\",\"names\":[\"ZhiPuModelAPI\"]}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:OpenAIResponse:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:request", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:arequest", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:_validate_headers", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:_prepare_request_raw", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:_interpret_response", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:_interpret_async_response", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:APIRequestor:_interpret_response_line", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:_console_log_level", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:_console_log_level", "target": "{\"lineno\":78,\"end_lineno\":82,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_console_log_level\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:log_debug", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:log_debug", "target": "{\"lineno\":85,\"end_lineno\":89,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"log_debug\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:log_info", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:log_info", "target": "{\"lineno\":92,\"end_lineno\":96,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"log_info\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:log_warn", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:log_warn", "target": "{\"lineno\":99,\"end_lineno\":102,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"log_warn\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:logfmt", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:logfmt", "target": "{\"lineno\":105,\"end_lineno\":120,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"logfmt\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:_build_api_url", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:_build_api_url", "target": "{\"lineno\":153,\"end_lineno\":159,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_build_api_url\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:_requests_proxies_arg", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:_requests_proxies_arg", "target": "{\"lineno\":162,\"end_lineno\":173,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_requests_proxies_arg\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:_aiohttp_proxies_arg", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:_aiohttp_proxies_arg", "target": "{\"lineno\":176,\"end_lineno\":187,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_aiohttp_proxies_arg\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:_make_session", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:_make_session", "target": "{\"lineno\":190,\"end_lineno\":196,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_make_session\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:parse_stream_helper", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:parse_stream_helper", "target": "{\"lineno\":199,\"end_lineno\":210,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"parse_stream_helper\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:parse_stream", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:parse_stream", "target": "{\"lineno\":213,\"end_lineno\":217,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"parse_stream\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:parse_stream_async", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:parse_stream_async", "target": "{\"lineno\":220,\"end_lineno\":224,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"parse_stream_async\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:aiohttp_session", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:aiohttp_session", "target": "{\"lineno\":620,\"end_lineno\":622,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"aiohttp_session\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:logger", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:logger", "target": "{\"lineno\":40,\"end_lineno\":40,\"type_name\":\"ast.Assign\",\"tokens\":[\"logger\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:TIMEOUT_SECS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:TIMEOUT_SECS", "target": "{\"lineno\":42,\"end_lineno\":42,\"type_name\":\"ast.Assign\",\"tokens\":[\"TIMEOUT_SECS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:MAX_SESSION_LIFETIME_SECS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:MAX_SESSION_LIFETIME_SECS", "target": "{\"lineno\":43,\"end_lineno\":43,\"type_name\":\"ast.Assign\",\"tokens\":[\"MAX_SESSION_LIFETIME_SECS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:MAX_CONNECTION_RETRIES", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:MAX_CONNECTION_RETRIES", "target": "{\"lineno\":44,\"end_lineno\":44,\"type_name\":\"ast.Assign\",\"tokens\":[\"MAX_CONNECTION_RETRIES\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:_thread_context", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:_thread_context", "target": "{\"lineno\":47,\"end_lineno\":47,\"type_name\":\"ast.Assign\",\"tokens\":[\"_thread_context\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:LLM_LOG", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:LLM_LOG", "target": "{\"lineno\":49,\"end_lineno\":49,\"type_name\":\"ast.Assign\",\"tokens\":[\"LLM_LOG\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/general_api_base.py:api_key_to_header", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:api_key_to_header", "target": "{\"lineno\":71,\"end_lineno\":75,\"type_name\":\"ast.Assign\",\"tokens\":[\"api_key_to_header\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:asyncio", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:json", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:os", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:platform", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"platform\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:re", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:sys", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"sys\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:threading", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"threading\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:time", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"time\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:module:contextlib", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"contextlib\",\"names\":[\"asynccontextmanager\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:names:['asynccontextmanager']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"contextlib\",\"names\":[\"asynccontextmanager\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:module:enum", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:names:['Enum']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:module:typing", "target": "{\"lineno\":15,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"AsyncGenerator\",\"AsyncIterator\",\"Dict\",\"Iterator\",\"Optional\",\"Tuple\",\"Union\",\"overload\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:names:['AsyncGenerator', 'AsyncIterator', 'Dict', 'Iterator', 'Optional', 'Tuple', 'Union', 'overload']", "target": "{\"lineno\":15,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"AsyncGenerator\",\"AsyncIterator\",\"Dict\",\"Iterator\",\"Optional\",\"Tuple\",\"Union\",\"overload\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:module:urllib.parse", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urlencode\",\"urlsplit\",\"urlunsplit\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:names:['urlencode', 'urlsplit', 'urlunsplit']", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urlencode\",\"urlsplit\",\"urlunsplit\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:aiohttp", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:requests", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.Import\",\"tokens\":[\"requests\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:sys.version_info", "target": "{\"lineno\":30,\"end_lineno\":33,\"type_name\":\"ast.If\",\"tokens\":[\"sys.version_info\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:logging", "target": "{\"lineno\":35,\"end_lineno\":35,\"type_name\":\"ast.Import\",\"tokens\":[\"logging\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:openai", "target": "{\"lineno\":37,\"end_lineno\":37,\"type_name\":\"ast.Import\",\"tokens\":[\"openai\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:module:openai", "target": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai\",\"names\":[\"version\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/general_api_base.py:names:['version']", "target": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai\",\"names\":[\"version\"]}}"}, {"predicate": "is", "source": "metagpt/provider/llm_provider_registry.py:LLMProviderRegistry:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/llm_provider_registry.py:register_provider", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/llm_provider_registry.py:register_provider", "target": "{\"lineno\":27,\"end_lineno\":34,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"register_provider\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/provider/llm_provider_registry.py:LLM_REGISTRY", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/provider/llm_provider_registry.py:LLM_REGISTRY", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.Assign\",\"tokens\":[\"LLM_REGISTRY\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/llm_provider_registry.py:ast.Constant:\n@Time : 2023/12/19 17:26\n@Author : alexanderwu\n@File : llm_provider_registry.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/19 17:26\\n@Author : alexanderwu\\n@File : llm_provider_registry.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/llm_provider_registry.py:module:metagpt.config", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/llm_provider_registry.py:names:['LLMProviderEnum']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"LLMProviderEnum\"]}}"}, {"predicate": "is", "source": "metagpt/provider/metagpt_api.py:MetaGPTLLM:__init__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/provider/metagpt_api.py:ast.Constant:\n@Time : 2023/5/5 23:08\n@Author : alexanderwu\n@File : metagpt_api.py\n@Desc : MetaGPT LLM provider.\n", "target": "{\"lineno\":2,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/5 23:08\\n@Author : alexanderwu\\n@File : metagpt_api.py\\n@Desc : MetaGPT LLM provider.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/metagpt_api.py:module:metagpt.config", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/metagpt_api.py:names:['LLMProviderEnum']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/metagpt_api.py:module:metagpt.provider", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider\",\"names\":[\"OpenAILLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/metagpt_api.py:names:['OpenAILLM']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider\",\"names\":[\"OpenAILLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/metagpt_api.py:module:metagpt.provider.llm_provider_registry", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/metagpt_api.py:names:['register_provider']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLM:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLM:__init_openllm", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLM:_make_client_kwargs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLM:_calc_usage", "target": "class_function"}, {"predicate": "is", "source": "metagpt/provider/open_llm_api.py:OpenLLM:_update_costs", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:module:openai.types", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types\",\"names\":[\"CompletionUsage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:names:['CompletionUsage']", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"openai.types\",\"names\":[\"CompletionUsage\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:module:metagpt.config", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"Config\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:names:['CONFIG', 'Config', 'LLMProviderEnum']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"Config\",\"LLMProviderEnum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:module:metagpt.logs", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:names:['logger']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:module:metagpt.provider.llm_provider_registry", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:names:['register_provider']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.llm_provider_registry\",\"names\":[\"register_provider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:module:metagpt.provider.openai_api", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:names:['OpenAILLM']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.openai_api\",\"names\":[\"OpenAILLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:module:metagpt.utils.cost_manager", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"CostManager\",\"Costs\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:names:['CostManager', 'Costs']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.cost_manager\",\"names\":[\"CostManager\",\"Costs\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:module:metagpt.utils.token_counter", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"count_message_tokens\",\"count_string_tokens\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/open_llm_api.py:names:['count_message_tokens', 'count_string_tokens']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"count_message_tokens\",\"count_string_tokens\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/human_provider.py:ast.Constant:\nFilename: MetaGPT/metagpt/provider/human_provider.py\nCreated Date: Wednesday, November 8th 2023, 11:55:46 pm\nAuthor: garylin2099\n", "target": "{\"lineno\":1,\"end_lineno\":5,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\nFilename: MetaGPT/metagpt/provider/human_provider.py\\nCreated Date: Wednesday, November 8th 2023, 11:55:46 pm\\nAuthor: garylin2099\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/human_provider.py:module:typing", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/human_provider.py:names:['Optional']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/human_provider.py:module:metagpt.logs", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/human_provider.py:names:['logger']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/human_provider.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/human_provider.py:names:['BaseLLM']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/async_sse_client.py:AsyncSSEClient:_aread", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/async_sse_client.py:module:zhipuai.utils.sse_client", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"zhipuai.utils.sse_client\",\"names\":[\"_FIELD_SEPARATOR\",\"Event\",\"SSEClient\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/async_sse_client.py:names:['_FIELD_SEPARATOR', 'Event', 'SSEClient']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"zhipuai.utils.sse_client\",\"names\":[\"_FIELD_SEPARATOR\",\"Event\",\"SSEClient\"]}}"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/zhipuai/__init__.py", "target": "python"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:json", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:zhipuai", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"zhipuai\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:module:zhipuai.model_api.api", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"zhipuai.model_api.api\",\"names\":[\"InvokeType\",\"ModelAPI\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:names:['InvokeType', 'ModelAPI']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"zhipuai.model_api.api\",\"names\":[\"InvokeType\",\"ModelAPI\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:module:zhipuai.utils.http_client", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"zhipuai.utils.http_client\",\"names\":[\"headers as zhipuai_default_headers\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:names:['headers as zhipuai_default_headers']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"zhipuai.utils.http_client\",\"names\":[\"headers as zhipuai_default_headers\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:module:metagpt.provider.general_api_requestor", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.general_api_requestor\",\"names\":[\"GeneralAPIRequestor\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:names:['GeneralAPIRequestor']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.general_api_requestor\",\"names\":[\"GeneralAPIRequestor\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:module:metagpt.provider.zhipuai.async_sse_client", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.zhipuai.async_sse_client\",\"names\":[\"AsyncSSEClient\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/zhipuai/zhipu_model_api.py:names:['AsyncSSEClient']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.zhipuai.async_sse_client\",\"names\":[\"AsyncSSEClient\"]}}"}, {"predicate": "is", "source": "metagpt/provider/postprocess/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/postprocess/__init__.py", "target": "python"}, {"predicate": "has_page_info", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:module:typing", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:names:['Union']", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:module:metagpt.utils.repair_llm_raw_output", "target": "{\"lineno\":7,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.repair_llm_raw_output\",\"names\":[\"RepairType\",\"extract_content_from_output\",\"repair_llm_raw_output\",\"retry_parse_json_text\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/postprocess/base_postprocess_plugin.py:names:['RepairType', 'extract_content_from_output', 'repair_llm_raw_output', 'retry_parse_json_text']", "target": "{\"lineno\":7,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.repair_llm_raw_output\",\"names\":[\"RepairType\",\"extract_content_from_output\",\"repair_llm_raw_output\",\"retry_parse_json_text\"]}}"}, {"predicate": "is", "source": "metagpt/provider/postprocess/llm_output_postprocess.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/provider/postprocess/llm_output_postprocess.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/provider/postprocess/llm_output_postprocess.py", "target": "metagpt/provider/postprocess/llm_output_postprocess.py:llm_output_postprocess"}, {"predicate": "is", "source": "metagpt/provider/postprocess/llm_output_postprocess.py:llm_output_postprocess", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/provider/postprocess/llm_output_postprocess.py:llm_output_postprocess", "target": "{\"lineno\":10,\"end_lineno\":20,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"llm_output_postprocess\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/postprocess/llm_output_postprocess.py:module:typing", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/postprocess/llm_output_postprocess.py:names:['Union']", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/postprocess/llm_output_postprocess.py:module:metagpt.provider.postprocess.base_postprocess_plugin", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.postprocess.base_postprocess_plugin\",\"names\":[\"BasePostProcessPlugin\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/provider/postprocess/llm_output_postprocess.py:names:['BasePostProcessPlugin']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.postprocess.base_postprocess_plugin\",\"names\":[\"BasePostProcessPlugin\"]}}"}, {"predicate": "is", "source": "metagpt/management/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/management/__init__.py", "target": "python"}, {"predicate": "has_page_info", "source": "metagpt/management/__init__.py:ast.Constant:\n@Time : 2023/4/30 20:58\n@Author : alexanderwu\n@File : __init__.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/30 20:58\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/management/skill_manager.py:SkillManager:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/management/skill_manager.py:Skill", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/management/skill_manager.py:Skill", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.Assign\",\"tokens\":[\"Skill\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/management/skill_manager.py:ast.Constant:\n@Time : 2023/6/5 01:44\n@Author : alexanderwu\n@File : skill_manager.py\n@Modified By: mashenquan, 2023/8/20. Remove useless `llm`\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/6/5 01:44\\n@Author : alexanderwu\\n@File : skill_manager.py\\n@Modified By: mashenquan, 2023/8/20. Remove useless `llm`\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/management/skill_manager.py:module:metagpt.actions", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/management/skill_manager.py:names:['Action']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/management/skill_manager.py:module:metagpt.const", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"PROMPT_PATH\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/management/skill_manager.py:names:['PROMPT_PATH']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"PROMPT_PATH\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/management/skill_manager.py:module:metagpt.document_store.chromadb_store", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.chromadb_store\",\"names\":[\"ChromaStore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/management/skill_manager.py:names:['ChromaStore']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.chromadb_store\",\"names\":[\"ChromaStore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/management/skill_manager.py:module:metagpt.logs", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/management/skill_manager.py:names:['logger']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/management/skill_manager.py:__name__:__main__", "target": "{\"lineno\":77,\"end_lineno\":79,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:_parse_tasks", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:_act_sp_with_cr", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:_act", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:_act_write_code", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:_act_summarize", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:_is_pass", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:_think", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:_new_coding_context", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:_new_coding_doc", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:_new_code_actions", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:Engineer:_new_summarize_actions", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/engineer.py:IS_PASS_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:IS_PASS_PROMPT", "target": "{\"lineno\":48,\"end_lineno\":55,\"type_name\":\"ast.Assign\",\"tokens\":[\"IS_PASS_PROMPT\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:ast.Constant:\n@Time : 2023/5/11 14:43\n@Author : alexanderwu\n@File : engineer.py\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116:\n 1. Modify the data type of the `cause_by` value in the `Message` to a string, and utilize the new message\n distribution feature for message filtering.\n 2. Consolidate message reception and processing logic within `_observe`.\n 3. Fix bug: Add logic for handling asynchronous message processing when messages are not ready.\n 4. Supplemented the external transmission of internal messages.\n@Modified By: mashenquan, 2023-11-27.\n 1. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\n 2. According to the design in Section 2.2.3.5.5 of RFC 135, add incremental iteration functionality.\n@Modified By: mashenquan, 2023-12-5. Enhance the workflow to navigate to WriteCode or QaEngineer based on the results\n of SummarizeCode.\n", "target": "{\"lineno\":3,\"end_lineno\":18,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:43\\n@Author : alexanderwu\\n@File : engineer.py\\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116:\\n 1. Modify the data type of the `cause_by` value in the `Message` to a string, and utilize the new message\\n distribution feature for message filtering.\\n 2. Consolidate message reception and processing logic within `_observe`.\\n 3. Fix bug: Add logic for handling asynchronous message processing when messages are not ready.\\n 4. Supplemented the external transmission of internal messages.\\n@Modified By: mashenquan, 2023-11-27.\\n 1. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\\n 2. According to the design in Section 2.2.3.5.5 of RFC 135, add incremental iteration functionality.\\n@Modified By: mashenquan, 2023-12-5. Enhance the workflow to navigate to WriteCode or QaEngineer based on the results\\n of SummarizeCode.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:__future__", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['annotations']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:json", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:collections", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"collections\",\"names\":[\"defaultdict\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['defaultdict']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"collections\",\"names\":[\"defaultdict\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:pathlib", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['Path']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:typing", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Set\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['Set']", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Set\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:metagpt.actions", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"WriteCode\",\"WriteCodeReview\",\"WriteTasks\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['Action', 'WriteCode', 'WriteCodeReview', 'WriteTasks']", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"WriteCode\",\"WriteCodeReview\",\"WriteTasks\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:metagpt.actions.fix_bug", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.fix_bug\",\"names\":[\"FixBug\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['FixBug']", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.fix_bug\",\"names\":[\"FixBug\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:metagpt.actions.summarize_code", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.summarize_code\",\"names\":[\"SummarizeCode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['SummarizeCode']", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.summarize_code\",\"names\":[\"SummarizeCode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:metagpt.config", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['CONFIG']", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:metagpt.const", "target": "{\"lineno\":31,\"end_lineno\":36,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"CODE_SUMMARIES_FILE_REPO\",\"CODE_SUMMARIES_PDF_FILE_REPO\",\"SYSTEM_DESIGN_FILE_REPO\",\"TASK_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['CODE_SUMMARIES_FILE_REPO', 'CODE_SUMMARIES_PDF_FILE_REPO', 'SYSTEM_DESIGN_FILE_REPO', 'TASK_FILE_REPO']", "target": "{\"lineno\":31,\"end_lineno\":36,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"CODE_SUMMARIES_FILE_REPO\",\"CODE_SUMMARIES_PDF_FILE_REPO\",\"SYSTEM_DESIGN_FILE_REPO\",\"TASK_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:metagpt.logs", "target": "{\"lineno\":37,\"end_lineno\":37,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['logger']", "target": "{\"lineno\":37,\"end_lineno\":37,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:metagpt.roles", "target": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['Role']", "target": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:metagpt.schema", "target": "{\"lineno\":39,\"end_lineno\":45,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodeSummarizeContext\",\"CodingContext\",\"Document\",\"Documents\",\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['CodeSummarizeContext', 'CodingContext', 'Document', 'Documents', 'Message']", "target": "{\"lineno\":39,\"end_lineno\":45,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodeSummarizeContext\",\"CodingContext\",\"Document\",\"Documents\",\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:module:metagpt.utils.common", "target": "{\"lineno\":46,\"end_lineno\":46,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_name\",\"any_to_str\",\"any_to_str_set\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/engineer.py:names:['any_to_name', 'any_to_str', 'any_to_str_set']", "target": "{\"lineno\":46,\"end_lineno\":46,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_name\",\"any_to_str\",\"any_to_str_set\"]}}"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer:_write_test", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer:_run_code", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer:_debug_error", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer:_act", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/qa_engineer.py:QaEngineer:_observe", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:ast.Constant:\n@Time : 2023/5/11 14:43\n@Author : alexanderwu\n@File : qa_engineer.py\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116, modify the data\n type of the `cause_by` value in the `Message` to a string, and utilize the new message filtering feature.\n@Modified By: mashenquan, 2023-11-27.\n 1. Following the think-act principle, solidify the task parameters when creating the\n WriteTest/RunCode/DebugError object, rather than passing them in when calling the run function.\n 2. According to Section 2.2.3.5.7 of RFC 135, change the method of transferring files from using the Message\n to using file references.\n@Modified By: mashenquan, 2023-12-5. Enhance the workflow to navigate to WriteCode or QaEngineer based on the results\n of SummarizeCode.\n", "target": "{\"lineno\":3,\"end_lineno\":16,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:43\\n@Author : alexanderwu\\n@File : qa_engineer.py\\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116, modify the data\\n type of the `cause_by` value in the `Message` to a string, and utilize the new message filtering feature.\\n@Modified By: mashenquan, 2023-11-27.\\n 1. Following the think-act principle, solidify the task parameters when creating the\\n WriteTest/RunCode/DebugError object, rather than passing them in when calling the run function.\\n 2. According to Section 2.2.3.5.7 of RFC 135, change the method of transferring files from using the Message\\n to using file references.\\n@Modified By: mashenquan, 2023-12-5. Enhance the workflow to navigate to WriteCode or QaEngineer based on the results\\n of SummarizeCode.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:module:metagpt.actions", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"DebugError\",\"RunCode\",\"WriteTest\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:names:['DebugError', 'RunCode', 'WriteTest']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"DebugError\",\"RunCode\",\"WriteTest\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:module:metagpt.actions.summarize_code", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.summarize_code\",\"names\":[\"SummarizeCode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:names:['SummarizeCode']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.summarize_code\",\"names\":[\"SummarizeCode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:module:metagpt.config", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:names:['CONFIG']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:module:metagpt.const", "target": "{\"lineno\":22,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"MESSAGE_ROUTE_TO_NONE\",\"TEST_CODES_FILE_REPO\",\"TEST_OUTPUTS_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:names:['MESSAGE_ROUTE_TO_NONE', 'TEST_CODES_FILE_REPO', 'TEST_OUTPUTS_FILE_REPO']", "target": "{\"lineno\":22,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"MESSAGE_ROUTE_TO_NONE\",\"TEST_CODES_FILE_REPO\",\"TEST_OUTPUTS_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:module:metagpt.logs", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:names:['logger']", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:module:metagpt.roles", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:names:['Role']", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:module:metagpt.schema", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\",\"Message\",\"RunCodeContext\",\"TestingContext\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:names:['Document', 'Message', 'RunCodeContext', 'TestingContext']", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\",\"Message\",\"RunCodeContext\",\"TestingContext\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:module:metagpt.utils.common", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str_set\",\"parse_recipient\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:names:['any_to_str_set', 'parse_recipient']", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str_set\",\"parse_recipient\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:module:metagpt.utils.file_repository", "target": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/qa_engineer.py:names:['FileRepository']", "target": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher:_think", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/teacher.py:Teacher:_react", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:ast.Constant:\n@Time : 2023/7/27\n@Author : mashenquan\n@File : teacher.py\n@Desc : Used by Agent Store\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false indicates that further reasoning cannot continue.\n\n", "target": "{\"lineno\":3,\"end_lineno\":10,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/7/27\\n@Author : mashenquan\\n@File : teacher.py\\n@Desc : Used by Agent Store\\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false indicates that further reasoning cannot continue.\\n\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:re", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:aiofiles", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:module:metagpt.actions", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"UserRequirement\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:names:['UserRequirement']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"UserRequirement\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:module:metagpt.actions.write_teaching_plan", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_teaching_plan\",\"names\":[\"TeachingPlanBlock\",\"WriteTeachingPlanPart\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:names:['TeachingPlanBlock', 'WriteTeachingPlanPart']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_teaching_plan\",\"names\":[\"TeachingPlanBlock\",\"WriteTeachingPlanPart\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:module:metagpt.config", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:names:['CONFIG']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:module:metagpt.logs", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:names:['logger']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:module:metagpt.roles", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:names:['Role']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:module:metagpt.schema", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:names:['Message']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:module:metagpt.utils.common", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/teacher.py:names:['any_to_str']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_str\"]}}"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py:ProductManager:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py:ProductManager:_think", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/product_manager.py:ProductManager:_observe", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/roles/product_manager.py:ast.Constant:\n@Time : 2023/5/11 14:43\n@Author : alexanderwu\n@File : product_manager.py\n@Modified By: mashenquan, 2023/11/27. Add `PrepareDocuments` action according to Section 2.2.3.5.1 of RFC 135.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:43\\n@Author : alexanderwu\\n@File : product_manager.py\\n@Modified By: mashenquan, 2023/11/27. Add `PrepareDocuments` action according to Section 2.2.3.5.1 of RFC 135.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/product_manager.py:module:metagpt.actions", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"UserRequirement\",\"WritePRD\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/product_manager.py:names:['UserRequirement', 'WritePRD']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"UserRequirement\",\"WritePRD\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/product_manager.py:module:metagpt.actions.prepare_documents", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.prepare_documents\",\"names\":[\"PrepareDocuments\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/product_manager.py:names:['PrepareDocuments']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.prepare_documents\",\"names\":[\"PrepareDocuments\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/product_manager.py:module:metagpt.config", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/product_manager.py:names:['CONFIG']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/product_manager.py:module:metagpt.roles.role", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/product_manager.py:names:['Role']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/product_manager.py:module:metagpt.utils.common", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_name\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/product_manager.py:names:['any_to_name']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_name\"]}}"}, {"predicate": "is", "source": "metagpt/roles/sales.py:Sales:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/sales.py:Sales:_set_store", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:ast.Constant:\n@Time : 2023/5/25 17:21\n@Author : alexanderwu\n@File : sales.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/25 17:21\\n@Author : alexanderwu\\n@File : sales.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:module:typing", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:names:['Optional']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:module:pydantic", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:names:['Field']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:module:metagpt.actions", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"SearchAndSummarize\",\"UserRequirement\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:names:['SearchAndSummarize', 'UserRequirement']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"SearchAndSummarize\",\"UserRequirement\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:module:metagpt.document_store.base_store", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.base_store\",\"names\":[\"BaseStore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:names:['BaseStore']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.base_store\",\"names\":[\"BaseStore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:module:metagpt.roles", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:names:['Role']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:module:metagpt.tools", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sales.py:names:['SearchEngineType']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\"]}}"}, {"predicate": "is", "source": "metagpt/roles/searcher.py:Searcher:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/searcher.py:Searcher:_act_sp", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/searcher.py:Searcher:_act", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:ast.Constant:\n@Time : 2023/5/23 17:25\n@Author : alexanderwu\n@File : searcher.py\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116, change the data type of\n the `cause_by` value in the `Message` to a string to support the new message distribution feature.\n", "target": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/23 17:25\\n@Author : alexanderwu\\n@File : searcher.py\\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116, change the data type of\\n the `cause_by` value in the `Message` to a string to support the new message distribution feature.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:module:pydantic", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:names:['Field']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:module:metagpt.actions", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"ActionOutput\",\"SearchAndSummarize\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:names:['ActionOutput', 'SearchAndSummarize']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"ActionOutput\",\"SearchAndSummarize\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:module:metagpt.actions.action_node", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:names:['ActionNode']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:module:metagpt.logs", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:names:['logger']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:module:metagpt.roles", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:names:['Role']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:module:metagpt.schema", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:names:['Message']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:module:metagpt.tools", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/searcher.py:names:['SearchEngineType']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\"]}}"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/assistant.py:Assistant:_plan", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:ast.Constant:\n@Time : 2023/8/7\n@Author : mashenquan\n@File : assistant.py\n@Desc : I am attempting to incorporate certain symbol concepts from UML into MetaGPT, enabling it to have the\n ability to freely construct flows through symbol concatenation. Simultaneously, I am also striving to\n make these symbols configurable and standardized, making the process of building flows more convenient.\n For more about `fork` node in activity diagrams, see: `https://www.uml-diagrams.org/activity-diagrams.html`\n This file defines a `fork` style meta role capable of generating arbitrary roles at runtime based on a\n configuration file.\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false\n indicates that further reasoning cannot continue.\n\n", "target": "{\"lineno\":3,\"end_lineno\":16,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/7\\n@Author : mashenquan\\n@File : assistant.py\\n@Desc : I am attempting to incorporate certain symbol concepts from UML into MetaGPT, enabling it to have the\\n ability to freely construct flows through symbol concatenation. Simultaneously, I am also striving to\\n make these symbols configurable and standardized, making the process of building flows more convenient.\\n For more about `fork` node in activity diagrams, see: `https://www.uml-diagrams.org/activity-diagrams.html`\\n This file defines a `fork` style meta role capable of generating arbitrary roles at runtime based on a\\n configuration file.\\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false\\n indicates that further reasoning cannot continue.\\n\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:module:enum", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:names:['Enum']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:module:pathlib", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:names:['Path']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:module:typing", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:names:['Optional']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:module:pydantic", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:names:['Field']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:module:metagpt.actions.skill_action", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.skill_action\",\"names\":[\"ArgumentsParingAction\",\"SkillAction\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:names:['ArgumentsParingAction', 'SkillAction']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.skill_action\",\"names\":[\"ArgumentsParingAction\",\"SkillAction\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:module:metagpt.actions.talk_action", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.talk_action\",\"names\":[\"TalkAction\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:names:['TalkAction']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.talk_action\",\"names\":[\"TalkAction\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:module:metagpt.config", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:names:['CONFIG']", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:module:metagpt.learn.skill_loader", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.skill_loader\",\"names\":[\"SkillsDeclaration\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:names:['SkillsDeclaration']", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.skill_loader\",\"names\":[\"SkillsDeclaration\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:module:metagpt.logs", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:names:['logger']", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:module:metagpt.memory.brain_memory", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory.brain_memory\",\"names\":[\"BrainMemory\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:names:['BrainMemory']", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory.brain_memory\",\"names\":[\"BrainMemory\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:module:metagpt.roles", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:names:['Role']", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:module:metagpt.schema", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/assistant.py:names:['Message']", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "is", "source": "metagpt/roles/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/roles/__init__.py", "target": "python"}, {"predicate": "is", "source": "metagpt/roles/__init__.py:__all__", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:__all__", "target": "{\"lineno\":20,\"end_lineno\":30,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:ast.Constant:\n@Time : 2023/5/11 14:43\n@Author : alexanderwu\n@File : __init__.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:43\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:module:metagpt.roles.role", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:names:['Role']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:module:metagpt.roles.architect", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.architect\",\"names\":[\"Architect\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:names:['Architect']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.architect\",\"names\":[\"Architect\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:module:metagpt.roles.project_manager", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.project_manager\",\"names\":[\"ProjectManager\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:names:['ProjectManager']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.project_manager\",\"names\":[\"ProjectManager\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:module:metagpt.roles.product_manager", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.product_manager\",\"names\":[\"ProductManager\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:names:['ProductManager']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.product_manager\",\"names\":[\"ProductManager\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:module:metagpt.roles.engineer", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.engineer\",\"names\":[\"Engineer\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:names:['Engineer']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.engineer\",\"names\":[\"Engineer\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:module:metagpt.roles.qa_engineer", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.qa_engineer\",\"names\":[\"QaEngineer\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:names:['QaEngineer']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.qa_engineer\",\"names\":[\"QaEngineer\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:module:metagpt.roles.searcher", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.searcher\",\"names\":[\"Searcher\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:names:['Searcher']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.searcher\",\"names\":[\"Searcher\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:module:metagpt.roles.sales", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.sales\",\"names\":[\"Sales\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:names:['Sales']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.sales\",\"names\":[\"Sales\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:module:metagpt.roles.customer_service", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.customer_service\",\"names\":[\"CustomerService\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/__init__.py:names:['CustomerService']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.customer_service\",\"names\":[\"CustomerService\"]}}"}, {"predicate": "is", "source": "metagpt/roles/role.py:RoleContext:check", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_reset", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_setting", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_init_action_system_message", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_init_actions", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_set_react_mode", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_watch", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_set_state", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_get_prefix", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_think", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_act", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_observe", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_react", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_act_by_order", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:Role:_plan_and_act", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/role.py:PREFIX_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:PREFIX_TEMPLATE", "target": "{\"lineno\":50,\"end_lineno\":50,\"type_name\":\"ast.Assign\",\"tokens\":[\"PREFIX_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/roles/role.py:CONSTRAINT_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:CONSTRAINT_TEMPLATE", "target": "{\"lineno\":51,\"end_lineno\":51,\"type_name\":\"ast.Assign\",\"tokens\":[\"CONSTRAINT_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/roles/role.py:STATE_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:STATE_TEMPLATE", "target": "{\"lineno\":53,\"end_lineno\":68,\"type_name\":\"ast.Assign\",\"tokens\":[\"STATE_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/roles/role.py:ROLE_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:ROLE_TEMPLATE", "target": "{\"lineno\":70,\"end_lineno\":78,\"type_name\":\"ast.Assign\",\"tokens\":[\"ROLE_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:ast.Constant:\n@Time : 2023/5/11 14:42\n@Author : alexanderwu\n@File : role.py\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false indicates that further reasoning cannot continue.\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116:\n 1. Merge the `recv` functionality into the `_observe` function. Future message reading operations will be\n consolidated within the `_observe` function.\n 2. Standardize the message filtering for string label matching. Role objects can access the message labels\n they've subscribed to through the `subscribed_tags` property.\n 3. Move the message receive buffer from the global variable `self.rc.env.memory` to the role's private variable\n `self.rc.msg_buffer` for easier message identification and asynchronous appending of messages.\n 4. Standardize the way messages are passed: `publish_message` sends messages out, while `put_message` places\n messages into the Role object's private message receive buffer. There are no other message transmit methods.\n 5. Standardize the parameters for the `run` function: the `test_message` parameter is used for testing purposes\n only. In the normal workflow, you should use `publish_message` or `put_message` to transmit messages.\n@Modified By: mashenquan, 2023-11-4. According to the routing feature plan in Chapter 2.2.3.2 of RFC 113, the routing\n functionality is to be consolidated into the `Environment` class.\n", "target": "{\"lineno\":3,\"end_lineno\":21,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:42\\n@Author : alexanderwu\\n@File : role.py\\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false indicates that further reasoning cannot continue.\\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116:\\n 1. Merge the `recv` functionality into the `_observe` function. Future message reading operations will be\\n consolidated within the `_observe` function.\\n 2. Standardize the message filtering for string label matching. Role objects can access the message labels\\n they've subscribed to through the `subscribed_tags` property.\\n 3. Move the message receive buffer from the global variable `self.rc.env.memory` to the role's private variable\\n `self.rc.msg_buffer` for easier message identification and asynchronous appending of messages.\\n 4. Standardize the way messages are passed: `publish_message` sends messages out, while `put_message` places\\n messages into the Role object's private message receive buffer. There are no other message transmit methods.\\n 5. Standardize the parameters for the `run` function: the `test_message` parameter is used for testing purposes\\n only. In the normal workflow, you should use `publish_message` or `put_message` to transmit messages.\\n@Modified By: mashenquan, 2023-11-4. According to the routing feature plan in Chapter 2.2.3.2 of RFC 113, the routing\\n functionality is to be consolidated into the `Environment` class.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:__future__", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['annotations']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:enum", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['Enum']", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:pathlib", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['Path']", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:typing", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Iterable\",\"Optional\",\"Set\",\"Type\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['Any', 'Iterable', 'Optional', 'Set', 'Type']", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Iterable\",\"Optional\",\"Set\",\"Type\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:pydantic", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"SerializeAsAny\",\"model_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['BaseModel', 'ConfigDict', 'Field', 'SerializeAsAny', 'model_validator']", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\",\"SerializeAsAny\",\"model_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:metagpt.actions", "target": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"ActionOutput\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['Action', 'ActionOutput']", "target": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"ActionOutput\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:metagpt.actions.action_node", "target": "{\"lineno\":32,\"end_lineno\":32,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['ActionNode']", "target": "{\"lineno\":32,\"end_lineno\":32,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:metagpt.actions.add_requirement", "target": "{\"lineno\":33,\"end_lineno\":33,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.add_requirement\",\"names\":[\"UserRequirement\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['UserRequirement']", "target": "{\"lineno\":33,\"end_lineno\":33,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.add_requirement\",\"names\":[\"UserRequirement\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:metagpt.const", "target": "{\"lineno\":34,\"end_lineno\":34,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"SERDESER_PATH\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['SERDESER_PATH']", "target": "{\"lineno\":34,\"end_lineno\":34,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"SERDESER_PATH\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:metagpt.llm", "target": "{\"lineno\":35,\"end_lineno\":35,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\",\"HumanProvider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['LLM', 'HumanProvider']", "target": "{\"lineno\":35,\"end_lineno\":35,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\",\"HumanProvider\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:metagpt.logs", "target": "{\"lineno\":36,\"end_lineno\":36,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['logger']", "target": "{\"lineno\":36,\"end_lineno\":36,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:metagpt.memory", "target": "{\"lineno\":37,\"end_lineno\":37,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory\",\"names\":[\"Memory\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['Memory']", "target": "{\"lineno\":37,\"end_lineno\":37,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.memory\",\"names\":[\"Memory\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['BaseLLM']", "target": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:metagpt.schema", "target": "{\"lineno\":39,\"end_lineno\":39,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\",\"MessageQueue\",\"SerializationMixin\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['Message', 'MessageQueue', 'SerializationMixin']", "target": "{\"lineno\":39,\"end_lineno\":39,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\",\"MessageQueue\",\"SerializationMixin\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:metagpt.utils.common", "target": "{\"lineno\":40,\"end_lineno\":47,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_name\",\"any_to_str\",\"import_class\",\"read_json_file\",\"role_raise_decorator\",\"write_json_file\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['any_to_name', 'any_to_str', 'import_class', 'read_json_file', 'role_raise_decorator', 'write_json_file']", "target": "{\"lineno\":40,\"end_lineno\":47,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"any_to_name\",\"any_to_str\",\"import_class\",\"read_json_file\",\"role_raise_decorator\",\"write_json_file\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:module:metagpt.utils.repair_llm_raw_output", "target": "{\"lineno\":48,\"end_lineno\":48,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.repair_llm_raw_output\",\"names\":[\"extract_state_value_from_output\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/role.py:names:['extract_state_value_from_output']", "target": "{\"lineno\":48,\"end_lineno\":48,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.repair_llm_raw_output\",\"names\":[\"extract_state_value_from_output\"]}}"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/invoice_ocr_assistant.py:InvoiceOCRAssistant:_act", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:ast.Constant:\n@Time : 2023/9/21 14:10:05\n@Author : Stitch-z\n@File : invoice_ocr_assistant.py\n", "target": "{\"lineno\":4,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/21 14:10:05\\n@Author : Stitch-z\\n@File : invoice_ocr_assistant.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:json", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:module:pathlib", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:names:['Path']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:module:typing", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:names:['Optional']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:pandas as pd", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.Import\",\"tokens\":[\"pandas as pd\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:module:pydantic", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:names:['BaseModel']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:module:metagpt.actions.invoice_ocr", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.invoice_ocr\",\"names\":[\"GenerateTable\",\"InvoiceOCR\",\"ReplyQuestion\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:names:['GenerateTable', 'InvoiceOCR', 'ReplyQuestion']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.invoice_ocr\",\"names\":[\"GenerateTable\",\"InvoiceOCR\",\"ReplyQuestion\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:module:metagpt.prompts.invoice_ocr", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.prompts.invoice_ocr\",\"names\":[\"INVOICE_OCR_SUCCESS\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:names:['INVOICE_OCR_SUCCESS']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.prompts.invoice_ocr\",\"names\":[\"INVOICE_OCR_SUCCESS\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:module:metagpt.roles.role", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\",\"RoleReactMode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:names:['Role', 'RoleReactMode']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\",\"RoleReactMode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:module:metagpt.schema", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/invoice_ocr_assistant.py:names:['Message']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "is", "source": "metagpt/roles/architect.py:Architect:__init__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/roles/architect.py:ast.Constant:\n@Time : 2023/5/11 14:43\n@Author : alexanderwu\n@File : architect.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:43\\n@Author : alexanderwu\\n@File : architect.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/architect.py:module:metagpt.actions", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"WritePRD\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/architect.py:names:['WritePRD']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"WritePRD\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/architect.py:module:metagpt.actions.design_api", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api\",\"names\":[\"WriteDesign\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/architect.py:names:['WriteDesign']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api\",\"names\":[\"WriteDesign\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/architect.py:module:metagpt.roles.role", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/architect.py:names:['Role']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"predicate": "is", "source": "metagpt/roles/customer_service.py:DESC", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/roles/customer_service.py:DESC", "target": "{\"lineno\":15,\"end_lineno\":24,\"type_name\":\"ast.Assign\",\"tokens\":[\"DESC\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/customer_service.py:ast.Constant:\n@Time : 2023/5/25 17:21\n@Author : alexanderwu\n@File : sales.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/25 17:21\\n@Author : alexanderwu\\n@File : sales.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/customer_service.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/customer_service.py:names:['Optional']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/customer_service.py:module:pydantic", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/customer_service.py:names:['Field']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/customer_service.py:module:metagpt.document_store.base_store", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.base_store\",\"names\":[\"BaseStore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/customer_service.py:names:['BaseStore']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.document_store.base_store\",\"names\":[\"BaseStore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/customer_service.py:module:metagpt.roles", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Sales\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/customer_service.py:names:['Sales']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Sales\"]}}"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:_think", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/sk_agent.py:SkAgent:_act", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:ast.Constant:\n@Time : 2023/9/13 12:23\n@Author : femto Zheng\n@File : sk_agent.py\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116, utilize the new message\n distribution feature for message filtering.\n", "target": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/13 12:23\\n@Author : femto Zheng\\n@File : sk_agent.py\\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116, utilize the new message\\n distribution feature for message filtering.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:typing", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Callable\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['Any', 'Callable', 'Union']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Callable\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:pydantic", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['Field']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:semantic_kernel", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel\",\"names\":[\"Kernel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['Kernel']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel\",\"names\":[\"Kernel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:semantic_kernel.planning", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.planning\",\"names\":[\"SequentialPlanner\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['SequentialPlanner']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.planning\",\"names\":[\"SequentialPlanner\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:semantic_kernel.planning.action_planner.action_planner", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.planning.action_planner.action_planner\",\"names\":[\"ActionPlanner\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['ActionPlanner']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.planning.action_planner.action_planner\",\"names\":[\"ActionPlanner\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:semantic_kernel.planning.basic_planner", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.planning.basic_planner\",\"names\":[\"BasicPlanner\",\"Plan\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['BasicPlanner', 'Plan']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.planning.basic_planner\",\"names\":[\"BasicPlanner\",\"Plan\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:metagpt.actions", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"UserRequirement\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['UserRequirement']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"UserRequirement\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:metagpt.actions.execute_task", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.execute_task\",\"names\":[\"ExecuteTask\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['ExecuteTask']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.execute_task\",\"names\":[\"ExecuteTask\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:metagpt.llm", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['LLM']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:metagpt.logs", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['logger']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['BaseLLM']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:metagpt.roles", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['Role']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:metagpt.schema", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['Message']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:module:metagpt.utils.make_sk_kernel", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.make_sk_kernel\",\"names\":[\"make_sk_kernel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/sk_agent.py:names:['make_sk_kernel']", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.make_sk_kernel\",\"names\":[\"make_sk_kernel\"]}}"}, {"predicate": "is", "source": "metagpt/roles/prompt.py:PREFIX", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/roles/prompt.py:PREFIX", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Assign\",\"tokens\":[\"PREFIX\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/roles/prompt.py:FORMAT_INSTRUCTIONS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/roles/prompt.py:FORMAT_INSTRUCTIONS", "target": "{\"lineno\":11,\"end_lineno\":20,\"type_name\":\"ast.Assign\",\"tokens\":[\"FORMAT_INSTRUCTIONS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/roles/prompt.py:SUFFIX", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/roles/prompt.py:SUFFIX", "target": "{\"lineno\":21,\"end_lineno\":24,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUFFIX\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/prompt.py:ast.Constant:\n@Time : 2023/5/18 22:43\n@Author : alexanderwu\n@File : prompt.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/18 22:43\\n@Author : alexanderwu\\n@File : prompt.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/prompt.py:module:enum", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/prompt.py:names:['Enum']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:_handle_directory", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/tutorial_assistant.py:TutorialAssistant:_act", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:ast.Constant:\n@Time : 2023/9/4 15:40:40\n@Author : Stitch-z\n@File : tutorial_assistant.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 15:40:40\\n@Author : Stitch-z\\n@File : tutorial_assistant.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:module:datetime", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:names:['datetime']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:module:typing", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:names:['Dict']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:module:metagpt.actions.write_tutorial", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_tutorial\",\"names\":[\"WriteContent\",\"WriteDirectory\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:names:['WriteContent', 'WriteDirectory']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_tutorial\",\"names\":[\"WriteContent\",\"WriteDirectory\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:module:metagpt.const", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"TUTORIAL_PATH\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:names:['TUTORIAL_PATH']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"TUTORIAL_PATH\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:module:metagpt.logs", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:names:['logger']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:module:metagpt.roles.role", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\",\"RoleReactMode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:names:['Role', 'RoleReactMode']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\",\"RoleReactMode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:module:metagpt.schema", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:names:['Message']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:module:metagpt.utils.file", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file\",\"names\":[\"File\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/tutorial_assistant.py:names:['File']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file\",\"names\":[\"File\"]}}"}, {"predicate": "is", "source": "metagpt/roles/project_manager.py:ProjectManager:__init__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/roles/project_manager.py:ast.Constant:\n@Time : 2023/5/11 15:04\n@Author : alexanderwu\n@File : project_manager.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 15:04\\n@Author : alexanderwu\\n@File : project_manager.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/project_manager.py:module:metagpt.actions", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"WriteTasks\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/project_manager.py:names:['WriteTasks']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"WriteTasks\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/project_manager.py:module:metagpt.actions.design_api", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api\",\"names\":[\"WriteDesign\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/project_manager.py:names:['WriteDesign']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api\",\"names\":[\"WriteDesign\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/project_manager.py:module:metagpt.roles.role", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/project_manager.py:names:['Role']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\"]}}"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Researcher:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Researcher:_think", "target": "class_function"}, {"predicate": "is", "source": "metagpt/roles/researcher.py:Researcher:_act", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:ast.Constant:\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false indicates that further reasoning cannot continue.\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116, change the data type of\n the `cause_by` value in the `Message` to a string to support the new message distribution feature.\n", "target": "{\"lineno\":2,\"end_lineno\":6,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Modified By: mashenquan, 2023/8/22. A definition has been provided for the return value of _think: returning false indicates that further reasoning cannot continue.\\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116, change the data type of\\n the `cause_by` value in the `Message` to a string to support the new message distribution feature.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:asyncio", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:re", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:module:pydantic", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:names:['BaseModel']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:module:metagpt.actions", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"CollectLinks\",\"ConductResearch\",\"WebBrowseAndSummarize\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:names:['Action', 'CollectLinks', 'ConductResearch', 'WebBrowseAndSummarize']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"CollectLinks\",\"ConductResearch\",\"WebBrowseAndSummarize\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:module:metagpt.actions.research", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.research\",\"names\":[\"get_research_system_text\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:names:['get_research_system_text']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.research\",\"names\":[\"get_research_system_text\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:module:metagpt.const", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"RESEARCH_PATH\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:names:['RESEARCH_PATH']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"RESEARCH_PATH\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:module:metagpt.logs", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:names:['logger']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:module:metagpt.roles.role", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\",\"RoleReactMode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:names:['Role', 'RoleReactMode']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.roles.role\",\"names\":[\"Role\",\"RoleReactMode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:module:metagpt.schema", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:names:['Message']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/roles/researcher.py:__name__:__main__", "target": "{\"lineno\":119,\"end_lineno\":126,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/serialize.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/serialize.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/serialize.py", "target": "metagpt/utils/serialize.py:actionoutout_schema_to_mapping"}, {"predicate": "has_function", "source": "metagpt/utils/serialize.py", "target": "metagpt/utils/serialize.py:actionoutput_mapping_to_str"}, {"predicate": "has_function", "source": "metagpt/utils/serialize.py", "target": "metagpt/utils/serialize.py:actionoutput_str_to_mapping"}, {"predicate": "has_function", "source": "metagpt/utils/serialize.py", "target": "metagpt/utils/serialize.py:serialize_message"}, {"predicate": "has_function", "source": "metagpt/utils/serialize.py", "target": "metagpt/utils/serialize.py:deserialize_message"}, {"predicate": "is", "source": "metagpt/utils/serialize.py:actionoutout_schema_to_mapping", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/serialize.py:actionoutout_schema_to_mapping", "target": "{\"lineno\":11,\"end_lineno\":40,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"actionoutout_schema_to_mapping\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/serialize.py:actionoutput_mapping_to_str", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/serialize.py:actionoutput_mapping_to_str", "target": "{\"lineno\":43,\"end_lineno\":47,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"actionoutput_mapping_to_str\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/serialize.py:actionoutput_str_to_mapping", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/serialize.py:actionoutput_str_to_mapping", "target": "{\"lineno\":50,\"end_lineno\":57,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"actionoutput_str_to_mapping\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/serialize.py:serialize_message", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/serialize.py:serialize_message", "target": "{\"lineno\":60,\"end_lineno\":71,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"serialize_message\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/serialize.py:deserialize_message", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/serialize.py:deserialize_message", "target": "{\"lineno\":74,\"end_lineno\":83,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"deserialize_message\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/serialize.py:copy", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"copy\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/serialize.py:pickle", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Import\",\"tokens\":[\"pickle\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/serialize.py:module:metagpt.utils.common", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"import_class\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/serialize.py:names:['import_class']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"import_class\"]}}"}, {"predicate": "is", "source": "metagpt/utils/mmdc_playwright.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/mmdc_playwright.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/mmdc_playwright.py", "target": "metagpt/utils/mmdc_playwright.py:mermaid_to_file"}, {"predicate": "is", "source": "metagpt/utils/mmdc_playwright.py:mermaid_to_file", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_playwright.py:mermaid_to_file", "target": "{\"lineno\":17,\"end_lineno\":121,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"mermaid_to_file\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_playwright.py:ast.Constant:\n@Time : 2023/9/4 16:12\n@Author : Steven Lee\n@File : mmdc_playwright.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 16:12\\n@Author : Steven Lee\\n@File : mmdc_playwright.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_playwright.py:os", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_playwright.py:module:urllib.parse", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urljoin\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_playwright.py:names:['urljoin']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urljoin\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_playwright.py:module:playwright.async_api", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"playwright.async_api\",\"names\":[\"async_playwright\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_playwright.py:names:['async_playwright']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"playwright.async_api\",\"names\":[\"async_playwright\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_playwright.py:module:metagpt.logs", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_playwright.py:names:['logger']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/utils/dependency_file.py:DependencyFile:__init__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:ast.Constant:\n@Time : 2023/11/22\n@Author : mashenquan\n@File : dependency_file.py\n@Desc: Implementation of the dependency file described in Section 2.2.3.2 of RFC 135.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/11/22\\n@Author : mashenquan\\n@File : dependency_file.py\\n@Desc: Implementation of the dependency file described in Section 2.2.3.2 of RFC 135.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:module:__future__", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:names:['annotations']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:json", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:module:pathlib", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:names:['Path']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:module:typing", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Set\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:names:['Set']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Set\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:aiofiles", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:module:metagpt.utils.common", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"aread\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:names:['aread']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"aread\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:module:metagpt.utils.exceptions", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/dependency_file.py:names:['handle_exception']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "is", "source": "metagpt/utils/make_sk_kernel.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/make_sk_kernel.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/make_sk_kernel.py", "target": "metagpt/utils/make_sk_kernel.py:make_sk_kernel"}, {"predicate": "is", "source": "metagpt/utils/make_sk_kernel.py:make_sk_kernel", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/make_sk_kernel.py:make_sk_kernel", "target": "{\"lineno\":19,\"end_lineno\":32,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"make_sk_kernel\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/make_sk_kernel.py:ast.Constant:\n@Time : 2023/9/13 12:29\n@Author : femto Zheng\n@File : make_sk_kernel.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/13 12:29\\n@Author : femto Zheng\\n@File : make_sk_kernel.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/make_sk_kernel.py:semantic_kernel as sk", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"semantic_kernel as sk\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/make_sk_kernel.py:module:semantic_kernel.connectors.ai.open_ai.services.azure_chat_completion", "target": "{\"lineno\":9,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.connectors.ai.open_ai.services.azure_chat_completion\",\"names\":[\"AzureChatCompletion\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/make_sk_kernel.py:names:['AzureChatCompletion']", "target": "{\"lineno\":9,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.connectors.ai.open_ai.services.azure_chat_completion\",\"names\":[\"AzureChatCompletion\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/make_sk_kernel.py:module:semantic_kernel.connectors.ai.open_ai.services.open_ai_chat_completion", "target": "{\"lineno\":12,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.connectors.ai.open_ai.services.open_ai_chat_completion\",\"names\":[\"OpenAIChatCompletion\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/make_sk_kernel.py:names:['OpenAIChatCompletion']", "target": "{\"lineno\":12,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"semantic_kernel.connectors.ai.open_ai.services.open_ai_chat_completion\",\"names\":[\"OpenAIChatCompletion\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/make_sk_kernel.py:module:metagpt.config", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/make_sk_kernel.py:names:['CONFIG']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "is", "source": "metagpt/utils/token_counter.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/token_counter.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/token_counter.py", "target": "metagpt/utils/token_counter.py:count_message_tokens"}, {"predicate": "has_function", "source": "metagpt/utils/token_counter.py", "target": "metagpt/utils/token_counter.py:count_string_tokens"}, {"predicate": "has_function", "source": "metagpt/utils/token_counter.py", "target": "metagpt/utils/token_counter.py:get_max_completion_tokens"}, {"predicate": "is", "source": "metagpt/utils/token_counter.py:count_message_tokens", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/token_counter.py:count_message_tokens", "target": "{\"lineno\":56,\"end_lineno\":108,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"count_message_tokens\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/token_counter.py:count_string_tokens", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/token_counter.py:count_string_tokens", "target": "{\"lineno\":111,\"end_lineno\":127,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"count_string_tokens\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/token_counter.py:get_max_completion_tokens", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/token_counter.py:get_max_completion_tokens", "target": "{\"lineno\":130,\"end_lineno\":142,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_max_completion_tokens\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/token_counter.py:TOKEN_COSTS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/token_counter.py:TOKEN_COSTS", "target": "{\"lineno\":14,\"end_lineno\":32,\"type_name\":\"ast.Assign\",\"tokens\":[\"TOKEN_COSTS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/token_counter.py:TOKEN_MAX", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/token_counter.py:TOKEN_MAX", "target": "{\"lineno\":35,\"end_lineno\":53,\"type_name\":\"ast.Assign\",\"tokens\":[\"TOKEN_MAX\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/token_counter.py:ast.Constant:\n@Time : 2023/5/18 00:40\n@Author : alexanderwu\n@File : token_counter.py\nref1: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb\nref2: https://github.com/Significant-Gravitas/Auto-GPT/blob/master/autogpt/llm/token_counter.py\nref3: https://github.com/hwchase17/langchain/blob/master/langchain/chat_models/openai.py\nref4: https://ai.google.dev/models/gemini\n", "target": "{\"lineno\":3,\"end_lineno\":11,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/18 00:40\\n@Author : alexanderwu\\n@File : token_counter.py\\nref1: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb\\nref2: https://github.com/Significant-Gravitas/Auto-GPT/blob/master/autogpt/llm/token_counter.py\\nref3: https://github.com/hwchase17/langchain/blob/master/langchain/chat_models/openai.py\\nref4: https://ai.google.dev/models/gemini\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/token_counter.py:tiktoken", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"tiktoken\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:repair_case_sensitivity", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:repair_case_sensitivity", "target": "{\"lineno\":24,\"end_lineno\":41,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"repair_case_sensitivity\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:repair_special_character_missing", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:repair_special_character_missing", "target": "{\"lineno\":44,\"end_lineno\":64,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"repair_special_character_missing\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:repair_required_key_pair_missing", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:repair_required_key_pair_missing", "target": "{\"lineno\":67,\"end_lineno\":105,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"repair_required_key_pair_missing\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:repair_json_format", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:repair_json_format", "target": "{\"lineno\":108,\"end_lineno\":123,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"repair_json_format\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:_repair_llm_raw_output", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:_repair_llm_raw_output", "target": "{\"lineno\":126,\"end_lineno\":137,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_repair_llm_raw_output\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:repair_llm_raw_output", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:repair_llm_raw_output", "target": "{\"lineno\":140,\"end_lineno\":161,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"repair_llm_raw_output\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:repair_invalid_json", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:repair_invalid_json", "target": "{\"lineno\":164,\"end_lineno\":206,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"repair_invalid_json\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:run_after_exp_and_passon_next_retry", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:run_after_exp_and_passon_next_retry", "target": "{\"lineno\":209,\"end_lineno\":243,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"run_after_exp_and_passon_next_retry\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:retry_parse_json_text", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:retry_parse_json_text", "target": "{\"lineno\":251,\"end_lineno\":265,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"retry_parse_json_text\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:extract_content_from_output", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:extract_content_from_output", "target": "{\"lineno\":268,\"end_lineno\":298,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"extract_content_from_output\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/repair_llm_raw_output.py:extract_state_value_from_output", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:extract_state_value_from_output", "target": "{\"lineno\":301,\"end_lineno\":314,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"extract_state_value_from_output\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:copy", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"copy\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:module:enum", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:names:['Enum']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:module:typing", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Callable\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:names:['Callable', 'Union']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Callable\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:regex as re", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"regex as re\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:module:tenacity", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"RetryCallState\",\"retry\",\"stop_after_attempt\",\"wait_fixed\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:names:['RetryCallState', 'retry', 'stop_after_attempt', 'wait_fixed']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"RetryCallState\",\"retry\",\"stop_after_attempt\",\"wait_fixed\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:module:metagpt.config", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:names:['CONFIG']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:module:metagpt.logs", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:names:['logger']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:module:metagpt.utils.custom_decoder", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.custom_decoder\",\"names\":[\"CustomDecoder\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/repair_llm_raw_output.py:names:['CustomDecoder']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.custom_decoder\",\"names\":[\"CustomDecoder\"]}}"}, {"predicate": "is", "source": "metagpt/utils/mermaid.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/mermaid.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/mermaid.py", "target": "metagpt/utils/mermaid.py:mermaid_to_file"}, {"predicate": "is", "source": "metagpt/utils/mermaid.py:mermaid_to_file", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:mermaid_to_file", "target": "{\"lineno\":20,\"end_lineno\":92,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"mermaid_to_file\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/mermaid.py:MMC1", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:MMC1", "target": "{\"lineno\":95,\"end_lineno\":127,\"type_name\":\"ast.Assign\",\"tokens\":[\"MMC1\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/mermaid.py:MMC2", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:MMC2", "target": "{\"lineno\":129,\"end_lineno\":147,\"type_name\":\"ast.Assign\",\"tokens\":[\"MMC2\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:ast.Constant:\n@Time : 2023/7/4 10:53\n@Author : alexanderwu alitrack\n@File : mermaid.py\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/7/4 10:53\\n@Author : alexanderwu alitrack\\n@File : mermaid.py\\n@Modified By: mashenquan, 2023/8/20. Remove global configuration `CONFIG`, enable configuration support for business isolation.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:asyncio", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:os", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:module:pathlib", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:names:['Path']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:aiofiles", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:module:metagpt.config", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:names:['CONFIG']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:module:metagpt.logs", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:names:['logger']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:module:metagpt.utils.common", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"check_cmd_exists\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mermaid.py:names:['check_cmd_exists']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"check_cmd_exists\"]}}"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py:get_html_content", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:get_html_content", "target": "{\"lineno\":42,\"end_lineno\":45,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_html_content\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/parse_html.py:_get_soup", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:_get_soup", "target": "{\"lineno\":48,\"end_lineno\":54,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_get_soup\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:module:__future__", "target": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:names:['annotations']", "target": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:module:typing", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Generator\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:names:['Generator', 'Optional']", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Generator\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:module:urllib.parse", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urljoin\",\"urlparse\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:names:['urljoin', 'urlparse']", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urljoin\",\"urlparse\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:module:bs4", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"bs4\",\"names\":[\"BeautifulSoup\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:names:['BeautifulSoup']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"bs4\",\"names\":[\"BeautifulSoup\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:module:pydantic", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"PrivateAttr\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/parse_html.py:names:['BaseModel', 'PrivateAttr']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"PrivateAttr\"]}}"}, {"predicate": "is", "source": "metagpt/utils/special_tokens.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/special_tokens.py", "target": "python"}, {"predicate": "is", "source": "metagpt/utils/special_tokens.py:MSG_SEP", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/special_tokens.py:MSG_SEP", "target": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.Assign\",\"tokens\":[\"MSG_SEP\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/special_tokens.py:FILENAME_CODE_SEP", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/special_tokens.py:FILENAME_CODE_SEP", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.Assign\",\"tokens\":[\"FILENAME_CODE_SEP\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/ahttp_client.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/ahttp_client.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/ahttp_client.py", "target": "metagpt/utils/ahttp_client.py:apost"}, {"predicate": "has_function", "source": "metagpt/utils/ahttp_client.py", "target": "metagpt/utils/ahttp_client.py:apost_stream"}, {"predicate": "is", "source": "metagpt/utils/ahttp_client.py:apost", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/ahttp_client.py:apost", "target": "{\"lineno\":11,\"end_lineno\":28,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"apost\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/ahttp_client.py:apost_stream", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/ahttp_client.py:apost_stream", "target": "{\"lineno\":31,\"end_lineno\":49,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"apost_stream\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/ahttp_client.py:module:typing", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Mapping\",\"Optional\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/ahttp_client.py:names:['Any', 'Mapping', 'Optional', 'Union']", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Mapping\",\"Optional\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/ahttp_client.py:aiohttp", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"aiohttp\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/ahttp_client.py:module:aiohttp.client", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"aiohttp.client\",\"names\":[\"DEFAULT_TIMEOUT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/ahttp_client.py:names:['DEFAULT_TIMEOUT']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"aiohttp.client\",\"names\":[\"DEFAULT_TIMEOUT\"]}}"}, {"predicate": "is", "source": "metagpt/utils/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/__init__.py", "target": "python"}, {"predicate": "is", "source": "metagpt/utils/__init__.py:__all__", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/__init__.py:__all__", "target": "{\"lineno\":18,\"end_lineno\":24,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/__init__.py:ast.Constant:\n@Time : 2023/4/29 15:50\n@Author : alexanderwu\n@File : __init__.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/29 15:50\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/__init__.py:module:metagpt.utils.read_document", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.read_document\",\"names\":[\"read_docx\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/__init__.py:names:['read_docx']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.read_document\",\"names\":[\"read_docx\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/__init__.py:module:metagpt.utils.singleton", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.singleton\",\"names\":[\"Singleton\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/__init__.py:names:['Singleton']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.singleton\",\"names\":[\"Singleton\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/__init__.py:module:metagpt.utils.token_counter", "target": "{\"lineno\":11,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"TOKEN_COSTS\",\"count_message_tokens\",\"count_string_tokens\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/__init__.py:names:['TOKEN_COSTS', 'count_message_tokens', 'count_string_tokens']", "target": "{\"lineno\":11,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"TOKEN_COSTS\",\"count_message_tokens\",\"count_string_tokens\"]}}"}, {"predicate": "is", "source": "metagpt/utils/mmdc_ink.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/mmdc_ink.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/mmdc_ink.py", "target": "metagpt/utils/mmdc_ink.py:mermaid_to_file"}, {"predicate": "is", "source": "metagpt/utils/mmdc_ink.py:mermaid_to_file", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_ink.py:mermaid_to_file", "target": "{\"lineno\":15,\"end_lineno\":41,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"mermaid_to_file\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_ink.py:ast.Constant:\n@Time : 2023/9/4 16:12\n@Author : alitrack\n@File : mermaid.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 16:12\\n@Author : alitrack\\n@File : mermaid.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_ink.py:base64", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_ink.py:module:aiohttp", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"aiohttp\",\"names\":[\"ClientError\",\"ClientSession\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_ink.py:names:['ClientError', 'ClientSession']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"aiohttp\",\"names\":[\"ClientError\",\"ClientSession\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_ink.py:module:metagpt.logs", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_ink.py:names:['logger']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:upsert", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/di_graph_repository.py:DiGraphRepository:update", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:ast.Constant:\n@Time : 2023/12/19\n@Author : mashenquan\n@File : di_graph_repository.py\n@Desc : Graph repository based on DiGraph\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/19\\n@Author : mashenquan\\n@File : di_graph_repository.py\\n@Desc : Graph repository based on DiGraph\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:module:__future__", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:names:['annotations']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:json", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:module:pathlib", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:names:['Path']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:module:typing", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:names:['List']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:networkx", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.Import\",\"tokens\":[\"networkx\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:module:metagpt.utils.common", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"aread\",\"awrite\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:names:['aread', 'awrite']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"aread\",\"awrite\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:module:metagpt.utils.graph_repository", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.graph_repository\",\"names\":[\"SPO\",\"GraphRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/di_graph_repository.py:names:['SPO', 'GraphRepository']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.graph_repository\",\"names\":[\"SPO\",\"GraphRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/cost_manager.py:ast.Constant:\n@Time : 2023/8/28\n@Author : mashenquan\n@File : openai.py\n@Desc : mashenquan, 2023/8/28. Separate the `CostManager` class to support user-level cost accounting.\n", "target": "{\"lineno\":2,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/28\\n@Author : mashenquan\\n@File : openai.py\\n@Desc : mashenquan, 2023/8/28. Separate the `CostManager` class to support user-level cost accounting.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/cost_manager.py:module:typing", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"NamedTuple\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/cost_manager.py:names:['NamedTuple']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"NamedTuple\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/cost_manager.py:module:pydantic", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/cost_manager.py:names:['BaseModel']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/cost_manager.py:module:metagpt.logs", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/cost_manager.py:names:['logger']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/cost_manager.py:module:metagpt.utils.token_counter", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"TOKEN_COSTS\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/cost_manager.py:names:['TOKEN_COSTS']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"TOKEN_COSTS\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file.py:ast.Constant:\n@Time : 2023/9/4 15:40:40\n@Author : Stitch-z\n@File : file.py\n@Describe : General file operations.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 15:40:40\\n@Author : Stitch-z\\n@File : file.py\\n@Describe : General file operations.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file.py:module:pathlib", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file.py:names:['Path']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file.py:aiofiles", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file.py:module:metagpt.logs", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file.py:names:['logger']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file.py:module:metagpt.utils.exceptions", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file.py:names:['handle_exception']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:NoMoneyException:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/common.py:NoMoneyException:__str__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/common.py:check_cmd_exists", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:check_cmd_exists", "target": "{\"lineno\":38,\"end_lineno\":48,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"check_cmd_exists\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:require_python_version", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:require_python_version", "target": "{\"lineno\":51,\"end_lineno\":54,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"require_python_version\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:print_members", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:print_members", "target": "{\"lineno\":319,\"end_lineno\":335,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"print_members\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:parse_recipient", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:parse_recipient", "target": "{\"lineno\":338,\"end_lineno\":348,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"parse_recipient\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:get_class_name", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:get_class_name", "target": "{\"lineno\":351,\"end_lineno\":353,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_class_name\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:any_to_str", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:any_to_str", "target": "{\"lineno\":356,\"end_lineno\":363,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"any_to_str\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:any_to_str_set", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:any_to_str_set", "target": "{\"lineno\":366,\"end_lineno\":381,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"any_to_str_set\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:is_subscribed", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:is_subscribed", "target": "{\"lineno\":384,\"end_lineno\":392,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"is_subscribed\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:any_to_name", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:any_to_name", "target": "{\"lineno\":395,\"end_lineno\":403,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"any_to_name\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:concat_namespace", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:concat_namespace", "target": "{\"lineno\":406,\"end_lineno\":407,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"concat_namespace\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:split_namespace", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:split_namespace", "target": "{\"lineno\":410,\"end_lineno\":411,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"split_namespace\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:general_after_log", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:general_after_log", "target": "{\"lineno\":414,\"end_lineno\":444,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"general_after_log\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:read_json_file", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:read_json_file", "target": "{\"lineno\":447,\"end_lineno\":456,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"read_json_file\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:write_json_file", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:write_json_file", "target": "{\"lineno\":459,\"end_lineno\":465,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"write_json_file\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:import_class", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:import_class", "target": "{\"lineno\":468,\"end_lineno\":471,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"import_class\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:import_class_inst", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:import_class_inst", "target": "{\"lineno\":474,\"end_lineno\":477,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"import_class_inst\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:format_trackback_info", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:format_trackback_info", "target": "{\"lineno\":480,\"end_lineno\":481,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"format_trackback_info\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:serialize_decorator", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:serialize_decorator", "target": "{\"lineno\":484,\"end_lineno\":495,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"serialize_decorator\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:role_raise_decorator", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:role_raise_decorator", "target": "{\"lineno\":498,\"end_lineno\":519,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"role_raise_decorator\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:aread", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:aread", "target": "{\"lineno\":523,\"end_lineno\":527,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"aread\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:awrite", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:awrite", "target": "{\"lineno\":530,\"end_lineno\":535,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"awrite\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/common.py:read_file_block", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:read_file_block", "target": "{\"lineno\":538,\"end_lineno\":552,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"read_file_block\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:ast.Constant:\n@Time : 2023/4/29 16:07\n@Author : alexanderwu\n@File : common.py\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.2 of RFC 116:\n Add generic class-to-string and object-to-string conversion functionality.\n@Modified By: mashenquan, 2023/11/27. Bug fix: `parse_recipient` failed to parse the recipient in certain GPT-3.5\n responses.\n", "target": "{\"lineno\":3,\"end_lineno\":11,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/29 16:07\\n@Author : alexanderwu\\n@File : common.py\\n@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.2 of RFC 116:\\n Add generic class-to-string and object-to-string conversion functionality.\\n@Modified By: mashenquan, 2023/11/27. Bug fix: `parse_recipient` failed to parse the recipient in certain GPT-3.5\\n responses.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:module:__future__", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:names:['annotations']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:ast", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.Import\",\"tokens\":[\"ast\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:contextlib", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.Import\",\"tokens\":[\"contextlib\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:importlib", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.Import\",\"tokens\":[\"importlib\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:inspect", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Import\",\"tokens\":[\"inspect\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:json", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:os", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:platform", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.Import\",\"tokens\":[\"platform\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:re", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:sys", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.Import\",\"tokens\":[\"sys\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:traceback", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.Import\",\"tokens\":[\"traceback\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:typing", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.Import\",\"tokens\":[\"typing\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:module:pathlib", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:names:['Path']", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:module:typing", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"List\",\"Tuple\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:names:['Any', 'List', 'Tuple', 'Union']", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"List\",\"Tuple\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:aiofiles", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:loguru", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.Import\",\"tokens\":[\"loguru\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:module:pydantic_core", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic_core\",\"names\":[\"to_jsonable_python\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:names:['to_jsonable_python']", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic_core\",\"names\":[\"to_jsonable_python\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:module:tenacity", "target": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"RetryCallState\",\"_utils\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:names:['RetryCallState', '_utils']", "target": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"RetryCallState\",\"_utils\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:module:metagpt.const", "target": "{\"lineno\":33,\"end_lineno\":33,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"MESSAGE_ROUTE_TO_ALL\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:names:['MESSAGE_ROUTE_TO_ALL']", "target": "{\"lineno\":33,\"end_lineno\":33,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"MESSAGE_ROUTE_TO_ALL\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:module:metagpt.logs", "target": "{\"lineno\":34,\"end_lineno\":34,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:names:['logger']", "target": "{\"lineno\":34,\"end_lineno\":34,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:module:metagpt.utils.exceptions", "target": "{\"lineno\":35,\"end_lineno\":35,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/common.py:names:['handle_exception']", "target": "{\"lineno\":35,\"end_lineno\":35,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "is", "source": "metagpt/utils/redis.py:Redis:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/redis.py:Redis:_connect", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/utils/redis.py:ast.Constant:\n@Time : 2023/12/27\n@Author : mashenquan\n@File : redis.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/27\\n@Author : mashenquan\\n@File : redis.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/redis.py:module:__future__", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/redis.py:names:['annotations']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/redis.py:traceback", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"traceback\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/redis.py:module:datetime", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"timedelta\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/redis.py:names:['timedelta']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"timedelta\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/redis.py:aioredis", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"aioredis\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/redis.py:module:metagpt.config", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/redis.py:names:['CONFIG']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/redis.py:module:metagpt.logs", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/redis.py:names:['logger']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/utils/text.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/text.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/text.py", "target": "metagpt/utils/text.py:reduce_message_length"}, {"predicate": "has_function", "source": "metagpt/utils/text.py", "target": "metagpt/utils/text.py:generate_prompt_chunk"}, {"predicate": "has_function", "source": "metagpt/utils/text.py", "target": "metagpt/utils/text.py:split_paragraph"}, {"predicate": "has_function", "source": "metagpt/utils/text.py", "target": "metagpt/utils/text.py:decode_unicode_escape"}, {"predicate": "has_function", "source": "metagpt/utils/text.py", "target": "metagpt/utils/text.py:_split_by_count"}, {"predicate": "has_function", "source": "metagpt/utils/text.py", "target": "metagpt/utils/text.py:_split_text_with_ends"}, {"predicate": "is", "source": "metagpt/utils/text.py:reduce_message_length", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/text.py:reduce_message_length", "target": "{\"lineno\":6,\"end_lineno\":31,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"reduce_message_length\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/text.py:generate_prompt_chunk", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/text.py:generate_prompt_chunk", "target": "{\"lineno\":34,\"end_lineno\":76,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"generate_prompt_chunk\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/text.py:split_paragraph", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/text.py:split_paragraph", "target": "{\"lineno\":79,\"end_lineno\":96,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"split_paragraph\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/text.py:decode_unicode_escape", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/text.py:decode_unicode_escape", "target": "{\"lineno\":99,\"end_lineno\":108,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"decode_unicode_escape\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/text.py:_split_by_count", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/text.py:_split_by_count", "target": "{\"lineno\":111,\"end_lineno\":118,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_split_by_count\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/text.py:_split_text_with_ends", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/text.py:_split_text_with_ends", "target": "{\"lineno\":121,\"end_lineno\":129,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_split_text_with_ends\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/text.py:module:typing", "target": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Generator\",\"Sequence\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/text.py:names:['Generator', 'Sequence']", "target": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Generator\",\"Sequence\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/text.py:module:metagpt.utils.token_counter", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"TOKEN_MAX\",\"count_string_tokens\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/text.py:names:['TOKEN_MAX', 'count_string_tokens']", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.token_counter\",\"names\":[\"TOKEN_MAX\",\"count_string_tokens\"]}}"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:insert", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:upsert", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:update", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/graph_repository.py:GraphRepository:select", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:ast.Constant:\n@Time : 2023/12/19\n@Author : mashenquan\n@File : graph_repository.py\n@Desc : Superclass for graph repository.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/19\\n@Author : mashenquan\\n@File : graph_repository.py\\n@Desc : Superclass for graph repository.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:module:abc", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\",\"abstractmethod\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:names:['ABC', 'abstractmethod']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\",\"abstractmethod\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:module:pathlib", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:names:['Path']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:module:typing", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:names:['List']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:module:pydantic", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:names:['BaseModel']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:module:metagpt.logs", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:names:['logger']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:module:metagpt.repo_parser", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.repo_parser\",\"names\":[\"ClassInfo\",\"ClassRelationship\",\"RepoFileInfo\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:names:['ClassInfo', 'ClassRelationship', 'RepoFileInfo']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.repo_parser\",\"names\":[\"ClassInfo\",\"ClassRelationship\",\"RepoFileInfo\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:module:metagpt.utils.common", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"concat_namespace\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/graph_repository.py:names:['concat_namespace']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"concat_namespace\"]}}"}, {"predicate": "is", "source": "metagpt/utils/singleton.py:Singleton:__call__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/utils/singleton.py:ast.Constant:\n@Time : 2023/5/11 16:15\n@Author : alexanderwu\n@File : singleton.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 16:15\\n@Author : alexanderwu\\n@File : singleton.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/singleton.py:abc", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"abc\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/file_repository.py:FileRepository:__init__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:ast.Constant:\n@Time : 2023/11/20\n@Author : mashenquan\n@File : git_repository.py\n@Desc: File repository management. RFC 135 2.2.3.2, 2.2.3.4 and 2.2.3.13.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/11/20\\n@Author : mashenquan\\n@File : git_repository.py\\n@Desc: File repository management. RFC 135 2.2.3.2, 2.2.3.4 and 2.2.3.13.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:module:__future__", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:names:['annotations']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:json", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:os", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:module:datetime", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:names:['datetime']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:module:pathlib", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:names:['Path']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:module:typing", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\",\"Set\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:names:['Dict', 'List', 'Set']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\",\"Set\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:aiofiles", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:module:metagpt.config", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:names:['CONFIG']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:module:metagpt.logs", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:names:['logger']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:module:metagpt.schema", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:names:['Document']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:module:metagpt.utils.common", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"aread\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:names:['aread']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"aread\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:module:metagpt.utils.json_to_markdown", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.json_to_markdown\",\"names\":[\"json_to_markdown\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/file_repository.py:names:['json_to_markdown']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.json_to_markdown\",\"names\":[\"json_to_markdown\"]}}"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringCollector:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringCollector:_leave", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringTransformer:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringTransformer:_leave", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:get_docstring_statement", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:get_docstring_statement", "target": "{\"lineno\":11,\"end_lineno\":49,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_docstring_statement\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:has_decorator", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:has_decorator", "target": "{\"lineno\":52,\"end_lineno\":57,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"has_decorator\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:merge_docstring", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:merge_docstring", "target": "{\"lineno\":159,\"end_lineno\":176,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"merge_docstring\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/pycst.py:DocstringNode", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:DocstringNode", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Assign\",\"tokens\":[\"DocstringNode\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:module:__future__", "target": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:names:['annotations']", "target": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:module:typing", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:names:['Union']", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:libcst as cst", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"libcst as cst\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:module:libcst._nodes.module", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"libcst._nodes.module\",\"names\":[\"Module\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/pycst.py:names:['Module']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"libcst._nodes.module\",\"names\":[\"Module\"]}}"}, {"predicate": "is", "source": "metagpt/utils/exceptions.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/exceptions.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/exceptions.py", "target": "metagpt/utils/exceptions.py:handle_exception"}, {"predicate": "is", "source": "metagpt/utils/exceptions.py:handle_exception", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/exceptions.py:handle_exception", "target": "{\"lineno\":20,\"end_lineno\":61,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"handle_exception\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/exceptions.py:ReturnType", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/exceptions.py:ReturnType", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Assign\",\"tokens\":[\"ReturnType\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/exceptions.py:ast.Constant:\n@Time : 2023/12/19 14:46\n@Author : alexanderwu\n@File : exceptions.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/19 14:46\\n@Author : alexanderwu\\n@File : exceptions.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/exceptions.py:asyncio", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/exceptions.py:functools", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"functools\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/exceptions.py:traceback", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"traceback\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/exceptions.py:module:typing", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Callable\",\"Tuple\",\"Type\",\"TypeVar\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/exceptions.py:names:['Any', 'Callable', 'Tuple', 'Type', 'TypeVar', 'Union']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Callable\",\"Tuple\",\"Type\",\"TypeVar\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/exceptions.py:module:metagpt.logs", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/exceptions.py:names:['logger']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/utils/highlight.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/highlight.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/highlight.py", "target": "metagpt/utils/highlight.py:highlight"}, {"predicate": "is", "source": "metagpt/utils/highlight.py:highlight", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/highlight.py:highlight", "target": "{\"lineno\":7,\"end_lineno\":25,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"highlight\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/highlight.py:module:pygments", "target": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pygments\",\"names\":[\"highlight as highlight_\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/highlight.py:names:['highlight as highlight_']", "target": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pygments\",\"names\":[\"highlight as highlight_\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/highlight.py:module:pygments.formatters", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pygments.formatters\",\"names\":[\"HtmlFormatter\",\"TerminalFormatter\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/highlight.py:names:['HtmlFormatter', 'TerminalFormatter']", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pygments.formatters\",\"names\":[\"HtmlFormatter\",\"TerminalFormatter\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/highlight.py:module:pygments.lexers", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pygments.lexers\",\"names\":[\"PythonLexer\",\"SqlLexer\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/highlight.py:names:['PythonLexer', 'SqlLexer']", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pygments.lexers\",\"names\":[\"PythonLexer\",\"SqlLexer\"]}}"}, {"predicate": "is", "source": "metagpt/utils/mmdc_pyppeteer.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/mmdc_pyppeteer.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/mmdc_pyppeteer.py", "target": "metagpt/utils/mmdc_pyppeteer.py:mermaid_to_file"}, {"predicate": "is", "source": "metagpt/utils/mmdc_pyppeteer.py:mermaid_to_file", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_pyppeteer.py:mermaid_to_file", "target": "{\"lineno\":17,\"end_lineno\":128,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"mermaid_to_file\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_pyppeteer.py:ast.Constant:\n@Time : 2023/9/4 16:12\n@Author : alitrack\n@File : mmdc_pyppeteer.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 16:12\\n@Author : alitrack\\n@File : mmdc_pyppeteer.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_pyppeteer.py:os", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_pyppeteer.py:module:urllib.parse", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urljoin\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_pyppeteer.py:names:['urljoin']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"urllib.parse\",\"names\":[\"urljoin\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_pyppeteer.py:module:pyppeteer", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pyppeteer\",\"names\":[\"launch\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_pyppeteer.py:names:['launch']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pyppeteer\",\"names\":[\"launch\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_pyppeteer.py:module:metagpt.config", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_pyppeteer.py:names:['CONFIG']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_pyppeteer.py:module:metagpt.logs", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/mmdc_pyppeteer.py:names:['logger']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/utils/s3.py:S3:__init__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:base64", "target": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.Import\",\"tokens\":[\"base64\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:os.path", "target": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.Import\",\"tokens\":[\"os.path\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:traceback", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.Import\",\"tokens\":[\"traceback\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:uuid", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.Import\",\"tokens\":[\"uuid\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:module:pathlib", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:names:['Path']", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:module:typing", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:names:['Optional']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:aioboto3", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.Import\",\"tokens\":[\"aioboto3\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:aiofiles", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:module:metagpt.config", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:names:['CONFIG']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:module:metagpt.const", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BASE64_FORMAT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:names:['BASE64_FORMAT']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BASE64_FORMAT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:module:metagpt.logs", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/s3.py:names:['logger']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/utils/json_to_markdown.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/json_to_markdown.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/json_to_markdown.py", "target": "metagpt/utils/json_to_markdown.py:json_to_markdown"}, {"predicate": "is", "source": "metagpt/utils/json_to_markdown.py:json_to_markdown", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/json_to_markdown.py:json_to_markdown", "target": "{\"lineno\":11,\"end_lineno\":42,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"json_to_markdown\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/json_to_markdown.py:ast.Constant:\n@Time : 2023/9/11 11:50\n@Author : femto Zheng\n@File : json_to_markdown.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/11 11:50\\n@Author : femto Zheng\\n@File : json_to_markdown.py\\n\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:CustomDecoder:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:py_make_scanner", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:py_make_scanner", "target": "{\"lineno\":9,\"end_lineno\":69,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"py_make_scanner\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:JSONObject", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:JSONObject", "target": "{\"lineno\":91,\"end_lineno\":192,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"JSONObject\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:py_scanstring", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:py_scanstring", "target": "{\"lineno\":195,\"end_lineno\":267,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"py_scanstring\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:NUMBER_RE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:NUMBER_RE", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.Assign\",\"tokens\":[\"NUMBER_RE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:FLAGS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:FLAGS", "target": "{\"lineno\":72,\"end_lineno\":72,\"type_name\":\"ast.Assign\",\"tokens\":[\"FLAGS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:STRINGCHUNK", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:STRINGCHUNK", "target": "{\"lineno\":73,\"end_lineno\":73,\"type_name\":\"ast.Assign\",\"tokens\":[\"STRINGCHUNK\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:STRINGCHUNK_SINGLEQUOTE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:STRINGCHUNK_SINGLEQUOTE", "target": "{\"lineno\":74,\"end_lineno\":74,\"type_name\":\"ast.Assign\",\"tokens\":[\"STRINGCHUNK_SINGLEQUOTE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:STRINGCHUNK_TRIPLE_DOUBLE_QUOTE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:STRINGCHUNK_TRIPLE_DOUBLE_QUOTE", "target": "{\"lineno\":75,\"end_lineno\":75,\"type_name\":\"ast.Assign\",\"tokens\":[\"STRINGCHUNK_TRIPLE_DOUBLE_QUOTE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:STRINGCHUNK_TRIPLE_SINGLEQUOTE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:STRINGCHUNK_TRIPLE_SINGLEQUOTE", "target": "{\"lineno\":76,\"end_lineno\":76,\"type_name\":\"ast.Assign\",\"tokens\":[\"STRINGCHUNK_TRIPLE_SINGLEQUOTE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:BACKSLASH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:BACKSLASH", "target": "{\"lineno\":77,\"end_lineno\":86,\"type_name\":\"ast.Assign\",\"tokens\":[\"BACKSLASH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:WHITESPACE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:WHITESPACE", "target": "{\"lineno\":87,\"end_lineno\":87,\"type_name\":\"ast.Assign\",\"tokens\":[\"WHITESPACE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:WHITESPACE_STR", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:WHITESPACE_STR", "target": "{\"lineno\":88,\"end_lineno\":88,\"type_name\":\"ast.Assign\",\"tokens\":[\"WHITESPACE_STR\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/utils/custom_decoder.py:scanstring", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:scanstring", "target": "{\"lineno\":270,\"end_lineno\":270,\"type_name\":\"ast.Assign\",\"tokens\":[\"scanstring\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:json", "target": "{\"lineno\":1,\"end_lineno\":1,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:re", "target": "{\"lineno\":2,\"end_lineno\":2,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:module:json", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"json\",\"names\":[\"JSONDecodeError\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:names:['JSONDecodeError']", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"json\",\"names\":[\"JSONDecodeError\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:module:json.decoder", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"json.decoder\",\"names\":[\"_decode_uXXXX\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/custom_decoder.py:names:['_decode_uXXXX']", "target": "{\"lineno\":4,\"end_lineno\":4,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"json.decoder\",\"names\":[\"_decode_uXXXX\"]}}"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/utils/git_repository.py:GitRepository:_init", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:ast.Constant:\n@Time : 2023/11/20\n@Author : mashenquan\n@File : git_repository.py\n@Desc: Git repository management. RFC 135 2.2.3.3.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/11/20\\n@Author : mashenquan\\n@File : git_repository.py\\n@Desc: Git repository management. RFC 135 2.2.3.3.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:module:__future__", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:names:['annotations']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:shutil", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"shutil\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:module:enum", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:names:['Enum']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:module:pathlib", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:names:['Path']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:module:typing", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:names:['Dict', 'List']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:module:git.repo", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"git.repo\",\"names\":[\"Repo\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:names:['Repo']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"git.repo\",\"names\":[\"Repo\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:module:git.repo.fun", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"git.repo.fun\",\"names\":[\"is_git_dir\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:names:['is_git_dir']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"git.repo.fun\",\"names\":[\"is_git_dir\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:module:gitignore_parser", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"gitignore_parser\",\"names\":[\"parse_gitignore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:names:['parse_gitignore']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"gitignore_parser\",\"names\":[\"parse_gitignore\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:module:metagpt.logs", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:names:['logger']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:module:metagpt.utils.dependency_file", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.dependency_file\",\"names\":[\"DependencyFile\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:names:['DependencyFile']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.dependency_file\",\"names\":[\"DependencyFile\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:module:metagpt.utils.file_repository", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/git_repository.py:names:['FileRepository']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "is", "source": "metagpt/utils/read_document.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/utils/read_document.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/utils/read_document.py", "target": "metagpt/utils/read_document.py:read_docx"}, {"predicate": "is", "source": "metagpt/utils/read_document.py:read_docx", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/utils/read_document.py:read_docx", "target": "{\"lineno\":12,\"end_lineno\":23,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"read_docx\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/read_document.py:ast.Constant:\n@Time : 2023/4/29 15:45\n@Author : alexanderwu\n@File : read_document.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/4/29 15:45\\n@Author : alexanderwu\\n@File : read_document.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/utils/read_document.py:docx", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"docx\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_create_mermaid_class_views", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_create_mermaid_class", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_create_mermaid_relationship", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_parse_name", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_parse_variable_type", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_parse_function_args", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_diff_path", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/rebuild_class_view.py:RebuildClassView:_align_root", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:ast.Constant:\n@Time : 2023/12/19\n@Author : mashenquan\n@File : rebuild_class_view.py\n@Desc : Rebuild class view info\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/19\\n@Author : mashenquan\\n@File : rebuild_class_view.py\\n@Desc : Rebuild class view info\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:re", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:module:pathlib", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:names:['Path']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:aiofiles", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"aiofiles\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:module:metagpt.actions", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:names:['Action']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:module:metagpt.config", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:names:['CONFIG']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:module:metagpt.const", "target": "{\"lineno\":16,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"AGGREGATION\",\"COMPOSITION\",\"DATA_API_DESIGN_FILE_REPO\",\"GENERALIZATION\",\"GRAPH_REPO_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:names:['AGGREGATION', 'COMPOSITION', 'DATA_API_DESIGN_FILE_REPO', 'GENERALIZATION', 'GRAPH_REPO_FILE_REPO']", "target": "{\"lineno\":16,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"AGGREGATION\",\"COMPOSITION\",\"DATA_API_DESIGN_FILE_REPO\",\"GENERALIZATION\",\"GRAPH_REPO_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:module:metagpt.logs", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:names:['logger']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:module:metagpt.repo_parser", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.repo_parser\",\"names\":[\"RepoParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:names:['RepoParser']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.repo_parser\",\"names\":[\"RepoParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:module:metagpt.schema", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"ClassAttribute\",\"ClassMethod\",\"ClassView\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:names:['ClassAttribute', 'ClassMethod', 'ClassView']", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"ClassAttribute\",\"ClassMethod\",\"ClassView\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:module:metagpt.utils.common", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"split_namespace\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:names:['split_namespace']", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"split_namespace\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:module:metagpt.utils.di_graph_repository", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.di_graph_repository\",\"names\":[\"DiGraphRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:names:['DiGraphRepository']", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.di_graph_repository\",\"names\":[\"DiGraphRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:module:metagpt.utils.graph_repository", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.graph_repository\",\"names\":[\"GraphKeyword\",\"GraphRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_class_view.py:names:['GraphKeyword', 'GraphRepository']", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.graph_repository\",\"names\":[\"GraphKeyword\",\"GraphRepository\"]}}"}, {"predicate": "is", "source": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView:_search_main_entry", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/rebuild_sequence_view.py:RebuildSequenceView:_rebuild_sequence_view", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:ast.Constant:\n@Time : 2024/1/4\n@Author : mashenquan\n@File : rebuild_sequence_view.py\n@Desc : Rebuild sequence view info\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2024/1/4\\n@Author : mashenquan\\n@File : rebuild_sequence_view.py\\n@Desc : Rebuild sequence view info\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:module:typing", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:names:['List']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:module:metagpt.actions", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:names:['Action']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:module:metagpt.config", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:names:['CONFIG']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:module:metagpt.const", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"GRAPH_REPO_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:names:['GRAPH_REPO_FILE_REPO']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"GRAPH_REPO_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:module:metagpt.utils.di_graph_repository", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.di_graph_repository\",\"names\":[\"DiGraphRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:names:['DiGraphRepository']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.di_graph_repository\",\"names\":[\"DiGraphRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:module:metagpt.utils.graph_repository", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.graph_repository\",\"names\":[\"GraphKeyword\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/rebuild_sequence_view.py:names:['GraphKeyword']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.graph_repository\",\"names\":[\"GraphKeyword\"]}}"}, {"predicate": "is", "source": "metagpt/actions/write_code.py:PROMPT_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:PROMPT_TEMPLATE", "target": "{\"lineno\":37,\"end_lineno\":85,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:ast.Constant:\n@Time : 2023/5/11 17:45\n@Author : alexanderwu\n@File : write_code.py\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.1.3 of RFC 116, modify the data type of the `cause_by`\n value of the `Message` object.\n@Modified By: mashenquan, 2023-11-27.\n 1. Mark the location of Design, Tasks, Legacy Code and Debug logs in the PROMPT_TEMPLATE with markdown\n code-block formatting to enhance the understanding for the LLM.\n 2. Following the think-act principle, solidify the task parameters when creating the WriteCode object, rather\n than passing them in when calling the run function.\n 3. Encapsulate the input of RunCode into RunCodeContext and encapsulate the output of RunCode into\n RunCodeResult to standardize and unify parameter passing between WriteCode, RunCode, and DebugError.\n", "target": "{\"lineno\":3,\"end_lineno\":16,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:45\\n@Author : alexanderwu\\n@File : write_code.py\\n@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.1.3 of RFC 116, modify the data type of the `cause_by`\\n value of the `Message` object.\\n@Modified By: mashenquan, 2023-11-27.\\n 1. Mark the location of Design, Tasks, Legacy Code and Debug logs in the PROMPT_TEMPLATE with markdown\\n code-block formatting to enhance the understanding for the LLM.\\n 2. Following the think-act principle, solidify the task parameters when creating the WriteCode object, rather\\n than passing them in when calling the run function.\\n 3. Encapsulate the input of RunCode into RunCodeContext and encapsulate the output of RunCode into\\n RunCodeResult to standardize and unify parameter passing between WriteCode, RunCode, and DebugError.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:json", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:module:pydantic", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:names:['Field']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:module:tenacity", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"retry\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:names:['retry', 'stop_after_attempt', 'wait_random_exponential']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"retry\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:module:metagpt.actions.action", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:names:['Action']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:module:metagpt.config", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:names:['CONFIG']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:module:metagpt.const", "target": "{\"lineno\":25,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BUGFIX_FILENAME\",\"CODE_SUMMARIES_FILE_REPO\",\"DOCS_FILE_REPO\",\"TASK_FILE_REPO\",\"TEST_OUTPUTS_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:names:['BUGFIX_FILENAME', 'CODE_SUMMARIES_FILE_REPO', 'DOCS_FILE_REPO', 'TASK_FILE_REPO', 'TEST_OUTPUTS_FILE_REPO']", "target": "{\"lineno\":25,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BUGFIX_FILENAME\",\"CODE_SUMMARIES_FILE_REPO\",\"DOCS_FILE_REPO\",\"TASK_FILE_REPO\",\"TEST_OUTPUTS_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:module:metagpt.logs", "target": "{\"lineno\":32,\"end_lineno\":32,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:names:['logger']", "target": "{\"lineno\":32,\"end_lineno\":32,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:module:metagpt.schema", "target": "{\"lineno\":33,\"end_lineno\":33,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodingContext\",\"Document\",\"RunCodeResult\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:names:['CodingContext', 'Document', 'RunCodeResult']", "target": "{\"lineno\":33,\"end_lineno\":33,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodingContext\",\"Document\",\"RunCodeResult\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:module:metagpt.utils.common", "target": "{\"lineno\":34,\"end_lineno\":34,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:names:['CodeParser']", "target": "{\"lineno\":34,\"end_lineno\":34,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:module:metagpt.utils.file_repository", "target": "{\"lineno\":35,\"end_lineno\":35,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code.py:names:['FileRepository']", "target": "{\"lineno\":35,\"end_lineno\":35,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/actions/write_prd_an.py", "target": "metagpt/actions/write_prd_an.py:main"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:main", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:main", "target": "{\"lineno\":160,\"end_lineno\":162,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"main\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:LANGUAGE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:LANGUAGE", "target": "{\"lineno\":13,\"end_lineno\":18,\"type_name\":\"ast.Assign\",\"tokens\":[\"LANGUAGE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:PROGRAMMING_LANGUAGE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:PROGRAMMING_LANGUAGE", "target": "{\"lineno\":20,\"end_lineno\":25,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROGRAMMING_LANGUAGE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:ORIGINAL_REQUIREMENTS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:ORIGINAL_REQUIREMENTS", "target": "{\"lineno\":27,\"end_lineno\":32,\"type_name\":\"ast.Assign\",\"tokens\":[\"ORIGINAL_REQUIREMENTS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:PROJECT_NAME", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:PROJECT_NAME", "target": "{\"lineno\":34,\"end_lineno\":39,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROJECT_NAME\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:PRODUCT_GOALS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:PRODUCT_GOALS", "target": "{\"lineno\":41,\"end_lineno\":46,\"type_name\":\"ast.Assign\",\"tokens\":[\"PRODUCT_GOALS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:USER_STORIES", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:USER_STORIES", "target": "{\"lineno\":48,\"end_lineno\":59,\"type_name\":\"ast.Assign\",\"tokens\":[\"USER_STORIES\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:COMPETITIVE_ANALYSIS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:COMPETITIVE_ANALYSIS", "target": "{\"lineno\":61,\"end_lineno\":70,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMPETITIVE_ANALYSIS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:COMPETITIVE_QUADRANT_CHART", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:COMPETITIVE_QUADRANT_CHART", "target": "{\"lineno\":72,\"end_lineno\":91,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMPETITIVE_QUADRANT_CHART\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:REQUIREMENT_ANALYSIS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:REQUIREMENT_ANALYSIS", "target": "{\"lineno\":93,\"end_lineno\":98,\"type_name\":\"ast.Assign\",\"tokens\":[\"REQUIREMENT_ANALYSIS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:REQUIREMENT_POOL", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:REQUIREMENT_POOL", "target": "{\"lineno\":100,\"end_lineno\":105,\"type_name\":\"ast.Assign\",\"tokens\":[\"REQUIREMENT_POOL\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:UI_DESIGN_DRAFT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:UI_DESIGN_DRAFT", "target": "{\"lineno\":107,\"end_lineno\":112,\"type_name\":\"ast.Assign\",\"tokens\":[\"UI_DESIGN_DRAFT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:ANYTHING_UNCLEAR", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:ANYTHING_UNCLEAR", "target": "{\"lineno\":114,\"end_lineno\":119,\"type_name\":\"ast.Assign\",\"tokens\":[\"ANYTHING_UNCLEAR\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:ISSUE_TYPE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:ISSUE_TYPE", "target": "{\"lineno\":121,\"end_lineno\":126,\"type_name\":\"ast.Assign\",\"tokens\":[\"ISSUE_TYPE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:IS_RELATIVE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:IS_RELATIVE", "target": "{\"lineno\":128,\"end_lineno\":133,\"type_name\":\"ast.Assign\",\"tokens\":[\"IS_RELATIVE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:REASON", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:REASON", "target": "{\"lineno\":135,\"end_lineno\":137,\"type_name\":\"ast.Assign\",\"tokens\":[\"REASON\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:NODES", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:NODES", "target": "{\"lineno\":140,\"end_lineno\":153,\"type_name\":\"ast.Assign\",\"tokens\":[\"NODES\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:WRITE_PRD_NODE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:WRITE_PRD_NODE", "target": "{\"lineno\":155,\"end_lineno\":155,\"type_name\":\"ast.Assign\",\"tokens\":[\"WRITE_PRD_NODE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:WP_ISSUE_TYPE_NODE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:WP_ISSUE_TYPE_NODE", "target": "{\"lineno\":156,\"end_lineno\":156,\"type_name\":\"ast.Assign\",\"tokens\":[\"WP_ISSUE_TYPE_NODE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd_an.py:WP_IS_RELATIVE_NODE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:WP_IS_RELATIVE_NODE", "target": "{\"lineno\":157,\"end_lineno\":157,\"type_name\":\"ast.Assign\",\"tokens\":[\"WP_IS_RELATIVE_NODE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:ast.Constant:\n@Time : 2023/12/14 11:40\n@Author : alexanderwu\n@File : write_prd_an.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/14 11:40\\n@Author : alexanderwu\\n@File : write_prd_an.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:names:['List']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:module:metagpt.actions.action_node", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:names:['ActionNode']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:module:metagpt.logs", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:names:['logger']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_an.py:__name__:__main__", "target": "{\"lineno\":165,\"end_lineno\":166,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/summarize_code.py:PROMPT_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:PROMPT_TEMPLATE", "target": "{\"lineno\":20,\"end_lineno\":47,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/summarize_code.py:FORMAT_EXAMPLE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:FORMAT_EXAMPLE", "target": "{\"lineno\":49,\"end_lineno\":90,\"type_name\":\"ast.Assign\",\"tokens\":[\"FORMAT_EXAMPLE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:ast.Constant:\n@Author : alexanderwu\n@File : summarize_code.py\n@Modified By: mashenquan, 2023/12/5. Archive the summarization content of issue discovery for use in WriteCode.\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Author : alexanderwu\\n@File : summarize_code.py\\n@Modified By: mashenquan, 2023/12/5. Archive the summarization content of issue discovery for use in WriteCode.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:module:pathlib", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:names:['Path']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:module:pydantic", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:names:['Field']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:module:tenacity", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"retry\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:names:['retry', 'stop_after_attempt', 'wait_random_exponential']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"retry\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:module:metagpt.actions.action", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:names:['Action']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:module:metagpt.config", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:names:['CONFIG']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:module:metagpt.const", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"SYSTEM_DESIGN_FILE_REPO\",\"TASK_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:names:['SYSTEM_DESIGN_FILE_REPO', 'TASK_FILE_REPO']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"SYSTEM_DESIGN_FILE_REPO\",\"TASK_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:module:metagpt.logs", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:names:['logger']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:module:metagpt.schema", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodeSummarizeContext\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:names:['CodeSummarizeContext']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodeSummarizeContext\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:module:metagpt.utils.file_repository", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/summarize_code.py:names:['FileRepository']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "is", "source": "metagpt/actions/research.py:CollectLinks:_search_and_rank_urls", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/research.py:WebBrowseAndSummarize:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/research.py:ConductResearch:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/research.py:get_research_system_text", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:get_research_system_text", "target": "{\"lineno\":281,\"end_lineno\":291,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"get_research_system_text\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/research.py:LANG_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:LANG_PROMPT", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.Assign\",\"tokens\":[\"LANG_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/research.py:RESEARCH_BASE_SYSTEM", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:RESEARCH_BASE_SYSTEM", "target": "{\"lineno\":22,\"end_lineno\":23,\"type_name\":\"ast.Assign\",\"tokens\":[\"RESEARCH_BASE_SYSTEM\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/research.py:RESEARCH_TOPIC_SYSTEM", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:RESEARCH_TOPIC_SYSTEM", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.Assign\",\"tokens\":[\"RESEARCH_TOPIC_SYSTEM\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/research.py:SEARCH_TOPIC_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:SEARCH_TOPIC_PROMPT", "target": "{\"lineno\":27,\"end_lineno\":28,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_TOPIC_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/research.py:SUMMARIZE_SEARCH_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:SUMMARIZE_SEARCH_PROMPT", "target": "{\"lineno\":30,\"end_lineno\":37,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUMMARIZE_SEARCH_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/research.py:COLLECT_AND_RANKURLS_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:COLLECT_AND_RANKURLS_PROMPT", "target": "{\"lineno\":39,\"end_lineno\":51,\"type_name\":\"ast.Assign\",\"tokens\":[\"COLLECT_AND_RANKURLS_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/research.py:WEB_BROWSE_AND_SUMMARIZE_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:WEB_BROWSE_AND_SUMMARIZE_PROMPT", "target": "{\"lineno\":53,\"end_lineno\":62,\"type_name\":\"ast.Assign\",\"tokens\":[\"WEB_BROWSE_AND_SUMMARIZE_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/research.py:CONDUCT_RESEARCH_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:CONDUCT_RESEARCH_PROMPT", "target": "{\"lineno\":65,\"end_lineno\":77,\"type_name\":\"ast.Assign\",\"tokens\":[\"CONDUCT_RESEARCH_PROMPT\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:module:__future__", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:names:['annotations']", "target": "{\"lineno\":3,\"end_lineno\":3,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:asyncio", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:module:typing", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Callable\",\"Optional\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:names:['Callable', 'Optional', 'Union']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Callable\",\"Optional\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:module:pydantic", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\",\"parse_obj_as\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:names:['Field', 'parse_obj_as']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\",\"parse_obj_as\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:module:metagpt.actions", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:names:['Action']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:module:metagpt.config", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:names:['CONFIG']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:module:metagpt.llm", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:names:['LLM']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:module:metagpt.logs", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:names:['logger']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:names:['BaseLLM']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:module:metagpt.tools.search_engine", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.search_engine\",\"names\":[\"SearchEngine\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:names:['SearchEngine']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.search_engine\",\"names\":[\"SearchEngine\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:module:metagpt.tools.web_browser_engine", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.web_browser_engine\",\"names\":[\"WebBrowserEngine\",\"WebBrowserEngineType\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:names:['WebBrowserEngine', 'WebBrowserEngineType']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.web_browser_engine\",\"names\":[\"WebBrowserEngine\",\"WebBrowserEngineType\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:module:metagpt.utils.common", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:names:['OutputParser']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:module:metagpt.utils.text", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.text\",\"names\":[\"generate_prompt_chunk\",\"reduce_message_length\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/research.py:names:['generate_prompt_chunk', 'reduce_message_length']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.text\",\"names\":[\"generate_prompt_chunk\",\"reduce_message_length\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:ast.Constant:\n@Time : 2023/8/28\n@Author : mashenquan\n@File : skill_action.py\n@Desc : Call learned skill\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/28\\n@Author : mashenquan\\n@File : skill_action.py\\n@Desc : Call learned skill\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:module:__future__", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:names:['annotations']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:ast", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"ast\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:importlib", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"importlib\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:traceback", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"traceback\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:module:copy", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"copy\",\"names\":[\"deepcopy\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:names:['deepcopy']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"copy\",\"names\":[\"deepcopy\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:module:typing", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:names:['Dict', 'Optional']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:module:metagpt.actions", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:names:['Action']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:module:metagpt.learn.skill_loader", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.skill_loader\",\"names\":[\"Skill\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:names:['Skill']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.learn.skill_loader\",\"names\":[\"Skill\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:module:metagpt.logs", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:names:['logger']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:module:metagpt.schema", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/skill_action.py:names:['Message']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "is", "source": "metagpt/actions/write_test.py:PROMPT_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:PROMPT_TEMPLATE", "target": "{\"lineno\":20,\"end_lineno\":38,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:ast.Constant:\n@Time : 2023/5/11 22:12\n@Author : alexanderwu\n@File : write_test.py\n@Modified By: mashenquan, 2023-11-27. Following the think-act principle, solidify the task parameters when creating the\n WriteTest object, rather than passing them in when calling the run function.\n", "target": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 22:12\\n@Author : alexanderwu\\n@File : write_test.py\\n@Modified By: mashenquan, 2023-11-27. Following the think-act principle, solidify the task parameters when creating the\\n WriteTest object, rather than passing them in when calling the run function.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:module:typing", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:names:['Optional']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:module:metagpt.actions.action", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:names:['Action']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:module:metagpt.config", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:names:['CONFIG']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:module:metagpt.const", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"TEST_CODES_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:names:['TEST_CODES_FILE_REPO']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"TEST_CODES_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:module:metagpt.logs", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:names:['logger']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:module:metagpt.schema", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\",\"TestingContext\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:names:['Document', 'TestingContext']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\",\"TestingContext\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:module:metagpt.utils.common", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_test.py:names:['CodeParser']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"predicate": "is", "source": "metagpt/actions/debug_error.py:PROMPT_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:PROMPT_TEMPLATE", "target": "{\"lineno\":23,\"end_lineno\":48,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:ast.Constant:\n@Time : 2023/5/11 17:46\n@Author : alexanderwu\n@File : debug_error.py\n@Modified By: mashenquan, 2023/11/27.\n 1. Divide the context into three components: legacy code, unit test code, and console log.\n 2. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\n", "target": "{\"lineno\":3,\"end_lineno\":10,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:46\\n@Author : alexanderwu\\n@File : debug_error.py\\n@Modified By: mashenquan, 2023/11/27.\\n 1. Divide the context into three components: legacy code, unit test code, and console log.\\n 2. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:re", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"re\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:module:pydantic", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:names:['Field']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:module:metagpt.actions.action", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:names:['Action']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:module:metagpt.config", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:names:['CONFIG']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:module:metagpt.const", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"TEST_CODES_FILE_REPO\",\"TEST_OUTPUTS_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:names:['TEST_CODES_FILE_REPO', 'TEST_OUTPUTS_FILE_REPO']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"TEST_CODES_FILE_REPO\",\"TEST_OUTPUTS_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:module:metagpt.logs", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:names:['logger']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:module:metagpt.schema", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"RunCodeContext\",\"RunCodeResult\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:names:['RunCodeContext', 'RunCodeResult']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"RunCodeContext\",\"RunCodeResult\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:module:metagpt.utils.common", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:names:['CodeParser']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:module:metagpt.utils.file_repository", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/debug_error.py:names:['FileRepository']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:WriteDesign:_new_system_design", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:WriteDesign:_merge", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:WriteDesign:_update_system_design", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:WriteDesign:_save_data_api_design", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:WriteDesign:_save_seq_flow", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:WriteDesign:_save_pdf", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:WriteDesign:_save_mermaid_file", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/design_api.py:NEW_REQ_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:NEW_REQ_TEMPLATE", "target": "{\"lineno\":31,\"end_lineno\":37,\"type_name\":\"ast.Assign\",\"tokens\":[\"NEW_REQ_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:ast.Constant:\n@Time : 2023/5/11 19:26\n@Author : alexanderwu\n@File : design_api.py\n@Modified By: mashenquan, 2023/11/27.\n 1. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\n 2. According to the design in Section 2.2.3.5.3 of RFC 135, add incremental iteration functionality.\n@Modified By: mashenquan, 2023/12/5. Move the generation logic of the project name to WritePRD.\n", "target": "{\"lineno\":3,\"end_lineno\":11,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 19:26\\n@Author : alexanderwu\\n@File : design_api.py\\n@Modified By: mashenquan, 2023/11/27.\\n 1. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\\n 2. According to the design in Section 2.2.3.5.3 of RFC 135, add incremental iteration functionality.\\n@Modified By: mashenquan, 2023/12/5. Move the generation logic of the project name to WritePRD.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:json", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:module:pathlib", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:names:['Path']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:module:typing", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:names:['Optional']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:module:metagpt.actions", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"ActionOutput\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:names:['Action', 'ActionOutput']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"ActionOutput\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:module:metagpt.actions.design_api_an", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api_an\",\"names\":[\"DESIGN_API_NODE\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:names:['DESIGN_API_NODE']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api_an\",\"names\":[\"DESIGN_API_NODE\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:module:metagpt.config", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:names:['CONFIG']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:module:metagpt.const", "target": "{\"lineno\":19,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DATA_API_DESIGN_FILE_REPO\",\"PRDS_FILE_REPO\",\"SEQ_FLOW_FILE_REPO\",\"SYSTEM_DESIGN_FILE_REPO\",\"SYSTEM_DESIGN_PDF_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:names:['DATA_API_DESIGN_FILE_REPO', 'PRDS_FILE_REPO', 'SEQ_FLOW_FILE_REPO', 'SYSTEM_DESIGN_FILE_REPO', 'SYSTEM_DESIGN_PDF_FILE_REPO']", "target": "{\"lineno\":19,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DATA_API_DESIGN_FILE_REPO\",\"PRDS_FILE_REPO\",\"SEQ_FLOW_FILE_REPO\",\"SYSTEM_DESIGN_FILE_REPO\",\"SYSTEM_DESIGN_PDF_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:module:metagpt.logs", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:names:['logger']", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:module:metagpt.schema", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\",\"Documents\",\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:names:['Document', 'Documents', 'Message']", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\",\"Documents\",\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:module:metagpt.utils.file_repository", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:names:['FileRepository']", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:module:metagpt.utils.mermaid", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.mermaid\",\"names\":[\"mermaid_to_file\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api.py:names:['mermaid_to_file']", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.mermaid\",\"names\":[\"mermaid_to_file\"]}}"}, {"predicate": "is", "source": "metagpt/actions/design_api_an.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/design_api_an.py", "target": "python"}, {"predicate": "is", "source": "metagpt/actions/design_api_an.py:IMPLEMENTATION_APPROACH", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:IMPLEMENTATION_APPROACH", "target": "{\"lineno\":13,\"end_lineno\":18,\"type_name\":\"ast.Assign\",\"tokens\":[\"IMPLEMENTATION_APPROACH\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/design_api_an.py:PROJECT_NAME", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:PROJECT_NAME", "target": "{\"lineno\":20,\"end_lineno\":22,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROJECT_NAME\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/design_api_an.py:FILE_LIST", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:FILE_LIST", "target": "{\"lineno\":24,\"end_lineno\":29,\"type_name\":\"ast.Assign\",\"tokens\":[\"FILE_LIST\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/design_api_an.py:DATA_STRUCTURES_AND_INTERFACES", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:DATA_STRUCTURES_AND_INTERFACES", "target": "{\"lineno\":31,\"end_lineno\":38,\"type_name\":\"ast.Assign\",\"tokens\":[\"DATA_STRUCTURES_AND_INTERFACES\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/design_api_an.py:PROGRAM_CALL_FLOW", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:PROGRAM_CALL_FLOW", "target": "{\"lineno\":40,\"end_lineno\":46,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROGRAM_CALL_FLOW\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/design_api_an.py:ANYTHING_UNCLEAR", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:ANYTHING_UNCLEAR", "target": "{\"lineno\":48,\"end_lineno\":53,\"type_name\":\"ast.Assign\",\"tokens\":[\"ANYTHING_UNCLEAR\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/design_api_an.py:NODES", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:NODES", "target": "{\"lineno\":55,\"end_lineno\":62,\"type_name\":\"ast.Assign\",\"tokens\":[\"NODES\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/design_api_an.py:DESIGN_API_NODE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:DESIGN_API_NODE", "target": "{\"lineno\":64,\"end_lineno\":64,\"type_name\":\"ast.Assign\",\"tokens\":[\"DESIGN_API_NODE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:ast.Constant:\n@Time : 2023/12/12 22:24\n@Author : alexanderwu\n@File : design_api_an.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/12 22:24\\n@Author : alexanderwu\\n@File : design_api_an.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:names:['List']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:module:metagpt.actions.action_node", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:names:['ActionNode']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:module:metagpt.utils.mermaid", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.mermaid\",\"names\":[\"MMC1\",\"MMC2\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_an.py:names:['MMC1', 'MMC2']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.mermaid\",\"names\":[\"MMC1\",\"MMC2\"]}}"}, {"predicate": "is", "source": "metagpt/actions/action_output.py:ActionOutput:__init__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_output.py:ast.Constant:\n@Time : 2023/7/11 10:03\n@Author : chengmaoyu\n@File : action_output\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/7/11 10:03\\n@Author : chengmaoyu\\n@File : action_output\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_output.py:module:pydantic", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_output.py:names:['BaseModel']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/add_requirement.py:ast.Constant:\n@Time : 2023/5/20 17:46\n@Author : alexanderwu\n@File : add_requirement.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/20 17:46\\n@Author : alexanderwu\\n@File : add_requirement.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/add_requirement.py:module:metagpt.actions", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/add_requirement.py:names:['Action']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "is", "source": "metagpt/actions/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/__init__.py", "target": "python"}, {"predicate": "has_class", "source": "metagpt/actions/__init__.py", "target": "metagpt/actions/__init__.py:ActionType"}, {"predicate": "is", "source": "metagpt/actions/__init__.py:ActionType", "target": "class"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:ActionType", "target": "{\"lineno\":27,\"end_lineno\":44,\"type_name\":\"ast.ClassDef\",\"tokens\":[\"ActionType\"],\"properties\":{}}"}, {"predicate": "has_class_view", "source": "metagpt/actions/__init__.py:ActionType", "target": "{\"name\":\"ActionType\",\"abstraction\":false,\"static\":false,\"visibility\":\"\",\"attributes\":[],\"methods\":[]}"}, {"predicate": "is", "source": "metagpt/actions/__init__.py:__all__", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:__all__", "target": "{\"lineno\":47,\"end_lineno\":51,\"type_name\":\"ast.Assign\",\"tokens\":[\"__all__\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:ast.Constant:\n@Time : 2023/5/11 17:44\n@Author : alexanderwu\n@File : __init__.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:44\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:enum", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['Enum']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.action", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['Action']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.action_output", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_output\",\"names\":[\"ActionOutput\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['ActionOutput']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_output\",\"names\":[\"ActionOutput\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.add_requirement", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.add_requirement\",\"names\":[\"UserRequirement\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['UserRequirement']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.add_requirement\",\"names\":[\"UserRequirement\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.debug_error", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.debug_error\",\"names\":[\"DebugError\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['DebugError']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.debug_error\",\"names\":[\"DebugError\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.design_api", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api\",\"names\":[\"WriteDesign\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['WriteDesign']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api\",\"names\":[\"WriteDesign\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.design_api_review", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api_review\",\"names\":[\"DesignReview\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['DesignReview']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.design_api_review\",\"names\":[\"DesignReview\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.project_management", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.project_management\",\"names\":[\"WriteTasks\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['WriteTasks']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.project_management\",\"names\":[\"WriteTasks\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.research", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.research\",\"names\":[\"CollectLinks\",\"WebBrowseAndSummarize\",\"ConductResearch\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['CollectLinks', 'WebBrowseAndSummarize', 'ConductResearch']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.research\",\"names\":[\"CollectLinks\",\"WebBrowseAndSummarize\",\"ConductResearch\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.run_code", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.run_code\",\"names\":[\"RunCode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['RunCode']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.run_code\",\"names\":[\"RunCode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.search_and_summarize", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.search_and_summarize\",\"names\":[\"SearchAndSummarize\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['SearchAndSummarize']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.search_and_summarize\",\"names\":[\"SearchAndSummarize\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.write_code", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_code\",\"names\":[\"WriteCode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['WriteCode']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_code\",\"names\":[\"WriteCode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.write_code_review", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_code_review\",\"names\":[\"WriteCodeReview\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['WriteCodeReview']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_code_review\",\"names\":[\"WriteCodeReview\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.write_prd", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_prd\",\"names\":[\"WritePRD\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['WritePRD']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_prd\",\"names\":[\"WritePRD\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.write_prd_review", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_prd_review\",\"names\":[\"WritePRDReview\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['WritePRDReview']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_prd_review\",\"names\":[\"WritePRDReview\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:module:metagpt.actions.write_test", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_test\",\"names\":[\"WriteTest\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/__init__.py:names:['WriteTest']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_test\",\"names\":[\"WriteTest\"]}}"}, {"predicate": "is", "source": "metagpt/actions/write_review.py:REVIEW", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_review.py:REVIEW", "target": "{\"lineno\":12,\"end_lineno\":20,\"type_name\":\"ast.Assign\",\"tokens\":[\"REVIEW\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_review.py:LGTM", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_review.py:LGTM", "target": "{\"lineno\":22,\"end_lineno\":28,\"type_name\":\"ast.Assign\",\"tokens\":[\"LGTM\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_review.py:WRITE_REVIEW_NODE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_review.py:WRITE_REVIEW_NODE", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.Assign\",\"tokens\":[\"WRITE_REVIEW_NODE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_review.py:ast.Constant:\n@Author : alexanderwu\n@File : write_review.py\n", "target": "{\"lineno\":3,\"end_lineno\":6,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Author : alexanderwu\\n@File : write_review.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_review.py:module:typing", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_review.py:names:['List']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_review.py:module:metagpt.actions", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_review.py:names:['Action']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_review.py:module:metagpt.actions.action_node", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_review.py:names:['ActionNode']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:_init_with_instruction", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:__str__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:__repr__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:_aask", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/action.py:Action:_run_action_node", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:ast.Constant:\n@Time : 2023/5/11 14:43\n@Author : alexanderwu\n@File : action.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 14:43\\n@Author : alexanderwu\\n@File : action.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:module:__future__", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:names:['annotations']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:module:typing", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:names:['Optional', 'Union']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\",\"Union\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:module:pydantic", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"ConfigDict\",\"Field\",\"model_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:names:['ConfigDict', 'Field', 'model_validator']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"ConfigDict\",\"Field\",\"model_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:module:metagpt.actions.action_node", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:names:['ActionNode']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:module:metagpt.llm", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:names:['LLM']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:names:['BaseLLM']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:module:metagpt.schema", "target": "{\"lineno\":18,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodeSummarizeContext\",\"CodingContext\",\"RunCodeContext\",\"SerializationMixin\",\"TestingContext\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action.py:names:['CodeSummarizeContext', 'CodingContext', 'RunCodeContext', 'SerializationMixin', 'TestingContext']", "target": "{\"lineno\":18,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodeSummarizeContext\",\"CodingContext\",\"RunCodeContext\",\"SerializationMixin\",\"TestingContext\"]}}"}, {"predicate": "is", "source": "metagpt/actions/execute_task.py:ExecuteTask:run", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/actions/execute_task.py:ast.Constant:\n@Time : 2023/9/13 12:26\n@Author : femto Zheng\n@File : execute_task.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/13 12:26\\n@Author : femto Zheng\\n@File : execute_task.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/execute_task.py:module:metagpt.actions", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/execute_task.py:names:['Action']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/execute_task.py:module:metagpt.schema", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/execute_task.py:names:['Message']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:WritePRD:_run_new_requirement", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:WritePRD:_is_relative", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:WritePRD:_merge", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:WritePRD:_update_prd", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:WritePRD:_save_competitive_analysis", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:WritePRD:_save_pdf", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:WritePRD:_rename_workspace", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:WritePRD:_is_bugfix", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:CONTEXT_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:CONTEXT_TEMPLATE", "target": "{\"lineno\":44,\"end_lineno\":53,\"type_name\":\"ast.Assign\",\"tokens\":[\"CONTEXT_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_prd.py:NEW_REQ_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:NEW_REQ_TEMPLATE", "target": "{\"lineno\":55,\"end_lineno\":61,\"type_name\":\"ast.Assign\",\"tokens\":[\"NEW_REQ_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:ast.Constant:\n@Time : 2023/5/11 17:45\n@Author : alexanderwu\n@File : write_prd.py\n@Modified By: mashenquan, 2023/11/27.\n 1. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\n 2. According to the design in Section 2.2.3.5.2 of RFC 135, add incremental iteration functionality.\n 3. Move the document storage operations related to WritePRD from the save operation of WriteDesign.\n@Modified By: mashenquan, 2023/12/5. Move the generation logic of the project name to WritePRD.\n", "target": "{\"lineno\":3,\"end_lineno\":12,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:45\\n@Author : alexanderwu\\n@File : write_prd.py\\n@Modified By: mashenquan, 2023/11/27.\\n 1. According to Section 2.2.3.1 of RFC 135, replace file data in the message with the file name.\\n 2. According to the design in Section 2.2.3.5.2 of RFC 135, add incremental iteration functionality.\\n 3. Move the document storage operations related to WritePRD from the save operation of WriteDesign.\\n@Modified By: mashenquan, 2023/12/5. Move the generation logic of the project name to WritePRD.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:__future__", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['annotations']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:json", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:pathlib", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['Path']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:typing", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['Optional']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:metagpt.actions", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"ActionOutput\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['Action', 'ActionOutput']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"ActionOutput\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:metagpt.actions.action_node", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['ActionNode']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:metagpt.actions.fix_bug", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.fix_bug\",\"names\":[\"FixBug\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['FixBug']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.fix_bug\",\"names\":[\"FixBug\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:metagpt.actions.write_prd_an", "target": "{\"lineno\":23,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_prd_an\",\"names\":[\"PROJECT_NAME\",\"WP_IS_RELATIVE_NODE\",\"WP_ISSUE_TYPE_NODE\",\"WRITE_PRD_NODE\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['PROJECT_NAME', 'WP_IS_RELATIVE_NODE', 'WP_ISSUE_TYPE_NODE', 'WRITE_PRD_NODE']", "target": "{\"lineno\":23,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.write_prd_an\",\"names\":[\"PROJECT_NAME\",\"WP_IS_RELATIVE_NODE\",\"WP_ISSUE_TYPE_NODE\",\"WRITE_PRD_NODE\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:metagpt.config", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['CONFIG']", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:metagpt.const", "target": "{\"lineno\":30,\"end_lineno\":37,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BUGFIX_FILENAME\",\"COMPETITIVE_ANALYSIS_FILE_REPO\",\"DOCS_FILE_REPO\",\"PRD_PDF_FILE_REPO\",\"PRDS_FILE_REPO\",\"REQUIREMENT_FILENAME\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['BUGFIX_FILENAME', 'COMPETITIVE_ANALYSIS_FILE_REPO', 'DOCS_FILE_REPO', 'PRD_PDF_FILE_REPO', 'PRDS_FILE_REPO', 'REQUIREMENT_FILENAME']", "target": "{\"lineno\":30,\"end_lineno\":37,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"BUGFIX_FILENAME\",\"COMPETITIVE_ANALYSIS_FILE_REPO\",\"DOCS_FILE_REPO\",\"PRD_PDF_FILE_REPO\",\"PRDS_FILE_REPO\",\"REQUIREMENT_FILENAME\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:metagpt.logs", "target": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['logger']", "target": "{\"lineno\":38,\"end_lineno\":38,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:metagpt.schema", "target": "{\"lineno\":39,\"end_lineno\":39,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"BugFixContext\",\"Document\",\"Documents\",\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['BugFixContext', 'Document', 'Documents', 'Message']", "target": "{\"lineno\":39,\"end_lineno\":39,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"BugFixContext\",\"Document\",\"Documents\",\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:metagpt.utils.common", "target": "{\"lineno\":40,\"end_lineno\":40,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['CodeParser']", "target": "{\"lineno\":40,\"end_lineno\":40,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:metagpt.utils.file_repository", "target": "{\"lineno\":41,\"end_lineno\":41,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['FileRepository']", "target": "{\"lineno\":41,\"end_lineno\":41,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:module:metagpt.utils.mermaid", "target": "{\"lineno\":42,\"end_lineno\":42,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.mermaid\",\"names\":[\"mermaid_to_file\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd.py:names:['mermaid_to_file']", "target": "{\"lineno\":42,\"end_lineno\":42,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.mermaid\",\"names\":[\"mermaid_to_file\"]}}"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py:_simplify_python_code", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:_simplify_python_code", "target": "{\"lineno\":199,\"end_lineno\":212,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"_simplify_python_code\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py:PYTHON_DOCSTRING_SYSTEM", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:PYTHON_DOCSTRING_SYSTEM", "target": "{\"lineno\":34,\"end_lineno\":54,\"type_name\":\"ast.Assign\",\"tokens\":[\"PYTHON_DOCSTRING_SYSTEM\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py:PYTHON_DOCSTRING_EXAMPLE_GOOGLE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:PYTHON_DOCSTRING_EXAMPLE_GOOGLE", "target": "{\"lineno\":58,\"end_lineno\":84,\"type_name\":\"ast.Assign\",\"tokens\":[\"PYTHON_DOCSTRING_EXAMPLE_GOOGLE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py:PYTHON_DOCSTRING_EXAMPLE_NUMPY", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:PYTHON_DOCSTRING_EXAMPLE_NUMPY", "target": "{\"lineno\":86,\"end_lineno\":122,\"type_name\":\"ast.Assign\",\"tokens\":[\"PYTHON_DOCSTRING_EXAMPLE_NUMPY\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py:PYTHON_DOCSTRING_EXAMPLE_SPHINX", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:PYTHON_DOCSTRING_EXAMPLE_SPHINX", "target": "{\"lineno\":124,\"end_lineno\":147,\"type_name\":\"ast.Assign\",\"tokens\":[\"PYTHON_DOCSTRING_EXAMPLE_SPHINX\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_docstring.py:_python_docstring_style", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:_python_docstring_style", "target": "{\"lineno\":149,\"end_lineno\":153,\"type_name\":\"ast.Assign\",\"tokens\":[\"_python_docstring_style\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:ast.Constant:Code Docstring Generator.\n\nThis script provides a tool to automatically generate docstrings for Python code. It uses the specified style to create\ndocstrings for the given code and system text.\n\nUsage:\n python3 -m metagpt.actions.write_docstring [--overwrite] [--style=]\n\nArguments:\n filename The path to the Python file for which you want to generate docstrings.\n\nOptions:\n --overwrite If specified, overwrite the original file with the code containing docstrings.\n --style= Specify the style of the generated docstrings.\n Valid values: 'google', 'numpy', or 'sphinx'.\n Default: 'google'\n\nExample:\n python3 -m metagpt.actions.write_docstring ./metagpt/startup.py --overwrite False --style=numpy\n\nThis script uses the 'fire' library to create a command-line interface. It generates docstrings for the given Python code using\nthe specified docstring style and adds them to the code.\n", "target": "{\"lineno\":1,\"end_lineno\":23,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"Code Docstring Generator.\\n\\nThis script provides a tool to automatically generate docstrings for Python code. It uses the specified style to create\\ndocstrings for the given code and system text.\\n\\nUsage:\\n python3 -m metagpt.actions.write_docstring [--overwrite] [--style=]\\n\\nArguments:\\n filename The path to the Python file for which you want to generate docstrings.\\n\\nOptions:\\n --overwrite If specified, overwrite the original file with the code containing docstrings.\\n --style= Specify the style of the generated docstrings.\\n Valid values: 'google', 'numpy', or 'sphinx'.\\n Default: 'google'\\n\\nExample:\\n python3 -m metagpt.actions.write_docstring ./metagpt/startup.py --overwrite False --style=numpy\\n\\nThis script uses the 'fire' library to create a command-line interface. It generates docstrings for the given Python code using\\nthe specified docstring style and adds them to the code.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:module:__future__", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:names:['annotations']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:ast", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.Import\",\"tokens\":[\"ast\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:module:pathlib", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:names:['Path']", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:module:typing", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Literal\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:names:['Literal', 'Optional']", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Literal\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:module:metagpt.actions.action", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:names:['Action']", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:module:metagpt.utils.common", "target": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\",\"aread\",\"awrite\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:names:['OutputParser', 'aread', 'awrite']", "target": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\",\"aread\",\"awrite\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:module:metagpt.utils.pycst", "target": "{\"lineno\":32,\"end_lineno\":32,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.pycst\",\"names\":[\"merge_docstring\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:names:['merge_docstring']", "target": "{\"lineno\":32,\"end_lineno\":32,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.pycst\",\"names\":[\"merge_docstring\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_docstring.py:__name__:__main__", "target": "{\"lineno\":215,\"end_lineno\":218,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/fix_bug.py:ast.Constant:\n@Time : 2023-12-12\n@Author : mashenquan\n@File : fix_bug.py\n", "target": "{\"lineno\":2,\"end_lineno\":6,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023-12-12\\n@Author : mashenquan\\n@File : fix_bug.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/fix_bug.py:module:metagpt.actions", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/fix_bug.py:names:['Action']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "is", "source": "metagpt/actions/prepare_interview.py:QUESTIONS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_interview.py:QUESTIONS", "target": "{\"lineno\":11,\"end_lineno\":18,\"type_name\":\"ast.Assign\",\"tokens\":[\"QUESTIONS\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_interview.py:ast.Constant:\n@Time : 2023/9/19 15:02\n@Author : DevXiaolan\n@File : prepare_interview.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/19 15:02\\n@Author : DevXiaolan\\n@File : prepare_interview.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_interview.py:module:metagpt.actions", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_interview.py:names:['Action']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_interview.py:module:metagpt.actions.action_node", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_interview.py:names:['ActionNode']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "is", "source": "metagpt/actions/run_code.py:RunCode:_install_via_subprocess", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/run_code.py:RunCode:_install_dependencies", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/run_code.py:PROMPT_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:PROMPT_TEMPLATE", "target": "{\"lineno\":29,\"end_lineno\":49,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/run_code.py:CONTEXT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:CONTEXT", "target": "{\"lineno\":51,\"end_lineno\":75,\"type_name\":\"ast.Assign\",\"tokens\":[\"CONTEXT\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:ast.Constant:\n@Time : 2023/5/11 17:46\n@Author : alexanderwu\n@File : run_code.py\n@Modified By: mashenquan, 2023/11/27.\n 1. Mark the location of Console logs in the PROMPT_TEMPLATE with markdown code-block formatting to enhance\n the understanding for the LLM.\n 2. Fix bug: Add the \"install dependency\" operation.\n 3. Encapsulate the input of RunCode into RunCodeContext and encapsulate the output of RunCode into\n RunCodeResult to standardize and unify parameter passing between WriteCode, RunCode, and DebugError.\n 4. According to section 2.2.3.5.7 of RFC 135, change the method of transferring file content\n (code files, unit test files, log files) from using the message to using the file name.\n 5. Merged the `Config` class of send18:dev branch to take over the set/get operations of the Environment\n class.\n", "target": "{\"lineno\":3,\"end_lineno\":17,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:46\\n@Author : alexanderwu\\n@File : run_code.py\\n@Modified By: mashenquan, 2023/11/27.\\n 1. Mark the location of Console logs in the PROMPT_TEMPLATE with markdown code-block formatting to enhance\\n the understanding for the LLM.\\n 2. Fix bug: Add the \\\"install dependency\\\" operation.\\n 3. Encapsulate the input of RunCode into RunCodeContext and encapsulate the output of RunCode into\\n RunCodeResult to standardize and unify parameter passing between WriteCode, RunCode, and DebugError.\\n 4. According to section 2.2.3.5.7 of RFC 135, change the method of transferring file content\\n (code files, unit test files, log files) from using the message to using the file name.\\n 5. Merged the `Config` class of send18:dev branch to take over the set/get operations of the Environment\\n class.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:subprocess", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.Import\",\"tokens\":[\"subprocess\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:module:typing", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Tuple\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:names:['Tuple']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Tuple\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:module:pydantic", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:names:['Field']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:module:metagpt.actions.action", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:names:['Action']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:module:metagpt.config", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:names:['CONFIG']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:module:metagpt.logs", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:names:['logger']", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:module:metagpt.schema", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"RunCodeContext\",\"RunCodeResult\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:names:['RunCodeContext', 'RunCodeResult']", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"RunCodeContext\",\"RunCodeResult\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:module:metagpt.utils.exceptions", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/run_code.py:names:['handle_exception']", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.exceptions\",\"names\":[\"handle_exception\"]}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:main", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:main", "target": "{\"lineno\":586,\"end_lineno\":587,\"type_name\":\"ast.AsyncFunctionDef\",\"tokens\":[\"main\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:REVIEW", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:REVIEW", "target": "{\"lineno\":13,\"end_lineno\":22,\"type_name\":\"ast.Assign\",\"tokens\":[\"REVIEW\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:LGTM", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:LGTM", "target": "{\"lineno\":24,\"end_lineno\":30,\"type_name\":\"ast.Assign\",\"tokens\":[\"LGTM\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:ACTIONS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:ACTIONS", "target": "{\"lineno\":32,\"end_lineno\":62,\"type_name\":\"ast.Assign\",\"tokens\":[\"ACTIONS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:WRITE_DRAFT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:WRITE_DRAFT", "target": "{\"lineno\":64,\"end_lineno\":69,\"type_name\":\"ast.Assign\",\"tokens\":[\"WRITE_DRAFT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:WRITE_MOVE_FUNCTION", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:WRITE_MOVE_FUNCTION", "target": "{\"lineno\":72,\"end_lineno\":81,\"type_name\":\"ast.Assign\",\"tokens\":[\"WRITE_MOVE_FUNCTION\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:REWRITE_CODE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:REWRITE_CODE", "target": "{\"lineno\":84,\"end_lineno\":95,\"type_name\":\"ast.Assign\",\"tokens\":[\"REWRITE_CODE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:CODE_REVIEW_CONTEXT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:CODE_REVIEW_CONTEXT", "target": "{\"lineno\":98,\"end_lineno\":417,\"type_name\":\"ast.Assign\",\"tokens\":[\"CODE_REVIEW_CONTEXT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:CODE_REVIEW_SMALLEST_CONTEXT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:CODE_REVIEW_SMALLEST_CONTEXT", "target": "{\"lineno\":420,\"end_lineno\":490,\"type_name\":\"ast.Assign\",\"tokens\":[\"CODE_REVIEW_SMALLEST_CONTEXT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:CODE_REVIEW_SAMPLE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:CODE_REVIEW_SAMPLE", "target": "{\"lineno\":493,\"end_lineno\":555,\"type_name\":\"ast.Assign\",\"tokens\":[\"CODE_REVIEW_SAMPLE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:WRITE_CODE_NODE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:WRITE_CODE_NODE", "target": "{\"lineno\":558,\"end_lineno\":558,\"type_name\":\"ast.Assign\",\"tokens\":[\"WRITE_CODE_NODE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:WRITE_MOVE_NODE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:WRITE_MOVE_NODE", "target": "{\"lineno\":559,\"end_lineno\":559,\"type_name\":\"ast.Assign\",\"tokens\":[\"WRITE_MOVE_NODE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_an_draft.py:CR_FOR_MOVE_FUNCTION_BY_3", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:CR_FOR_MOVE_FUNCTION_BY_3", "target": "{\"lineno\":562,\"end_lineno\":574,\"type_name\":\"ast.Assign\",\"tokens\":[\"CR_FOR_MOVE_FUNCTION_BY_3\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:ast.Constant:\n@Author : alexanderwu\n@File : write_review.py\n", "target": "{\"lineno\":3,\"end_lineno\":6,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Author : alexanderwu\\n@File : write_review.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:asyncio", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:names:['List']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:module:metagpt.actions", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:names:['Action']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:module:metagpt.actions.action_node", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:names:['ActionNode']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_an_draft.py:__name__:__main__", "target": "{\"lineno\":590,\"end_lineno\":591,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:ast.Constant:\n@Time : 2023/8/28\n@Author : mashenquan\n@File : talk_action.py\n@Desc : Act as it\u2019s a talk\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/8/28\\n@Author : mashenquan\\n@File : talk_action.py\\n@Desc : Act as it\u2019s a talk\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:module:typing", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:names:['Optional']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:module:metagpt.actions", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:names:['Action']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:module:metagpt.config", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:names:['CONFIG']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:module:metagpt.const", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DEFAULT_LANGUAGE\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:names:['DEFAULT_LANGUAGE']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DEFAULT_LANGUAGE\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:module:metagpt.logs", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:names:['logger']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:module:metagpt.schema", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/talk_action.py:names:['Message']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_tutorial.py:ast.Constant:\n@Time : 2023/9/4 15:40:40\n@Author : Stitch-z\n@File : tutorial_assistant.py\n@Describe : Actions of the tutorial assistant, including writing directories and document content.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 15:40:40\\n@Author : Stitch-z\\n@File : tutorial_assistant.py\\n@Describe : Actions of the tutorial assistant, including writing directories and document content.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_tutorial.py:module:typing", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_tutorial.py:names:['Dict']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Dict\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_tutorial.py:module:metagpt.actions", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_tutorial.py:names:['Action']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_tutorial.py:module:metagpt.prompts.tutorial_assistant", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.prompts.tutorial_assistant\",\"names\":[\"CONTENT_PROMPT\",\"DIRECTORY_PROMPT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_tutorial.py:names:['CONTENT_PROMPT', 'DIRECTORY_PROMPT']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.prompts.tutorial_assistant\",\"names\":[\"CONTENT_PROMPT\",\"DIRECTORY_PROMPT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_tutorial.py:module:metagpt.utils.common", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_tutorial.py:names:['OutputParser']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_review.py:ast.Constant:\n@Time : 2023/5/11 17:45\n@Author : alexanderwu\n@File : write_prd_review.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:45\\n@Author : alexanderwu\\n@File : write_prd_review.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_review.py:module:typing", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_review.py:names:['Optional']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_review.py:module:metagpt.actions.action", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_prd_review.py:names:['Action']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "is", "source": "metagpt/actions/generate_questions.py:QUESTIONS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/generate_questions.py:QUESTIONS", "target": "{\"lineno\":11,\"end_lineno\":17,\"type_name\":\"ast.Assign\",\"tokens\":[\"QUESTIONS\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/generate_questions.py:ast.Constant:\n@Time : 2023/9/12 17:45\n@Author : fisherdeng\n@File : generate_questions.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/12 17:45\\n@Author : fisherdeng\\n@File : generate_questions.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/generate_questions.py:module:metagpt.actions", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/generate_questions.py:names:['Action']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/generate_questions.py:module:metagpt.actions.action_node", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/generate_questions.py:names:['ActionNode']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "is", "source": "metagpt/actions/prepare_documents.py:PrepareDocuments:_init_repo", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:ast.Constant:\n@Time : 2023/11/20\n@Author : mashenquan\n@File : prepare_documents.py\n@Desc: PrepareDocuments Action: initialize project folder and add new requirements to docs/requirements.txt.\n RFC 135 2.2.3.5.1.\n", "target": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/11/20\\n@Author : mashenquan\\n@File : prepare_documents.py\\n@Desc: PrepareDocuments Action: initialize project folder and add new requirements to docs/requirements.txt.\\n RFC 135 2.2.3.5.1.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:shutil", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"shutil\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:module:pathlib", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:names:['Path']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:module:typing", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:names:['Optional']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:module:metagpt.actions", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"ActionOutput\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:names:['Action', 'ActionOutput']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\",\"ActionOutput\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:module:metagpt.config", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:names:['CONFIG']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:module:metagpt.const", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DOCS_FILE_REPO\",\"REQUIREMENT_FILENAME\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:names:['DOCS_FILE_REPO', 'REQUIREMENT_FILENAME']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"DOCS_FILE_REPO\",\"REQUIREMENT_FILENAME\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:module:metagpt.schema", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:names:['Document']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:module:metagpt.utils.file_repository", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:names:['FileRepository']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:module:metagpt.utils.git_repository", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.git_repository\",\"names\":[\"GitRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/prepare_documents.py:names:['GitRepository']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.git_repository\",\"names\":[\"GitRepository\"]}}"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_SYSTEM", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_SYSTEM", "target": "{\"lineno\":20,\"end_lineno\":41,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_AND_SUMMARIZE_SYSTEM\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_SYSTEM_EN_US", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_SYSTEM_EN_US", "target": "{\"lineno\":43,\"end_lineno\":43,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_AND_SUMMARIZE_SYSTEM_EN_US\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_PROMPT", "target": "{\"lineno\":45,\"end_lineno\":59,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_AND_SUMMARIZE_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_SALES_SYSTEM", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_SALES_SYSTEM", "target": "{\"lineno\":61,\"end_lineno\":81,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_AND_SUMMARIZE_SALES_SYSTEM\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_SALES_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:SEARCH_AND_SUMMARIZE_SALES_PROMPT", "target": "{\"lineno\":83,\"end_lineno\":92,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_AND_SUMMARIZE_SALES_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/search_and_summarize.py:SEARCH_FOOD", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:SEARCH_FOOD", "target": "{\"lineno\":94,\"end_lineno\":103,\"type_name\":\"ast.Assign\",\"tokens\":[\"SEARCH_FOOD\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:ast.Constant:\n@Time : 2023/5/23 17:26\n@Author : alexanderwu\n@File : search_google.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/23 17:26\\n@Author : alexanderwu\\n@File : search_google.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:names:['Any', 'Optional']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:pydantic", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.Import\",\"tokens\":[\"pydantic\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:module:pydantic", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\",\"model_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:names:['Field', 'model_validator']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\",\"model_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:module:metagpt.actions", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:names:['Action']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:module:metagpt.config", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"Config\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:names:['CONFIG', 'Config']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\",\"Config\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:module:metagpt.logs", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:names:['logger']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:module:metagpt.schema", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:names:['Message']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Message\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:module:metagpt.tools", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:names:['SearchEngineType']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools\",\"names\":[\"SearchEngineType\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:module:metagpt.tools.search_engine", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.search_engine\",\"names\":[\"SearchEngine\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/search_and_summarize.py:names:['SearchEngine']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.tools.search_engine\",\"names\":[\"SearchEngine\"]}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_review.py:PROMPT_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:PROMPT_TEMPLATE", "target": "{\"lineno\":21,\"end_lineno\":34,\"type_name\":\"ast.Assign\",\"tokens\":[\"PROMPT_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_review.py:EXAMPLE_AND_INSTRUCTION", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:EXAMPLE_AND_INSTRUCTION", "target": "{\"lineno\":36,\"end_lineno\":56,\"type_name\":\"ast.Assign\",\"tokens\":[\"EXAMPLE_AND_INSTRUCTION\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_review.py:FORMAT_EXAMPLE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:FORMAT_EXAMPLE", "target": "{\"lineno\":58,\"end_lineno\":109,\"type_name\":\"ast.Assign\",\"tokens\":[\"FORMAT_EXAMPLE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/write_code_review.py:REWRITE_CODE_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:REWRITE_CODE_TEMPLATE", "target": "{\"lineno\":111,\"end_lineno\":118,\"type_name\":\"ast.Assign\",\"tokens\":[\"REWRITE_CODE_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:ast.Constant:\n@Time : 2023/5/11 17:45\n@Author : alexanderwu\n@File : write_code_review.py\n@Modified By: mashenquan, 2023/11/27. Following the think-act principle, solidify the task parameters when creating the\n WriteCode object, rather than passing them in when calling the run function.\n", "target": "{\"lineno\":3,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 17:45\\n@Author : alexanderwu\\n@File : write_code_review.py\\n@Modified By: mashenquan, 2023/11/27. Following the think-act principle, solidify the task parameters when creating the\\n WriteCode object, rather than passing them in when calling the run function.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:module:pydantic", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:names:['Field']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:module:tenacity", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"retry\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:names:['retry', 'stop_after_attempt', 'wait_random_exponential']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"retry\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:module:metagpt.actions", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"WriteCode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:names:['WriteCode']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"WriteCode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:module:metagpt.actions.action", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:names:['Action']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:module:metagpt.config", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:names:['CONFIG']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:module:metagpt.logs", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:names:['logger']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:module:metagpt.schema", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodingContext\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:names:['CodingContext']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"CodingContext\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:module:metagpt.utils.common", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_code_review.py:names:['CodeParser']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:_set_result", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:__str__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/write_teaching_plan.py:WriteTeachingPlanPart:__repr__", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_teaching_plan.py:ast.Constant:\n@Time : 2023/7/27\n@Author : mashenquan\n@File : write_teaching_plan.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/7/27\\n@Author : mashenquan\\n@File : write_teaching_plan.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_teaching_plan.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_teaching_plan.py:names:['Optional']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_teaching_plan.py:module:metagpt.actions", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_teaching_plan.py:names:['Action']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_teaching_plan.py:module:metagpt.config", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_teaching_plan.py:names:['CONFIG']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_teaching_plan.py:module:metagpt.logs", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/write_teaching_plan.py:names:['logger']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "is", "source": "metagpt/actions/project_management_an.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/actions/project_management_an.py", "target": "python"}, {"predicate": "has_function", "source": "metagpt/actions/project_management_an.py", "target": "metagpt/actions/project_management_an.py:main"}, {"predicate": "is", "source": "metagpt/actions/project_management_an.py:main", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:main", "target": "{\"lineno\":81,\"end_lineno\":83,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"main\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/project_management_an.py:REQUIRED_PYTHON_PACKAGES", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:REQUIRED_PYTHON_PACKAGES", "target": "{\"lineno\":13,\"end_lineno\":18,\"type_name\":\"ast.Assign\",\"tokens\":[\"REQUIRED_PYTHON_PACKAGES\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/project_management_an.py:REQUIRED_OTHER_LANGUAGE_PACKAGES", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:REQUIRED_OTHER_LANGUAGE_PACKAGES", "target": "{\"lineno\":20,\"end_lineno\":25,\"type_name\":\"ast.Assign\",\"tokens\":[\"REQUIRED_OTHER_LANGUAGE_PACKAGES\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/project_management_an.py:LOGIC_ANALYSIS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:LOGIC_ANALYSIS", "target": "{\"lineno\":27,\"end_lineno\":36,\"type_name\":\"ast.Assign\",\"tokens\":[\"LOGIC_ANALYSIS\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/project_management_an.py:TASK_LIST", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:TASK_LIST", "target": "{\"lineno\":38,\"end_lineno\":43,\"type_name\":\"ast.Assign\",\"tokens\":[\"TASK_LIST\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/project_management_an.py:FULL_API_SPEC", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:FULL_API_SPEC", "target": "{\"lineno\":45,\"end_lineno\":51,\"type_name\":\"ast.Assign\",\"tokens\":[\"FULL_API_SPEC\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/project_management_an.py:SHARED_KNOWLEDGE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:SHARED_KNOWLEDGE", "target": "{\"lineno\":53,\"end_lineno\":58,\"type_name\":\"ast.Assign\",\"tokens\":[\"SHARED_KNOWLEDGE\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/project_management_an.py:ANYTHING_UNCLEAR_PM", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:ANYTHING_UNCLEAR_PM", "target": "{\"lineno\":60,\"end_lineno\":65,\"type_name\":\"ast.Assign\",\"tokens\":[\"ANYTHING_UNCLEAR_PM\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/project_management_an.py:NODES", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:NODES", "target": "{\"lineno\":67,\"end_lineno\":75,\"type_name\":\"ast.Assign\",\"tokens\":[\"NODES\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/project_management_an.py:PM_NODE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:PM_NODE", "target": "{\"lineno\":78,\"end_lineno\":78,\"type_name\":\"ast.Assign\",\"tokens\":[\"PM_NODE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:ast.Constant:\n@Time : 2023/12/14 15:28\n@Author : alexanderwu\n@File : project_management_an.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/14 15:28\\n@Author : alexanderwu\\n@File : project_management_an.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:names:['List']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:module:metagpt.actions.action_node", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:names:['ActionNode']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action_node\",\"names\":[\"ActionNode\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:module:metagpt.logs", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:names:['logger']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management_an.py:__name__:__main__", "target": "{\"lineno\":86,\"end_lineno\":87,\"type_name\":\"ast.If\",\"tokens\":[\"__name__\",\"__main__\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/project_management.py:WriteTasks:_update_tasks", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/project_management.py:WriteTasks:_run_new_tasks", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/project_management.py:WriteTasks:_merge", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/project_management.py:WriteTasks:_update_requirements", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/project_management.py:WriteTasks:_save_pdf", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/project_management.py:NEW_REQ_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:NEW_REQ_TEMPLATE", "target": "{\"lineno\":30,\"end_lineno\":36,\"type_name\":\"ast.Assign\",\"tokens\":[\"NEW_REQ_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:ast.Constant:\n@Time : 2023/5/11 19:12\n@Author : alexanderwu\n@File : project_management.py\n@Modified By: mashenquan, 2023/11/27.\n 1. Divide the context into three components: legacy code, unit test code, and console log.\n 2. Move the document storage operations related to WritePRD from the save operation of WriteDesign.\n 3. According to the design in Section 2.2.3.5.4 of RFC 135, add incremental iteration functionality.\n", "target": "{\"lineno\":3,\"end_lineno\":11,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 19:12\\n@Author : alexanderwu\\n@File : project_management.py\\n@Modified By: mashenquan, 2023/11/27.\\n 1. Divide the context into three components: legacy code, unit test code, and console log.\\n 2. Move the document storage operations related to WritePRD from the save operation of WriteDesign.\\n 3. According to the design in Section 2.2.3.5.4 of RFC 135, add incremental iteration functionality.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:json", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:module:typing", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:names:['Optional']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:module:metagpt.actions", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"ActionOutput\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:names:['ActionOutput']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"ActionOutput\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:module:metagpt.actions.action", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:names:['Action']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:module:metagpt.actions.project_management_an", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.project_management_an\",\"names\":[\"PM_NODE\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:names:['PM_NODE']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.project_management_an\",\"names\":[\"PM_NODE\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:module:metagpt.config", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:names:['CONFIG']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:module:metagpt.const", "target": "{\"lineno\":20,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"PACKAGE_REQUIREMENTS_FILENAME\",\"SYSTEM_DESIGN_FILE_REPO\",\"TASK_FILE_REPO\",\"TASK_PDF_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:names:['PACKAGE_REQUIREMENTS_FILENAME', 'SYSTEM_DESIGN_FILE_REPO', 'TASK_FILE_REPO', 'TASK_PDF_FILE_REPO']", "target": "{\"lineno\":20,\"end_lineno\":25,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"PACKAGE_REQUIREMENTS_FILENAME\",\"SYSTEM_DESIGN_FILE_REPO\",\"TASK_FILE_REPO\",\"TASK_PDF_FILE_REPO\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:module:metagpt.logs", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:names:['logger']", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:module:metagpt.schema", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\",\"Documents\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:names:['Document', 'Documents']", "target": "{\"lineno\":27,\"end_lineno\":27,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.schema\",\"names\":[\"Document\",\"Documents\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:module:metagpt.utils.file_repository", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/project_management.py:names:['FileRepository']", "target": "{\"lineno\":28,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file_repository\",\"names\":[\"FileRepository\"]}}"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:__str__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:__repr__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:_compile_f", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:ActionNode:_aask_v1", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:dict_to_markdown", "target": "function"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:dict_to_markdown", "target": "{\"lineno\":49,\"end_lineno\":53,\"type_name\":\"ast.FunctionDef\",\"tokens\":[\"dict_to_markdown\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:TAG", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:TAG", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.Assign\",\"tokens\":[\"TAG\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:LANGUAGE_CONSTRAINT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:LANGUAGE_CONSTRAINT", "target": "{\"lineno\":25,\"end_lineno\":25,\"type_name\":\"ast.Assign\",\"tokens\":[\"LANGUAGE_CONSTRAINT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:FORMAT_CONSTRAINT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:FORMAT_CONSTRAINT", "target": "{\"lineno\":26,\"end_lineno\":26,\"type_name\":\"ast.Assign\",\"tokens\":[\"FORMAT_CONSTRAINT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/actions/action_node.py:SIMPLE_TEMPLATE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:SIMPLE_TEMPLATE", "target": "{\"lineno\":29,\"end_lineno\":46,\"type_name\":\"ast.Assign\",\"tokens\":[\"SIMPLE_TEMPLATE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:ast.Constant:\n@Time : 2023/12/11 18:45\n@Author : alexanderwu\n@File : action_node.py\n\nNOTE: You should use typing.List instead of list to do type annotation. Because in the markdown extraction process,\n we can use typing to extract the type of the node, but we cannot use built-in list to extract.\n", "target": "{\"lineno\":3,\"end_lineno\":10,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/12/11 18:45\\n@Author : alexanderwu\\n@File : action_node.py\\n\\nNOTE: You should use typing.List instead of list to do type annotation. Because in the markdown extraction process,\\n we can use typing to extract the type of the node, but we cannot use built-in list to extract.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:json", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"json\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:module:typing", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Dict\",\"List\",\"Optional\",\"Tuple\",\"Type\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:names:['Any', 'Dict', 'List', 'Optional', 'Tuple', 'Type']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"Dict\",\"List\",\"Optional\",\"Tuple\",\"Type\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:module:pydantic", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"create_model\",\"model_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:names:['BaseModel', 'create_model', 'model_validator']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"create_model\",\"model_validator\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:module:tenacity", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"retry\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:names:['retry', 'stop_after_attempt', 'wait_random_exponential']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"tenacity\",\"names\":[\"retry\",\"stop_after_attempt\",\"wait_random_exponential\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:module:metagpt.config", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:names:['CONFIG']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.config\",\"names\":[\"CONFIG\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:module:metagpt.llm", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:names:['BaseLLM']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:module:metagpt.logs", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:names:['logger']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:module:metagpt.provider.postprocess.llm_output_postprocess", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.postprocess.llm_output_postprocess\",\"names\":[\"llm_output_postprocess\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:names:['llm_output_postprocess']", "target": "{\"lineno\":20,\"end_lineno\":20,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.postprocess.llm_output_postprocess\",\"names\":[\"llm_output_postprocess\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:module:metagpt.utils.common", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\",\"general_after_log\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/action_node.py:names:['OutputParser', 'general_after_log']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\",\"general_after_log\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_review.py:ast.Constant:\n@Time : 2023/5/11 19:31\n@Author : alexanderwu\n@File : design_api_review.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/11 19:31\\n@Author : alexanderwu\\n@File : design_api_review.py\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_review.py:module:typing", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_review.py:names:['Optional']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_review.py:module:metagpt.actions.action", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/design_api_review.py:names:['Action']", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions.action\",\"names\":[\"Action\"]}}"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR:_check_file_type", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR:_unzip", "target": "class_function"}, {"predicate": "is", "source": "metagpt/actions/invoice_ocr.py:InvoiceOCR:_ocr", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:ast.Constant:\n@Time : 2023/9/21 18:10:20\n@Author : Stitch-z\n@File : invoice_ocr.py\n@Describe : Actions of the invoice ocr assistant.\n", "target": "{\"lineno\":4,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/21 18:10:20\\n@Author : Stitch-z\\n@File : invoice_ocr.py\\n@Describe : Actions of the invoice ocr assistant.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:os", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Import\",\"tokens\":[\"os\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:zipfile", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.Import\",\"tokens\":[\"zipfile\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:datetime", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['datetime']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"datetime\",\"names\":[\"datetime\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:pathlib", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['Path']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pathlib\",\"names\":[\"Path\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:typing", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['Optional']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:pandas as pd", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.Import\",\"tokens\":[\"pandas as pd\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:paddleocr", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"paddleocr\",\"names\":[\"PaddleOCR\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['PaddleOCR']", "target": "{\"lineno\":18,\"end_lineno\":18,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"paddleocr\",\"names\":[\"PaddleOCR\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:pydantic", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['Field']", "target": "{\"lineno\":19,\"end_lineno\":19,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:metagpt.actions", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['Action']", "target": "{\"lineno\":21,\"end_lineno\":21,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.actions\",\"names\":[\"Action\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:metagpt.const", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"INVOICE_OCR_TABLE_PATH\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['INVOICE_OCR_TABLE_PATH']", "target": "{\"lineno\":22,\"end_lineno\":22,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.const\",\"names\":[\"INVOICE_OCR_TABLE_PATH\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:metagpt.llm", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['LLM']", "target": "{\"lineno\":23,\"end_lineno\":23,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:metagpt.logs", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['logger']", "target": "{\"lineno\":24,\"end_lineno\":24,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:metagpt.prompts.invoice_ocr", "target": "{\"lineno\":25,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.prompts.invoice_ocr\",\"names\":[\"EXTRACT_OCR_MAIN_INFO_PROMPT\",\"REPLY_OCR_QUESTION_PROMPT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['EXTRACT_OCR_MAIN_INFO_PROMPT', 'REPLY_OCR_QUESTION_PROMPT']", "target": "{\"lineno\":25,\"end_lineno\":28,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.prompts.invoice_ocr\",\"names\":[\"EXTRACT_OCR_MAIN_INFO_PROMPT\",\"REPLY_OCR_QUESTION_PROMPT\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['BaseLLM']", "target": "{\"lineno\":29,\"end_lineno\":29,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:metagpt.utils.common", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['OutputParser']", "target": "{\"lineno\":30,\"end_lineno\":30,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"OutputParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:module:metagpt.utils.file", "target": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file\",\"names\":[\"File\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/actions/invoice_ocr.py:names:['File']", "target": "{\"lineno\":31,\"end_lineno\":31,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.file\",\"names\":[\"File\"]}}"}, {"predicate": "is", "source": "metagpt/prompts/sales.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/prompts/sales.py", "target": "python"}, {"predicate": "is", "source": "metagpt/prompts/sales.py:SALES_ASSISTANT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/sales.py:SALES_ASSISTANT", "target": "{\"lineno\":10,\"end_lineno\":30,\"type_name\":\"ast.Assign\",\"tokens\":[\"SALES_ASSISTANT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/sales.py:SALES", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/sales.py:SALES", "target": "{\"lineno\":33,\"end_lineno\":55,\"type_name\":\"ast.Assign\",\"tokens\":[\"SALES\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/sales.py:conversation_stages", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/sales.py:conversation_stages", "target": "{\"lineno\":57,\"end_lineno\":65,\"type_name\":\"ast.Assign\",\"tokens\":[\"conversation_stages\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/prompts/sales.py:ast.Constant:\n@Time : 2023/5/8 15:29\n@Author : alexanderwu\n@File : sales.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/8 15:29\\n@Author : alexanderwu\\n@File : sales.py\\n\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/prompts/__init__.py", "target": "python"}, {"predicate": "has_page_info", "source": "metagpt/prompts/__init__.py:ast.Constant:\n@Time : 2023/5/30 09:51\n@Author : alexanderwu\n@File : __init__.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/5/30 09:51\\n@Author : alexanderwu\\n@File : __init__.py\\n\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/summarize.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/prompts/summarize.py", "target": "python"}, {"predicate": "is", "source": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT", "target": "{\"lineno\":11,\"end_lineno\":21,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUMMARIZE_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT_2", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT_2", "target": "{\"lineno\":28,\"end_lineno\":40,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUMMARIZE_PROMPT_2\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT_3", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT_3", "target": "{\"lineno\":43,\"end_lineno\":54,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUMMARIZE_PROMPT_3\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT_4", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT_4", "target": "{\"lineno\":57,\"end_lineno\":69,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUMMARIZE_PROMPT_4\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT_5", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/summarize.py:SUMMARIZE_PROMPT_5", "target": "{\"lineno\":72,\"end_lineno\":92,\"type_name\":\"ast.Assign\",\"tokens\":[\"SUMMARIZE_PROMPT_5\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/prompts/summarize.py:ast.Constant:\n@Time : 2023/6/19 23:07\n@Author : alexanderwu\n@File : summarize.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/6/19 23:07\\n@Author : alexanderwu\\n@File : summarize.py\\n\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/metagpt_sample.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/prompts/metagpt_sample.py", "target": "python"}, {"predicate": "is", "source": "metagpt/prompts/metagpt_sample.py:METAGPT_SAMPLE", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/metagpt_sample.py:METAGPT_SAMPLE", "target": "{\"lineno\":9,\"end_lineno\":39,\"type_name\":\"ast.Assign\",\"tokens\":[\"METAGPT_SAMPLE\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/prompts/metagpt_sample.py:ast.Constant:\n@Time : 2023/6/7 20:29\n@Author : alexanderwu\n@File : metagpt_sample.py\n", "target": "{\"lineno\":3,\"end_lineno\":7,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/6/7 20:29\\n@Author : alexanderwu\\n@File : metagpt_sample.py\\n\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/tutorial_assistant.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/prompts/tutorial_assistant.py", "target": "python"}, {"predicate": "is", "source": "metagpt/prompts/tutorial_assistant.py:COMMON_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/tutorial_assistant.py:COMMON_PROMPT", "target": "{\"lineno\":10,\"end_lineno\":13,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMMON_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/tutorial_assistant.py:DIRECTORY_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/tutorial_assistant.py:DIRECTORY_PROMPT", "target": "{\"lineno\":15,\"end_lineno\":25,\"type_name\":\"ast.Assign\",\"tokens\":[\"DIRECTORY_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/tutorial_assistant.py:CONTENT_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/tutorial_assistant.py:CONTENT_PROMPT", "target": "{\"lineno\":27,\"end_lineno\":45,\"type_name\":\"ast.Assign\",\"tokens\":[\"CONTENT_PROMPT\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/prompts/tutorial_assistant.py:ast.Constant:\n@Time : 2023/9/4 15:40:40\n@Author : Stitch-z\n@File : tutorial_assistant.py\n@Describe : Tutorial Assistant's prompt templates.\n", "target": "{\"lineno\":3,\"end_lineno\":8,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/4 15:40:40\\n@Author : Stitch-z\\n@File : tutorial_assistant.py\\n@Describe : Tutorial Assistant's prompt templates.\\n\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/invoice_ocr.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/prompts/invoice_ocr.py", "target": "python"}, {"predicate": "is", "source": "metagpt/prompts/invoice_ocr.py:COMMON_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/invoice_ocr.py:COMMON_PROMPT", "target": "{\"lineno\":11,\"end_lineno\":11,\"type_name\":\"ast.Assign\",\"tokens\":[\"COMMON_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/invoice_ocr.py:EXTRACT_OCR_MAIN_INFO_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/invoice_ocr.py:EXTRACT_OCR_MAIN_INFO_PROMPT", "target": "{\"lineno\":13,\"end_lineno\":27,\"type_name\":\"ast.Assign\",\"tokens\":[\"EXTRACT_OCR_MAIN_INFO_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/invoice_ocr.py:REPLY_OCR_QUESTION_PROMPT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/invoice_ocr.py:REPLY_OCR_QUESTION_PROMPT", "target": "{\"lineno\":29,\"end_lineno\":42,\"type_name\":\"ast.Assign\",\"tokens\":[\"REPLY_OCR_QUESTION_PROMPT\"],\"properties\":{}}"}, {"predicate": "is", "source": "metagpt/prompts/invoice_ocr.py:INVOICE_OCR_SUCCESS", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/prompts/invoice_ocr.py:INVOICE_OCR_SUCCESS", "target": "{\"lineno\":44,\"end_lineno\":44,\"type_name\":\"ast.Assign\",\"tokens\":[\"INVOICE_OCR_SUCCESS\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/prompts/invoice_ocr.py:ast.Constant:\n@Time : 2023/9/21 16:30:25\n@Author : Stitch-z\n@File : invoice_ocr.py\n@Describe : Prompts of the invoice ocr assistant.\n", "target": "{\"lineno\":4,\"end_lineno\":9,\"type_name\":\"ast.Expr\",\"tokens\":[\"ast.Constant\",\"\\n@Time : 2023/9/21 16:30:25\\n@Author : Stitch-z\\n@File : invoice_ocr.py\\n@Describe : Prompts of the invoice ocr assistant.\\n\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot_schema.py:module:enum", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot_schema.py:names:['Enum']", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"enum\",\"names\":[\"Enum\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot_schema.py:module:pydantic", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot_schema.py:names:['BaseModel', 'Field']", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot_schema.py:module:metagpt.strategy.base", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.strategy.base\",\"names\":[\"BaseEvaluator\",\"BaseParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot_schema.py:names:['BaseEvaluator', 'BaseParser']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.strategy.base\",\"names\":[\"BaseEvaluator\",\"BaseParser\"]}}"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:ThoughtSolverBase:solve", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:BFSSolver:_bfs_build", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:DFSSolver:_dfs", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:MCTSSolver:solve", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:TreeofThought:__init__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:TreeofThought:_initialize_solver", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/tot.py:OUTPUT_FORMAT", "target": "global_variable"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:OUTPUT_FORMAT", "target": "{\"lineno\":19,\"end_lineno\":30,\"type_name\":\"ast.Assign\",\"tokens\":[\"OUTPUT_FORMAT\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:module:__future__", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:names:['annotations']", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"__future__\",\"names\":[\"annotations\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:asyncio", "target": "{\"lineno\":7,\"end_lineno\":7,\"type_name\":\"ast.Import\",\"tokens\":[\"asyncio\"],\"properties\":{}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:module:typing", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"List\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:names:['Any', 'List', 'Optional']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"Any\",\"List\",\"Optional\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:module:pydantic", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:names:['BaseModel', 'ConfigDict', 'Field']", "target": "{\"lineno\":10,\"end_lineno\":10,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\",\"ConfigDict\",\"Field\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:module:metagpt.llm", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:names:['LLM']", "target": "{\"lineno\":12,\"end_lineno\":12,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.llm\",\"names\":[\"LLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:module:metagpt.logs", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:names:['logger']", "target": "{\"lineno\":13,\"end_lineno\":13,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.logs\",\"names\":[\"logger\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:module:metagpt.provider.base_llm", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:names:['BaseLLM']", "target": "{\"lineno\":14,\"end_lineno\":14,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.provider.base_llm\",\"names\":[\"BaseLLM\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:module:metagpt.strategy.base", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.strategy.base\",\"names\":[\"ThoughtNode\",\"ThoughtTree\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:names:['ThoughtNode', 'ThoughtTree']", "target": "{\"lineno\":15,\"end_lineno\":15,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.strategy.base\",\"names\":[\"ThoughtNode\",\"ThoughtTree\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:module:metagpt.strategy.tot_schema", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.strategy.tot_schema\",\"names\":[\"MethodSelect\",\"Strategy\",\"ThoughtSolverConfig\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:names:['MethodSelect', 'Strategy', 'ThoughtSolverConfig']", "target": "{\"lineno\":16,\"end_lineno\":16,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.strategy.tot_schema\",\"names\":[\"MethodSelect\",\"Strategy\",\"ThoughtSolverConfig\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:module:metagpt.utils.common", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/tot.py:names:['CodeParser']", "target": "{\"lineno\":17,\"end_lineno\":17,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"metagpt.utils.common\",\"names\":[\"CodeParser\"]}}"}, {"predicate": "is", "source": "metagpt/strategy/__init__.py", "target": "source_code"}, {"predicate": "is", "source": "metagpt/strategy/__init__.py", "target": "python"}, {"predicate": "is", "source": "metagpt/strategy/base.py:BaseParser:__call__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/base.py:BaseParser:propose", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/base.py:BaseParser:sample", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/base.py:BaseParser:value", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/base.py:BaseEvaluator:__call__", "target": "class_function"}, {"predicate": "is", "source": "metagpt/strategy/base.py:BaseEvaluator:status_verify", "target": "class_function"}, {"predicate": "has_page_info", "source": "metagpt/strategy/base.py:module:abc", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/base.py:names:['ABC']", "target": "{\"lineno\":5,\"end_lineno\":5,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"abc\",\"names\":[\"ABC\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/base.py:module:typing", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/base.py:names:['List']", "target": "{\"lineno\":6,\"end_lineno\":6,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"typing\",\"names\":[\"List\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/base.py:module:anytree", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"anytree\",\"names\":[\"Node\",\"RenderTree\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/base.py:names:['Node', 'RenderTree']", "target": "{\"lineno\":8,\"end_lineno\":8,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"anytree\",\"names\":[\"Node\",\"RenderTree\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/base.py:module:pydantic", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}, {"predicate": "has_page_info", "source": "metagpt/strategy/base.py:names:['BaseModel']", "target": "{\"lineno\":9,\"end_lineno\":9,\"type_name\":\"ast.ImportFrom\",\"tokens\":[],\"properties\":{\"module\":\"pydantic\",\"names\":[\"BaseModel\"]}}"}]} \ No newline at end of file diff --git a/tests/metagpt/actions/test_rebuild_class_view.py b/tests/metagpt/actions/test_rebuild_class_view.py index 0103e9d05..207ba4be1 100644 --- a/tests/metagpt/actions/test_rebuild_class_view.py +++ b/tests/metagpt/actions/test_rebuild_class_view.py @@ -26,5 +26,32 @@ async def test_rebuild(): assert graph_file_repo.changed_files +@pytest.mark.parametrize( + ("path", "direction", "diff", "want"), + [ + ("metagpt/startup.py", "=", ".", "metagpt/startup.py"), + ("metagpt/startup.py", "+", "MetaGPT", "MetaGPT/metagpt/startup.py"), + ("metagpt/startup.py", "-", "metagpt", "startup.py"), + ], +) +def test_align_path(path, direction, diff, want): + res = RebuildClassView._align_root(path=path, direction=direction, diff_path=diff) + assert res == want + + +@pytest.mark.parametrize( + ("path_root", "package_root", "want_direction", "want_diff"), + [ + ("/Users/x/github/MetaGPT/metagpt", "/Users/x/github/MetaGPT/metagpt", "=", "."), + ("/Users/x/github/MetaGPT", "/Users/x/github/MetaGPT/metagpt", "-", "metagpt"), + ("/Users/x/github/MetaGPT/metagpt", "/Users/x/github/MetaGPT", "+", "metagpt"), + ], +) +def test_diff_path(path_root, package_root, want_direction, want_diff): + direction, diff = RebuildClassView._diff_path(path_root=Path(path_root), package_root=Path(package_root)) + assert direction == want_direction + assert diff == want_diff + + if __name__ == "__main__": pytest.main([__file__, "-s"]) diff --git a/tests/metagpt/actions/test_rebuild_sequence_view.py b/tests/metagpt/actions/test_rebuild_sequence_view.py new file mode 100644 index 000000000..939412fe7 --- /dev/null +++ b/tests/metagpt/actions/test_rebuild_sequence_view.py @@ -0,0 +1,55 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" +@Time : 2024/1/4 +@Author : mashenquan +@File : test_rebuild_sequence_view.py +""" +from pathlib import Path + +import pytest + +from metagpt.actions.rebuild_sequence_view import RebuildSequenceView +from metagpt.config import CONFIG +from metagpt.const import GRAPH_REPO_FILE_REPO +from metagpt.llm import LLM +from metagpt.utils.common import aread +from metagpt.utils.file_repository import FileRepository +from metagpt.utils.git_repository import ChangeType + + +@pytest.mark.asyncio +async def test_rebuild(): + # Mock + data = await aread(filename=Path(__file__).parent / "../../data/graph_db/networkx.json") + graph_db_filename = Path(CONFIG.git_repo.workdir.name).with_suffix(".json") + await FileRepository.save_file( + filename=str(graph_db_filename), + relative_path=GRAPH_REPO_FILE_REPO, + content=data, + ) + CONFIG.git_repo.add_change({f"{GRAPH_REPO_FILE_REPO}/{graph_db_filename}": ChangeType.UNTRACTED}) + CONFIG.git_repo.commit("commit1") + + action = RebuildSequenceView( + name="RedBean", context=str(Path(__file__).parent.parent.parent.parent / "metagpt"), llm=LLM() + ) + await action.run() + graph_file_repo = CONFIG.git_repo.new_file_repository(relative_path=GRAPH_REPO_FILE_REPO) + assert graph_file_repo.changed_files + + +@pytest.mark.parametrize( + ("root", "pathname", "want"), + [ + (Path(__file__).parent.parent.parent, "/".join(__file__.split("/")[-2:]), Path(__file__)), + (Path(__file__).parent.parent.parent, "f/g.txt", None), + ], +) +def test_get_full_filename(root, pathname, want): + res = RebuildSequenceView._get_full_filename(root=root, pathname=pathname) + assert res == want + + +if __name__ == "__main__": + pytest.main([__file__, "-s"]) diff --git a/tests/metagpt/learn/test_skill_loader.py b/tests/metagpt/learn/test_skill_loader.py index 0aac80a66..529a490c8 100644 --- a/tests/metagpt/learn/test_skill_loader.py +++ b/tests/metagpt/learn/test_skill_loader.py @@ -6,6 +6,8 @@ @File : test_skill_loader.py @Desc : Unit tests. """ +from pathlib import Path + import pytest from metagpt.config import CONFIG @@ -23,7 +25,8 @@ async def test_suite(): {"id": 6, "name": "knowledge", "type": "builtin", "config": {}, "enabled": True}, {"id": 6, "name": "web_search", "type": "builtin", "config": {}, "enabled": True}, ] - loader = await SkillsDeclaration.load() + pathname = Path(__file__).parent / "../../../docs/.well-known/skills.yaml" + loader = await SkillsDeclaration.load(skill_yaml_file_name=pathname) skills = loader.get_skill_list() assert skills assert len(skills) >= 3 From 43d07de810da89e27eb936a19931a19ba8c6a4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Fri, 5 Jan 2024 11:02:41 +0800 Subject: [PATCH 6/7] feat: Replace the actual root directory name of the project codes with a fake one in the WriteTest prompt. --- metagpt/actions/write_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/metagpt/actions/write_test.py b/metagpt/actions/write_test.py index 0166f5417..96486311f 100644 --- a/metagpt/actions/write_test.py +++ b/metagpt/actions/write_test.py @@ -11,7 +11,6 @@ from typing import Optional from metagpt.actions.action import Action -from metagpt.config import CONFIG from metagpt.const import TEST_CODES_FILE_REPO from metagpt.logs import logger from metagpt.schema import Document, TestingContext @@ -60,11 +59,12 @@ async def run(self, *args, **kwargs) -> TestingContext: self.context.test_doc = Document( filename="test_" + self.context.code_doc.filename, root_path=TEST_CODES_FILE_REPO ) + fake_root = "/data" prompt = PROMPT_TEMPLATE.format( code_to_test=self.context.code_doc.content, test_file_name=self.context.test_doc.filename, - source_file_path=self.context.code_doc.root_relative_path, - workspace=CONFIG.git_repo.workdir, + source_file_path=fake_root + "/" + self.context.code_doc.root_relative_path, + workspace=fake_root, ) self.context.test_doc.content = await self.write_code(prompt) return self.context From 4eab58f0694338510b19465bbae1ec6c86a70b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Fri, 5 Jan 2024 15:06:40 +0800 Subject: [PATCH 7/7] fixbug: .well_known --- docs/.agent-store-config.yaml.example | 2 +- metagpt/learn/skill_loader.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/.agent-store-config.yaml.example b/docs/.agent-store-config.yaml.example index d12cc6999..bec0dd170 100644 --- a/docs/.agent-store-config.yaml.example +++ b/docs/.agent-store-config.yaml.example @@ -1,7 +1,7 @@ role: name: Teacher # Referenced the `Teacher` in `metagpt/roles/teacher.py`. module: metagpt.roles.teacher # Referenced `metagpt/roles/teacher.py`. - skills: # Refer to the skill `name` of the published skill in `.well-known/skills.yaml`. + skills: # Refer to the skill `name` of the published skill in `docs/.well-known/skills.yaml`. - name: text_to_speech description: Text-to-speech - name: text_to_image diff --git a/metagpt/learn/skill_loader.py b/metagpt/learn/skill_loader.py index abe5ea2ea..7383af66d 100644 --- a/metagpt/learn/skill_loader.py +++ b/metagpt/learn/skill_loader.py @@ -67,7 +67,7 @@ class SkillsDeclaration(BaseModel): @staticmethod async def load(skill_yaml_file_name: Path = None) -> "SkillsDeclaration": if not skill_yaml_file_name: - skill_yaml_file_name = Path(__file__).parent.parent.parent / ".well-known/skills.yaml" + skill_yaml_file_name = Path(__file__).parent.parent.parent / "docs/.well-known/skills.yaml" async with aiofiles.open(str(skill_yaml_file_name), mode="r") as reader: data = await reader.read(-1) skill_data = yaml.safe_load(data)