dify/api/controllers/console/app
Yansong Zhang bebafaa346 fix(api): allow AGENT mode in console chat, message, and debug endpoints
Add AppMode.AGENT to mode checks discovered during E2E testing:
- Console chat-messages endpoint (ChatApi)
- Console chat stop endpoint (ChatMessageStopApi)
- Console message list and detail endpoints
- Advanced-chat debug run endpoints (5 in workflow.py)
- Advanced-chat workflow run endpoints (2 in workflow_run.py)

Made-with: Cursor
2026-04-08 13:27:42 +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 fix(api): allow AGENT mode in console chat, message, and debug endpoints 2026-04-08 13:27:42 +08: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 fix(api): allow AGENT mode in console chat, message, and debug endpoints 2026-04-08 13:27:42 +08: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 fix(api): allow AGENT mode in console chat, message, and debug endpoints 2026-04-08 13:27:42 +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 fix(api): allow AGENT mode in console chat, message, and debug endpoints 2026-04-08 13:27:42 +08:00
wraps.py refactor(api): tighten login and wrapper typing (#34447) 2026-04-02 09:36:58 +00:00