Skip to content

Commit 860a098

Browse files
committed
Clarify docstrings
1 parent 1927eed commit 860a098

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llm-service/app/services/chat_history/chat_history_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ def append_to_history(
9090

9191
@functools.cache
9292
def _get_chat_history_manager() -> ChatHistoryManager:
93-
"""Return a ChatHistoryManager based on the app's chat store config.
93+
"""Create a ChatHistoryManager the first time this function is called, and return it.
9494
95-
This function can be monkey-patched for testing purposes.
95+
This helper function can be monkey-patched for testing purposes.
9696
9797
"""
9898
from app.services.chat_history.simple_chat_history_manager import (
@@ -111,4 +111,5 @@ def _get_chat_history_manager() -> ChatHistoryManager:
111111

112112

113113
def get_chat_history_manager() -> ChatHistoryManager:
114+
"""Return a ChatHistoryManager based on the app's chat store config."""
114115
return _get_chat_history_manager()

0 commit comments

Comments
 (0)