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

Function getRequiredStreamsForPrompt

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

Source from the content-addressed store, hash-verified

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

Callers 1

startAgentLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected