Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchia committed Sep 6, 2024
1 parent 7b185a1 commit cdf864b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jupyter-ai/jupyter_ai/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ async def aadd_messages(self, messages: Sequence[BaseMessage]) -> None:
self.add_messages(messages)

def clear(self, human_msg_id: Optional[str] = None) -> None:
"""Clear all messages after the given time"""
"""Clears conversation exchanges. If `human_msg_id` is provided, only
clears the respective human message and its reply. Otherwise, clears
all messages."""
if human_msg_id:
self._all_messages = [
m
Expand Down

0 comments on commit cdf864b

Please sign in to comment.