Kaya Language Documentation

Where AI generation and traditional programming meet

This book covers the Kaya language: writing programs, working with AI, and building agents. For installation, model configuration, and command-line setup, see the separate Installation Guide.

Quick Start

šŸ¤– For AI agents: Skill for Agents — condensed syntax reference

šŸ‘Øā€šŸ’» For developers: Getting Started — a quick tour of the language

Look for Run in Browser → beneath selected snippets. Each opens an editable, complete example; some include extra variables or helper files beyond the short documentation fragment. Examples marked Text model required use the model and API key you configure in the browser IDE's Settings.

Documentation Sections

šŸ¤– AI Language Features

Work with model-powered types, conversations, and semantic reasoning.

  • Type System - Model-powered type coercion and structured output
  • Chat Output - Bare strings, speaker roles, and multi-modal messages
  • Fuzzy Logic - AI-powered language features: is, as, pick, and vary

✨ Generation

Generate text, images, speech, and video from your Kaya programs.

šŸŽØ Rendering

Turn authored content into diagrams, documents, images, and ebooks.

šŸ› ļø Agents

Build agents that use tools and follow reusable execution profiles.

šŸ”Œ Integrations

Run interactive Kaya programs in agent clients without moving execution out of Kaya.

  • ACP - Expose a Kaya job through the Agent Client Protocol and accept session MCP tools
  • Buzz - Connect Kaya agents, try runnable examples, and host the workspace

šŸ’” Interesting Bits

Explore events, session playback, and templating.

  • Events - Emit and await structured events
  • The Timeline - Channels, scheduling, and session playback
  • Templating - Variables, expressions, and Liquid filters inside strings

šŸ“˜ Language Details

Learn Kaya with practical guides and look up syntax, types, operators, and built-in functions.

Looking for best practices, the quick reference card, and common pitfalls? Those now live in the Skill for Agents.

Documentation Philosophy

This documentation is organized by use case rather than implementation:

  • Learning? Start with Language Details.
  • Looking something up? Use the reference pages within Language Details.