MCPcopy Create free account
hub / github.com/antvis/AVA / codeBlocks

Function codeBlocks

src/analysis/loop.ts:25–29  ·  view source on GitHub ↗
(response: string)

Source from the content-addressed store, hash-verified

23const DEFAULT_MAX_STEPS = 12;
24
25function codeBlocks(response: string): string[] {
26 return [...response.matchAll(/^[ \t]*```[^\r\n`]*\r?\n([\s\S]*?)^[ \t]*```[ \t]*\r?$/gm)].map((match) =>
27 match[1].trim()
28 );
29}
30
31function loopPrompt(language: QueryLanguage, includeSummary: boolean, rules: string): string {
32 return `You are a data analysis agent. Answer the user's question by querying the provided data source.

Callers 1

loopAnalysisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected