MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / writeSteps

Method writeSteps

lib/ai.js:227–240  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

225 }
226
227 async writeSteps(input) {
228 if (!this.isEnabled) return
229 if (!this.minifiedHtml) throw new Error('No HTML context provided')
230
231 const snippets = []
232
233 const response = await this.createCompletion(this.prompts.writeStep(this.minifiedHtml, input))
234 if (!response) return
235 snippets.push(...this.config.response(response))
236
237 debug(snippets[0])
238
239 return snippets[0]
240 }
241}
242
243function parseCodeBlocks(response) {

Callers 2

parseInputFunction · 0.80
ai_test.jsFile · 0.80

Calls 3

createCompletionMethod · 0.95
debugFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected