Documentation

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

RoleCore ResponsibilityDefault StatusTool Permissions
Main RoleReasoning, tool orchestration, final responseRequiredAll optional
Evaluate RoleReview response quality, provide feedbackEnabled by defaultLimited tools by default
Summary RoleContext compression, auxiliary summarizationDisabled by defaultLimited tools by default
Memory RoleFuzzy memory search (fine-tuned model)Disabled by defaultTools prohibited
Security RoleHigh-risk content pre-screeningDisabled by defaultTools prohibited by default
Delegate RoleExecute delegated subtasksAdded on demandIndependently 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:

TypeDescriptionConfiguration Notes
LocalUse imported local models from the model librarySelect model category -> Select specific model
OnlineConnect to cloud providers via API KeySelect provider -> Bind API credentials -> Select model
LANConnect to model services on the local networkEnter service URL
  • 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

ParameterDefaultDescription
Temperature0.6Controls response randomness
Max Generation Length0 (auto)0 means auto-calculated as 30% of context
Max Tool Rounds100Maximum tool call rounds per single task
Inference Timeout600 sMaximum wait time per inference
Streaming OutputEnabledReal-time content display
Thinking ModeEnabledSupports 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:

  1. Logic-based detection: Profanity filtering, structure corruption detection
  2. 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

ItemDescription
Backend TypeLocal model category (LLM / Multimodal / HF Standard) or online protocol
ModelSpecific model selection
LoRA Mount PointAttach a LoRA fine-tune adapter to the local model
Online ProviderOnline model service provider
API CredentialsBound API Key
LAN AddressService 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

ItemDescription
Role Prompt TemplatePreset role behavior template
System PromptCustom role behavior instructions

Core Parameters

ParameterDescriptionDefault
Enable ToolsWhether to allow the role to call toolsEnabled
TemperatureControls response randomness0.6
Max Generation LengthSingle task maximum token count (0=auto)0
Max Context LengthSingle 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. 0 means no limit. For long tasks, start with 32K if supported by the model and available resources.

Advanced Inference Parameters

ParameterDescriptionDefault
Max Tool RoundsMaximum tool call rounds per single task100
Inference TimeoutMaximum wait time per inference600 s
Fast ModeSkip feedback process before tool callDisabled
Thinking ModeOn: the thinking trace stays in the reply. Off: the model does not produce a thinking traceEnabled
Thinking DepthThinking level for a local model. A higher level is slower. The highest level is Max—
KV Cache / MTPInference-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.