CtrlK
BlogDocsLog inGet started
Tessl Logo

jbaruch/koog

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

89

1.78x
Quality

89%

Does it follow best practices?

Impact

89%

1.78x

Average score across 47 eval scenarios

SecuritybySnyk

Advisory

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-45/

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 the default strategy. They want the smallest change that gets them the typed result.

Output Specification

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

CHANGELOG.md

README.md

tessl.json

tile.json