alita-sdk 0.3.138__py3-none-any.whl → 0.3.140__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.
- alita_sdk/clients/client.py +14 -13
- alita_sdk/toolkits/tools.py +2 -2
- {alita_sdk-0.3.138.dist-info → alita_sdk-0.3.140.dist-info}/METADATA +1 -1
- {alita_sdk-0.3.138.dist-info → alita_sdk-0.3.140.dist-info}/RECORD +7 -7
- {alita_sdk-0.3.138.dist-info → alita_sdk-0.3.140.dist-info}/WHEEL +0 -0
- {alita_sdk-0.3.138.dist-info → alita_sdk-0.3.140.dist-info}/licenses/LICENSE +0 -0
- {alita_sdk-0.3.138.dist-info → alita_sdk-0.3.140.dist-info}/top_level.txt +0 -0
alita_sdk/clients/client.py
CHANGED
@@ -71,8 +71,6 @@ class AlitaClient:
|
|
71
71
|
return data
|
72
72
|
else:
|
73
73
|
return []
|
74
|
-
|
75
|
-
|
76
74
|
|
77
75
|
def mcp_tool_call(self, params: dict[str, Any]):
|
78
76
|
if user_id := self._get_real_user_id():
|
@@ -178,17 +176,21 @@ class AlitaClient:
|
|
178
176
|
def application(self, client: Any, application_id: int, application_version_id: int,
|
179
177
|
tools: Optional[list] = None, chat_history: Optional[List[Any]] = None,
|
180
178
|
app_type=None, memory=None, runtime='langchain',
|
181
|
-
application_variables: Optional[dict] = None
|
179
|
+
application_variables: Optional[dict] = None,
|
180
|
+
version_details: Optional[dict] = None):
|
182
181
|
if tools is None:
|
183
182
|
tools = []
|
184
183
|
if chat_history is None:
|
185
184
|
chat_history = []
|
186
|
-
|
187
|
-
data =
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
185
|
+
if version_details:
|
186
|
+
data = version_details
|
187
|
+
else:
|
188
|
+
try:
|
189
|
+
data = self.get_app_version_details(application_id, application_version_id)
|
190
|
+
except ApiDetailsRequestError as e:
|
191
|
+
error_msg = f"Failed to fetch application version details for {application_id}/{application_version_id}\nDetails: {e}"
|
192
|
+
logger.error(error_msg)
|
193
|
+
raise ToolException(error_msg)
|
192
194
|
|
193
195
|
if application_variables:
|
194
196
|
for var in data.get('variables', {}):
|
@@ -206,15 +208,14 @@ class AlitaClient:
|
|
206
208
|
elif app_type == 'autogen':
|
207
209
|
app_type = "openai"
|
208
210
|
if runtime == 'nonrunnable':
|
209
|
-
return LangChainAssistant(self, data, client, chat_history, app_type,
|
211
|
+
return LangChainAssistant(self, data, client, chat_history, app_type,
|
210
212
|
tools=tools, memory=memory)
|
211
213
|
if runtime == 'langchain':
|
212
|
-
return LangChainAssistant(self, data, client,
|
213
|
-
chat_history, app_type,
|
214
|
+
return LangChainAssistant(self, data, client,
|
215
|
+
chat_history, app_type,
|
214
216
|
tools=tools, memory=memory).runnable()
|
215
217
|
elif runtime == 'llama':
|
216
218
|
raise NotImplementedError("LLama runtime is not supported")
|
217
|
-
|
218
219
|
|
219
220
|
def datasource(self, datasource_id: int) -> AlitaDataSource:
|
220
221
|
url = f"{self.datasources}/{datasource_id}"
|
alita_sdk/toolkits/tools.py
CHANGED
@@ -121,11 +121,11 @@ def get_tools(tools_list: list, alita_client, llm) -> list:
|
|
121
121
|
def _mcp_tools(tools_list, alita):
|
122
122
|
try:
|
123
123
|
all_available_toolkits = alita.get_mcp_toolkits()
|
124
|
-
toolkit_lookup = {tk["name"]
|
124
|
+
toolkit_lookup = {tk["name"]: tk for tk in all_available_toolkits}
|
125
125
|
tools = []
|
126
126
|
#
|
127
127
|
for selected_toolkit in tools_list:
|
128
|
-
toolkit_name = selected_toolkit['type']
|
128
|
+
toolkit_name = selected_toolkit['type']
|
129
129
|
toolkit_conf = toolkit_lookup.get(toolkit_name)
|
130
130
|
#
|
131
131
|
if not toolkit_conf:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: alita_sdk
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.140
|
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 <lifedjik@gmail.com>
|
6
6
|
Project-URL: Homepage, https://projectalita.ai
|
@@ -4,7 +4,7 @@ alita_sdk/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
4
4
|
alita_sdk/agents/llamaAgentParser.py,sha256=N_Nw6WJ8xrNX3fr_JFwjUIg_Urai9lLU3poMgZz0Cyk,1701
|
5
5
|
alita_sdk/clients/__init__.py,sha256=5O_7WsZmvg5z5uZf_Jkx-f8j5C6yKIuSwQR6AQ-TM84,31
|
6
6
|
alita_sdk/clients/artifact.py,sha256=W6oLlthtsUHfUWjhihaDdhLZdRVqj1D2j7oHHELxJfs,2639
|
7
|
-
alita_sdk/clients/client.py,sha256=
|
7
|
+
alita_sdk/clients/client.py,sha256=42g8Q7LosIxqGsxNRhNE0KF3VRPKCbVxkeQMVRnyP3Y,19562
|
8
8
|
alita_sdk/clients/datasource.py,sha256=HAZovoQN9jBg0_-lIlGBQzb4FJdczPhkHehAiVG3Wx0,1020
|
9
9
|
alita_sdk/clients/prompt.py,sha256=li1RG9eBwgNK_Qf0qUaZ8QNTmsncFrAL2pv3kbxZRZg,1447
|
10
10
|
alita_sdk/community/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -75,7 +75,7 @@ alita_sdk/toolkits/artifact.py,sha256=7zb17vhJ3CigeTqvzQ4VNBsU5UOCJqAwz7fOJGMYqX
|
|
75
75
|
alita_sdk/toolkits/datasource.py,sha256=v3FQu8Gmvq7gAGAnFEbA8qofyUhh98rxgIjY6GHBfyI,2494
|
76
76
|
alita_sdk/toolkits/prompt.py,sha256=WIpTkkVYWqIqOWR_LlSWz3ug8uO9tm5jJ7aZYdiGRn0,1192
|
77
77
|
alita_sdk/toolkits/subgraph.py,sha256=ZYqI4yVLbEPAjCR8dpXbjbL2ipX598Hk3fL6AgaqFD4,1758
|
78
|
-
alita_sdk/toolkits/tools.py,sha256=
|
78
|
+
alita_sdk/toolkits/tools.py,sha256=ltMNYhuIOO8X-424YevdaLUUrE9DarBsOOw_rR92kRU,6774
|
79
79
|
alita_sdk/toolkits/vectorstore.py,sha256=di08-CRl0KJ9xSZ8_24VVnPZy58iLqHtXW8vuF29P64,2893
|
80
80
|
alita_sdk/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
81
81
|
alita_sdk/tools/agent.py,sha256=m98QxOHwnCRTT9j18Olbb5UPS8-ZGeQaGiUyZJSyFck,3162
|
@@ -101,13 +101,13 @@ alita_sdk/utils/logging.py,sha256=hBE3qAzmcLMdamMp2YRXwOOK9P4lmNaNhM76kntVljs,31
|
|
101
101
|
alita_sdk/utils/save_dataframe.py,sha256=tNwnaVCvN4_B0oi3F4Y3Z13elbIRtwKmdKHsMcj658g,1465
|
102
102
|
alita_sdk/utils/streamlit.py,sha256=zp8owZwHI3HZplhcExJf6R3-APtWx-z6s5jznT2hY_k,29124
|
103
103
|
alita_sdk/utils/utils.py,sha256=dM8whOJAuFJFe19qJ69-FLzrUp6d2G-G6L7d4ss2XqM,346
|
104
|
-
alita_sdk-0.3.
|
104
|
+
alita_sdk-0.3.140.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
105
105
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
106
106
|
tests/test_ado_analysis.py,sha256=wsxB4B2Ycxoiykthh6YbPQ9hqsDbPFie8D9ZK1i_6kg,3311
|
107
107
|
tests/test_github_analysis.py,sha256=ulR4CEGmiMRPydJuX7aQcglzvhC7kFOAtZRLLBB9F_M,3148
|
108
108
|
tests/test_gitlab_analysis.py,sha256=J7Y2mNi5Sj8-rH2PMRmVbT3uwZ17YeR9pcs0MDIyNW4,3352
|
109
109
|
tests/test_jira_analysis.py,sha256=6F3Elikt02L28N6sS_AKDy9lgqgD81_hr979NcdZeg4,3359
|
110
|
-
alita_sdk-0.3.
|
111
|
-
alita_sdk-0.3.
|
112
|
-
alita_sdk-0.3.
|
113
|
-
alita_sdk-0.3.
|
110
|
+
alita_sdk-0.3.140.dist-info/METADATA,sha256=8YXrzpkDDqr4IBRx-YycJ8DuGUVW4-VHRR0QxKqf-jE,7076
|
111
|
+
alita_sdk-0.3.140.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
112
|
+
alita_sdk-0.3.140.dist-info/top_level.txt,sha256=SWRhxB7Et3cOy3RkE5hR7OIRnHoo3K8EXzoiNlkfOmc,25
|
113
|
+
alita_sdk-0.3.140.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|