MCPcopy
hub / github.com/zai-org/GLM-4 / append_conversation

Function append_conversation

demo/composite_demo/src/main.py:42–51  ·  view source on GitHub ↗

Append a conversation piece into history, meanwhile show it in a new markdown block

(
    conversation: Conversation,
    history: list[Conversation],
    placeholder: DeltaGenerator | None = None,
)

Source from the content-addressed store, hash-verified

40
41
42def append_conversation(
43 conversation: Conversation,
44 history: list[Conversation],
45 placeholder: DeltaGenerator | None = None,
46) -> None:
47 """
48 Append a conversation piece into history, meanwhile show it in a new markdown block
49 """
50 history.append(conversation)
51 conversation.show(placeholder)
52
53
54st.set_page_config(

Callers 2

mainFunction · 0.85
commit_conversationFunction · 0.85

Calls 1

showMethod · 0.80

Tested by

no test coverage detected