🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
Update write_docstring.py to make the template of the prompt more clear
shenchucheng50cdba305255
diff --git a/metagpt/actions/write_docstring.py b/metagpt/actions/write_docstring.pyindex cc4d7d904..db1928872 100644--- a/metagpt/actions/write_docstring.py+++ b/metagpt/actions/write_docstring.py@@ -23,7 +23,9 @@ class ExampleError(Exception):```### Output Example-```python{example}```+```python+{example}+```'''# https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html@@ -120,9 +122,9 @@ class ExampleError(Exception):'''_python_docstring_style = {- "google": PYTHON_DOCSTRING_EXAMPLE_GOOGLE,- "numpy": PYTHON_DOCSTRING_EXAMPLE_NUMPY,- "sphinx": PYTHON_DOCSTRING_EXAMPLE_SPHINX,+ "google": PYTHON_DOCSTRING_EXAMPLE_GOOGLE.strip(),+ "numpy": PYTHON_DOCSTRING_EXAMPLE_NUMPY.strip(),+ "sphinx": PYTHON_DOCSTRING_EXAMPLE_SPHINX.strip(),}