alita-sdk 0.3.402__py3-none-any.whl → 0.3.403__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.
Potentially problematic release.
This version of alita-sdk might be problematic. Click here for more details.
- alita_sdk/runtime/langchain/langraph_agent.py +16 -8
- {alita_sdk-0.3.402.dist-info → alita_sdk-0.3.403.dist-info}/METADATA +1 -1
- {alita_sdk-0.3.402.dist-info → alita_sdk-0.3.403.dist-info}/RECORD +6 -6
- {alita_sdk-0.3.402.dist-info → alita_sdk-0.3.403.dist-info}/WHEEL +0 -0
- {alita_sdk-0.3.402.dist-info → alita_sdk-0.3.403.dist-info}/licenses/LICENSE +0 -0
- {alita_sdk-0.3.402.dist-info → alita_sdk-0.3.403.dist-info}/top_level.txt +0 -0
|
@@ -793,16 +793,24 @@ class LangGraphAgentRunnable(CompiledStateGraph):
|
|
|
793
793
|
current_message = input['input']
|
|
794
794
|
else:
|
|
795
795
|
current_message = input.get('input')[-1]
|
|
796
|
+
|
|
796
797
|
# TODO: add handler after we add 2+ inputs (filterByType, etc.)
|
|
797
798
|
if isinstance(current_message, HumanMessage):
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
799
|
+
current_content = current_message.content
|
|
800
|
+
if isinstance(current_content, list):
|
|
801
|
+
text_contents = [
|
|
802
|
+
item['text'] if isinstance(item, dict) and item.get('type') == 'text'
|
|
803
|
+
else item if isinstance(item, str)
|
|
804
|
+
else None
|
|
805
|
+
for item in current_content
|
|
806
|
+
]
|
|
807
|
+
text_contents = [text for text in text_contents if text is not None]
|
|
808
|
+
input['input'] = ". ".join(text_contents)
|
|
809
|
+
elif isinstance(current_content, str):
|
|
810
|
+
# on regenerate case
|
|
811
|
+
input['input'] = current_content
|
|
812
|
+
else:
|
|
813
|
+
input['input'] = str(current_content)
|
|
806
814
|
elif isinstance(current_message, str):
|
|
807
815
|
input['input'] = current_message
|
|
808
816
|
else:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alita_sdk
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.403
|
|
4
4
|
Summary: SDK for building langchain agents using resources from Alita
|
|
5
5
|
Author-email: Artem Rozumenko <artyom.rozumenko@gmail.com>, Mikalai Biazruchka <mikalai_biazruchka@epam.com>, Roman Mitusov <roman_mitusov@epam.com>, Ivan Krakhmaliuk <lifedj27@gmail.com>, Artem Dubrovskiy <ad13box@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -45,7 +45,7 @@ alita_sdk/runtime/langchain/assistant.py,sha256=gppvk4qvPcjgysLHifSm6akBErzgjCsw
|
|
|
45
45
|
alita_sdk/runtime/langchain/chat_message_template.py,sha256=kPz8W2BG6IMyITFDA5oeb5BxVRkHEVZhuiGl4MBZKdc,2176
|
|
46
46
|
alita_sdk/runtime/langchain/constants.py,sha256=eHVJ_beJNTf1WJo4yq7KMK64fxsRvs3lKc34QCXSbpk,3319
|
|
47
47
|
alita_sdk/runtime/langchain/indexer.py,sha256=0ENHy5EOhThnAiYFc7QAsaTNp9rr8hDV_hTK8ahbatk,37592
|
|
48
|
-
alita_sdk/runtime/langchain/langraph_agent.py,sha256=
|
|
48
|
+
alita_sdk/runtime/langchain/langraph_agent.py,sha256=oy-GuZKly4zeJ4QcaKTsdqqtzInbFXuupmJWhgA3XcY,50121
|
|
49
49
|
alita_sdk/runtime/langchain/mixedAgentParser.py,sha256=M256lvtsL3YtYflBCEp-rWKrKtcY1dJIyRGVv7KW9ME,2611
|
|
50
50
|
alita_sdk/runtime/langchain/mixedAgentRenderes.py,sha256=asBtKqm88QhZRILditjYICwFVKF5KfO38hu2O-WrSWE,5964
|
|
51
51
|
alita_sdk/runtime/langchain/store_manager.py,sha256=i8Fl11IXJhrBXq1F1ukEVln57B1IBe-tqSUvfUmBV4A,2218
|
|
@@ -353,8 +353,8 @@ alita_sdk/tools/zephyr_scale/api_wrapper.py,sha256=kT0TbmMvuKhDUZc0i7KO18O38JM9S
|
|
|
353
353
|
alita_sdk/tools/zephyr_squad/__init__.py,sha256=0ne8XLJEQSLOWfzd2HdnqOYmQlUliKHbBED5kW_Vias,2895
|
|
354
354
|
alita_sdk/tools/zephyr_squad/api_wrapper.py,sha256=kmw_xol8YIYFplBLWTqP_VKPRhL_1ItDD0_vXTe_UuI,14906
|
|
355
355
|
alita_sdk/tools/zephyr_squad/zephyr_squad_cloud_client.py,sha256=R371waHsms4sllHCbijKYs90C-9Yu0sSR3N4SUfQOgU,5066
|
|
356
|
-
alita_sdk-0.3.
|
|
357
|
-
alita_sdk-0.3.
|
|
358
|
-
alita_sdk-0.3.
|
|
359
|
-
alita_sdk-0.3.
|
|
360
|
-
alita_sdk-0.3.
|
|
356
|
+
alita_sdk-0.3.403.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
357
|
+
alita_sdk-0.3.403.dist-info/METADATA,sha256=m6J_ENbHIf_JdB3fXvKsTDoULBNfh_lfYlTH6i2w66s,19071
|
|
358
|
+
alita_sdk-0.3.403.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
359
|
+
alita_sdk-0.3.403.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
|
|
360
|
+
alita_sdk-0.3.403.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|