feat: Introduce agent type presets for smart-reasoning mode
- Added a new configuration file `agent_type_presets.yaml` to define various agent type presets, including RAG Q&A, Wiki Q&A, Hybrid (Wiki + RAG), and Data Analysis. - Updated the `builtin_agents.yaml` to associate built-in agents with the new agent type presets, enhancing their configuration options. - Enhanced the agent system prompt templates to reflect the new agent types and their functionalities. - Implemented API endpoints to retrieve agent type presets, allowing for dynamic loading in the frontend. - Updated the frontend to support agent type selection in the agent editor modal, improving user experience by auto-filling relevant configurations based on selected presets. These changes significantly enhance the flexibility and usability of the agent system, allowing users to easily configure agents based on predefined types.
This commit is contained in:
@@ -3192,9 +3192,6 @@ export default {
|
||||
groupData: 'Анализ данных',
|
||||
writeWarning: 'Изменяет содержимое Wiki',
|
||||
dangerTag: 'Запись',
|
||||
// Пресет
|
||||
presetLabel: 'Пресет поиска',
|
||||
presetDesc: 'Переключение пресета одним кликом меняет флажки ниже (инструменты RAG/Wiki)',
|
||||
// Строка состояния
|
||||
statusNoKb: 'База знаний не подключена',
|
||||
statusKb: 'В области: {rag} RAG баз · {wiki} Wiki баз',
|
||||
@@ -3251,6 +3248,19 @@ export default {
|
||||
sessionModeThread: 'По потоку',
|
||||
sessionModeHint: 'Режим пользователя: отдельный диалог для каждого пользователя. /clear для нового диалога. Режим потока: отдельный диалог для каждого потока. Несколько человек могут общаться в одном потоке.',
|
||||
},
|
||||
agentType: {
|
||||
label: 'Тип агента',
|
||||
desc: 'Выбор пресета автоматически заполняет системный промпт, список инструментов и рекомендуемую область баз знаний.',
|
||||
defaultNamePattern: 'Мой {label}',
|
||||
kbMismatch: {
|
||||
ragQa: 'RAG-поиск отключён',
|
||||
wikiQa: 'Wiki отключён',
|
||||
hybridRagWiki: 'Поиск не включён',
|
||||
dataAnalysis: 'Требуется RAG (не FAQ)',
|
||||
generic: 'Несовместимо с типом',
|
||||
},
|
||||
kbIncompatibleWarn: 'Выбранные базы знаний ({count}) несовместимы с текущим типом. Настройте вручную.'
|
||||
},
|
||||
mcp: {
|
||||
label: 'MCP-сервисы',
|
||||
desc: 'Выберите MCP-сервисы, доступные агенту',
|
||||
|
||||
Reference in New Issue
Block a user