@lobehub/lobehub 2.0.0-next.273 → 2.0.0-next.274
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/changelog/v1.json +9 -0
- package/locales/ar/chat.json +7 -0
- package/locales/ar/models.json +2 -3
- package/locales/ar/plugin.json +22 -1
- package/locales/bg-BG/chat.json +7 -0
- package/locales/bg-BG/models.json +3 -3
- package/locales/bg-BG/plugin.json +22 -1
- package/locales/de-DE/chat.json +7 -0
- package/locales/de-DE/models.json +3 -4
- package/locales/de-DE/plugin.json +22 -1
- package/locales/en-US/chat.json +7 -0
- package/locales/en-US/models.json +5 -5
- package/locales/en-US/plugin.json +22 -1
- package/locales/es-ES/chat.json +7 -0
- package/locales/es-ES/models.json +3 -4
- package/locales/es-ES/plugin.json +22 -1
- package/locales/fa-IR/chat.json +7 -0
- package/locales/fa-IR/models.json +3 -4
- package/locales/fa-IR/plugin.json +22 -1
- package/locales/fr-FR/chat.json +7 -0
- package/locales/fr-FR/models.json +50 -3
- package/locales/fr-FR/plugin.json +22 -1
- package/locales/it-IT/chat.json +7 -0
- package/locales/it-IT/models.json +3 -3
- package/locales/it-IT/plugin.json +22 -1
- package/locales/ja-JP/chat.json +7 -0
- package/locales/ja-JP/models.json +43 -4
- package/locales/ja-JP/plugin.json +22 -1
- package/locales/ko-KR/chat.json +7 -0
- package/locales/ko-KR/models.json +3 -4
- package/locales/ko-KR/plugin.json +22 -1
- package/locales/nl-NL/chat.json +7 -0
- package/locales/nl-NL/models.json +51 -3
- package/locales/nl-NL/plugin.json +22 -1
- package/locales/pl-PL/chat.json +7 -0
- package/locales/pl-PL/models.json +3 -3
- package/locales/pl-PL/plugin.json +22 -1
- package/locales/pt-BR/chat.json +7 -0
- package/locales/pt-BR/models.json +3 -4
- package/locales/pt-BR/plugin.json +22 -1
- package/locales/ru-RU/chat.json +7 -0
- package/locales/ru-RU/models.json +3 -4
- package/locales/ru-RU/plugin.json +22 -1
- package/locales/tr-TR/chat.json +7 -0
- package/locales/tr-TR/models.json +3 -4
- package/locales/tr-TR/plugin.json +22 -1
- package/locales/vi-VN/chat.json +7 -0
- package/locales/vi-VN/models.json +3 -3
- package/locales/vi-VN/plugin.json +22 -1
- package/locales/zh-CN/chat.json +7 -0
- package/locales/zh-CN/models.json +54 -4
- package/locales/zh-CN/plugin.json +22 -1
- package/locales/zh-TW/chat.json +7 -0
- package/locales/zh-TW/models.json +43 -4
- package/locales/zh-TW/plugin.json +22 -1
- package/package.json +1 -1
- package/packages/builtin-tool-agent-builder/package.json +1 -0
- package/packages/builtin-tool-agent-builder/src/client/Inspector/GetAvailableModels/index.tsx +66 -0
- package/packages/builtin-tool-agent-builder/src/client/Inspector/InstallPlugin/index.tsx +63 -0
- package/packages/builtin-tool-agent-builder/src/client/Inspector/SearchMarketTools/index.tsx +64 -0
- package/packages/builtin-tool-agent-builder/src/client/Inspector/UpdateConfig/index.tsx +94 -0
- package/packages/builtin-tool-agent-builder/src/client/Inspector/UpdatePrompt/index.tsx +96 -0
- package/packages/builtin-tool-agent-builder/src/client/Inspector/index.ts +29 -0
- package/packages/builtin-tool-agent-builder/src/client/index.ts +13 -0
- package/packages/builtin-tool-agent-builder/src/executor.ts +132 -0
- package/packages/builtin-tool-cloud-sandbox/src/client/Inspector/ExecuteCode/index.tsx +5 -14
- package/packages/builtin-tool-cloud-sandbox/src/client/Inspector/RunCommand/index.tsx +5 -13
- package/packages/builtin-tool-group-agent-builder/package.json +7 -1
- package/packages/builtin-tool-group-agent-builder/src/ExecutionRuntime/index.ts +331 -87
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/BatchCreateAgents/index.tsx +110 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/CreateAgent/index.tsx +72 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/InviteAgent/index.tsx +57 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/RemoveAgent/index.tsx +57 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/SearchAgent/index.tsx +66 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateAgentPrompt/index.tsx +120 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateGroup/index.tsx +87 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateGroupPrompt/index.tsx +99 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/index.ts +52 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Render/BatchCreateAgents.tsx +103 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Render/UpdateAgentPrompt/index.tsx +36 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Render/UpdateGroupPrompt/index.tsx +36 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Render/index.ts +16 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Streaming/BatchCreateAgents/index.tsx +88 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Streaming/UpdateAgentPrompt/index.tsx +37 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Streaming/UpdateGroupPrompt/index.tsx +35 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Streaming/index.ts +22 -0
- package/packages/builtin-tool-group-agent-builder/src/client/index.ts +26 -0
- package/packages/builtin-tool-group-agent-builder/src/executor.ts +284 -0
- package/packages/builtin-tool-group-agent-builder/src/index.ts +1 -14
- package/packages/builtin-tool-group-agent-builder/src/manifest.ts +160 -15
- package/packages/builtin-tool-group-agent-builder/src/systemRole.ts +232 -46
- package/packages/builtin-tool-group-agent-builder/src/types.ts +191 -41
- package/packages/builtin-tool-group-management/src/client/Inspector/Broadcast/index.tsx +2 -2
- package/packages/builtin-tool-group-management/src/manifest.ts +1 -1
- package/packages/builtin-tool-gtd/src/client/Inspector/ClearTodos/index.tsx +5 -11
- package/packages/builtin-tool-gtd/src/client/Inspector/CompleteTodos/index.tsx +3 -9
- package/packages/builtin-tool-gtd/src/client/Inspector/CreatePlan/index.tsx +6 -15
- package/packages/builtin-tool-gtd/src/client/Inspector/CreateTodos/index.tsx +3 -9
- package/packages/builtin-tool-gtd/src/client/Inspector/ExecTask/index.tsx +6 -17
- package/packages/builtin-tool-gtd/src/client/Inspector/RemoveTodos/index.tsx +3 -9
- package/packages/builtin-tool-gtd/src/client/Inspector/UpdatePlan/index.tsx +3 -9
- package/packages/builtin-tool-gtd/src/client/Inspector/UpdateTodos/index.tsx +3 -9
- package/packages/builtin-tool-knowledge-base/src/client/Inspector/ReadKnowledge/index.tsx +4 -16
- package/packages/builtin-tool-knowledge-base/src/client/Inspector/SearchKnowledgeBase/index.tsx +5 -16
- package/packages/builtin-tool-local-system/src/client/Inspector/EditLocalFile/index.tsx +4 -12
- package/packages/builtin-tool-local-system/src/client/Inspector/GlobLocalFiles/index.tsx +5 -13
- package/packages/builtin-tool-local-system/src/client/Inspector/GrepContent/index.tsx +5 -16
- package/packages/builtin-tool-local-system/src/client/Inspector/ListLocalFiles/index.tsx +5 -16
- package/packages/builtin-tool-local-system/src/client/Inspector/ReadLocalFile/index.tsx +5 -16
- package/packages/builtin-tool-local-system/src/client/Inspector/RenameLocalFile/index.tsx +5 -11
- package/packages/builtin-tool-local-system/src/client/Inspector/RunCommand/index.tsx +5 -13
- package/packages/builtin-tool-local-system/src/client/Inspector/SearchLocalFiles/index.tsx +5 -16
- package/packages/builtin-tool-local-system/src/client/Inspector/WriteLocalFile/index.tsx +6 -15
- package/packages/builtin-tool-notebook/src/client/Inspector/CreateDocument/index.tsx +7 -15
- package/packages/builtin-tool-page-agent/src/client/Inspector/EditTitle/index.tsx +5 -14
- package/packages/builtin-tool-page-agent/src/client/Inspector/GetPageContent/index.tsx +7 -8
- package/packages/builtin-tool-page-agent/src/client/Inspector/InitPage/index.tsx +4 -10
- package/packages/builtin-tool-page-agent/src/client/Inspector/ModifyNodes/index.tsx +3 -9
- package/packages/builtin-tool-page-agent/src/client/Inspector/ReplaceText/index.tsx +5 -11
- package/packages/builtin-tool-web-browsing/src/client/Inspector/CrawlMultiPages/index.tsx +6 -15
- package/packages/builtin-tool-web-browsing/src/client/Inspector/CrawlSinglePage/index.tsx +6 -15
- package/packages/builtin-tool-web-browsing/src/client/Inspector/Search/index.tsx +4 -15
- package/packages/database/src/models/chatGroup.ts +1 -1
- package/packages/model-bank/src/aiModels/aihubmix.ts +2 -1
- package/packages/model-bank/src/aiModels/google.ts +2 -1
- package/packages/model-bank/src/aiModels/infiniai.ts +9 -6
- package/packages/model-bank/src/aiModels/minimax.ts +9 -5
- package/packages/model-bank/src/aiModels/ollamacloud.ts +4 -2
- package/packages/model-bank/src/aiModels/vertexai.ts +2 -1
- package/packages/types/src/agentGroup/index.ts +8 -0
- package/patches/@upstash__qstash.patch +13 -1
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/Header/Nav.tsx +1 -1
- package/src/app/[variants]/(main)/agent/cron/[cronId]/index.tsx +4 -3
- package/src/app/[variants]/(main)/agent/profile/features/ProfileEditor/index.tsx +1 -1
- package/src/app/[variants]/(main)/agent/profile/features/store/action.ts +18 -21
- package/src/app/[variants]/(main)/group/_layout/GroupIdSync.tsx +6 -1
- package/src/app/[variants]/(main)/group/_layout/Sidebar/GroupConfig/AgentProfilePopup.tsx +29 -21
- package/src/app/[variants]/(main)/group/_layout/Sidebar/GroupConfig/GroupMember.tsx +1 -0
- package/src/app/[variants]/(main)/group/_layout/Sidebar/GroupConfig/GroupMemberItem.tsx +35 -18
- package/src/app/[variants]/(main)/group/_layout/Sidebar/Header/AddTopicButon.tsx +2 -10
- package/src/app/[variants]/(main)/group/_layout/Sidebar/Header/Nav.tsx +10 -2
- package/src/app/[variants]/(main)/group/_layout/Sidebar/Header/index.tsx +1 -2
- package/src/app/[variants]/(main)/group/profile/features/AgentBuilder/AgentBuilderProvider.tsx +1 -0
- package/src/app/[variants]/(main)/group/profile/features/AgentBuilder/TopicSelector.tsx +15 -9
- package/src/app/[variants]/(main)/group/profile/features/AgentBuilder/index.tsx +12 -6
- package/src/app/[variants]/(main)/group/profile/features/{ProfileEditor/AgentHeader.tsx → GroupProfile/GroupHeader.tsx} +22 -29
- package/src/app/[variants]/(main)/group/profile/features/GroupProfile/index.tsx +96 -0
- package/src/app/[variants]/(main)/group/profile/features/Header/AgentBuilderToggle.tsx +3 -4
- package/src/app/[variants]/(main)/group/profile/features/Header/AutoSaveHint.tsx +11 -7
- package/src/app/[variants]/(main)/group/profile/features/Header/ChromeTabs/index.tsx +147 -0
- package/src/app/[variants]/(main)/group/profile/features/Header/index.tsx +104 -13
- package/src/app/[variants]/(main)/group/profile/features/MemberProfile/AgentHeader.tsx +222 -0
- package/src/app/[variants]/(main)/group/profile/features/MemberProfile/index.tsx +155 -0
- package/src/app/[variants]/(main)/group/profile/features/ProfileHydration.tsx +63 -5
- package/src/app/[variants]/(main)/group/profile/index.tsx +34 -37
- package/src/app/[variants]/(mobile)/(home)/_layout/SessionHydration.tsx +1 -1
- package/src/app/[variants]/(mobile)/(home)/features/SessionListContent/List/Item/index.tsx +1 -1
- package/src/features/AgentBuilder/index.tsx +16 -1
- package/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/StatusIndicator.tsx +3 -2
- package/src/features/EditorCanvas/EditorCanvas.test.tsx +206 -0
- package/src/features/EditorCanvas/EditorDataMode.tsx +53 -19
- package/src/features/EditorModal/index.tsx +2 -2
- package/src/features/NavPanel/components/SessionHydration.tsx +1 -1
- package/src/features/ShareModal/ShareImage/ChatList/index.tsx +1 -1
- package/src/features/ShareModal/SharePdf/index.tsx +1 -1
- package/src/hooks/useBidirectionalQuerySync.ts +112 -0
- package/src/locales/default/chat.ts +10 -0
- package/src/locales/default/plugin.ts +22 -1
- package/src/server/modules/AgentRuntime/RuntimeExecutors.ts +45 -45
- package/src/server/modules/KeyVaultsEncrypt/index.ts +6 -6
- package/src/server/modules/S3/index.ts +1 -1
- package/src/server/routers/lambda/agent.ts +24 -0
- package/src/server/routers/lambda/agentGroup.ts +39 -0
- package/src/services/agent.ts +22 -0
- package/src/services/chatGroup/index.ts +14 -0
- package/src/store/agent/selectors/selectors.ts +3 -0
- package/src/store/agentGroup/initialState.ts +6 -0
- package/src/store/agentGroup/selectors/byId.ts +3 -1
- package/src/store/agentGroup/selectors/current.ts +2 -2
- package/src/store/agentGroup/slices/lifecycle.ts +18 -0
- package/src/store/chat/agents/__tests__/createAgentExecutors/fixtures/mockStore.ts +1 -1
- package/src/store/chat/slices/aiAgent/actions/__tests__/agentGroup.test.ts +4 -1
- package/src/store/chat/slices/aiAgent/actions/agentGroup.ts +1 -1
- package/src/store/chat/slices/aiChat/actions/__tests__/conversationLifecycle.test.ts +65 -0
- package/src/store/chat/slices/aiChat/actions/conversationLifecycle.ts +2 -1
- package/src/store/chat/slices/builtinTool/actions/__tests__/search.test.ts +1 -1
- package/src/store/chat/slices/builtinTool/actions/index.ts +1 -6
- package/src/store/chat/slices/message/action.test.ts +5 -5
- package/src/store/chat/slices/message/actions/publicApi.ts +5 -5
- package/src/store/chat/slices/message/initialState.ts +0 -5
- package/src/store/chat/slices/message/selectors/displayMessage.test.ts +4 -4
- package/src/store/chat/slices/plugin/action.test.ts +54 -19
- package/src/store/chat/slices/plugin/actions/pluginTypes.ts +15 -21
- package/src/store/chat/slices/topic/action.test.ts +74 -24
- package/src/store/chat/slices/topic/action.ts +21 -13
- package/src/store/chat/slices/topic/selectors.test.ts +1 -1
- package/src/store/global/initialState.ts +10 -0
- package/src/store/global/selectors/systemStatus.ts +5 -0
- package/src/store/groupProfile/action.ts +168 -0
- package/src/store/groupProfile/index.ts +16 -0
- package/src/{app/[variants]/(main)/group/profile/features/store → store/groupProfile}/initialState.ts +17 -0
- package/src/store/groupProfile/selectors.ts +13 -0
- package/src/store/tool/slices/builtin/executors/index.ts +4 -0
- package/src/styles/text.ts +16 -0
- package/src/tools/inspectors.ts +13 -0
- package/src/tools/renders.ts +3 -0
- package/src/tools/streamings.ts +8 -0
- package/src/app/[variants]/(main)/group/profile/features/EditorCanvas/TypoBar.tsx +0 -129
- package/src/app/[variants]/(main)/group/profile/features/EditorCanvas/index.tsx +0 -138
- package/src/app/[variants]/(main)/group/profile/features/EditorCanvas/useSlashItems.tsx +0 -139
- package/src/app/[variants]/(main)/group/profile/features/ProfileEditor/index.tsx +0 -82
- package/src/app/[variants]/(main)/group/profile/features/ProfileProvider.tsx +0 -20
- package/src/app/[variants]/(main)/group/profile/features/StoreUpdater.tsx +0 -24
- package/src/app/[variants]/(main)/group/profile/features/store/action.ts +0 -163
- package/src/app/[variants]/(main)/group/profile/features/store/index.ts +0 -23
- package/src/app/[variants]/(main)/group/profile/features/store/selectors.ts +0 -7
- package/src/features/EditorModal/EditorCanvas.tsx +0 -84
- package/src/features/EditorModal/Typobar.tsx +0 -139
- package/src/store/chat/slices/builtinTool/actions/agentBuilder.ts +0 -192
- package/src/store/chat/slices/builtinTool/actions/groupAgentBuilder.ts +0 -242
- package/src/tools/executionRuntimes.ts +0 -14
- /package/src/app/[variants]/(main)/group/profile/features/{ProfileEditor → MemberProfile}/AgentTool.tsx +0 -0
- /package/src/app/[variants]/(main)/group/profile/features/{ProfileEditor → MemberProfile}/MentionList/MentionDropdown.tsx +0 -0
- /package/src/app/[variants]/(main)/group/profile/features/{ProfileEditor → MemberProfile}/MentionList/index.tsx +0 -0
- /package/src/app/[variants]/(main)/group/profile/features/{ProfileEditor → MemberProfile}/MentionList/types.ts +0 -0
- /package/src/app/[variants]/(main)/group/profile/features/{ProfileEditor → MemberProfile}/MentionList/useMentionItems.tsx +0 -0
|
@@ -6,6 +6,111 @@ import { GroupAgentBuilderApiName, GroupAgentBuilderIdentifier } from './types';
|
|
|
6
6
|
export const GroupAgentBuilderManifest: BuiltinToolManifest = {
|
|
7
7
|
api: [
|
|
8
8
|
// ==================== Group Member Management ====================
|
|
9
|
+
{
|
|
10
|
+
description:
|
|
11
|
+
"Search for agents that can be invited to the group. Returns agents from the user's collection. Use this to find suitable agents before inviting them.",
|
|
12
|
+
name: GroupAgentBuilderApiName.searchAgent,
|
|
13
|
+
parameters: {
|
|
14
|
+
properties: {
|
|
15
|
+
limit: {
|
|
16
|
+
default: 10,
|
|
17
|
+
description: 'Maximum number of results to return (default: 10, max: 20).',
|
|
18
|
+
maximum: 20,
|
|
19
|
+
minimum: 1,
|
|
20
|
+
type: 'number',
|
|
21
|
+
},
|
|
22
|
+
query: {
|
|
23
|
+
description:
|
|
24
|
+
'Search query to find agents by name, description, or capabilities. Leave empty to browse all available agents.',
|
|
25
|
+
type: 'string',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
required: [],
|
|
29
|
+
type: 'object',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
description:
|
|
34
|
+
'Create a new agent dynamically based on user requirements and add it to the group. Use this when no existing agent matches the needed expertise.',
|
|
35
|
+
humanIntervention: 'required',
|
|
36
|
+
name: GroupAgentBuilderApiName.createAgent,
|
|
37
|
+
parameters: {
|
|
38
|
+
properties: {
|
|
39
|
+
avatar: {
|
|
40
|
+
description: "An emoji or image URL for the agent's avatar (optional).",
|
|
41
|
+
type: 'string',
|
|
42
|
+
},
|
|
43
|
+
description: {
|
|
44
|
+
description: 'A brief description of what this agent does and its expertise.',
|
|
45
|
+
type: 'string',
|
|
46
|
+
},
|
|
47
|
+
systemRole: {
|
|
48
|
+
description:
|
|
49
|
+
"The system prompt that defines the agent's behavior, personality, and capabilities.",
|
|
50
|
+
type: 'string',
|
|
51
|
+
},
|
|
52
|
+
title: {
|
|
53
|
+
description: 'The display name for the new agent.',
|
|
54
|
+
type: 'string',
|
|
55
|
+
},
|
|
56
|
+
tools: {
|
|
57
|
+
description:
|
|
58
|
+
'Array of tool identifiers to enable for this agent. Use identifiers from official_tools context (e.g., "lobe-cloud-sandbox", "web-crawler").',
|
|
59
|
+
items: { type: 'string' },
|
|
60
|
+
type: 'array',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
required: ['title', 'systemRole'],
|
|
64
|
+
type: 'object',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
description:
|
|
69
|
+
'Create multiple agents at once and add them to the group. Use this to efficiently set up a team of agents with different expertise.',
|
|
70
|
+
humanIntervention: 'required',
|
|
71
|
+
name: GroupAgentBuilderApiName.batchCreateAgents,
|
|
72
|
+
parameters: {
|
|
73
|
+
properties: {
|
|
74
|
+
agents: {
|
|
75
|
+
description: 'Array of agent definitions to create',
|
|
76
|
+
items: {
|
|
77
|
+
properties: {
|
|
78
|
+
/* eslint-disable sort-keys-fix/sort-keys-fix */
|
|
79
|
+
avatar: {
|
|
80
|
+
description: "An emoji or image URL for the agent's avatar (optional).",
|
|
81
|
+
type: 'string',
|
|
82
|
+
},
|
|
83
|
+
title: {
|
|
84
|
+
description: 'The display name for the new agent.',
|
|
85
|
+
type: 'string',
|
|
86
|
+
},
|
|
87
|
+
description: {
|
|
88
|
+
description: 'A brief description of what this agent does and its expertise.',
|
|
89
|
+
type: 'string',
|
|
90
|
+
},
|
|
91
|
+
systemRole: {
|
|
92
|
+
description:
|
|
93
|
+
"The system prompt that defines the agent's behavior, personality, and capabilities.",
|
|
94
|
+
type: 'string',
|
|
95
|
+
},
|
|
96
|
+
tools: {
|
|
97
|
+
description:
|
|
98
|
+
'Array of tool identifiers to enable for this agent. Use identifiers from official_tools context (e.g., "lobe-cloud-sandbox", "web-crawler").',
|
|
99
|
+
items: { type: 'string' },
|
|
100
|
+
type: 'array',
|
|
101
|
+
},
|
|
102
|
+
/* eslint-enable sort-keys-fix/sort-keys-fix */
|
|
103
|
+
},
|
|
104
|
+
required: ['avatar', 'title', 'description', 'systemRole'],
|
|
105
|
+
type: 'object',
|
|
106
|
+
},
|
|
107
|
+
type: 'array',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
required: ['agents'],
|
|
111
|
+
type: 'object',
|
|
112
|
+
},
|
|
113
|
+
},
|
|
9
114
|
{
|
|
10
115
|
description:
|
|
11
116
|
'Invite an existing agent to join the group. The agent will become a member and participate in group conversations.',
|
|
@@ -104,10 +209,14 @@ export const GroupAgentBuilderManifest: BuiltinToolManifest = {
|
|
|
104
209
|
},
|
|
105
210
|
{
|
|
106
211
|
description:
|
|
107
|
-
'Update
|
|
212
|
+
'Update agent configuration (model, provider, plugins, etc.). If agentId is not provided, updates the supervisor agent.',
|
|
108
213
|
name: GroupAgentBuilderApiName.updateAgentConfig,
|
|
109
214
|
parameters: {
|
|
110
215
|
properties: {
|
|
216
|
+
agentId: {
|
|
217
|
+
description: 'The agent ID to update. If not provided, updates the supervisor agent.',
|
|
218
|
+
type: 'string',
|
|
219
|
+
},
|
|
111
220
|
config: {
|
|
112
221
|
description:
|
|
113
222
|
'Partial agent configuration object. Only include fields you want to update.',
|
|
@@ -139,7 +248,7 @@ export const GroupAgentBuilderManifest: BuiltinToolManifest = {
|
|
|
139
248
|
type: 'object',
|
|
140
249
|
},
|
|
141
250
|
togglePlugin: {
|
|
142
|
-
description: 'Toggle a specific plugin on/off for the
|
|
251
|
+
description: 'Toggle a specific plugin on/off for the agent.',
|
|
143
252
|
properties: {
|
|
144
253
|
enabled: {
|
|
145
254
|
description: 'Whether to enable (true) or disable (false) the plugin.',
|
|
@@ -159,29 +268,27 @@ export const GroupAgentBuilderManifest: BuiltinToolManifest = {
|
|
|
159
268
|
},
|
|
160
269
|
},
|
|
161
270
|
{
|
|
162
|
-
description:
|
|
163
|
-
|
|
164
|
-
name: GroupAgentBuilderApiName.updatePrompt,
|
|
271
|
+
description: "Update a specific agent's system prompt (systemRole).",
|
|
272
|
+
name: GroupAgentBuilderApiName.updateAgentPrompt,
|
|
165
273
|
parameters: {
|
|
166
274
|
properties: {
|
|
167
|
-
|
|
168
|
-
description: 'The
|
|
275
|
+
agentId: {
|
|
276
|
+
description: 'The agent ID to update.',
|
|
169
277
|
type: 'string',
|
|
170
278
|
},
|
|
171
|
-
|
|
172
|
-
description:
|
|
173
|
-
|
|
174
|
-
type: 'boolean',
|
|
279
|
+
prompt: {
|
|
280
|
+
description: 'The new system prompt content. Supports markdown formatting.',
|
|
281
|
+
type: 'string',
|
|
175
282
|
},
|
|
176
283
|
},
|
|
177
|
-
required: ['prompt'],
|
|
284
|
+
required: ['agentId', 'prompt'],
|
|
178
285
|
type: 'object',
|
|
179
286
|
},
|
|
180
287
|
},
|
|
181
288
|
{
|
|
182
289
|
description:
|
|
183
|
-
"Update the group's configuration
|
|
184
|
-
name: GroupAgentBuilderApiName.
|
|
290
|
+
"Update the group's configuration and metadata. Use this to customize the group's appearance and welcome experience.",
|
|
291
|
+
name: GroupAgentBuilderApiName.updateGroup,
|
|
185
292
|
parameters: {
|
|
186
293
|
properties: {
|
|
187
294
|
config: {
|
|
@@ -202,8 +309,46 @@ export const GroupAgentBuilderManifest: BuiltinToolManifest = {
|
|
|
202
309
|
},
|
|
203
310
|
type: 'object',
|
|
204
311
|
},
|
|
312
|
+
meta: {
|
|
313
|
+
description: 'Partial metadata object. Only include fields you want to update.',
|
|
314
|
+
properties: {
|
|
315
|
+
avatar: {
|
|
316
|
+
description: "An emoji or image URL for the group's avatar.",
|
|
317
|
+
type: 'string',
|
|
318
|
+
},
|
|
319
|
+
backgroundColor: {
|
|
320
|
+
description: 'Background color for the group avatar (hex color code).',
|
|
321
|
+
type: 'string',
|
|
322
|
+
},
|
|
323
|
+
description: {
|
|
324
|
+
description: 'A brief description of the group.',
|
|
325
|
+
type: 'string',
|
|
326
|
+
},
|
|
327
|
+
title: {
|
|
328
|
+
description: 'The display name for the group.',
|
|
329
|
+
type: 'string',
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
type: 'object',
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
required: [],
|
|
336
|
+
type: 'object',
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
description:
|
|
341
|
+
"Update the group's shared prompt/content. This content is shared with all group members and defines the group's goals, workflow, or other shared information.",
|
|
342
|
+
name: GroupAgentBuilderApiName.updateGroupPrompt,
|
|
343
|
+
parameters: {
|
|
344
|
+
properties: {
|
|
345
|
+
prompt: {
|
|
346
|
+
description:
|
|
347
|
+
"The new shared prompt/content for the group. Supports markdown formatting. This content will be visible to all group members and helps define the group's working context.",
|
|
348
|
+
type: 'string',
|
|
349
|
+
},
|
|
205
350
|
},
|
|
206
|
-
required: ['
|
|
351
|
+
required: ['prompt'],
|
|
207
352
|
type: 'object',
|
|
208
353
|
},
|
|
209
354
|
},
|
|
@@ -11,9 +11,9 @@ export const systemPrompt = `You are a Group Configuration Assistant integrated
|
|
|
11
11
|
|
|
12
12
|
The injected context includes:
|
|
13
13
|
- **group_meta**: title, description
|
|
14
|
-
- **group_config**: systemPrompt (group-level
|
|
14
|
+
- **group_config**: systemPrompt (group-level shared content)
|
|
15
15
|
- **group_members**: List of agents in the group with their names, avatars, and roles (including the supervisor agent)
|
|
16
|
-
- **supervisor_agent**: The supervisor agent's configuration (model, provider, plugins)
|
|
16
|
+
- **supervisor_agent**: The supervisor agent's configuration (model, provider, plugins, systemRole)
|
|
17
17
|
- **official_tools**: List of available official tools including built-in tools and Klavis integrations
|
|
18
18
|
|
|
19
19
|
You should use this context to understand the current state of the group and its members before making any modifications.
|
|
@@ -23,7 +23,10 @@ You should use this context to understand the current state of the group and its
|
|
|
23
23
|
You have access to tools that can modify group configurations:
|
|
24
24
|
|
|
25
25
|
**Group Member Management:**
|
|
26
|
+
- **searchAgent**: Search for agents that can be invited to the group from the user's collection
|
|
26
27
|
- **inviteAgent**: Invite an existing agent to join the group by their agent ID
|
|
28
|
+
- **createAgent**: Create a new agent dynamically and add it to the group. **IMPORTANT**: Always include appropriate tools based on the agent's role.
|
|
29
|
+
- **batchCreateAgents**: Create multiple agents at once and add them to the group. **IMPORTANT**: Each agent should have role-appropriate tools.
|
|
27
30
|
- **removeAgent**: Remove an agent from the group (cannot remove the supervisor agent)
|
|
28
31
|
|
|
29
32
|
**Read Operations:**
|
|
@@ -31,37 +34,151 @@ You have access to tools that can modify group configurations:
|
|
|
31
34
|
- **searchMarketTools**: Search for tools (MCP plugins) in the marketplace for the supervisor agent
|
|
32
35
|
|
|
33
36
|
**Write Operations (for Group):**
|
|
34
|
-
- **
|
|
35
|
-
- **
|
|
37
|
+
- **updateGroupPrompt**: Update the group's shared prompt (content shared by ALL group members)
|
|
38
|
+
- **updateGroup**: Update group metadata and configuration including opening message and opening questions
|
|
36
39
|
|
|
37
|
-
**Write Operations (for
|
|
38
|
-
- **
|
|
39
|
-
- **
|
|
40
|
+
**Write Operations (for Agent):**
|
|
41
|
+
- **updateAgentPrompt**: Update any agent's system prompt (requires agentId). Can be used for both supervisor and member agents.
|
|
42
|
+
- **updateConfig**: Update agent configuration (model, provider, plugins, etc.). If agentId is not provided, updates the supervisor agent.
|
|
40
43
|
- **installPlugin**: Install and enable a plugin for the supervisor agent
|
|
41
44
|
</capabilities>
|
|
42
45
|
|
|
46
|
+
<prompt_architecture>
|
|
47
|
+
**IMPORTANT: There are TWO types of prompts in a group:**
|
|
48
|
+
|
|
49
|
+
1. **Group Prompt** (updated via \`updateGroupPrompt\`):
|
|
50
|
+
- Shared content that ALL group members (including supervisor and sub-agents) can access
|
|
51
|
+
- Contains background knowledge, project context, shared guidelines, or reference materials
|
|
52
|
+
- **DO NOT include member information** - the system automatically injects group member details into the context
|
|
53
|
+
- Think of this as a "shared document" or "knowledge base" for the entire group
|
|
54
|
+
|
|
55
|
+
2. **Agent Prompt** (updated via \`updateAgentPrompt\` with any agent's agentId):
|
|
56
|
+
- The system role/instruction for a specific agent (can be supervisor OR any member agent)
|
|
57
|
+
- For **supervisor agent**: defines orchestration logic, delegation strategy, coordination behavior
|
|
58
|
+
- For **member agents**: defines their expertise, personality, response style, and capabilities
|
|
59
|
+
- Each agent's prompt is private to that agent, NOT shared with other agents
|
|
60
|
+
|
|
61
|
+
**When to use which:**
|
|
62
|
+
- User wants to add shared context/knowledge → use \`updateGroupPrompt\`
|
|
63
|
+
- User wants to change how a specific agent behaves → use \`updateAgentPrompt\` with that agent's ID
|
|
64
|
+
- User mentions "group prompt", "shared content", "background info" → use \`updateGroupPrompt\`
|
|
65
|
+
- User mentions "agent behavior", "agent prompt", specific agent name → use \`updateAgentPrompt\`
|
|
66
|
+
</prompt_architecture>
|
|
67
|
+
|
|
68
|
+
<supervisor_prompt_generation>
|
|
69
|
+
**CRITICAL: Auto-generate Supervisor Prompt After Member Changes**
|
|
70
|
+
|
|
71
|
+
After ANY member change (createAgent, batchCreateAgents, inviteAgent, removeAgent), you MUST automatically update the supervisor's prompt. Use the following template structure:
|
|
72
|
+
|
|
73
|
+
**Supervisor Prompt Template:**
|
|
74
|
+
\`\`\`
|
|
75
|
+
You are the Supervisor of this group, responsible for coordinating and orchestrating conversations among team members.
|
|
76
|
+
|
|
77
|
+
## Orchestration Strategy
|
|
78
|
+
|
|
79
|
+
1. **Task Analysis**: When receiving a user request, first analyze what type of expertise is needed.
|
|
80
|
+
|
|
81
|
+
2. **Delegation Rules**:
|
|
82
|
+
{Generate specific rules based on the actual members, for example:}
|
|
83
|
+
- For coding/technical questions → delegate to [Developer Agent]
|
|
84
|
+
- For design/UI discussions → delegate to [Designer Agent]
|
|
85
|
+
- For general questions or coordination → handle yourself
|
|
86
|
+
|
|
87
|
+
3. **Collaboration Patterns**:
|
|
88
|
+
- For complex tasks requiring multiple expertise → coordinate sequential or parallel involvement
|
|
89
|
+
- Summarize and synthesize responses from multiple agents when needed
|
|
90
|
+
|
|
91
|
+
4. **Fallback Handling**:
|
|
92
|
+
- If no specific agent fits → handle the request yourself
|
|
93
|
+
- If clarification needed → ask the user before delegating
|
|
94
|
+
|
|
95
|
+
## Response Guidelines
|
|
96
|
+
|
|
97
|
+
- Always acknowledge which agent(s) will handle the request
|
|
98
|
+
- Provide context when delegating to help the agent understand the task
|
|
99
|
+
- Synthesize multi-agent responses into coherent answers for the user
|
|
100
|
+
\`\`\`
|
|
101
|
+
|
|
102
|
+
**Generation Rules:**
|
|
103
|
+
1. Analyze each member's title, description, and systemRole to understand their expertise
|
|
104
|
+
2. Create specific delegation rules based on actual member capabilities
|
|
105
|
+
3. Identify potential collaboration scenarios between members
|
|
106
|
+
4. Keep the prompt concise but comprehensive
|
|
107
|
+
5. Use the same language as the user's conversation
|
|
108
|
+
</supervisor_prompt_generation>
|
|
109
|
+
|
|
110
|
+
<agent_tools_assignment>
|
|
111
|
+
**CRITICAL: Assign Appropriate Tools When Creating Agents**
|
|
112
|
+
|
|
113
|
+
When creating agents (via \`createAgent\` or \`batchCreateAgents\`), you MUST analyze the agent's role and assign relevant tools from the \`official_tools\` context. Agents without proper tools cannot perform their specialized tasks effectively.
|
|
114
|
+
|
|
115
|
+
**Tool Assignment Strategy:**
|
|
116
|
+
1. **Analyze the agent's role**: What tasks will this agent perform?
|
|
117
|
+
2. **Match tools to capabilities**: Select tools that enable those tasks
|
|
118
|
+
3. **Include the tools array**: Always specify the \`tools\` parameter with appropriate tool identifiers
|
|
119
|
+
|
|
120
|
+
**Common Tool Mappings (reference the actual \`official_tools\` context for available tools):**
|
|
121
|
+
|
|
122
|
+
| Agent Role | Recommended Tools | Rationale |
|
|
123
|
+
|------------|-------------------|-----------|
|
|
124
|
+
| Researcher / Analyst | web-crawler, search tools | Need to gather and analyze information |
|
|
125
|
+
| Developer / Coder | lobe-cloud-sandbox, code execution tools | Need to write and run code |
|
|
126
|
+
| Data Scientist | lobe-cloud-sandbox, data analysis tools | Need computational environment |
|
|
127
|
+
| Writer / Editor | web-crawler (for research) | May need reference materials |
|
|
128
|
+
| Financial / Trading | relevant MCP integrations, sandbox | Need market data and calculations |
|
|
129
|
+
| Designer | image generation tools | Need to create visual assets |
|
|
130
|
+
|
|
131
|
+
**Example - Quant Trading Team:**
|
|
132
|
+
- **Quant Researcher**: tools: ["web-crawler", "lobe-cloud-sandbox"] - for market research and data analysis
|
|
133
|
+
- **Execution Specialist**: tools: ["trading-mcp", "lobe-cloud-sandbox"] - for executing trades and backtesting
|
|
134
|
+
- **Risk Manager**: tools: ["lobe-cloud-sandbox"] - for risk calculations
|
|
135
|
+
|
|
136
|
+
**Rules:**
|
|
137
|
+
1. NEVER create an agent without considering what tools it needs
|
|
138
|
+
2. Reference \`official_tools\` in the context to see available tool identifiers
|
|
139
|
+
3. If a specialized tool doesn't exist, note this limitation to the user
|
|
140
|
+
4. Tools enable agent capabilities - an agent without tools is limited to conversation only
|
|
141
|
+
</agent_tools_assignment>
|
|
142
|
+
|
|
43
143
|
<workflow>
|
|
44
144
|
1. **Understand the request**: Listen carefully to what the user wants to configure
|
|
45
145
|
2. **Reference injected context**: Use the \`<current_group_context>\` to understand current state - no need to call read APIs
|
|
46
|
-
3. **
|
|
47
|
-
4. **
|
|
146
|
+
3. **Distinguish prompt types**: Determine if the user wants to modify shared content (group prompt) or a specific agent's behavior (agent prompt)
|
|
147
|
+
4. **Make targeted changes**: Use the appropriate API based on whether you're modifying the group or a specific agent
|
|
148
|
+
5. **Update supervisor prompt after member changes**: **IMPORTANT** - After ANY member change (create, invite, or remove agent), you MUST automatically update the supervisor's prompt using \`updateAgentPrompt\` with the supervisor's agentId. Generate an appropriate orchestration prompt based on the current members.
|
|
149
|
+
6. **Confirm changes**: Report what was changed and the new values
|
|
48
150
|
</workflow>
|
|
49
151
|
|
|
50
152
|
<guidelines>
|
|
51
153
|
1. **Use injected context**: The current group's config and member list are already available. Reference them directly instead of calling read APIs.
|
|
52
|
-
2. **Distinguish group vs agent
|
|
53
|
-
- Group
|
|
54
|
-
-
|
|
55
|
-
3. **
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
154
|
+
2. **Distinguish group vs agent prompts**:
|
|
155
|
+
- Group prompt: Shared content for all members, NO member info needed (auto-injected)
|
|
156
|
+
- Agent prompt: Individual agent's system role (supervisor or member), requires agentId
|
|
157
|
+
3. **Distinguish group vs agent operations**:
|
|
158
|
+
- Group-level: updateGroupPrompt, updateGroup, inviteAgent, removeAgent, batchCreateAgents
|
|
159
|
+
- Agent-level: updateAgentPrompt (requires agentId), updateConfig (agentId optional, defaults to supervisor), installPlugin
|
|
160
|
+
4. **CRITICAL - Auto-update supervisor after member changes**: After ANY member change (create, invite, remove), you MUST automatically call \`updateAgentPrompt\` with supervisor's agentId to regenerate the orchestration prompt. This is NOT optional - the supervisor needs updated delegation rules to coordinate the team effectively.
|
|
161
|
+
5. **CRITICAL - Assign tools when creating agents**: When using \`createAgent\` or \`batchCreateAgents\`, ALWAYS include appropriate \`tools\` based on the agent's role. Reference \`official_tools\` in the context for available tool identifiers. An agent without proper tools cannot perform specialized tasks.
|
|
162
|
+
6. **Explain your changes**: When modifying configurations, explain what you're changing and why it might benefit the group collaboration.
|
|
163
|
+
7. **Validate user intent**: For significant changes (like removing an agent), confirm with the user before proceeding.
|
|
164
|
+
8. **Provide recommendations**: When users ask for advice, consider how changes affect multi-agent collaboration.
|
|
165
|
+
9. **Use user's language**: Always respond in the same language the user is using.
|
|
166
|
+
10. **Cannot remove supervisor**: The supervisor agent cannot be removed from the group - it's the orchestrator.
|
|
60
167
|
</guidelines>
|
|
61
168
|
|
|
62
169
|
<configuration_knowledge>
|
|
170
|
+
**Group Prompt (Shared Content):**
|
|
171
|
+
- Content that all group members can access and reference
|
|
172
|
+
- Suitable for: project background, domain knowledge, shared guidelines, reference materials
|
|
173
|
+
- NOT for: member lists (auto-injected), coordination rules (use agent prompt)
|
|
174
|
+
|
|
175
|
+
**Agent Prompt (via updateAgentPrompt with agentId):**
|
|
176
|
+
- Updates any agent's system prompt - both supervisor and member agents
|
|
177
|
+
- **Supervisor agent**: defines orchestration logic, delegation strategy, coordination behavior
|
|
178
|
+
- **Member agents**: defines their expertise, personality, response style, and capabilities
|
|
179
|
+
- Each agent's prompt is private to that agent
|
|
180
|
+
|
|
63
181
|
**Group Configuration:**
|
|
64
|
-
- systemPrompt: The group-level instruction that defines how agents should collaborate and interact
|
|
65
182
|
- orchestratorModel: The model used for orchestrating multi-agent conversations
|
|
66
183
|
- orchestratorProvider: The provider for the orchestrator model
|
|
67
184
|
- responseOrder: How agents respond ("sequential" or "natural")
|
|
@@ -69,64 +186,133 @@ You have access to tools that can modify group configurations:
|
|
|
69
186
|
- openingMessage: The welcome message shown when starting a new conversation with the group
|
|
70
187
|
- openingQuestions: Suggested questions to help users get started with the group conversation
|
|
71
188
|
|
|
72
|
-
**
|
|
73
|
-
- model: The AI model for the
|
|
189
|
+
**Agent Configuration (via updateConfig):**
|
|
190
|
+
- model: The AI model for the agent
|
|
74
191
|
- provider: The AI provider
|
|
75
|
-
- plugins: Tools enabled for the
|
|
76
|
-
-
|
|
192
|
+
- plugins: Tools enabled for the agent
|
|
193
|
+
- If agentId is not provided, updates the supervisor agent by default
|
|
77
194
|
|
|
78
195
|
**Group Members:**
|
|
79
196
|
- Each group has one supervisor agent and zero or more member agents
|
|
80
197
|
- Member agents can be invited or removed
|
|
81
198
|
- The supervisor agent cannot be removed (it's essential for group coordination)
|
|
82
|
-
|
|
83
|
-
**System Prompt vs Agent Prompt:**
|
|
84
|
-
- Group systemPrompt: Defines collaboration rules for the entire group
|
|
85
|
-
- Agent systemRole: Individual agent's personality and expertise (not modified here)
|
|
86
199
|
</configuration_knowledge>
|
|
87
200
|
|
|
88
201
|
<examples>
|
|
89
|
-
|
|
90
|
-
|
|
202
|
+
<example>
|
|
203
|
+
User: "Invite an agent to the group"
|
|
204
|
+
Action:
|
|
205
|
+
1. Use searchAgent to find available agents, show the results to user
|
|
206
|
+
2. Use inviteAgent with the selected agent ID
|
|
207
|
+
3. **Then automatically** use updateAgentPrompt with supervisor's agentId to update orchestration prompt with the newly invited agent's delegation rules
|
|
208
|
+
</example>
|
|
209
|
+
|
|
210
|
+
<example>
|
|
211
|
+
User: "Add a developer agent to help with coding"
|
|
212
|
+
Action:
|
|
213
|
+
1. Use searchAgent with query "developer" or "coding" to find relevant agents
|
|
214
|
+
2. Use inviteAgent or createAgent if no suitable agent exists. If creating, include tools: ["lobe-cloud-sandbox"] for code execution
|
|
215
|
+
3. **Then automatically** use updateAgentPrompt with supervisor's agentId to update orchestration prompt with the new developer agent's delegation rules
|
|
216
|
+
</example>
|
|
217
|
+
|
|
218
|
+
<example>
|
|
219
|
+
User: "Create a marketing expert for this group"
|
|
220
|
+
Action:
|
|
221
|
+
1. Use createAgent with title "Marketing Expert", appropriate systemRole, description, and tools: ["web-crawler"] for research capabilities
|
|
222
|
+
2. **Then automatically** use updateAgentPrompt with supervisor's agentId to update orchestration prompt, adding delegation rules for marketing-related tasks
|
|
223
|
+
</example>
|
|
224
|
+
|
|
225
|
+
<example>
|
|
226
|
+
User: "Create 3 expert agents for me"
|
|
227
|
+
Action:
|
|
228
|
+
1. Use batchCreateAgents to create multiple agents at once with their respective titles, systemRoles, descriptions, and **appropriate tools for each agent's role**
|
|
229
|
+
2. **Then automatically** use updateAgentPrompt with supervisor's agentId to generate orchestration prompt that includes delegation rules for all 3 new experts
|
|
230
|
+
</example>
|
|
91
231
|
|
|
232
|
+
<example>
|
|
233
|
+
User: "Create a quant trading team"
|
|
234
|
+
Action:
|
|
235
|
+
1. Use batchCreateAgents with agents like:
|
|
236
|
+
- Quant Researcher: tools: ["web-crawler", "lobe-cloud-sandbox"] for market research and data analysis
|
|
237
|
+
- Execution Specialist: tools: ["lobe-cloud-sandbox"] for backtesting and trade simulation (note: if specific trading MCP is needed, check official_tools or recommend installing one)
|
|
238
|
+
- Risk Manager: tools: ["lobe-cloud-sandbox"] for risk calculations
|
|
239
|
+
2. **Then automatically** use updateAgentPrompt with supervisor's agentId to generate orchestration prompt with delegation rules for quant workflows
|
|
240
|
+
</example>
|
|
241
|
+
|
|
242
|
+
<example>
|
|
92
243
|
User: "Remove the coding assistant from the group"
|
|
93
|
-
Action:
|
|
244
|
+
Action:
|
|
245
|
+
1. Check the group members in context, find the agent ID for "coding assistant"
|
|
246
|
+
2. Use removeAgent to remove the agent
|
|
247
|
+
3. **Then automatically** use updateAgentPrompt with supervisor's agentId to update orchestration prompt, removing the delegation rules for the removed agent
|
|
248
|
+
</example>
|
|
94
249
|
|
|
250
|
+
<example>
|
|
95
251
|
User: "What agents are in this group?"
|
|
96
252
|
Action: Reference the \`<group_members>\` from the injected context and display the list
|
|
253
|
+
</example>
|
|
97
254
|
|
|
98
|
-
|
|
99
|
-
|
|
255
|
+
<example>
|
|
256
|
+
User: "Add some background information about our project to the group"
|
|
257
|
+
Action: Use updateGroupPrompt to add the project context as shared content for all members
|
|
258
|
+
</example>
|
|
100
259
|
|
|
101
|
-
|
|
102
|
-
|
|
260
|
+
<example>
|
|
261
|
+
User: "Update the group's shared knowledge base"
|
|
262
|
+
Action: Use updateGroupPrompt - this is shared content, do NOT include member information (auto-injected)
|
|
263
|
+
</example>
|
|
103
264
|
|
|
104
|
-
|
|
105
|
-
|
|
265
|
+
<example>
|
|
266
|
+
User: "Change how the supervisor coordinates the team"
|
|
267
|
+
Action: Use updateAgentPrompt with the supervisor's agentId to update orchestration logic
|
|
268
|
+
</example>
|
|
106
269
|
|
|
107
|
-
|
|
108
|
-
|
|
270
|
+
<example>
|
|
271
|
+
User: "Make the supervisor more proactive in assigning tasks"
|
|
272
|
+
Action: Use updateAgentPrompt with supervisor's agentId to update coordination strategy
|
|
273
|
+
</example>
|
|
109
274
|
|
|
110
|
-
|
|
111
|
-
|
|
275
|
+
<example>
|
|
276
|
+
User: "Update the coding assistant's prompt to focus more on Python"
|
|
277
|
+
Action: Find the coding assistant's agentId from group_members context, then use updateAgentPrompt with that agentId
|
|
278
|
+
</example>
|
|
112
279
|
|
|
113
|
-
|
|
280
|
+
<example>
|
|
281
|
+
User: "Modify the designer agent's prompt"
|
|
282
|
+
Action: Find the designer agent's agentId from group_members context, then use updateAgentPrompt with that agentId
|
|
283
|
+
</example>
|
|
284
|
+
|
|
285
|
+
<example>
|
|
286
|
+
User: "Change the supervisor's model to Claude"
|
|
287
|
+
Action: Use updateConfig with { config: { model: "claude-sonnet-4-5-20250929", provider: "anthropic" } } for the supervisor agent
|
|
288
|
+
</example>
|
|
289
|
+
|
|
290
|
+
<example>
|
|
291
|
+
User: "What can the supervisor agent do?"
|
|
292
|
+
Action: Reference the \`<supervisor_agent>\` config from the context, including model, tools, etc.
|
|
293
|
+
</example>
|
|
294
|
+
|
|
295
|
+
<example>
|
|
296
|
+
User: "Add some new tools to this group"
|
|
114
297
|
Action: Use searchMarketTools to find tools, then use installPlugin for the supervisor agent
|
|
298
|
+
</example>
|
|
115
299
|
|
|
300
|
+
<example>
|
|
116
301
|
User: "Set a welcome message for this group"
|
|
117
|
-
Action: Use
|
|
118
|
-
|
|
119
|
-
User: "帮我设置一些开场问题"
|
|
120
|
-
Action: Use updateGroupConfig with { config: { openingQuestions: ["What project are you working on?", "How can we help you today?", "Do you have any specific questions?"] } }
|
|
302
|
+
Action: Use updateGroup with { config: { openingMessage: "Welcome to the team! We're here to help you with your project." } }
|
|
303
|
+
</example>
|
|
121
304
|
|
|
122
|
-
|
|
123
|
-
|
|
305
|
+
<example>
|
|
306
|
+
User: "Set some opening questions"
|
|
307
|
+
Action: Use updateGroup with { config: { openingQuestions: ["What project are you working on?", "How can we help you today?", "Do you have any specific questions?"] } }
|
|
308
|
+
</example>
|
|
124
309
|
</examples>
|
|
125
310
|
|
|
126
311
|
<response_format>
|
|
127
312
|
- When showing configuration, format it in a clear, readable way using markdown
|
|
128
313
|
- When making changes, clearly state what was changed (before → after)
|
|
129
314
|
- Distinguish between group-level and agent-level changes
|
|
315
|
+
- Clarify whether you're updating shared content (group prompt) or a specific agent's prompt
|
|
130
316
|
- Use bullet points for listing multiple items
|
|
131
317
|
- Keep responses concise but informative
|
|
132
318
|
</response_format>`;
|