Skip to main content

Project structure

Here’s a breakdown of the key files in your project after running adk init:
src
.mcp.json
agent.config.ts
agent.json
agent.local.json
AGENTS.md
CLAUDE.md
The ADK scans src/ and discovers primitives automatically. Each file exports a primitive (a Conversation, Workflow, Action, etc.) and the framework registers it at build time.

agent.config.ts

Everything about your agent is configured in agent.config.ts by calling defineConfig and passing in a configuration object. Here’s the hello-world template default configuration with all available fields shown:

Models

The defaultModels field controls which LLM your agent uses:
If you don’t set defaultModels, the ADK defaults to openai:gpt-4.1-mini-2025-04-14 for autonomous and openai:gpt-4.1-2025-04-14 for zai. You can pass an array of models for fallback. If the first model fails, the next one is tried:
You can also browse and set models from the dev console under Settings > LLM Config. To override the model on a specific execute() call:

State

The state field lets you define schemas for data that your agent can persist across a certain scope. There are two available scopes: You can define schemas for state using Zod. The ADK generates TypeScript types from them, so state access is fully typed:
For more information about reading and writing state at runtime, check out our guide to managing states.

Tags

The tags field lets you define metadata that you can attach to bots, users, conversations, messages, and workflows:
Tags are useful for filtering and organizing data in the Botpress platform.

Secrets

The secrets field lets you store sensitive values, like API keys or tokens. They are declared here, but values are managed separately per environment and never committed to version control:
For more information about using secrets, check out our guide on setting up your environment.

Configuration

The configuration field defines static, deploy-time settings. Unlike state, these are read-only at runtime:
For managing configuration values across environments, check out our guide to setting up your environment.

Dependencies

Dependencies declare which integrations your agent uses. Add them with the CLI:
The CLI resolves the version and updates agent.config.ts:
For more information about finding, configuring, and managing integrations, check out our integrations guide.

Custom events

The events field lets you define custom events your agent can emit and subscribe to:
You can then listen for these events within triggers and conversations. For more information, check out our guide on setting up triggers.

Evals

The evals field lets you configure how your agent’s automated tests run:
For more information, check out our full guide to writing and running evals.
Last modified on April 27, 2026