From 2d68476408a77f744b7e20b6da8dac60a0fc984c Mon Sep 17 00:00:00 2001 From: nickhac Date: Tue, 18 Aug 2026 09:06:28 +0000 Subject: [PATCH] fix(code_quality): Missing docstring on public function `add_dialogue` in simpl Gap ID: #384 Co-authored-by: Hermes Agent --- simplemem_router.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/simplemem_router.py b/simplemem_router.py index 7b1188d9..763d2d63 100644 --- a/simplemem_router.py +++ b/simplemem_router.py @@ -317,7 +317,18 @@ def _require(self, target_mode: str, method: str) -> None: def add_dialogue( self, speaker: str, content: str, timestamp: Optional[str] = None ) -> Any: - """Add a dialogue turn. *Selects text backend on first call.*""" + """Add a single dialogue turn to the text-mode memory system. + + Automatically selects the text backend on the first call. + + Args: + speaker: Name of the speaker. + content: Text content of the dialogue turn. + timestamp: Optional ISO 8601 timestamp for the dialogue turn. + + Returns: + The result returned by the underlying text backend. + """ self._require("text", "add_dialogue") return self._backend.add_dialogue(speaker, content, timestamp)