dify/api/controllers/service_api
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
..
app feat(api): enable Agent mode in workflow/service APIs and add default config (Phase 7) 2026-04-08 12:41:37 +08:00
dataset refactor(api): remove duplicated RAG entities from services layer (#34689) 2026-04-07 23:36:59 +00:00
end_user feat: Service API - add end-user lookup endpoint (#32015) 2026-02-09 14:01:22 +08:00
workspace refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
__init__.py fix(api): register knowledge pipeline service API routes (#32097) 2026-02-09 17:43:36 +08:00
index.py feat: API docs for service api (#24425) 2025-08-25 09:26:54 +08:00
wraps.py refactor(api): tighten login and wrapper typing (#34447) 2026-04-02 09:36:58 +00:00