Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion simplemem_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down