CtrlK
BlogDocsLog inGet started
Tessl Logo

jbaruch/koog

Koog 1.0 idioms, gotchas, and scaffolding skills for Kotlin agents on the JVM

88

1.95x
Quality

88%

Does it follow best practices?

Impact

88%

1.95x

Average score across 43 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-30/

Bump a 0.x Codebase Using AgentMemory to 1.0

Problem/Feature Description

A developer maintains a Koog 0.7.x agent that uses the memory feature. Their current code includes:

val agent = AIAgent.invoke(
    promptExecutor = simpleOpenAIExecutor(System.getenv("OPENAI_API_KEY")),
    llmModel = OpenAIModels.Chat.GPT4o,
    systemPrompt = "...",
) {
    install(AgentMemory) {
        queryExtractor = MyQueryExtractor()
        extractionStrategy = MyExtractionStrategy()
        ingestionTiming = IngestionTiming.AFTER_RESPONSE
    }
}

They want to bump to Koog 1.0. They're targeting JDK 11 today.

Output Specification

Walk through all the changes required to bring this snippet to 1.0. Produce the changed Kotlin code and the dependency/toolchain changes as a single response, labeled.

evals

README.md

tile.json