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

Function extractImageRequest

app/src/utils/agentParser.ts:62–66  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

60 * @returns The content inside the %%% block, or null if not found.
61 */
62export function extractImageRequest(text: string): string | null {
63 const imageRequestRegex = /%%%\s*\n?([\s\S]*?)\n?%%%/;
64 const match = text.match(imageRequestRegex);
65 return match && match[1] ? match[1].trim() : null;
66}
67
68/**
69 * Extracts the detection mode template from a string.

Callers 1

sendConversationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected