mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
feat: add NotificationType for Agent messages
This commit is contained in:
@@ -29,7 +29,7 @@ from app.chain import ChainBase
|
|||||||
from app.core.config import settings
|
from app.core.config import settings
|
||||||
from app.helper.llm import LLMHelper
|
from app.helper.llm import LLMHelper
|
||||||
from app.log import logger
|
from app.log import logger
|
||||||
from app.schemas import Notification
|
from app.schemas import Notification, NotificationType
|
||||||
|
|
||||||
|
|
||||||
class AgentChain(ChainBase):
|
class AgentChain(ChainBase):
|
||||||
@@ -388,6 +388,7 @@ class MoviePilotAgent:
|
|||||||
Notification(
|
Notification(
|
||||||
channel=self.channel,
|
channel=self.channel,
|
||||||
source=self.source,
|
source=self.source,
|
||||||
|
mtype=NotificationType.Agent,
|
||||||
userid=self.user_id,
|
userid=self.user_id,
|
||||||
username=self.username,
|
username=self.username,
|
||||||
title=title,
|
title=title,
|
||||||
|
|||||||
@@ -276,6 +276,8 @@ class NotificationType(Enum):
|
|||||||
Manual = "手动处理"
|
Manual = "手动处理"
|
||||||
# 插件消息
|
# 插件消息
|
||||||
Plugin = "插件"
|
Plugin = "插件"
|
||||||
|
# 智能体消息
|
||||||
|
Agent = "智能体"
|
||||||
# 其它消息
|
# 其它消息
|
||||||
Other = "其它"
|
Other = "其它"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user