feat: refactor: refactor from ChatflowHistoryService and ChatflowMemoryService

This commit is contained in:
Stream
2025-08-22 15:33:45 +08:00
parent f72ed4898c
commit 4d2fc66a8d
7 changed files with 80 additions and 147 deletions

View File

@ -1,9 +1,10 @@
import logging
from collections.abc import Mapping, MutableMapping
from typing import Any, Optional, cast, override
from typing import Any, Optional, cast
from sqlalchemy import select
from sqlalchemy.orm import Session
from typing_extensions import override
from configs import dify_config
from core.app.apps.advanced_chat.app_config_manager import AdvancedChatAppConfig
@ -417,6 +418,7 @@ class AdvancedChatAppRunner(WorkflowBasedAppRunner):
memory_block_specs=memory_block_specs,
tenant_id=self._workflow.tenant_id,
app_id=self._workflow.app_id,
node_id=None,
conversation_id=conversation_id,
is_draft=is_draft
)