dify/e2e/features/agent-v2/support/agent-builder-resources.ts
yyh 1ae2f95f7c
test(e2e): add agent v2 core coverage (#38209)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-02 06:18:38 +00:00

46 lines
1.8 KiB
TypeScript

export const agentBuilderPreseededResources = {
stableChatModel: 'E2E Stable Chat Model',
summarySkill: 'e2e-summary-skill',
jsonReplaceTool: 'JSON Process / JSON Replace',
tavilySearchTool: 'Tavily / Tavily Search',
agentKnowledgeBase: 'E2E Agent Knowledge Base',
indexingKnowledgeBase: 'E2E Agent Knowledge Base Indexing',
brokenModelProvider: 'E2E Broken Model Provider',
brokenModel: 'e2e-broken-model',
fullConfigAgent: 'E2E New Agent Builder Full Config',
toolStatesAgent: 'E2E New Agent Builder Tool States',
fileTreeAgent: 'E2E Agent With File Tree',
dualRetrievalAgent: 'E2E Agent With Dual Retrieval',
publishedWebAppAgent: 'E2E Agent Published Web App',
backendApiEnabledAgent: 'E2E Agent Backend API Enabled',
workflowReferenceAgent: 'E2E Agent With Workflow Reference',
referenceWorkflow: 'E2E Agent Reference Workflow',
backendApiKey: 'E2E Backend API Key',
} as const
export const agentBuilderFixedInputs = {
tavilyInvalidApiKey: 'E2E_INVALID_TAVILY_API_KEY_DO_NOT_USE',
missingSkillSearch: 'E2E_NOT_EXIST_SKILL',
missingToolSearch: 'E2E_NOT_EXIST_TOOL',
missingToolSearchWithSuffix: 'E2E_NOT_EXIST_TOOL_12345',
customKnowledgeQuery: 'Dify Agent E2E 测试暗号',
envPlainKey: 'E2E_AGENT_FLAG',
envPlainValue: 'enabled',
envModeKey: 'E2E_AGENT_MODE',
envModeValue: 'plain',
envAfterInvalidImportKey: 'E2E_AGENT_AFTER_INVALID',
envAfterInvalidImportValue: 'still-valid',
moderationKeyword: 'E2E_BLOCKED_KEYWORD',
inputModerationReply: 'E2E_INPUT_BLOCKED_REPLY',
outputModerationReply: 'E2E_OUTPUT_BLOCKED_REPLY',
backendApiUser: 'e2e-agent-access-point',
} as const
export const agentBuilderExpectedTokens = {
agentReply: 'AGENT_E2E_PASS',
updatedAgentReply: 'E2E_AGENT_UPDATED',
knowledgeReply: 'AGENT_KNOWLEDGE_PASS',
jsonToolBefore: 'JSON_TOOL_E2E',
jsonToolAfter: 'E2E_AFTER',
} as const