MCPcopy Create free account
hub / github.com/CopilotKit/aimock / matchPattern

Function matchPattern

src/a2a-handler.ts:52–57  ·  view source on GitHub ↗
(text: string, pattern: string | RegExp)

Source from the content-addressed store, hash-verified

50}
51
52function matchPattern(text: string, pattern: string | RegExp): boolean {
53 if (typeof pattern === "string") {
54 return text.includes(pattern);
55 }
56 return pattern.test(text);
57}
58
59export const TERMINAL_STATES: Set<string> = new Set([
60 "TASK_STATE_COMPLETED",

Callers 2

findMatchFunction · 0.85
findStreamingMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…