c3974aa822
feat(api): Agent App type S5/S6 — webapp parameters for Agent Apps
...
Add a shared get_app_parameters() resolver that maps any app type to its
webapp parameters, and route the web, service-API and explore /parameters
endpoints through it. Agent Apps have neither a workflow nor a legacy
app_model_config, so their presentation features (opening statement,
suggestions, file upload, ...) default to disabled with a free-form chat
input until a dedicated config surface lands.
This unblocks the public web app and service API for Agent Apps: /parameters
now returns a valid config instead of 500-ing on the missing app_model_config.
Live-verified end-to-end via the web app entry (passport -> parameters ->
streamed chat) and /v1/parameters. Unit tests cover all four resolver
branches (workflow, easy-UI config, agent defaults, unavailable).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-29 21:09:54 +08:00
43b744a33f
feat(api): Agent App type S4 — accept AppMode.AGENT on web + service API chat
...
Allow AppMode.AGENT through the web and service-API chat-message (and stop)
mode gates so Agent Apps are reachable over /v1/chat-messages and the web
app, routing to AgentAppGenerator like the console debug path. The web /
service-API chat payloads carry no override model_config, so no payload
change is needed there — model + prompt come from the bound Agent Soul.
Live-verified: /v1/chat-messages with an app token streams a Soul-backed
answer end-to-end through the real agent backend.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-29 20:58:55 +08:00
b034449a0c
refactor(api): migrate console/service_api.dataset.hit_testing to BaseModel ( #36533 )
2026-05-27 06:51:42 +00:00
f5d664887b
chore: backend feature api exclude_vector_space ( #36642 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-26 08:50:54 +00:00
345ba80942
fix: type mismatches (route says uuid: but handler says str) ( #36612 )
2026-05-25 07:33:32 +00:00
a8ca0d47b9
chore: add UUID/str type annotations to api endpoints for files in api/controllers/service_api ( #36561 )
2026-05-24 07:58:42 +00:00
790ca72627
refactor(api): migrate console/service_api.dataset to BaseModel ( #36480 )
2026-05-22 17:39:07 +00:00
4d8b6c7dc0
refactor: add missing @override decorator to remaining MCP, Jieba, embeddings, and misc subclasses ( #36528 )
2026-05-22 13:45:35 +00:00
092c8bca81
refactor(api): migrate console.datasets.metadata to BaseModel ( #36450 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-21 15:04:42 +00:00
1b4356b66a
fix(ci): bad pyinfra type coverage report comments ( #36482 )
2026-05-21 12:08:24 +00:00
d646bcf257
chore: remove unused pyrefly ignore comments in dataset.py ( #36443 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-20 09:14:43 +00:00
b04b4449db
chore(api): annotate simple contract responses ( #36331 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
2026-05-19 06:13:20 +00:00
194b54bae4
fix: allow tag rename without type payload ( #36182 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-15 01:29:17 +00:00
a35b28dbef
refactor: cleanup duplicate code ( #36173 )
2026-05-14 10:34:31 +00:00
4bb987eca3
fix: validate missing text indexing technique ( #35941 )
2026-05-12 05:07:03 +00:00
7b5c371b9d
chore: api para type ( #35985 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-10 06:04:42 +00:00
c67ce6f66d
chore: unify api && clean some type ignore ( #35984 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-10 04:16:29 +00:00
00bf3f83f2
refactor: verticalize tag management and batch bindings ( #35840 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-07 01:36:10 +00:00
d2e1da269c
chore: port one api ( #35609 )
2026-04-28 08:22:01 +00:00
be4c828214
feat: add service api of HITL ( #32826 )
...
Co-authored-by: Blackoutta <hyytez@gmail.com >
Co-authored-by: QuantumGhost <QuantumGhost@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com >
Co-authored-by: Yunlu Wen <yunlu.wen@dify.ai >
2026-04-24 06:37:10 +00:00
2e1b11bdb2
chore: port 2 api as deprecated ( #35261 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: 99 <wh2099@pm.me >
2026-04-21 12:29:39 +00:00
3e876e173a
chore(api): adapt Graphon 0.2.2 upgrade ( #35377 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-18 11:16:24 +00:00
3193e8a712
chore: reorg imports ( #35308 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-16 08:50:02 +00:00
b65a5fcd97
refactor(api): migrate service api workflow responses from marshal_with to BaseModel ( #35195 )
...
Co-authored-by: ai-hpc <ai-hpc@users.noreply.github.com >
2026-04-14 19:50:59 +00:00
800954f8ce
refactor(api): migrate service conversation-variable responses to BaseModel ( #35205 )
...
Co-authored-by: ai-hpc <ai-hpc@users.noreply.github.com >
2026-04-14 19:49:21 +00:00
b0bf7ca486
refactor: replace bare dict with typed annotations in controllers ( #35095 )
2026-04-13 19:19:52 +00:00
5a446f8200
refactor(api): deduplicate dataset controller schemas into controller_schemas.py ( #34756 )
2026-04-13 05:33:20 +00:00
9121f24181
refactor(api): deduplicate TextToAudioPayload and MessageListQuery into controller_schemas.py ( #34757 )
2026-04-13 05:27:35 +00:00
8436470fcb
refactor: replace bare dict with TypedDicts in annotation_service ( #34998 )
2026-04-13 03:46:33 +00:00
33bc58c9c2
refactor(api): migrate controllers to SQLAlchemy 2.0 select() API ( #34960 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-04-11 15:30:19 +00:00
0ba66ab155
refactor(api): deduplicate shared controller request schemas into controller_schemas.py ( #34700 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-08 03:10:04 +00:00
624db69f12
refactor(api): remove duplicated RAG entities from services layer ( #34689 )
2026-04-07 23:36:59 +00:00
f67a811f7f
refactor: replace dict params with BaseModel payloads in TagService ( #34422 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-07 04:20:02 +00:00
9081c46565
refactor(api): type upload file serialization with UploadFileDict TypedDict ( #34589 )
2026-04-06 11:34:52 +00:00
318a3d0308
refactor(api): tighten login and wrapper typing ( #34447 )
2026-04-02 09:36:58 +00:00
8f9dbf269e
chore(api): align Python support with 3.12 ( #34419 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
2026-04-02 05:07:32 +00:00
391007d02e
refactor: migrate service_api and inner_api to sessionmaker pattern ( #34379 )
...
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-01 14:53:41 +00:00
1aaba80211
fix: enrich Service API segment responses with summary content ( #34221 )
...
Co-authored-by: jigangz <jigangz@github.com >
Co-authored-by: FFXN <31929997+FFXN@users.noreply.github.com >
2026-03-30 10:09:50 +00:00
40591a7c50
refactor(api): use standalone graphon package ( #34209 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-27 21:05:32 +00:00
a69b8c1e96
refactor: select in service API dataset document and segment controllers ( #34101 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-26 13:24:54 +09:00
22dd0aa20c
refactor: select in service API wraps, file_preview, and site controllers ( #34086 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 23:01:05 +09:00
52e7492cbc
refactor(api): rename dify_graph to graphon ( #34095 )
2026-03-25 21:58:56 +08:00
56593f20b0
refactor(api): continue decoupling dify_graph from API concerns ( #33580 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: WH-2099 <wh2099@pm.me >
2026-03-25 20:32:24 +08:00
d87263f7c3
refactor: select in console datasets document controller ( #34029 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 12:47:25 +09:00
9065d54f4a
chore: bump pyrefly from 0.55.0 to 0.57.0 ( #33755 )
...
Co-authored-by: yuchengpersonal <yuchengpersonal@users.noreply.github.com >
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 23:22:18 +09:00
5b9cb55c45
refactor: use EnumText for MessageFeedback and MessageFile columns ( #33738 )
2026-03-20 01:13:26 +09:00
3870b2ad2d
refactor: use EnumText for dataset and replace string literals 4 ( #33606 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-18 09:18:08 +09:00
b09a75aae0
fix(api): resolve type errors in service API wraps tests ( #33467 )
2026-03-16 01:20:42 +09:00
0ab4e16335
feat: add batch download for dataset documents as ZIP and signed URL for single document download. ( #33100 )
2026-03-10 11:28:37 +08:00
741d48560d
refactor(api): add TypedDict definitions to models/model.py ( #32925 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-06 08:42:54 +09:00