mirror of
https://github.com/FunnyWolf/agentic-soc-platform.git
synced 2026-08-22 13:12:56 +02:00
rename
This commit is contained in:
+2
-2
@@ -16,7 +16,7 @@ from Lib.baseapi import BaseAPI
|
||||
from Lib.llmapi import AgentState
|
||||
from Lib.log import logger
|
||||
from PLUGINS.SIRP.sirpapi import Playbook as SIRPPlaybook, Notice
|
||||
from PLUGINS.SIRP.sirpapi import PlaybookMessage, PlaybookStatusType
|
||||
from PLUGINS.SIRP.sirpapi import Message, PlaybookStatusType
|
||||
|
||||
|
||||
class BasePlaybook(BaseAPI):
|
||||
@@ -138,7 +138,7 @@ class LanggraphPlaybook(BasePlaybook):
|
||||
{"id": "content", "value": message.content},
|
||||
{"id": "json", "value": None},
|
||||
]
|
||||
row_id = PlaybookMessage.create(fields)
|
||||
row_id = Message.create(fields)
|
||||
return row_id
|
||||
|
||||
# langgraph interface
|
||||
|
||||
@@ -462,20 +462,25 @@ class Knowledge(object):
|
||||
return result
|
||||
|
||||
|
||||
class PlaybookMessage(object):
|
||||
WORKSHEET_ID = "playbook_message"
|
||||
class Message(object):
|
||||
WORKSHEET_ID = "message"
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def list(filter: dict):
|
||||
result = WorksheetRow.list(Message.WORKSHEET_ID, filter, include_system_fields=False)
|
||||
return result
|
||||
|
||||
@staticmethod
|
||||
def create(fields: list):
|
||||
row_id = WorksheetRow.create(PlaybookMessage.WORKSHEET_ID, fields)
|
||||
row_id = WorksheetRow.create(Message.WORKSHEET_ID, fields)
|
||||
return row_id
|
||||
|
||||
@staticmethod
|
||||
def update(row_id, fields: list):
|
||||
row_id = WorksheetRow.update(PlaybookMessage.WORKSHEET_ID, row_id, fields)
|
||||
row_id = WorksheetRow.update(Message.WORKSHEET_ID, row_id, fields)
|
||||
return row_id
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user