Function
append_conversation
(
conversation: Conversation,
history: list[Conversation],
placeholder: DeltaGenerator | None = None,
)
Source from the content-addressed store, hash-verified
| 52 | |
| 53 | # Append a conversation into history, while show it in a new markdown block |
| 54 | def append_conversation( |
| 55 | conversation: Conversation, |
| 56 | history: list[Conversation], |
| 57 | placeholder: DeltaGenerator | None = None, |
| 58 | ) -> None: |
| 59 | history.append(conversation) |
| 60 | conversation.show(placeholder) |
| 61 | |
| 62 | |
| 63 | def main( |
Tested by
no test coverage detected