dify/api/core
QuantumGhost fd255e81e1
feat(api): Introduce `WorkflowResumptionContext` for pause state management (#28122)
Certain metadata (including but not limited to `InvokeFrom`, `call_depth`, and `streaming`)  is required when resuming a paused workflow. However, these fields are not part of `GraphRuntimeState` and were not saved in the previous
 implementation of  `PauseStatePersistenceLayer`.

This commit addresses this limitation by introducing a `WorkflowResumptionContext` model that wraps both the `*GenerateEntity` and `GraphRuntimeState`. This approach provides:

- A structured container for all necessary resumption data
- Better separation of concerns between execution state and persistence
- Enhanced extensibility for future metadata additions
- Clearer naming that distinguishes from `GraphRuntimeState`

The `WorkflowResumptionContext` model makes extending the pause state easier while maintaining backward compatibility and proper version management for the entire execution state ecosystem.

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 17:00:02 +08:00
..
agent feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
app feat(api): Introduce `WorkflowResumptionContext` for pause state management (#28122) 2025-11-12 17:00:02 +08:00
base feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
callback_handler feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
datasource Chore: remove unused class-level variables in DatasourceManager (#27011) 2025-10-17 09:07:28 +08:00
entities fix: the model list encountered two children with the same key (#27956) 2025-11-09 21:39:59 +08:00
errors chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
extension change all to httpx (#26119) 2025-10-10 23:41:16 +08:00
external_data_tool chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
file fix: `File` model add known extra fields, fix issue about the tool of… (#27607) 2025-11-04 09:57:25 +08:00
helper Fix/template transformer line number (#27867) 2025-11-05 15:21:47 +08:00
llm_generator Ensure suggested questions parser returns typed sequence (#27104) 2025-10-20 13:01:09 +08:00
mcp fix: set conditional capabilities upon MCP client session initialization (#26234) 2025-10-29 15:11:45 +08:00
memory refactor:Decouple Domain Models from Direct Database Access (#27316) 2025-10-28 09:59:30 +08:00
model_runtime feat: enhance tencent trace integration with LLM core metrics (#27126) 2025-10-29 15:53:30 +08:00
moderation use model_validate (#26182) 2025-10-10 17:30:13 +09:00
ops fix(api): Trace Hierarchy, Span Status, and Broken Workflow for Arize & Phoenix Integration (#27937) 2025-11-11 11:49:19 +08:00
plugin fix: improve plugin invoke error (#27137) 2025-10-22 17:09:24 +08:00
prompt feat(graph_engine): Support pausing workflow graph executions (#26585) 2025-10-19 21:33:41 +08:00
rag fix: elasticsearch_vector version (#28028) 2025-11-10 13:17:13 +09:00
repositories rm type ignore (#25715) 2025-10-21 11:26:58 +08:00
schemas Fix: replace stdout prints with debug logging (#25931) 2025-09-18 21:03:20 +08:00
tools feat: Add Audio Content Support for MCP Tools (#27979) 2025-11-10 10:12:11 +08:00
variables rm type ignore (#25715) 2025-10-21 11:26:58 +08:00
workflow When graph_engine worker run exception, keep the node_id for deep res… (#26205) 2025-11-12 15:03:45 +08:00
__init__.py Fix basedpyright type errors (#25435) 2025-09-10 01:54:26 +08:00
hosting_configuration.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
indexing_runner.py fix: document word_count appear negative (#27313) 2025-10-23 12:32:34 +08:00
model_manager.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
provider_manager.py fix enum and type (#26756) 2025-10-11 17:46:44 +08:00