Agent configuration
Agent configuration lives in your Cube data model repository, alongside your cubes and views. Configuration is defined as YAML and Markdown files under anagents/ directory in your project:
Cube version 1.6.5 or above is required. Agent configuration is enabled by setting
CUBE_CLOUD_AGENTS_CONFIG_ENABLED=true. The directory path defaults to agents and can be overridden with CUBE_CLOUD_AGENTS_CONFIG_PATH.Configure the agent
Place agent properties at the root ofagents/config.yml:
Properties
| Property | Type | Default | Description |
|---|---|---|---|
llm | string or object | auto | LLM provider β auto, a predefined model name, or a BYOM reference. |
embedding_llm | string or object | text-embedding-3-large | Embedding model β a predefined name or a BYOM reference. |
runtime | string | plain | Runtime mode β plain or reasoning. |
accessible_views | array | all views | List of view names the agent is allowed to query. If omitted or empty, the agent has access to all views. |
memory_mode | string | space | Memory isolation mode β space, user, or disabled. |
- Rules β instructions that guide the agentβs behavior
- Certified queries β a library of trusted SQL examples for the agent
LLM
The default value isauto β Cube picks a recommended model on your behalf and may change it as better models become available. Use auto unless you have a reason to pin a specific model.
To pin a specific model, set the llm property to one of the predefined models:
Anthropic Claude:
claude_3_5_sonnetv2claude_3_7_sonnetclaude_3_7_sonnet_thinkingclaude_4_sonnetclaude_4_5_sonnetclaude_4_5_haikuclaude_4_5_opusclaude_4_6_sonnetclaude_4_6_opusclaude_4_7_opus
gpt_4ogpt_4_1gpt_4_1_minigpt_5gpt_5_minigpt_5_3gpt_5_4o3o4_mini
Embedding models
Predefined embedding models for theembedding_llm property:
text-embedding-3-largetext-embedding-3-small
Runtime
Theruntime property controls how the agent processes requests:
| Mode | Description |
|---|---|
plain | Default. Optimized for speed and cost. Recommended for most use cases. |
reasoning | Enables extended thinking for complex analysis. |
Memory
Thememory_mode property controls how the agent persists context across conversations:
| Mode | Description |
|---|---|
space | Default. Memories are shared across all users β useful when the agent serves a single team. |
user | Memories are isolated per user β useful when each user has private context. |
disabled | The agent does not persist memory between conversations. |
Customize the agent
Rules
Define instructions that guide how the agent responds and analyzes data.
Certified queries
Provide a library of trusted SQL queries for the agent to reference.
Bring your own model
Configure the agent to use your own LLM provider or model.
Memories
Control how the agent persists context across conversations and users.