Download src/components/agents/utils.ts from chenbhao/codev: direct link, hf CLI and curl.
- Browser
- Download file 528 Bytes
-
https://huggingface.co/chenbhao/codev/resolve/main/src/components/agents/utils.ts
- Command line
-
hf download hf://chenbhao/codev/src/components/agents/utils.ts
-
curl -L -o utils.ts https://huggingface.co/chenbhao/codev/resolve/main/src/components/agents/utils.ts
528 Bytes
| import capitalize from 'lodash-es/capitalize.js' | |
| import type { SettingSource } from 'src/utils/settings/constants.js' | |
| import { getSettingSourceName } from 'src/utils/settings/constants.js' | |
| export function getAgentSourceDisplayName( | |
| source: SettingSource | 'all' | 'built-in' | 'plugin', | |
| ): string { | |
| if (source === 'all') { | |
| return 'Agents' | |
| } | |
| if (source === 'built-in') { | |
| return 'Built-in agents' | |
| } | |
| if (source === 'plugin') { | |
| return 'Plugin agents' | |
| } | |
| return capitalize(getSettingSourceName(source)) | |
| } | |