feat: improve group profile builder (#11452)

* improve group topic usage

update agent group builder

update to v267

update

update to use createAgentOnly

fix to remove activeId

💄 style: update inspector styles

refactor implement for agent builder and group builder

update style

* improve group profile mode

* fix editor canvas EditorData Mode

* move store to groupProfileStore

* update group profile design

* update test

* fix topic switch issue

* update all

* update tests
This commit is contained in:
Arvin Xu
2026-01-13 16:07:30 +08:00
committed by GitHub
parent 5c3dc7493e
commit 9012b40230
164 changed files with 5209 additions and 2352 deletions

View File

@@ -1,7 +1,7 @@
'use client';
import { DEFAULT_AVATAR } from '@lobechat/const';
import type { AgentItem, BuiltinInspectorProps } from '@lobechat/types';
import type { AgentGroupMember, BuiltinInspectorProps } from '@lobechat/types';
import { Avatar, Flexbox } from '@lobehub/ui';
import { createStaticStyles, cx, useTheme } from 'antd-style';
import { memo, useMemo } from 'react';
@@ -45,7 +45,7 @@ export const BroadcastInspector = memo<BuiltinInspectorProps<BroadcastParams>>(
if (!agentIds.length || !groupAgents.length) return [];
return agentIds
.map((id) => groupAgents.find((agent) => agent.id === id))
.filter((agent): agent is AgentItem => !!agent);
.filter((agent): agent is AgentGroupMember => !!agent);
}, [agentIds, groupAgents]);
// Transform agents to Avatar.Group format

View File

@@ -57,7 +57,7 @@ export const GroupManagementManifest: BuiltinToolManifest = {
{
description:
'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.',
humanIntervention: 'always',
humanIntervention: 'required',
name: GroupManagementApiName.createAgent,
parameters: {
properties: {