dify/api/controllers/service_api/app
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
..
__init__.py fix: missing default user for APP service api (#2606) 2024-02-28 16:09:56 +08:00
annotation.py feat: 204 http status code not return content (#33023) 2026-03-05 17:04:19 +08:00
app.py refactor(api): add TypedDict definitions to models/model.py (#32925) 2026-03-06 08:42:54 +09:00
audio.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
completion.py feat(api): enable Agent mode in workflow/service APIs and add default config (Phase 7) 2026-04-08 12:41:37 +08:00
conversation.py feat(api): enable Agent mode in workflow/service APIs and add default config (Phase 7) 2026-04-08 12:41:37 +08:00
error.py Restructure the File errors in controller (#23801) 2025-08-13 17:06:07 +08:00
file_preview.py refactor: select in service API wraps, file_preview, and site controllers (#34086) 2026-03-25 23:01:05 +09:00
file.py refactor: port api/fields/file_fields.py (#30638) 2026-01-06 22:55:58 +08:00
message.py feat(api): enable Agent mode in workflow/service APIs and add default config (Phase 7) 2026-04-08 12:41:37 +08:00
site.py refactor: select in service API wraps, file_preview, and site controllers (#34086) 2026-03-25 23:01:05 +09:00
workflow.py refactor: migrate service_api and inner_api to sessionmaker pattern (#34379) 2026-04-01 14:53:41 +00:00