alita-sdk 0.3.353__py3-none-any.whl → 0.3.354__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.

@@ -1,4 +1,5 @@
1
1
  import logging
2
+ import re
2
3
  from typing import Any, Optional, Union, List
3
4
  from langchain_core.runnables import RunnableConfig
4
5
  from langchain_core.tools import BaseTool
@@ -7,6 +8,10 @@ from ..utils.utils import clean_string
7
8
 
8
9
  logger = logging.getLogger(__name__)
9
10
 
11
+ def clean_node_str(s: str)-> str:
12
+ cleaned_string = re.sub(r'[^\w\s]', '', s)
13
+ return cleaned_string
14
+
10
15
  class RouterNode(BaseTool):
11
16
  name: str = 'RouterNode'
12
17
  description: str = 'A router node that evaluates a condition and routes accordingly.'
@@ -22,7 +27,7 @@ class RouterNode(BaseTool):
22
27
  template = EvaluateTemplate(self.condition, input_data)
23
28
  result = template.evaluate()
24
29
  logger.info(f"RouterNode evaluated condition '{self.condition}' with input {input_data} => {result}")
25
- result = clean_string(str(result))
30
+ result = clean_node_str(str(result))
26
31
  if result in self.routes:
27
32
  # If the result is one of the routes, return it
28
33
  return {"router_output": result}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: alita_sdk
3
- Version: 0.3.353
3
+ Version: 0.3.354
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
@@ -118,7 +118,7 @@ alita_sdk/runtime/tools/loop_output.py,sha256=U4hO9PCQgWlXwOq6jdmCGbegtAxGAPXObS
118
118
  alita_sdk/runtime/tools/mcp_server_tool.py,sha256=MhLxZJ44LYrB_0GrojmkyqKoDRaqIHkEQAsg718ipog,4277
119
119
  alita_sdk/runtime/tools/pgvector_search.py,sha256=NN2BGAnq4SsDHIhUcFZ8d_dbEOM8QwB0UwpsWCYruXU,11692
120
120
  alita_sdk/runtime/tools/prompt.py,sha256=nJafb_e5aOM1Rr3qGFCR-SKziU9uCsiP2okIMs9PppM,741
121
- alita_sdk/runtime/tools/router.py,sha256=wCvZjVkdXK9dMMeEerrgKf5M790RudH68pDortnHSz0,1517
121
+ alita_sdk/runtime/tools/router.py,sha256=P6IGvb5t8f3_lU8gUi31_CGNdTeetTFKvlmG4u-40uw,1645
122
122
  alita_sdk/runtime/tools/sandbox.py,sha256=WNz-aUMtkGCPg84dDy_0BPkyp-6YjoYB-xjIEFFrtKw,11601
123
123
  alita_sdk/runtime/tools/tool.py,sha256=lE1hGi6qOAXG7qxtqxarD_XMQqTghdywf261DZawwno,5631
124
124
  alita_sdk/runtime/tools/vectorstore.py,sha256=8vRhi1lGFEs3unvnflEi2p59U2MfV32lStpEizpDms0,34467
@@ -350,8 +350,8 @@ alita_sdk/tools/zephyr_scale/api_wrapper.py,sha256=kT0TbmMvuKhDUZc0i7KO18O38JM9S
350
350
  alita_sdk/tools/zephyr_squad/__init__.py,sha256=0ne8XLJEQSLOWfzd2HdnqOYmQlUliKHbBED5kW_Vias,2895
351
351
  alita_sdk/tools/zephyr_squad/api_wrapper.py,sha256=kmw_xol8YIYFplBLWTqP_VKPRhL_1ItDD0_vXTe_UuI,14906
352
352
  alita_sdk/tools/zephyr_squad/zephyr_squad_cloud_client.py,sha256=R371waHsms4sllHCbijKYs90C-9Yu0sSR3N4SUfQOgU,5066
353
- alita_sdk-0.3.353.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
354
- alita_sdk-0.3.353.dist-info/METADATA,sha256=3Qu0R3L6lAV2TQopb04Sv8fl34C5OCS4QpkU31OTPkA,19071
355
- alita_sdk-0.3.353.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
356
- alita_sdk-0.3.353.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
357
- alita_sdk-0.3.353.dist-info/RECORD,,
353
+ alita_sdk-0.3.354.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
354
+ alita_sdk-0.3.354.dist-info/METADATA,sha256=Xug_UZxh4RE5PZGCbNgcZ4I8ThviJRdOrYiNi46RWLg,19071
355
+ alita_sdk-0.3.354.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
356
+ alita_sdk-0.3.354.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
357
+ alita_sdk-0.3.354.dist-info/RECORD,,