Skip to content

AiderPolyglotAdapter

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/benchmark/aider-adapter.ts

Implements: BenchmarkAdapter

Methods

MethodSignatureReturns
loadTasksloadTasks(config: BenchmarkRunConfig)Promise<BenchmarkTask[]>
setupTasksetupTask(task: BenchmarkTask, workDir: string)Promise<void>
buildPromptbuildPrompt(task: BenchmarkTask)string
evaluateevaluate(task: BenchmarkTask, workDir: string)Promise<{ passed: boolean; details: string }>
cleanupcleanup(_task: BenchmarkTask, workDir: string)Promise<void>

Where it refuses work

  • AiderPolyglotAdapter stops the work with Error when !exerciseDir.
  • AiderPolyglotAdapter stops the work with Error when !fs.existsSync(srcDir).
  • AiderPolyglotAdapter stops the work with an early return when !task.testCommand.

When something fails

  • AiderPolyglotAdapter handles failure in 9 places: it discards it silently in 6, logs it and continues in 2, and turns it into a return value in 1.

Was this page helpful?

Download as PDF