MCPcopy
hub / github.com/openai/openai-assistants-quickstart / appendMessage

Function appendMessage

app/components/chat.tsx:228–230  ·  view source on GitHub ↗
(role, text)

Source from the content-addressed store, hash-verified

226 };
227
228 const appendMessage = (role, text) => {
229 setMessages((prevMessages) => [...prevMessages, { role, text }]);
230 };
231
232 const annotateLastMessage = (annotations) => {
233 setMessages((prevMessages) => {

Callers 2

handleTextCreatedFunction · 0.85
toolCallCreatedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected