MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / sendEvent

Function sendEvent

src/app/service/agent/core/tools/ask_user.test.ts:8–8  ·  view source on GitHub ↗
(event: ChatStreamEvent)

Source from the content-addressed store, hash-verified

6 it("should send ask_user event and resolve when answer is provided", async () => {
7 const events: ChatStreamEvent[] = [];
8 const sendEvent = (event: ChatStreamEvent) => events.push(event);
9 const resolvers = new Map<string, (answer: string) => void>();
10
11 const { executor } = createAskUserTool(sendEvent, resolvers);

Callers 12

callLLMWithToolLoopMethod · 0.85
handleAttachMethod · 0.85
handleCompactChatMethod · 0.85
subSendEventMethod · 0.85
makeMockOrchestratorFunction · 0.85
autoCompactMethod · 0.85
callLLMMethod · 0.85
onEventMethod · 0.85
finalizeMethod · 0.85
agent.test.tsFile · 0.85
createAskUserToolFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected