MCPcopy Create free account
hub / github.com/freecodexyz/free-code / parseResponse

Function parseResponse

src/utils/hooks/skillImprovement.ts:134–144  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

132 useTools: false,
133
134 parseResponse(content) {
135 const updatesStr = extractTag(content, 'updates')
136 if (!updatesStr) {
137 return []
138 }
139 try {
140 return jsonParse(updatesStr) as SkillUpdate[]
141 } catch {
142 return []
143 }
144 },
145
146 logResult(result, context) {
147 if (result.type === 'success' && result.result.length > 0) {

Callers

nothing calls this directly

Calls 2

extractTagFunction · 0.85
jsonParseFunction · 0.85

Tested by

no test coverage detected