MCPcopy Create free account
hub / github.com/Roy3838/Observer / getRequiredStreamsForPrompt

Function getRequiredStreamsForPrompt

app/src/utils/main_loop.ts:24–28  ·  view source on GitHub ↗
(systemPrompt: string)

Source from the content-addressed store, hash-verified

22};
23
24export function getRequiredStreamsForPrompt(systemPrompt: string): PseudoStreamType[] {
25 return Object.entries(STREAM_REQUIREMENTS_MAP)
26 .filter(([placeholder]) => new RegExp(`\\${placeholder}(?![A-Z_])`).test(systemPrompt))
27 .map(([_, streamType]) => streamType);
28}
29
30const activeLoops: Record<string, {
31 intervalId: number | null,

Callers 2

registry.tsFile · 0.90
startAgentLoopFunction · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected