mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
✨ 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:
@@ -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
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user