MCPcopy
hub / github.com/leaningtech/webvm / addMessage

Function addMessage

src/lib/anthropic.js:138–143  ·  view source on GitHub ↗
(text, handleTool)

Source from the content-addressed store, hash-verified

136}
137
138export function addMessage(text, handleTool)
139{
140 addMessageInternal('user', text);
141 sendMessages(handleTool);
142 tryPlausible("ClaudeAI Use");
143}
144
145export function clearMessageHistory() {
146 messages.length = 0;

Callers

nothing calls this directly

Calls 3

tryPlausibleFunction · 0.90
addMessageInternalFunction · 0.85
sendMessagesFunction · 0.85

Tested by

no test coverage detected