dify/api/tests/unit_tests
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
..
commands feat: add metrics to clean message and workflow-run task (#33143) 2026-03-17 13:55:28 +08:00
configs refactor: Unify NodeConfigDict.data and BaseNodeData (#32780) 2026-03-11 23:43:58 +08:00
controllers refactor: use sessionmaker in controllers, events, models, and tasks 1 (#34693) 2026-04-07 23:47:20 +00:00
core feat(api): enable Agent mode in workflow/service APIs and add default config (Phase 7) 2026-04-08 12:41:37 +08:00
enterprise/telemetry feat: enterprise otel exporter (#33138) 2026-03-27 07:56:31 +00:00
events feat: enterprise otel exporter (#33138) 2026-03-27 07:56:31 +00:00
extensions fix: lighten the health checks for the Worker and Worker Beat services, and disable them by default (#34572) 2026-04-06 02:26:26 +00:00
factories chore: normalize frozenset literals and myscale typing (#34327) 2026-03-31 08:21:22 +00:00
fields refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
libs refactor(api): tighten login and wrapper typing (#34447) 2026-04-02 09:36:58 +00:00
models refactor: use EnumText for Provider.quota_type and consolidate ProviderQuotaType (#34299) 2026-03-31 00:29:57 +00:00
oss refactor(api): replace test fixture side-effect imports (#34421) 2026-04-02 04:55:15 +00:00
repositories refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
services refactor: use sessionmaker in controllers, events, models, and tasks 1 (#34693) 2026-04-07 23:47:20 +00:00
tasks refactor: migrate session.query to select API in small task files batch (#34684) 2026-04-07 22:58:23 +00:00
tools chore(api): align Python support with 3.12 (#34419) 2026-04-02 05:07:32 +00:00
utils refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
.gitignore Enhance Code Consistency Across Repository with .editorconfig (#19023) 2025-04-29 18:04:33 +08:00
conftest.py refactor: select in service API wraps, file_preview, and site controllers (#34086) 2026-03-25 23:01:05 +09:00