Files
gsfdc/demo-dify/dify/e2e/features/agent-v2/support/test-materials.ts
T
wuzilongandCursor 6519682885 chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 13:59:25 +08:00

31 lines
1.0 KiB
TypeScript

import {
getGeneratedTextMaterialPath,
getTestMaterialPath,
} from '../../../support/test-materials.ts'
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',
})