Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Chore: PromptMessage is not an abstract base class (#15965)
Yongtao Huang963b6f628ad6
diff --git a/api/core/model_runtime/docs/en_US/interfaces.md b/api/core/model_runtime/docs/en_US/interfaces.mdindex 1fb20e5b045..3410109cf10 100644--- a/api/core/model_runtime/docs/en_US/interfaces.md+++ b/api/core/model_runtime/docs/en_US/interfaces.md@@ -493,7 +493,7 @@ If inputting a combination of text and images, the images need to be constructedThe base class for all Role message bodies, used only for parameter declaration and cannot be initialized.```python-class PromptMessage(ABC, BaseModel):+class PromptMessage(BaseModel):"""Model class for prompt message."""diff --git a/api/core/model_runtime/docs/zh_Hans/interfaces.md b/api/core/model_runtime/docs/zh_Hans/interfaces.mdindex 6022c1cbeb0..f86068ac992 100644--- a/api/core/model_runtime/docs/zh_Hans/interfaces.md+++ b/api/core/model_runtime/docs/zh_Hans/interfaces.md@@ -533,7 +533,7 @@ class ImagePromptMessageContent(PromptMessageContent):所有 Role 消息体的基类,仅作为参数声明用,不可初始化。```python-class PromptMessage(ABC, BaseModel):+class PromptMessage(BaseModel):"""Model class for prompt message."""diff --git a/api/core/model_runtime/entities/__init__.py b/api/core/model_runtime/entities/__init__.pyindex 4746ddedcf3..a24e437d48e 100644--- a/api/core/model_runtime/entities/__init__.py+++ b/api/core/model_runtime/entities/__init__.py@@ -31,11 +31,9 @@ __all__ = ["ModelPropertyKey","MultiModalPromptMessageContent","PromptMessage",- "PromptMessage","PromptMessageContent","PromptMessageContentType","PromptMessageRole",- "PromptMessageRole","PromptMessageTool","SystemPromptMessage","TextPromptMessageContent",diff --git a/api/core/model_runtime/entities/message_entities.py b/api/core/model_runtime/entities/message_entities.pyindex 2f682ceef57..977678b893a 100644--- a/api/core/model_runtime/entities/message_entities.py+++ b/api/core/model_runtime/entities/message_entities.py@@ -1,4 +1,3 @@-from abc import ABCfrom collections.abc import Sequencefrom enum import Enum, StrEnumfrom typing import Optional@@ -119,7 +118,7 @@ class DocumentPromptMessageContent(MultiModalPromptMessageContent):type: PromptMessageContentType = PromptMessageContentType.DOCUMENT-class PromptMessage(ABC, BaseModel):+class PromptMessage(BaseModel):"""Model class for prompt message."""