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-16/

Add a Weather Lookup Function to an Existing Agent

Problem/Feature Description

A developer has a working Koog 1.0 agent in Kotlin. They want the agent to be able to look up the current weather for a city. They already have a function in their project that does the network call:

fun fetchWeather(city: String, units: String): String {
    // Existing implementation returns a human-readable string like
    // "Lisbon: 22°C, partly cloudy"
}

They want this function exposed to the LLM so the agent can call it when a user asks about weather. They mention they'd like it to be straightforward — "nothing fancy, just expose the function."

Output Specification

Walk through how to expose the function to the agent. Produce the modified source files in a single response, with each file labeled.

evals

README.md

tile.json