MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / _get_docs

Method _get_docs

applications/chatdev/chatdev/documents.py:69–79  ·  view source on GitHub ↗

Retrieves all document content, formatted as a string with filenames and content. Returns: Formatted document content string

(self)

Source from the content-addressed store, hash-verified

67 print(f"{os.path.join(directory, filename)} Written")
68
69 def _get_docs(self):
70 """
71 Retrieves all document content, formatted as a string with filenames and content.
72 Returns:
73 Formatted document content string
74 """
75 content = ""
76 for filename in self.docbooks.keys():
77 # Concatenate filename and content
78 content += f"{filename}\n```\n{self.docbooks[filename]}\n```\n\n"
79 return content

Callers 2

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected