Skip to main content
Zai is a utility library for structured LLM operations. Instead of writing raw prompts, you call typed methods like extract(), check(), summarize(), and text() that handle prompting, parsing, and validation for you. In the ADK, Zai is available via adk.zai. It automatically uses your agent’s configured zai model from defaultModels in agent.config.ts.

What you can do

Quick example

Model configuration

Zai uses the zai model from defaultModels in agent.config.ts:
You can also change the model from the dev console under Settings > LLM Config.

Method categories

Extract structured data

Pull typed data from unstructured text.

Generate text and summaries

Generate, rewrite, summarize, and answer with citations.

Classify, validate and filter

Check conditions, label content, filter, sort, rate, and group.
Last modified on April 27, 2026