MCPcopy Create free account
hub / github.com/Noumena-Network/code / parseXmlThinking

Function parseXmlThinking

src/utils/permissions/yoloClassifier.ts:603–606  ·  view source on GitHub ↗

* Parse XML thinking content: ...

(text: string)

Source from the content-addressed store, hash-verified

601 * Parse XML thinking content: <thinking>...</thinking>
602 */
603function parseXmlThinking(text: string): string | null {
604 const match = /<thinking>([\s\S]*?)<\/thinking>/.exec(text)
605 return match ? match[1]!.trim() : null
606}
607
608/**
609 * Extract usage stats from an API response.

Callers 1

classifyYoloActionXmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected