dify/api/controllers/console/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 FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
advanced_prompt_template.py refactor: port reqparse to Pydantic model (#28913) 2025-11-30 16:09:42 +09:00
agent.py refactor: port reqparse to Pydantic model (#28949) 2025-12-05 13:05:53 +09:00
annotation.py refactor: port api/controllers/console/app/annotation.py api/controllers/console/explore/trial.py api/controllers/console/workspace/account.py api/controllers/console/workspace/members.py api/controllers/service_api/app/annotation.py to basemodel (#31833) 2026-02-03 09:59:00 +08:00
app_import.py refactor: use sessionmaker in controllers, events, models, and tasks 1 (#34693) 2026-04-07 23:47:20 +00:00
app.py feat(api): add Agent V2 node and new Agent app type (Phase 1-3) 2026-04-08 12:31:23 +08:00
audio.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
completion.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
conversation_variables.py refactor: use sessionmaker().begin() in console app controllers (#34282) 2026-03-31 13:10:16 +00:00
conversation.py refactor: select in remaining console app controllers (#33969) 2026-03-24 02:53:05 +09:00
error.py feat: optimize http status code (#31430) 2026-01-24 10:16:16 +08:00
generator.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
mcp_server.py refactor: select in remaining console app controllers (#33969) 2026-03-24 02:53:05 +09:00
message.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
model_config.py refactor(api): continue decoupling dify_graph from API concerns (#33580) 2026-03-25 20:32:24 +08:00
ops_trace.py refactor: port reqparse to Pydantic model (#28949) 2025-12-05 13:05:53 +09:00
site.py refactor: select in remaining console app controllers (#33969) 2026-03-24 02:53:05 +09:00
statistic.py refactor: port reqparse to Pydantic model (#28913) 2025-11-30 16:09:42 +09:00
workflow_app_log.py refactor: use sessionmaker().begin() in console app controllers (#34282) 2026-03-31 13:10:16 +00:00
workflow_draft_variable.py feat(api): enable Agent mode in workflow/service APIs and add default config (Phase 7) 2026-04-08 12:41:37 +08:00
workflow_run.py feat(api): enable Agent mode in workflow/service APIs and add default config (Phase 7) 2026-04-08 12:41:37 +08:00
workflow_statistic.py refactor: port reqparse to Pydantic model (#28913) 2025-11-30 16:09:42 +09:00
workflow_trigger.py refactor: migrate session.query to select API in console controllers (#34607) 2026-04-07 04:19:30 +00:00
workflow.py feat(api): enable Agent mode in workflow/service APIs and add default config (Phase 7) 2026-04-08 12:41:37 +08:00
wraps.py refactor(api): tighten login and wrapper typing (#34447) 2026-04-02 09:36:58 +00:00