CtrlK
BlogDocsLog inGet started
Tessl Logo

jbaruch/koog

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

86

1.86x
Quality

88%

Does it follow best practices?

Impact

86%

1.86x

Average score across 45 eval scenarios

SecuritybySnyk

Advisory

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-29/

Make an Agent Return a Typed Classification

Problem/Feature Description

A developer has a working Koog 1.0 agent that classifies GitHub issues — currently it returns a free-form string and downstream code parses it with regex (brittle). They want the agent to return a typed object directly:

@Serializable
data class IssueClassification(
    val type: String,        // "bug" | "feature" | "question"
    val confidence: Double,
    val suggestedLabels: List<String>,
)

The agent currently uses singleRunStrategy() (the default) — they're not authoring a custom strategy graph. They want the simplest possible change.

Output Specification

Walk through the change. Produce the modified agent construction code and any imports as a single response, labeled.

evals

README.md

tile.json