Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

1.1 KB
Raw Blame
'use client'

import { useTranslation } from 'react-i18next'
import { ENABLE_AGENT_CONTENT_MODERATION } from '../../../feature-flags'
import { ConfigureSection } from '../common/section'
import { AgentContentModerationSettings } from './content-moderation'
import { AgentEnvEditor } from './env'

export function AgentAdvancedSettings() {
  const { t } = useTranslation(['agentV2'])
  const advancedSettingsPanelId = 'agent-configure-advanced-settings-panel'

  return (
    <ConfigureSection
      label={t(($) => $['agentDetail.configure.advancedSettings.label'])}
      labelId="agent-configure-advanced-settings-label"
      panelId={advancedSettingsPanelId}
      description={t(($) => $['agentDetail.configure.advancedSettings.description'])}
      defaultOpen={false}
      buildDraftChangeSection="advancedSettings"
      rootClassName="gap-2 pt-1 pb-3"
      headerClassName="pt-2"
      panelContentClassName="flex flex-col rounded-lg bg-background-section"
    >
      <AgentEnvEditor />
      {ENABLE_AGENT_CONTENT_MODERATION && <AgentContentModerationSettings />}
    </ConfigureSection>
  )
}