Role Configuration
v1.1.11 2026-11
The agent uses a multi-role collaboration architecture, where each role handles different aspects of a task. This topic describes the purpose and configuration of each role.
Open Runtime Settings (gear icon) at the top right of the agent page.
Table of Contents
- Role Overview
- Main Role
- Evaluate Role
- Summary Role
- Memory Role
- Security Role
- Custom Roles
- Common Configuration Items
Role Overview
| Role | Core Responsibility | Default Status | Tool Permissions |
|---|---|---|---|
| Main Role | Reasoning, tool orchestration, final response | Required | All optional |
| Evaluate Role | Review response quality, provide feedback | Enabled by default | Limited tools by default |
| Summary Role | Context compression, auxiliary summarization | Disabled by default | Limited tools by default |
| Memory Role | Fuzzy memory search (fine-tuned model) | Disabled by default | Tools prohibited |
| Security Role | High-risk content pre-screening | Disabled by default | Tools prohibited by default |
| Delegate Role | Execute delegated subtasks | Added on demand | Independently configurable |
Main Role
The main role is the only required role. Without a configured model for the main role, new sessions cannot be created or messages sent.
Core Responsibilities
- Understand user task objectives and break them down into execution steps
- Select appropriate tools to complete tasks
- Generate final responses
- Delegate subtasks to other roles as needed
Connection Types
The main role supports three model connection methods:
| Type | Description | Configuration Notes |
|---|---|---|
| Local | Use imported local models from the model library | Select model category -> Select specific model |
| Online | Connect to cloud providers via API Key | Select provider -> Bind API credentials -> Select model |
| LAN | Connect to model services on the local network | Enter service URL |
Recommended Models
- Qwen3.5 Series (9B+): First choice, strong tool-calling and instruction-following capabilities.
- Choose a model for your task and hardware. For long tasks, a 32K context is a starting recommendation, not a universal minimum.
- Quantization format Q4_K_M or higher recommended.
Default Inference Parameters
| Parameter | Default | Description |
|---|---|---|
| Temperature | 0.6 | Controls response randomness |
| Max Generation Length | 0 (auto) | 0 means auto-calculated as 30% of context |
| Max Tool Rounds | 100 | Maximum tool call rounds per single task |
| Inference Timeout | 600 s | Maximum wait time per inference |
| Streaming Output | Enabled | Real-time content display |
| Thinking Mode | Enabled | Supports model-native thinking blocks |
Evaluate Role
Enabled by default, responsible for reviewing the quality of the main role's formal response.
Core Responsibilities
- Evaluate whether the response meets user requirements
- Check logical completeness and factual accuracy
- Suggest modifications or request regeneration
- Release the response only when quality standards are met
Configuration Notes
- Enabled by default; can be disabled in role parameters.
- When disabled, the main role's response bypasses quality review.
- Inference parameters are conservative (temperature 0.6) to ensure evaluation consistency.
- Tool rounds limited to 5.
- Streaming output not supported.
- If no model is specified, automatically uses the main role's model.
Summary Role
Disabled by default, used for context compression and auxiliary summarization.
Core Responsibilities
- Compress historical messages when conversation length approaches the model's context window
- Generate context summaries that can be used for continued execution
- Reduce memory and computation overhead of long conversations
Configuration Notes
- HF / Online / LAN standard models recommended (e.g., small summarization models)
- Default temperature 0.4, conservative to ensure summary quality
- Streaming output not supported
- Recommended for long-task scenarios
- If no model is specified, automatically uses the main role's model
Memory Role
Disabled by default, used for fuzzy memory search based on a fine-tuned memory model.
Core Responsibilities
- Assist the main role with fast fuzzy memory matching.
Important Constraints
The memory role has the following hard constraints:
- Can only use local models, does not support online or LAN.
- Tools are prohibited (tool rounds fixed to 0).
- Streaming output is not supported.
- A specially fine-tuned memory model is needed for optimal performance.
- Supports loading LoRA adapters.
Invocation
The memory role is invoked on demand by the main role. No manual operation is required — once enabled, the agent automatically queries memory when needed.
Security Role
Disabled by default, used for pre-screening high-risk content.
Core Responsibilities
- Review user input for prompt injection
- Detect malicious code or sensitive information in tool output
- Assess risk of external content obtained from the web
Security Review Mechanism
The system uses two-layer security detection:
- Logic-based detection: Profanity filtering, structure corruption detection
- Security role model detection: When the security role is enabled, a model performs in-depth review
Configuration Notes
- When enabled, high-risk tools go through security review first.
- Execution pauses when risk is detected, pending user confirmation.
- Default temperature 0.2, max generation length 2048.
- Streaming output not supported.
- If no model is specified, automatically uses the main role's model.
Custom Roles
Write the role’s job in its system prompt. The main role hands it a subtask, or you call it by role name. This stays inside the current task. It is not a separate multi-agent product.
Use Cases
- Code Review: Delegate to an independent reviewer role
- Multi-language Translation: Delegate to a dedicated translation role
- Multi-perspective Analysis: Different roles use different models to analyze from different angles
Configuration Notes
- Click Add Role to create a new delegate role.
- Each custom role can independently configure models, prompts, and tool sets.
- The main role can invoke custom roles by name to complete tasks.
- Default delegation mode is synchronous.
Note: When the main role is using a local LLM, sub-roles can only reuse the same model or switch to HF / Online backends.
Common Configuration Items
Each role supports the following configuration items:
Model Selection
| Item | Description |
|---|---|
| Backend Type | Local model category (LLM / Multimodal / HF Standard) or online protocol |
| Model | Specific model selection |
| LoRA Mount Point | Attach a LoRA fine-tune adapter to the local model |
| Online Provider | Online model service provider |
| API Credentials | Bound API Key |
| LAN Address | Service URL for LAN mode |
The online backend calls cloud models with the OpenAI-compatible Chat Completions protocol. Providers shown in the interface include DeepSeek and OpenRouter. The OpenAI and Claude cache options in Advanced Settings only affect prompt caching for those providers.
Prompt
| Item | Description |
|---|---|
| Role Prompt Template | Preset role behavior template |
| System Prompt | Custom role behavior instructions |
Core Parameters
| Parameter | Description | Default |
|---|---|---|
| Enable Tools | Whether to allow the role to call tools | Enabled |
| Temperature | Controls response randomness | 0.6 |
| Max Generation Length | Single task maximum token count (0=auto) | 0 |
| Max Context Length | Single task maximum context length (0=no limit) | Empty |
Note: This control is the quick adjustment of the local model's context length for that role. You do not have to go back to the model library first. Empty means do not override the library setting.
0means no limit. For long tasks, start with 32K if supported by the model and available resources.
Advanced Inference Parameters
| Parameter | Description | Default |
|---|---|---|
| Max Tool Rounds | Maximum tool call rounds per single task | 100 |
| Inference Timeout | Maximum wait time per inference | 600 s |
| Fast Mode | Skip feedback process before tool call | Disabled |
| Thinking Mode | On: the thinking trace stays in the reply. Off: the model does not produce a thinking trace | Enabled |
| Thinking Depth | Thinking level for a local model. A higher level is slower. The highest level is Max | — |
| KV Cache / MTP | Inference-tuning parameters for local LLMs and multimodal models | — |
Toolset Configuration
Each role can independently select allowed tools. Supports two modes:
- Automatic Selection: Dynamically select the most suitable tool within the selected tool range at runtime
- Fixed Loading: Always load all selected tools
Note, the tools available during task execution strictly follow the selected range. Neither automatic selection nor tool discovery will call unselected tool groups.
MCP Tools
MCP tools can be configured for the main and delegated roles. Connect a service in Settings → MCP, then select tools under the role’s Tool Set → Configure Tools. Delegated calls require both the main role and the delegated role to enable tools and select the required MCP tools. With existing selections, the button reads “N selected”. See Using MCP in Agents.