From ae581511f816c7a44e762042931de1ad3445a5b4 Mon Sep 17 00:00:00 2001 From: dongsj <90449228+eric9204@users.noreply.github.com> Date: Wed, 9 Oct 2024 06:18:58 +0800 Subject: [PATCH] docs: update comment syntactic error (#16416) --- llama-index-core/llama_index/core/agent/custom/simple.py | 2 +- llama-index-core/llama_index/core/agent/legacy/react/base.py | 2 +- .../llama_index/core/agent/react_multimodal/step.py | 2 +- .../agent/llama-index-agent-coa/llama_index/agent/coa/step.py | 2 +- .../introspective/reflective/tool_interactive_reflection.py | 2 +- .../llama_index/agent/llm_compiler/step.py | 2 +- llama-index-legacy/llama_index/legacy/agent/custom/simple.py | 2 +- .../llama_index/legacy/agent/legacy/react/base.py | 2 +- llama-index-legacy/llama_index/legacy/agent/react/base.py | 2 +- llama-index-legacy/llama_index/legacy/agent/react/step.py | 2 +- .../llama_index/legacy/agent/react_multimodal/step.py | 2 +- .../llama_index/packs/agents_coa/step.py | 2 +- .../llama_index/packs/agents_llm_compiler/step.py | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/llama-index-core/llama_index/core/agent/custom/simple.py b/llama-index-core/llama_index/core/agent/custom/simple.py index f7a164b0e2868..8d153d3ef405b 100644 --- a/llama-index-core/llama_index/core/agent/custom/simple.py +++ b/llama-index-core/llama_index/core/agent/custom/simple.py @@ -107,7 +107,7 @@ def from_tools( verbose: bool = False, **kwargs: Any, ) -> "CustomSimpleAgentWorker": - """Convenience constructor method from set of of BaseTools (Optional).""" + """Convenience constructor method from set of BaseTools (Optional).""" llm = llm or Settings.llm if callback_manager is not None: llm.callback_manager = callback_manager diff --git a/llama-index-core/llama_index/core/agent/legacy/react/base.py b/llama-index-core/llama_index/core/agent/legacy/react/base.py index 04ef72d55e14c..cfc512c23d83a 100644 --- a/llama-index-core/llama_index/core/agent/legacy/react/base.py +++ b/llama-index-core/llama_index/core/agent/legacy/react/base.py @@ -101,7 +101,7 @@ def from_tools( verbose: bool = False, **kwargs: Any, ) -> "ReActAgent": - """Convenience constructor method from set of of BaseTools (Optional). + """Convenience constructor method from set of BaseTools (Optional). NOTE: kwargs should have been exhausted by this point. In other words the various upstream components such as BaseSynthesizer (response synthesizer) diff --git a/llama-index-core/llama_index/core/agent/react_multimodal/step.py b/llama-index-core/llama_index/core/agent/react_multimodal/step.py index ff087a3ef0159..3860d15313ea1 100644 --- a/llama-index-core/llama_index/core/agent/react_multimodal/step.py +++ b/llama-index-core/llama_index/core/agent/react_multimodal/step.py @@ -165,7 +165,7 @@ def from_tools( verbose: bool = False, **kwargs: Any, ) -> "MultimodalReActAgentWorker": - """Convenience constructor method from set of of BaseTools (Optional). + """Convenience constructor method from set of BaseTools (Optional). NOTE: kwargs should have been exhausted by this point. In other words the various upstream components such as BaseSynthesizer (response synthesizer) diff --git a/llama-index-integrations/agent/llama-index-agent-coa/llama_index/agent/coa/step.py b/llama-index-integrations/agent/llama-index-agent-coa/llama_index/agent/coa/step.py index a0e7acf5866d7..ad3e33975cbba 100644 --- a/llama-index-integrations/agent/llama-index-agent-coa/llama_index/agent/coa/step.py +++ b/llama-index-integrations/agent/llama-index-agent-coa/llama_index/agent/coa/step.py @@ -84,7 +84,7 @@ def from_tools( verbose: bool = False, **kwargs: Any, ) -> "CoAAgentWorker": - """Convenience constructor method from set of of BaseTools (Optional). + """Convenience constructor method from set of BaseTools (Optional). Returns: LLMCompilerAgentWorker: the LLMCompilerAgentWorker instance diff --git a/llama-index-integrations/agent/llama-index-agent-introspective/llama_index/agent/introspective/reflective/tool_interactive_reflection.py b/llama-index-integrations/agent/llama-index-agent-introspective/llama_index/agent/introspective/reflective/tool_interactive_reflection.py index 2c41efcf31a09..306ec1fc5031f 100644 --- a/llama-index-integrations/agent/llama-index-agent-introspective/llama_index/agent/introspective/reflective/tool_interactive_reflection.py +++ b/llama-index-integrations/agent/llama-index-agent-introspective/llama_index/agent/introspective/reflective/tool_interactive_reflection.py @@ -153,7 +153,7 @@ def from_defaults( verbose: bool = False, **kwargs: Any, ) -> "ToolInteractiveReflectionAgentWorker": - """Convenience constructor method from set of of BaseTools (Optional).""" + """Convenience constructor method from set of BaseTools (Optional).""" if correction_llm is None: try: from llama_index.llms.openai import OpenAI diff --git a/llama-index-integrations/agent/llama-index-agent-llm-compiler/llama_index/agent/llm_compiler/step.py b/llama-index-integrations/agent/llama-index-agent-llm-compiler/llama_index/agent/llm_compiler/step.py index 67fe947391453..603aac0399dec 100644 --- a/llama-index-integrations/agent/llama-index-agent-llm-compiler/llama_index/agent/llm_compiler/step.py +++ b/llama-index-integrations/agent/llama-index-agent-llm-compiler/llama_index/agent/llm_compiler/step.py @@ -196,7 +196,7 @@ def from_tools( verbose: bool = False, **kwargs: Any, ) -> "LLMCompilerAgentWorker": - """Convenience constructor method from set of of BaseTools (Optional). + """Convenience constructor method from set of BaseTools (Optional). Returns: LLMCompilerAgentWorker: the LLMCompilerAgentWorker instance diff --git a/llama-index-legacy/llama_index/legacy/agent/custom/simple.py b/llama-index-legacy/llama_index/legacy/agent/custom/simple.py index 6ab8d4687c77d..0032047b76867 100644 --- a/llama-index-legacy/llama_index/legacy/agent/custom/simple.py +++ b/llama-index-legacy/llama_index/legacy/agent/custom/simple.py @@ -108,7 +108,7 @@ def from_tools( verbose: bool = False, **kwargs: Any, ) -> "CustomSimpleAgentWorker": - """Convenience constructor method from set of of BaseTools (Optional).""" + """Convenience constructor method from set of BaseTools (Optional).""" llm = llm or OpenAI(model=DEFAULT_MODEL_NAME) if callback_manager is not None: llm.callback_manager = callback_manager diff --git a/llama-index-legacy/llama_index/legacy/agent/legacy/react/base.py b/llama-index-legacy/llama_index/legacy/agent/legacy/react/base.py index becb4b288f504..ad3a12c32870c 100644 --- a/llama-index-legacy/llama_index/legacy/agent/legacy/react/base.py +++ b/llama-index-legacy/llama_index/legacy/agent/legacy/react/base.py @@ -103,7 +103,7 @@ def from_tools( verbose: bool = False, **kwargs: Any, ) -> "ReActAgent": - """Convenience constructor method from set of of BaseTools (Optional). + """Convenience constructor method from set of BaseTools (Optional). NOTE: kwargs should have been exhausted by this point. In other words the various upstream components such as BaseSynthesizer (response synthesizer) diff --git a/llama-index-legacy/llama_index/legacy/agent/react/base.py b/llama-index-legacy/llama_index/legacy/agent/react/base.py index f575395e88bd2..08c22fbc53058 100644 --- a/llama-index-legacy/llama_index/legacy/agent/react/base.py +++ b/llama-index-legacy/llama_index/legacy/agent/react/base.py @@ -102,7 +102,7 @@ def from_tools( context: Optional[str] = None, **kwargs: Any, ) -> "ReActAgent": - """Convenience constructor method from set of of BaseTools (Optional). + """Convenience constructor method from set of BaseTools (Optional). NOTE: kwargs should have been exhausted by this point. In other words the various upstream components such as BaseSynthesizer (response synthesizer) diff --git a/llama-index-legacy/llama_index/legacy/agent/react/step.py b/llama-index-legacy/llama_index/legacy/agent/react/step.py index edd4a5af29f93..db24688c89b3a 100644 --- a/llama-index-legacy/llama_index/legacy/agent/react/step.py +++ b/llama-index-legacy/llama_index/legacy/agent/react/step.py @@ -119,7 +119,7 @@ def from_tools( verbose: bool = False, **kwargs: Any, ) -> "ReActAgentWorker": - """Convenience constructor method from set of of BaseTools (Optional). + """Convenience constructor method from set of BaseTools (Optional). NOTE: kwargs should have been exhausted by this point. In other words the various upstream components such as BaseSynthesizer (response synthesizer) diff --git a/llama-index-legacy/llama_index/legacy/agent/react_multimodal/step.py b/llama-index-legacy/llama_index/legacy/agent/react_multimodal/step.py index fd0dda13c453c..b0f26fe85288f 100644 --- a/llama-index-legacy/llama_index/legacy/agent/react_multimodal/step.py +++ b/llama-index-legacy/llama_index/legacy/agent/react_multimodal/step.py @@ -146,7 +146,7 @@ def from_tools( verbose: bool = False, **kwargs: Any, ) -> "MultimodalReActAgentWorker": - """Convenience constructor method from set of of BaseTools (Optional). + """Convenience constructor method from set of BaseTools (Optional). NOTE: kwargs should have been exhausted by this point. In other words the various upstream components such as BaseSynthesizer (response synthesizer) diff --git a/llama-index-packs/llama-index-packs-agents-coa/llama_index/packs/agents_coa/step.py b/llama-index-packs/llama-index-packs-agents-coa/llama_index/packs/agents_coa/step.py index b9b2111ee6c39..e79c21e014dee 100644 --- a/llama-index-packs/llama-index-packs-agents-coa/llama_index/packs/agents_coa/step.py +++ b/llama-index-packs/llama-index-packs-agents-coa/llama_index/packs/agents_coa/step.py @@ -84,7 +84,7 @@ def from_tools( verbose: bool = False, **kwargs: Any, ) -> "CoAAgentWorker": - """Convenience constructor method from set of of BaseTools (Optional). + """Convenience constructor method from set of BaseTools (Optional). Returns: LLMCompilerAgentWorker: the LLMCompilerAgentWorker instance diff --git a/llama-index-packs/llama-index-packs-agents-llm-compiler/llama_index/packs/agents_llm_compiler/step.py b/llama-index-packs/llama-index-packs-agents-llm-compiler/llama_index/packs/agents_llm_compiler/step.py index 67fe947391453..603aac0399dec 100644 --- a/llama-index-packs/llama-index-packs-agents-llm-compiler/llama_index/packs/agents_llm_compiler/step.py +++ b/llama-index-packs/llama-index-packs-agents-llm-compiler/llama_index/packs/agents_llm_compiler/step.py @@ -196,7 +196,7 @@ def from_tools( verbose: bool = False, **kwargs: Any, ) -> "LLMCompilerAgentWorker": - """Convenience constructor method from set of of BaseTools (Optional). + """Convenience constructor method from set of BaseTools (Optional). Returns: LLMCompilerAgentWorker: the LLMCompilerAgentWorker instance