dify/api/tests/unit_tests/core
Yansong Zhang 8f3a3ea03e feat(api): enable Agent mode in workflow/service APIs and add default config (Phase 7)
Ensure new Agent apps (AppMode.AGENT) can access all workflow-related
APIs and Service API chat endpoints:

- Add AppMode.AGENT to 13 workflow controller mode checks
- Add AppMode.AGENT to 4 workflow_run controller mode checks
- Add AppMode.AGENT to workflow_draft_variable controller
- Add AppMode.AGENT to Service API chat, conversation, message endpoints
- Add AgentV2Node.get_default_config() with prompt templates and strategy defaults
- 46 unit tests all passing (8 new Phase 7 tests)

Old agent/agent-chat paths remain completely unchanged.

Made-with: Cursor
2026-04-08 12:41:37 +08:00
..
agent refactor: core/tools, agent, callback_handler, encrypter, llm_generator, plugin, inner_api (#34205) 2026-03-28 10:14:43 +00:00
app refactor(api): tighten types for Tenant.custom_config_dict and MCPToolProvider.headers (#34698) 2026-04-08 01:36:42 +00:00
base refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
callback_handler refactor: core/tools, agent, callback_handler, encrypter, llm_generator, plugin, inner_api (#34205) 2026-03-28 10:14:43 +00:00
datasource refactor: migrate session.query to select API in core misc modules (#34608) 2026-04-07 04:08:34 +00:00
entities refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
extension test: add test for core extension, external_data_tool and llm generator (#32468) 2026-03-12 11:44:38 +08:00
external_data_tool test: add test for core extension, external_data_tool and llm generator (#32468) 2026-03-12 11:44:38 +08:00
file refactor(api): rename dify_graph to graphon (#34095) 2026-03-25 21:58:56 +08:00
helper refactor(api): tighten types for Tenant.custom_config_dict and MCPToolProvider.headers (#34698) 2026-04-08 01:36:42 +00:00
llm_generator refactor: migrate session.query to select API in core misc modules (#34608) 2026-04-07 04:08:34 +00:00
logging test: added for core logging and core mcp (#32478) 2026-03-12 11:44:56 +08:00
mcp fix: map checkbox and json_object types in MCP schema publishing (#34226) 2026-03-30 15:05:57 +00:00
memory refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
model_runtime refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
moderation refactor(api): continue decoupling dify_graph from API concerns (#33580) 2026-03-25 20:32:24 +08:00
ops refactor: migrate session.query to select API in core misc modules (#34608) 2026-04-07 04:08:34 +00:00
plugin perf: use global httpx client instead of per request create new one (#34311) 2026-04-01 01:19:32 +00:00
prompt refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
rag refactor(api): remove duplicated RAG entities from services layer (#34689) 2026-04-07 23:36:59 +00:00
repositories refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
schemas test: added for core module moderation, repositories, schemas (#32514) 2026-03-22 23:57:12 +08:00
telemetry feat: enterprise otel exporter (#33138) 2026-03-27 07:56:31 +00:00
tools refactor: core/tools, agent, callback_handler, encrypter, llm_generator, plugin, inner_api (#34205) 2026-03-28 10:14:43 +00:00
trigger refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
variables refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
workflow feat(api): enable Agent mode in workflow/service APIs and add default config (Phase 7) 2026-04-08 12:41:37 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
test_file.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
test_model_manager.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
test_provider_configuration.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
test_provider_manager.py refactor: use EnumText for model_type in provider models (#34300) 2026-03-31 00:31:33 +00:00
test_trigger_debug_event_selectors.py refactor(api): move workflow knowledge nodes and trigger nodes (#33445) 2026-03-15 15:24:59 +08:00