MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / assertNotAborted

Function assertNotAborted

apps/desktop/main/ai/tools/tool-executor-core.ts:23–27  ·  view source on GitHub ↗
(signal: AbortSignal)

Source from the content-addressed store, hash-verified

21}
22
23function assertNotAborted(signal: AbortSignal): void {
24 if (signal.aborted) {
25 throw new Error('cancelled')
26 }
27}
28
29/** 组装工具执行上下文:sessionId/abortSignal 来自请求,其余能力由平台注入。 */
30export function buildToolExecutionContext(

Callers 1

executeRegistryToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected