~/talk

Building a Weather Agent on Android with Koog

Talkat droidcon London 2025 · 2025-10-30..10-31· [ai-assisted-development, kotlin]
slides:none on file

Adds the Koog Kotlin dependency and an OpenAI LLM executor, builds an agent with an executor, system prompt, and model; implements two concrete tools—search locations and fetch 5‑day forecast—groups them into a tool registry, and exposes them via annotated functions so the agent calls the weather API. An event handler logs before/after LLM calls. The single‑run agent fetches keys, retrieves forecasts, and returns results (including packing advice); it works but cannot handle clarifying questions within one run without a different strategy.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08What is an AI agent
  3. 6:30Introducing Cook framework
  4. 7:35Building weather agent
  5. 8:18Adding Cook dependency
  6. 9:02First AI agent instance
  7. 13:44Tools in Cook framework
  8. 15:10Aqua weather API
  9. 16:14Weather tools creation
  10. 18:03Grouping tools
  11. 18:24Registering tools
  12. 19:06Testing agent queries
  13. 21:55Debugging with event handlers
  14. 25:09Agent workflow
  15. 26:11Customizing agent behavior
  16. 26:32Agent strategy in Cook
  17. 28:23Predefined strategies
  18. 29:47Custom agent strategy
  19. 32:37Advanced Cook features
  20. 32:57Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.