MCPcopy
hub / github.com/zai-org/ChatGLM3 / append_conversation

Function append_conversation

composite_demo/demo_tool.py:54–60  ·  view source on GitHub ↗
(
        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
54def 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
63def main(

Callers 1

mainFunction · 0.70

Calls 1

showMethod · 0.80

Tested by

no test coverage detected