MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / open_work_flow

Method open_work_flow

apps/chat/serializers/chat.py:566–578  ·  view source on GitHub ↗
(self, application)

Source from the content-addressed store, hash-verified

564 return self.open_work_flow(application)
565
566 def open_work_flow(self, application):
567 self.is_valid(raise_exception=True)
568 application_id = self.data.get('application_id')
569 chat_user_id = self.data.get("chat_user_id")
570 chat_user_type = self.data.get("chat_user_type")
571 ip_address = self.data.get("ip_address")
572 source = self.data.get("source")
573 debug = self.data.get("debug")
574 chat_id = str(uuid.uuid7())
575 ChatInfo(chat_id, chat_user_id, chat_user_type, ip_address, source, [],
576 [],
577 application_id, debug).set_cache()
578 return chat_id
579
580 def open_simple(self, application):
581 application_id = self.data.get('application_id')

Callers 1

openMethod · 0.95

Calls 4

is_validMethod · 0.95
ChatInfoClass · 0.90
set_cacheMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected