mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 18:58:35 +08:00
Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: 林玮 (Jade Lin) <linw1995@icloud.com> Co-authored-by: 盐粒 Yanli <mail@yanli.one> Co-authored-by: Asuka Minato <i@asukaminato.eu.org> Co-authored-by: Jashwanth Reddy Gummula <gmrnlg1971@gmail.com> Co-authored-by: WH-2099 <wh2099@pm.me> Co-authored-by: 非法操作 <hjlarry@163.com> Co-authored-by: wangxiaolei <fatelei@gmail.com> Co-authored-by: FFXN <31929997+FFXN@users.noreply.github.com> Co-authored-by: Yansong Zhang <916125788@qq.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
import { getGeneratedTextMaterialPath, getTestMaterialPath } from '../../../support/test-materials'
|
|
|
|
export const agentBuilderTestMaterials = {
|
|
smallFile: 'agent-small-file.txt',
|
|
knowledgeSource: 'agent-knowledge-source.txt',
|
|
emptyFile: 'agent-empty-file.txt',
|
|
unsupportedFile: 'agent-unsupported-file.exe',
|
|
specialFilename: 'agent-special-filename-中文 @#$%.txt',
|
|
validEnv: 'agent-valid.env',
|
|
invalidEnv: 'agent-invalid.env',
|
|
buildInstruction: 'agent-build-instruction.txt',
|
|
summarySkill: 'e2e-summary-skill/SKILL.md',
|
|
} as const
|
|
|
|
export const agentBuilderGeneratedTestMaterials = {
|
|
tooLargeFile: 'agent-too-large-file.txt',
|
|
} as const
|
|
|
|
export const getAgentBuilderTestMaterialPath = (material: keyof typeof agentBuilderTestMaterials) =>
|
|
getTestMaterialPath(agentBuilderTestMaterials[material])
|
|
|
|
export const getTooLargeAgentFilePath = () =>
|
|
getGeneratedTextMaterialPath({
|
|
fileName: 'agent-too-large-file.txt',
|
|
sizeBytes: 16 * 1024 * 1024,
|
|
seedText: 'E2E_TOO_LARGE_FILE_FIXTURE',
|
|
})
|