feat(agents): 完善恢复费用与云资源交互
This commit is contained in:
1 parent
f8f39f39de
commit
303f26294e
24 files changed
+1170
-127
No files matched your search
@@ -3,6 +3,7 @@ import { cloudAgentsApi } from '@/lib/cloud-agents-api';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { CloudKnowledgePanel } from './CloudKnowledge';
|
||||
import { CloudResources } from './CloudResources';
|
||||
import type { CloudAgentConfiguration, CloudCatalog } from '../../../shared/cloud-agents';
|
||||
|
||||
export function ConfigurationFields({ slug, value, disabled, onChange }: {
|
||||
@@ -56,7 +57,8 @@ export function ConfigurationFields({ slug, value, disabled, onChange }: {
|
||||
</fieldset>;
|
||||
})}
|
||||
<p className="text-xs leading-5 text-muted-foreground">未选择的资源不会开放给此智能体。分享使用时仍按本配置限制能力。</p>
|
||||
<CloudKnowledgePanel slug={slug} onCreated={kb => {
|
||||
<CloudResources onChanged={() => setRefresh(v => v + 1)} />
|
||||
<CloudKnowledgePanel slug={slug} onDeleted={id => { change('knowledges', value.knowledges.filter(key => key !== id)); setRefresh(v => v + 1); }} onCreated={kb => {
|
||||
change('knowledges', [...new Set([...value.knowledges, kb.kb_id])]);
|
||||
setRefresh(v => v + 1);
|
||||
}} />
|
||||
|
||||
Reference in new issue
Block a user