ws-bom-robot-app 0.0.77__py3-none-any.whl → 0.0.78__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ws_bom_robot_app/llm/nebuly_handler.py +2 -2
- {ws_bom_robot_app-0.0.77.dist-info → ws_bom_robot_app-0.0.78.dist-info}/METADATA +1 -1
- {ws_bom_robot_app-0.0.77.dist-info → ws_bom_robot_app-0.0.78.dist-info}/RECORD +5 -5
- {ws_bom_robot_app-0.0.77.dist-info → ws_bom_robot_app-0.0.78.dist-info}/WHEEL +0 -0
- {ws_bom_robot_app-0.0.77.dist-info → ws_bom_robot_app-0.0.78.dist-info}/top_level.txt +0 -0
|
@@ -6,7 +6,7 @@ from langchain_core.messages import BaseMessage, HumanMessage, AIMessage
|
|
|
6
6
|
from langchain_core.outputs import ChatGenerationChunk, GenerationChunk
|
|
7
7
|
|
|
8
8
|
class NebulyHandler(AsyncCallbackHandler):
|
|
9
|
-
def __init__(self, llm_model: str | None, threadId: str = None, chat_history: list = [], url: str = None, api_key: str = None, user_id: str | None = None):
|
|
9
|
+
def __init__(self, llm_model: str | None, threadId: str = None, chat_history: list[BaseMessage] = [], url: str = None, api_key: str = None, user_id: str | None = None):
|
|
10
10
|
super().__init__()
|
|
11
11
|
self.__started: bool = False
|
|
12
12
|
self.__url: str = url
|
|
@@ -76,7 +76,7 @@ class NebulyHandler(AsyncCallbackHandler):
|
|
|
76
76
|
self.interaction.output = finish.return_values["output"]
|
|
77
77
|
# Trace
|
|
78
78
|
self.llm_trace.output = finish.return_values["output"]
|
|
79
|
-
message_history = self._convert_to_json_format(self.chat_history)
|
|
79
|
+
message_history = self._convert_to_json_format(self.chat_history)
|
|
80
80
|
self.llm_trace.messages = self.__parse_multimodal_history(message_history)
|
|
81
81
|
await self.__send_interaction()
|
|
82
82
|
|
|
@@ -13,7 +13,7 @@ ws_bom_robot_app/llm/agent_lcel.py,sha256=tVa1JJOuL1CG0tXS5AwOB4gli0E2rGqSBD5oEe
|
|
|
13
13
|
ws_bom_robot_app/llm/api.py,sha256=EUllZaJvtm1CQPxJ6QfufpBhZG_-ew8gSK-vxVg5r58,5054
|
|
14
14
|
ws_bom_robot_app/llm/defaut_prompt.py,sha256=LlCd_nSMkMmHESfiiiQYfnJyB6Pp-LSs4CEKdYW4vFk,1106
|
|
15
15
|
ws_bom_robot_app/llm/main.py,sha256=BXTIfVc9Ck7izZ893qry7C_uz1A8ZupbcHivrZrjpxY,5372
|
|
16
|
-
ws_bom_robot_app/llm/nebuly_handler.py,sha256=
|
|
16
|
+
ws_bom_robot_app/llm/nebuly_handler.py,sha256=hbkiTc0Jl4EzwXltpICiUXM5i5wOsmEX_Chyr1NhvSc,7924
|
|
17
17
|
ws_bom_robot_app/llm/feedbacks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
ws_bom_robot_app/llm/feedbacks/feedback_manager.py,sha256=WcKgzlOb8VFG7yqHoIOO_R6LAzdzE4YIRFCVOGBSgfM,2856
|
|
19
19
|
ws_bom_robot_app/llm/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -66,7 +66,7 @@ ws_bom_robot_app/llm/vector_store/loader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5
|
|
|
66
66
|
ws_bom_robot_app/llm/vector_store/loader/base.py,sha256=L_ugekNuAq0N9O-24wtlHSNHkqSeD-KsJrfGt_FX9Oc,5340
|
|
67
67
|
ws_bom_robot_app/llm/vector_store/loader/docling.py,sha256=yP0zgXLeFAlByaYuj-6cYariuknckrFds0dxdRcnVz8,3456
|
|
68
68
|
ws_bom_robot_app/llm/vector_store/loader/json_loader.py,sha256=qo9ejRZyKv_k6jnGgXnu1W5uqsMMtgqK_uvPpZQ0p74,833
|
|
69
|
-
ws_bom_robot_app-0.0.
|
|
70
|
-
ws_bom_robot_app-0.0.
|
|
71
|
-
ws_bom_robot_app-0.0.
|
|
72
|
-
ws_bom_robot_app-0.0.
|
|
69
|
+
ws_bom_robot_app-0.0.78.dist-info/METADATA,sha256=96-Ate6TbTUzRqNCLEe6gJEblJOA4r9BoVY6Ajbb2_4,8609
|
|
70
|
+
ws_bom_robot_app-0.0.78.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
71
|
+
ws_bom_robot_app-0.0.78.dist-info/top_level.txt,sha256=Yl0akyHVbynsBX_N7wx3H3ZTkcMLjYyLJs5zBMDAKcM,17
|
|
72
|
+
ws_bom_robot_app-0.0.78.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|