alita-sdk 0.3.176__py3-none-any.whl → 0.3.177__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/community/__init__.py +7 -17
- alita_sdk/tools/carrier/api_wrapper.py +6 -0
- alita_sdk/tools/carrier/backend_tests_tool.py +308 -7
- alita_sdk/tools/carrier/carrier_sdk.py +18 -0
- alita_sdk/tools/carrier/tools.py +2 -1
- {alita_sdk-0.3.176.dist-info → alita_sdk-0.3.177.dist-info}/METADATA +1 -2
- {alita_sdk-0.3.176.dist-info → alita_sdk-0.3.177.dist-info}/RECORD +10 -41
- alita_sdk/community/browseruse/__init__.py +0 -73
- alita_sdk/community/browseruse/api_wrapper.py +0 -288
- alita_sdk/community/deep_researcher/__init__.py +0 -70
- alita_sdk/community/deep_researcher/agents/__init__.py +0 -1
- alita_sdk/community/deep_researcher/agents/baseclass.py +0 -182
- alita_sdk/community/deep_researcher/agents/knowledge_gap_agent.py +0 -74
- alita_sdk/community/deep_researcher/agents/long_writer_agent.py +0 -251
- alita_sdk/community/deep_researcher/agents/planner_agent.py +0 -124
- alita_sdk/community/deep_researcher/agents/proofreader_agent.py +0 -80
- alita_sdk/community/deep_researcher/agents/thinking_agent.py +0 -64
- alita_sdk/community/deep_researcher/agents/tool_agents/__init__.py +0 -20
- alita_sdk/community/deep_researcher/agents/tool_agents/crawl_agent.py +0 -87
- alita_sdk/community/deep_researcher/agents/tool_agents/search_agent.py +0 -96
- alita_sdk/community/deep_researcher/agents/tool_selector_agent.py +0 -83
- alita_sdk/community/deep_researcher/agents/utils/__init__.py +0 -0
- alita_sdk/community/deep_researcher/agents/utils/parse_output.py +0 -148
- alita_sdk/community/deep_researcher/agents/writer_agent.py +0 -63
- alita_sdk/community/deep_researcher/api_wrapper.py +0 -116
- alita_sdk/community/deep_researcher/deep_research.py +0 -185
- alita_sdk/community/deep_researcher/examples/deep_example.py +0 -30
- alita_sdk/community/deep_researcher/examples/iterative_example.py +0 -34
- alita_sdk/community/deep_researcher/examples/report_plan_example.py +0 -27
- alita_sdk/community/deep_researcher/iterative_research.py +0 -419
- alita_sdk/community/deep_researcher/llm_config.py +0 -87
- alita_sdk/community/deep_researcher/main.py +0 -67
- alita_sdk/community/deep_researcher/tools/__init__.py +0 -2
- alita_sdk/community/deep_researcher/tools/crawl_website.py +0 -109
- alita_sdk/community/deep_researcher/tools/web_search.py +0 -294
- alita_sdk/community/deep_researcher/utils/__init__.py +0 -0
- alita_sdk/community/deep_researcher/utils/md_to_pdf.py +0 -8
- alita_sdk/community/deep_researcher/utils/os.py +0 -21
- {alita_sdk-0.3.176.dist-info → alita_sdk-0.3.177.dist-info}/WHEEL +0 -0
- {alita_sdk-0.3.176.dist-info → alita_sdk-0.3.177.dist-info}/licenses/LICENSE +0 -0
- {alita_sdk-0.3.176.dist-info → alita_sdk-0.3.177.dist-info}/top_level.txt +0 -0
alita_sdk/community/__init__.py
CHANGED
@@ -11,7 +11,7 @@ import importlib
|
|
11
11
|
__all__ = []
|
12
12
|
|
13
13
|
# Standard module imports with fallback
|
14
|
-
_modules = ['utils', 'analysis', '
|
14
|
+
_modules = ['utils', 'analysis', 'deep_researcher', 'eda']
|
15
15
|
|
16
16
|
for module_name in _modules:
|
17
17
|
try:
|
@@ -26,8 +26,7 @@ _toolkits = [
|
|
26
26
|
('analysis.jira_analyse', 'AnalyseJira'),
|
27
27
|
('analysis.ado_analyse', 'AnalyseAdo'),
|
28
28
|
('analysis.gitlab_analyse', 'AnalyseGitLab'),
|
29
|
-
('analysis.github_analyse', 'AnalyseGithub')
|
30
|
-
('browseruse', 'BrowserUseToolkit')
|
29
|
+
('analysis.github_analyse', 'AnalyseGithub')
|
31
30
|
]
|
32
31
|
|
33
32
|
for module_path, class_name in _toolkits:
|
@@ -61,8 +60,7 @@ def get_tools(tools_list: list, alita_client, llm) -> list:
|
|
61
60
|
'analyse_jira': 'AnalyseJira',
|
62
61
|
'analyse_ado': 'AnalyseAdo',
|
63
62
|
'analyse_gitlab': 'AnalyseGitLab',
|
64
|
-
'analyse_github': 'AnalyseGithub'
|
65
|
-
'browser_use': 'BrowserUseToolkit'
|
63
|
+
'analyse_github': 'AnalyseGithub'
|
66
64
|
}
|
67
65
|
|
68
66
|
for tool in tools_list:
|
@@ -72,18 +70,10 @@ def get_tools(tools_list: list, alita_client, llm) -> list:
|
|
72
70
|
if class_name and class_name in globals():
|
73
71
|
try:
|
74
72
|
toolkit_class = globals()[class_name]
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
toolkit_name=tool.get('toolkit_name', ''),
|
80
|
-
**tool['settings']
|
81
|
-
)
|
82
|
-
else:
|
83
|
-
toolkit = toolkit_class.get_toolkit(
|
84
|
-
client=alita_client,
|
85
|
-
**tool['settings']
|
86
|
-
)
|
73
|
+
toolkit = toolkit_class.get_toolkit(
|
74
|
+
client=alita_client,
|
75
|
+
**tool['settings']
|
76
|
+
)
|
87
77
|
tools.extend(toolkit.get_tools())
|
88
78
|
except Exception:
|
89
79
|
pass # Fail silently for robustness
|
@@ -64,6 +64,12 @@ class CarrierAPIWrapper(BaseModel):
|
|
64
64
|
def get_tests_list(self) -> List[Dict[str, Any]]:
|
65
65
|
return self._client.get_tests_list()
|
66
66
|
|
67
|
+
def create_test(self, data: dict):
|
68
|
+
return self._client.create_test(data)
|
69
|
+
|
70
|
+
def get_integrations(self, name: str):
|
71
|
+
return self._client.get_integrations(name)
|
72
|
+
|
67
73
|
def run_test(self, test_id: str, json_body):
|
68
74
|
return self._client.run_test(test_id, json_body)
|
69
75
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import logging
|
2
2
|
import json
|
3
3
|
import traceback
|
4
|
-
from typing import Type
|
4
|
+
from typing import Type, Optional, List, Dict, Union
|
5
5
|
from langchain_core.tools import BaseTool, ToolException
|
6
6
|
from pydantic.fields import Field
|
7
7
|
from pydantic import create_model, BaseModel
|
@@ -30,7 +30,6 @@ class GetTestsTool(BaseTool):
|
|
30
30
|
|
31
31
|
trimmed_tests = []
|
32
32
|
for test in tests:
|
33
|
-
|
34
33
|
# Keep only desired base fields
|
35
34
|
trimmed = {k: test[k] for k in base_fields if k in test}
|
36
35
|
|
@@ -82,7 +81,14 @@ class RunTestByIDTool(BaseTool):
|
|
82
81
|
"RunTestByIdInput",
|
83
82
|
test_id=(str, Field(default=None, description="Test id to execute")),
|
84
83
|
name=(str, Field(default=None, description="Test name to execute")),
|
85
|
-
test_parameters=(
|
84
|
+
test_parameters=(list, Field(
|
85
|
+
default=None,
|
86
|
+
description=(
|
87
|
+
"Test parameters to override. Provide as a list of dictionaries, "
|
88
|
+
"e.g., [{'vUsers': '5', 'duration': '120'}]. Each dictionary should "
|
89
|
+
"contain parameter names and their values."
|
90
|
+
)
|
91
|
+
)),
|
86
92
|
)
|
87
93
|
|
88
94
|
def _run(self, test_id=None, name=None, test_parameters=None):
|
@@ -111,9 +117,12 @@ class RunTestByIDTool(BaseTool):
|
|
111
117
|
return {
|
112
118
|
"message": "Please confirm or override the following test parameters to proceed with the test execution.",
|
113
119
|
"default_test_parameters": default_test_parameters,
|
114
|
-
"instruction": "To override parameters, provide a
|
120
|
+
"instruction": "To override parameters, provide a list of dictionaries for 'test_parameters', e.g., [{'vUsers': '5', 'duration': '120'}].",
|
115
121
|
}
|
116
122
|
|
123
|
+
# Normalize test_parameters if provided in an incorrect format
|
124
|
+
test_parameters = self._normalize_test_parameters(test_parameters)
|
125
|
+
|
117
126
|
# Apply user-provided test parameters
|
118
127
|
updated_test_parameters = self._apply_test_parameters(default_test_parameters, test_parameters)
|
119
128
|
|
@@ -146,6 +155,37 @@ class RunTestByIDTool(BaseTool):
|
|
146
155
|
logger.error(f"Test not found: {stacktrace}")
|
147
156
|
raise ToolException(stacktrace)
|
148
157
|
|
158
|
+
def _normalize_test_parameters(self, test_parameters):
|
159
|
+
"""
|
160
|
+
Normalize test_parameters to ensure they are in the correct list-of-dictionaries format.
|
161
|
+
If test_parameters are provided as a list of strings (e.g., ['vUsers=5', 'duration=120']),
|
162
|
+
convert them to a list of dictionaries (e.g., [{'vUsers': '5', 'duration': '120'}]).
|
163
|
+
"""
|
164
|
+
if isinstance(test_parameters, list):
|
165
|
+
# Check if the list contains strings in the format "key=value"
|
166
|
+
if all(isinstance(param, str) and "=" in param for param in test_parameters):
|
167
|
+
normalized_parameters = []
|
168
|
+
for param in test_parameters:
|
169
|
+
name, value = param.split("=", 1)
|
170
|
+
normalized_parameters.append({name.strip(): value.strip()})
|
171
|
+
return normalized_parameters
|
172
|
+
# Check if the list already contains dictionaries
|
173
|
+
elif all(isinstance(param, dict) for param in test_parameters):
|
174
|
+
return test_parameters
|
175
|
+
else:
|
176
|
+
raise ValueError(
|
177
|
+
"Invalid format for test_parameters. Provide as a list of 'key=value' strings "
|
178
|
+
"or a list of dictionaries."
|
179
|
+
)
|
180
|
+
elif isinstance(test_parameters, dict):
|
181
|
+
# Convert a single dictionary to a list of dictionaries
|
182
|
+
return [test_parameters]
|
183
|
+
else:
|
184
|
+
raise ValueError(
|
185
|
+
"Invalid format for test_parameters. Provide as a list of 'key=value' strings "
|
186
|
+
"or a list of dictionaries."
|
187
|
+
)
|
188
|
+
|
149
189
|
def _apply_test_parameters(self, default_test_parameters, user_parameters):
|
150
190
|
"""
|
151
191
|
Apply user-provided parameters to the default test parameters.
|
@@ -153,8 +193,269 @@ class RunTestByIDTool(BaseTool):
|
|
153
193
|
updated_parameters = []
|
154
194
|
for param in default_test_parameters:
|
155
195
|
name = param["name"]
|
156
|
-
|
196
|
+
# Find the matching user parameter
|
197
|
+
user_param = next((p for p in user_parameters if name in p), None)
|
198
|
+
if user_param:
|
157
199
|
# Override the parameter value with the user-provided value
|
158
|
-
param["default"] =
|
159
|
-
|
200
|
+
param["default"] = user_param[name]
|
201
|
+
# Ensure the parameter structure remains consistent
|
202
|
+
updated_parameters.append({
|
203
|
+
"name": param["name"],
|
204
|
+
"type": param["type"],
|
205
|
+
"description": param["description"],
|
206
|
+
"default": param["default"]
|
207
|
+
})
|
160
208
|
return updated_parameters
|
209
|
+
|
210
|
+
|
211
|
+
class CreateBackendTestInput(BaseModel):
|
212
|
+
test_name: str = Field(..., description="Test name")
|
213
|
+
test_type: str = Field(..., description="Test type")
|
214
|
+
env_type: str = Field(..., description="Env type")
|
215
|
+
entrypoint: str = Field(..., description="Entrypoint for the test (JMeter script path or Gatling simulation path)")
|
216
|
+
custom_cmd: str = Field(..., description="Custom command line to execute the test (e.g., -l /tmp/reports/jmeter.jtl -e -o /tmp/reports/html_report)")
|
217
|
+
runner: str = Field(..., description="Test runner (Gatling or JMeter)")
|
218
|
+
source: Optional[Dict[str, Optional[str]]] = Field(
|
219
|
+
None,
|
220
|
+
description=(
|
221
|
+
"Test source configuration (Git repo). The dictionary should include the following keys:\n"
|
222
|
+
"- 'name' (required): The type of source (e.g., 'git_https').\n"
|
223
|
+
"- 'repo' (required): The URL of the Git repository.\n"
|
224
|
+
"- 'branch' (optional): The branch of the repository to use.\n"
|
225
|
+
"- 'username' (optional): The username for accessing the repository.\n"
|
226
|
+
"- 'password' (optional): The password or token for accessing the repository."
|
227
|
+
),
|
228
|
+
example={
|
229
|
+
"name": "git_https",
|
230
|
+
"repo": "https://your_git_repo.git",
|
231
|
+
"branch": "main",
|
232
|
+
"username": "your_username",
|
233
|
+
"password": "your_password",
|
234
|
+
},
|
235
|
+
)
|
236
|
+
test_parameters: Optional[List[Dict[str, str]]] = Field(
|
237
|
+
None,
|
238
|
+
description=(
|
239
|
+
"Test parameters as a list of dictionaries. Each dictionary should include the following keys:\n"
|
240
|
+
"- 'name' (required): The name of the parameter (e.g., 'VUSERS').\n"
|
241
|
+
"- 'default' (required): The value of the parameter (e.g., '5')."
|
242
|
+
),
|
243
|
+
example=[
|
244
|
+
{"name": "VUSERS", "default": "5"},
|
245
|
+
{"name": "DURATION", "default": "60"},
|
246
|
+
{"name": "RAMP_UP", "default": "30"},
|
247
|
+
],
|
248
|
+
)
|
249
|
+
email_integration: Optional[Dict[str, Optional[Union[int, List[str]]]]] = Field(
|
250
|
+
None,
|
251
|
+
description=(
|
252
|
+
"Email integration configuration. The dictionary should include the following keys:\n"
|
253
|
+
"- 'integration_id' (required): The ID of the selected email integration (integer).\n"
|
254
|
+
"- 'recipients' (required): A list of email addresses to receive notifications."
|
255
|
+
),
|
256
|
+
example={
|
257
|
+
"integration_id": 1,
|
258
|
+
"recipients": ["example@example.com", "user@example.com"],
|
259
|
+
},
|
260
|
+
)
|
261
|
+
|
262
|
+
|
263
|
+
class CreateBackendTestTool(BaseTool):
|
264
|
+
api_wrapper: CarrierAPIWrapper = Field(..., description="Carrier API Wrapper instance")
|
265
|
+
name: str = "create_backend_test"
|
266
|
+
description: str = "Create a new backend test plan in the Carrier platform."
|
267
|
+
args_schema: Type[BaseModel] = CreateBackendTestInput
|
268
|
+
|
269
|
+
def _run(self, test_name=None, test_type=None, env_type=None, entrypoint=None, custom_cmd=None, runner=None,
|
270
|
+
source=None, test_parameters=None, email_integration=None):
|
271
|
+
try:
|
272
|
+
# Validate required fields
|
273
|
+
if not test_name:
|
274
|
+
return {"message": "Please provide test name"}
|
275
|
+
if not test_type:
|
276
|
+
return {
|
277
|
+
"message": "Please provide performance test type (capacity, baseline, response time, stable, stress, etc)"}
|
278
|
+
if not env_type:
|
279
|
+
return {"message": "Please provide test env (stage, prod, dev, etc)"}
|
280
|
+
if not entrypoint:
|
281
|
+
return {"message": "Please provide test entrypoint (JMeter script path or Gatling simulation path)"}
|
282
|
+
if not custom_cmd:
|
283
|
+
return {
|
284
|
+
"message": "Please provide custom_cmd. This parameter is optional. (e.g., -l /tmp/reports/jmeter.jtl -e -o /tmp/reports/html_report)"}
|
285
|
+
|
286
|
+
# Validate runner
|
287
|
+
available_runners = {
|
288
|
+
"JMeter_v5.6.3": "v5.6.3",
|
289
|
+
"JMeter_v5.5": "v5.5",
|
290
|
+
"Gatling_v3.7": "v3.7",
|
291
|
+
"Gatling_maven": "maven",
|
292
|
+
}
|
293
|
+
|
294
|
+
if not runner:
|
295
|
+
return {
|
296
|
+
"message": (
|
297
|
+
"Please provide a valid test runner. The test runner specifies the tool and version to use for running the test."
|
298
|
+
),
|
299
|
+
"instructions": (
|
300
|
+
"You can choose a test runner by providing either the key or the value from the available options below. "
|
301
|
+
"For example, you can provide 'JMeter_v5.5' or 'v5.5'."
|
302
|
+
),
|
303
|
+
"available_runners": available_runners,
|
304
|
+
"example": "For JMeter 5.5, you can provide either 'JMeter_v5.5' or 'v5.5'.",
|
305
|
+
}
|
306
|
+
|
307
|
+
# Normalize the runner input to ensure we always use the value in the final data
|
308
|
+
if runner in available_runners:
|
309
|
+
runner_value = available_runners[runner] # User provided the key (e.g., 'JMeter_v5.5')
|
310
|
+
elif runner in available_runners.values():
|
311
|
+
runner_value = runner # User provided the value directly (e.g., 'v5.5')
|
312
|
+
else:
|
313
|
+
return {
|
314
|
+
"message": (
|
315
|
+
"Invalid test runner provided. Please choose a valid test runner from the available options."
|
316
|
+
),
|
317
|
+
"instructions": (
|
318
|
+
"You can choose a test runner by providing either the key or the value from the available options below. "
|
319
|
+
"For example, you can provide 'JMeter_v5.5' or 'v5.5'."
|
320
|
+
),
|
321
|
+
"available_runners": available_runners,
|
322
|
+
"example": "For JMeter 5.5, you can provide either 'JMeter_v5.5' or 'v5.5'.",
|
323
|
+
}
|
324
|
+
|
325
|
+
# Validate source
|
326
|
+
if not source:
|
327
|
+
return {
|
328
|
+
"message": (
|
329
|
+
"Please provide the test source configuration. The source configuration is required to specify "
|
330
|
+
"the Git repository details for the test. Ensure all fields are provided in the correct format."
|
331
|
+
),
|
332
|
+
"instructions": (
|
333
|
+
"The 'source' parameter should be a dictionary with the following keys:\n"
|
334
|
+
"- 'name' (required): The type of source (e.g., 'git_https').\n"
|
335
|
+
"- 'repo' (required): The URL of the Git repository.\n"
|
336
|
+
"- 'branch' (optional): The branch of the repository to use.\n"
|
337
|
+
"- 'username' (optional): The username for accessing the repository.\n"
|
338
|
+
"- 'password' (optional): The password or token for accessing the repository."
|
339
|
+
),
|
340
|
+
"example_source": {
|
341
|
+
"name": "git_https",
|
342
|
+
"repo": "https://your_git_repo.git",
|
343
|
+
"branch": "main",
|
344
|
+
"username": "",
|
345
|
+
"password": "",
|
346
|
+
},
|
347
|
+
}
|
348
|
+
|
349
|
+
# Validate test_parameters
|
350
|
+
if test_parameters is None:
|
351
|
+
return {
|
352
|
+
"message": (
|
353
|
+
"Do you want to add test parameters? Test parameters allow you to configure the test with specific values."
|
354
|
+
),
|
355
|
+
"instructions": (
|
356
|
+
"Provide test parameters as a list of dictionaries in the format:\n"
|
357
|
+
"- {'name': 'VUSERS', 'default': '5'}\n"
|
358
|
+
"- {'name': 'DURATION', 'default': '60'}\n"
|
359
|
+
"- {'name': 'RAMP_UP', 'default': '30'}\n"
|
360
|
+
"You can provide multiple parameters as a list, e.g., [{'name': 'VUSERS', 'default': '5'}, {'name': 'DURATION', 'default': '60'}].\n"
|
361
|
+
"If no parameters are needed, respond with 'no'."
|
362
|
+
),
|
363
|
+
"example_parameters": [
|
364
|
+
{"name": "VUSERS", "default": "5"},
|
365
|
+
{"name": "DURATION", "default": "60"},
|
366
|
+
{"name": "RAMP_UP", "default": "30"},
|
367
|
+
],
|
368
|
+
}
|
369
|
+
|
370
|
+
# Ensure test_parameters is an empty list if the user indicates no parameters are needed
|
371
|
+
if isinstance(test_parameters, str) and test_parameters.lower() == "no":
|
372
|
+
test_parameters = []
|
373
|
+
|
374
|
+
# Fetch available integrations
|
375
|
+
integrations_list = self.api_wrapper.get_integrations(name="reporter_email")
|
376
|
+
|
377
|
+
# Validate email_integration
|
378
|
+
if email_integration is None:
|
379
|
+
# Return instructions for configuring email integration
|
380
|
+
return {
|
381
|
+
"message": "Do you want to configure email integration?",
|
382
|
+
"instructions": (
|
383
|
+
"If yes, select an integration from the available options below and provide email recipients.\n"
|
384
|
+
"If no, respond with 'no'."
|
385
|
+
),
|
386
|
+
"available_integrations": [
|
387
|
+
{
|
388
|
+
"id": integration["id"],
|
389
|
+
"name": integration["config"]["name"],
|
390
|
+
"description": integration["section"]["integration_description"],
|
391
|
+
}
|
392
|
+
for integration in integrations_list
|
393
|
+
],
|
394
|
+
"example_response": {
|
395
|
+
"integration_id": 1,
|
396
|
+
"recipients": ["example@example.com", "user@example.com"],
|
397
|
+
},
|
398
|
+
}
|
399
|
+
|
400
|
+
# Prepare the final data dictionary
|
401
|
+
data = {
|
402
|
+
"common_params": {
|
403
|
+
"name": test_name,
|
404
|
+
"test_type": test_type,
|
405
|
+
"env_type": env_type,
|
406
|
+
"entrypoint": entrypoint,
|
407
|
+
"runner": runner_value,
|
408
|
+
"source": source,
|
409
|
+
"env_vars": {
|
410
|
+
"cpu_quota": 1,
|
411
|
+
"memory_quota": 4,
|
412
|
+
"cloud_settings": {},
|
413
|
+
"custom_cmd": custom_cmd,
|
414
|
+
},
|
415
|
+
"parallel_runners": 1,
|
416
|
+
"cc_env_vars": {},
|
417
|
+
"customization": {},
|
418
|
+
"location": "default", # TODO update location
|
419
|
+
},
|
420
|
+
"test_parameters": test_parameters,
|
421
|
+
"integrations": {
|
422
|
+
"reporters": {
|
423
|
+
"reporter_email": {
|
424
|
+
"id": email_integration["integration_id"],
|
425
|
+
"is_local": True,
|
426
|
+
"project_id": integrations_list[0]["project_id"], # Example project_id
|
427
|
+
"recipients": email_integration["recipients"],
|
428
|
+
}
|
429
|
+
}
|
430
|
+
},
|
431
|
+
"scheduling": [],
|
432
|
+
"run_test": False,
|
433
|
+
}
|
434
|
+
|
435
|
+
response = self.api_wrapper.create_test(data)
|
436
|
+
try:
|
437
|
+
info = "Test created successfully"
|
438
|
+
test_info = response.json()
|
439
|
+
except:
|
440
|
+
info = "Failed to create the test"
|
441
|
+
test_info = response.text
|
442
|
+
return f"{info}. {test_info}"
|
443
|
+
|
444
|
+
except Exception as e:
|
445
|
+
stacktrace = traceback.format_exc()
|
446
|
+
logger.error(f"Error while creating test: {stacktrace}")
|
447
|
+
raise ToolException(stacktrace)
|
448
|
+
|
449
|
+
# data = {"common_params":{"name":"toolkit_demo","test_type":"toolkit_demo","env_type":"toolkit_demo",
|
450
|
+
# "entrypoint":"tests/BasicEcommerceWithTransaction.jmx","runner":"v5.6.3",
|
451
|
+
# "source":{"name":"git_https","repo":"https://git.epam.com/epm-perf/boilerplate.git",
|
452
|
+
# "branch":"jmeter","username":"mykhailo_hunko@epam.com",
|
453
|
+
# "password":"{{secret.mykhailo_gitlab}}"},
|
454
|
+
# "env_vars":{"cpu_quota":2,"memory_quota":6,"cloud_settings":{},
|
455
|
+
# "custom_cmd":"-l /tmp/reports/jmeter.jtl -e -o /tmp/reports/html_report"},
|
456
|
+
# "parallel_runners":1,"cc_env_vars":{},"customization":{},"location":"default"},
|
457
|
+
# "test_parameters":[{"name":"VUSERS","default":"5","type":"string","description":"","action":""},
|
458
|
+
# {"name":"DURATION","default":"60","type":"string","description":"","action":""}],
|
459
|
+
# "integrations":{"reporters":{"reporter_email":{"id":1,"is_local":True,"project_id":36,
|
460
|
+
# "recipients":["mykhailo_hunko@epam.com"]}}},
|
461
|
+
# "scheduling":[],"run_test":True}
|
@@ -81,10 +81,28 @@ class CarrierClient(BaseModel):
|
|
81
81
|
endpoint = f"api/v1/backend_performance/tests/{self.credentials.project_id}"
|
82
82
|
return self.request('get', endpoint).get("rows", [])
|
83
83
|
|
84
|
+
def create_test(self, data):
|
85
|
+
endpoint = f"api/v1/backend_performance/tests/{self.credentials.project_id}"
|
86
|
+
full_url = f"{self.credentials.url.rstrip('/')}/{endpoint.lstrip('/')}"
|
87
|
+
headers = {'Authorization': f'bearer {self.credentials.token}'}
|
88
|
+
from json import dumps
|
89
|
+
# Serialize the `data` dictionary into a JSON string
|
90
|
+
form_data = {"data": dumps(data)}
|
91
|
+
# Send the POST request
|
92
|
+
res = requests.post(full_url, headers=headers, data=form_data)
|
93
|
+
print("************************* response")
|
94
|
+
print(res.text)
|
95
|
+
print("**********************************")
|
96
|
+
return res
|
97
|
+
|
84
98
|
def run_test(self, test_id: str, json_body):
|
85
99
|
endpoint = f"api/v1/backend_performance/test/{self.credentials.project_id}/{test_id}"
|
86
100
|
return self.request('post', endpoint, json=json_body).get("result_id", "")
|
87
101
|
|
102
|
+
def get_integrations(self, name: str):
|
103
|
+
endpoint = f"api/v1/integrations/integrations/{self.credentials.project_id}?name={name}"
|
104
|
+
return self.request('get', endpoint)
|
105
|
+
|
88
106
|
def run_ui_test(self, test_id: str, json_body):
|
89
107
|
"""Run a UI test with the given test ID and JSON body."""
|
90
108
|
endpoint = f"api/v1/ui_performance/test/{self.credentials.project_id}/{test_id}"
|
alita_sdk/tools/carrier/tools.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# import all available tools
|
2
2
|
from .tickets_tool import FetchTicketsTool, CreateTicketTool
|
3
3
|
from .backend_reports_tool import GetReportsTool, GetReportByIDTool, CreateExcelReportTool
|
4
|
-
from .backend_tests_tool import GetTestsTool, GetTestByIDTool, RunTestByIDTool
|
4
|
+
from .backend_tests_tool import GetTestsTool, GetTestByIDTool, RunTestByIDTool, CreateBackendTestTool
|
5
5
|
from .ui_reports_tool import GetUIReportsTool, GetUIReportByIDTool, GetUITestsTool
|
6
6
|
from .run_ui_test_tool import RunUITestTool
|
7
7
|
from .update_ui_test_schedule_tool import UpdateUITestScheduleTool
|
@@ -18,6 +18,7 @@ __all__ = [
|
|
18
18
|
{"name": "get_tests", "tool": GetTestsTool},
|
19
19
|
{"name": "get_test_by_id", "tool": GetTestByIDTool},
|
20
20
|
{"name": "run_test_by_id", "tool": RunTestByIDTool},
|
21
|
+
{"name": "create_backend_test", "tool": CreateBackendTestTool},
|
21
22
|
{"name": "get_ui_reports", "tool": GetUIReportsTool},
|
22
23
|
{"name": "get_ui_report_by_id", "tool": GetUIReportByIDTool},
|
23
24
|
{"name": "get_ui_tests", "tool": GetUITestsTool},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: alita_sdk
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.177
|
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>, Artem Dubrovskiy <ad13box@gmail.com>
|
6
6
|
License-Expression: Apache-2.0
|
@@ -126,7 +126,6 @@ Requires-Dist: langmem==0.0.27; extra == "tools"
|
|
126
126
|
Requires-Dist: textract-py3==2.1.1; extra == "tools"
|
127
127
|
Provides-Extra: community
|
128
128
|
Requires-Dist: retry-extended==0.2.3; extra == "community"
|
129
|
-
Requires-Dist: browser-use==0.1.43; extra == "community"
|
130
129
|
Requires-Dist: pyobjtojson==0.3; extra == "community"
|
131
130
|
Requires-Dist: elitea-analyse==0.1.2; extra == "community"
|
132
131
|
Provides-Extra: all
|
@@ -1,5 +1,5 @@
|
|
1
1
|
alita_sdk/__init__.py,sha256=fxeNiqiVpIFAJls31Oomifyrtd5gT9iPUTdkWjDOB2Y,656
|
2
|
-
alita_sdk/community/__init__.py,sha256=
|
2
|
+
alita_sdk/community/__init__.py,sha256=8N7wWwPhoyOq3p8wlV3-pb3l3nJCR8TUrtV9iIPLU88,2523
|
3
3
|
alita_sdk/community/utils.py,sha256=lvuCJaNqVPHOORJV6kIPcXJcdprVW_TJvERtYAEgpjM,249
|
4
4
|
alita_sdk/community/analysis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
alita_sdk/community/analysis/ado_analyse/__init__.py,sha256=ADjjyV2z7XmQhOv873Mrz_-W9jWxhWpiDJ0nujm0eZs,4232
|
@@ -10,37 +10,6 @@ alita_sdk/community/analysis/gitlab_analyse/__init__.py,sha256=6PgqvD0cX5evpT_vg
|
|
10
10
|
alita_sdk/community/analysis/gitlab_analyse/api_wrapper.py,sha256=xGX3io2rT_DJl1PMiP9d6lsw6xhr9L2h910raGk1s4w,6373
|
11
11
|
alita_sdk/community/analysis/jira_analyse/__init__.py,sha256=oyAVkjq4KZmSA1RiAijeo4oh9hNDgFmOCkDilUJ8DWs,6023
|
12
12
|
alita_sdk/community/analysis/jira_analyse/api_wrapper.py,sha256=Ui1GBWizIFGFOi98BtkPWxVITQbrv7xFZxxYjAFq66Q,9701
|
13
|
-
alita_sdk/community/browseruse/__init__.py,sha256=9GhPp8VTuTPJHdlM06PlauHmCqbXR6zMwg_EV1OCpsg,3609
|
14
|
-
alita_sdk/community/browseruse/api_wrapper.py,sha256=cu6Rik6Dugrlb4aomlKIwBHuTHmhWZhIfysXbO03-_c,10842
|
15
|
-
alita_sdk/community/deep_researcher/__init__.py,sha256=Gq0VWr5v6Mr0m1vsZmIUCh5rITlZIi7TU5BDjfm70ow,3433
|
16
|
-
alita_sdk/community/deep_researcher/api_wrapper.py,sha256=WoMkbGHcwDq_BsTnfehPEGu7QZP-mMQe1aWrqLxbMuk,4806
|
17
|
-
alita_sdk/community/deep_researcher/deep_research.py,sha256=qAX5Ghtk130e6UQ9ciy2lmkv0o-rBuVGuzneu4V1Wwk,7818
|
18
|
-
alita_sdk/community/deep_researcher/iterative_research.py,sha256=ROnIecAWufGXkExT1aUX7tLR_khifaqf_vRLNQ1UTps,16970
|
19
|
-
alita_sdk/community/deep_researcher/llm_config.py,sha256=WPSrTy8K9URHvHxauO0gKVkua_8RcO1TFvo4Vfsdsmk,3098
|
20
|
-
alita_sdk/community/deep_researcher/main.py,sha256=AAw6WOgx6zcL6bbQKlhIhZuDYgGQxdK7XEAn9f2N5Ik,2593
|
21
|
-
alita_sdk/community/deep_researcher/agents/__init__.py,sha256=MG9dF6z2AuDniIghfhrfXupO5DP9t1vNzMJO2SksO2o,52
|
22
|
-
alita_sdk/community/deep_researcher/agents/baseclass.py,sha256=vIw1ezRkGM5zCBFWrIRNlKEWhl5frdlfO-ywVavgrFM,6271
|
23
|
-
alita_sdk/community/deep_researcher/agents/knowledge_gap_agent.py,sha256=XC648-7LQ3UQglDaMqvf-jWzegEt1ykiigUydM_ZuOI,3467
|
24
|
-
alita_sdk/community/deep_researcher/agents/long_writer_agent.py,sha256=WDu_9qT5frX2rkPGmsAeUiD8Ram5UPllUg7-rKq4gUQ,10250
|
25
|
-
alita_sdk/community/deep_researcher/agents/planner_agent.py,sha256=aGvpVn0Wrtmzrati87sSQrTkxNdX0P8XjNQwwENmx1U,5736
|
26
|
-
alita_sdk/community/deep_researcher/agents/proofreader_agent.py,sha256=MfBoZMlDNKIGQp9c87bpIWBIdb0BBFkJ9ufqfFNRK2I,3618
|
27
|
-
alita_sdk/community/deep_researcher/agents/thinking_agent.py,sha256=VYyHVuYVDBP7ZLrgrGKYYD9e6v11krb0XJ4fzcrakGU,2948
|
28
|
-
alita_sdk/community/deep_researcher/agents/tool_selector_agent.py,sha256=2PK3CWKM1DVQnOjQNnj_5AY_OTMSH2tFkF9FzaW0Nvg,4026
|
29
|
-
alita_sdk/community/deep_researcher/agents/writer_agent.py,sha256=-qyoJjEcXTyPbEvxNVP_ni_xPmq3VNZdkBJwKKpvZbQ,2699
|
30
|
-
alita_sdk/community/deep_researcher/agents/tool_agents/__init__.py,sha256=zrbzyCDrUWhQ7ZRX-AK5fqYd-kcq8IHFZeFkmy77V3k,608
|
31
|
-
alita_sdk/community/deep_researcher/agents/tool_agents/crawl_agent.py,sha256=VBSsPmiBpz9L8QT49RyQ43nkMYO6rJirYcbmzXWxieE,3552
|
32
|
-
alita_sdk/community/deep_researcher/agents/tool_agents/search_agent.py,sha256=sQzUdt44Xm2sRB6lQ3nTTRtS41rVT7Zm4tACH3I5prA,3986
|
33
|
-
alita_sdk/community/deep_researcher/agents/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
34
|
-
alita_sdk/community/deep_researcher/agents/utils/parse_output.py,sha256=_9Jq3bvChaRaKuZbayc92DmqXZaOoj7nLSOZzyUGXWw,4963
|
35
|
-
alita_sdk/community/deep_researcher/examples/deep_example.py,sha256=xWDojQ8dwPLaZCPU2zkKfyeesFk2T1bwRlCO3hYqvEo,699
|
36
|
-
alita_sdk/community/deep_researcher/examples/iterative_example.py,sha256=k291pvU3BnMkNXFdw6GdekvpXSztouv5CYRXXaBT_-4,863
|
37
|
-
alita_sdk/community/deep_researcher/examples/report_plan_example.py,sha256=9xrLVksmnCPwhdgHqieqnmaW2b-DcGwB3vl6xXKiHs8,952
|
38
|
-
alita_sdk/community/deep_researcher/tools/__init__.py,sha256=-gLuDJIkSeLW4BRsS-maAIIz6pcyr_VrSUs34G63dTg,88
|
39
|
-
alita_sdk/community/deep_researcher/tools/crawl_website.py,sha256=oQ12KgpXB3P-6mbUVUONMmEqgsnZ_m5JTvrkjt4idik,4446
|
40
|
-
alita_sdk/community/deep_researcher/tools/web_search.py,sha256=PucwnPCwJwMyaEfHGCy2OxNyCUhF7Uvv61M-yzNO_Yc,11036
|
41
|
-
alita_sdk/community/deep_researcher/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
42
|
-
alita_sdk/community/deep_researcher/utils/md_to_pdf.py,sha256=EgCaUGLsP5-5F301aB60ZbwhhaxKK-EsSx0Ol_35fvw,246
|
43
|
-
alita_sdk/community/deep_researcher/utils/os.py,sha256=Q1xX7c7_p7EmuzzXIAY9TDmraDNvU0GGcpfgIfWKQ2A,793
|
44
13
|
alita_sdk/runtime/__init__.py,sha256=4W0UF-nl3QF2bvET5lnah4o24CoTwSoKXhuN0YnwvEE,828
|
45
14
|
alita_sdk/runtime/clients/__init__.py,sha256=BdehU5GBztN1Qi1Wul0cqlU46FxUfMnI6Vq2Zd_oq1M,296
|
46
15
|
alita_sdk/runtime/clients/artifact.py,sha256=4N2t5x3GibyXLq3Fvrv2o_VA7Z000yNfc-UN4eGsHZg,2679
|
@@ -160,18 +129,18 @@ alita_sdk/tools/browser/google_search_rag.py,sha256=QVHFbVwymiJGuno_HLSJOK1c_Mpg
|
|
160
129
|
alita_sdk/tools/browser/utils.py,sha256=4k3YM_f1Kqlhjz9vt2pNsGkvCjhy-EmY3nvcwdFCsLA,2501
|
161
130
|
alita_sdk/tools/browser/wiki.py,sha256=Qh3HBFd4dkS2VavXbFJOm4b8SjVSIe5xSD7CY1vEkKE,1126
|
162
131
|
alita_sdk/tools/carrier/__init__.py,sha256=pP-nk-dpqOkrvwcRY_szgwqoowyVNl_GobD4Inp-Qus,4435
|
163
|
-
alita_sdk/tools/carrier/api_wrapper.py,sha256=
|
132
|
+
alita_sdk/tools/carrier/api_wrapper.py,sha256=R8fyGesykTDJ1D2t7z1h_W9TO9B5GaqKaWI7OU9tdRE,8877
|
164
133
|
alita_sdk/tools/carrier/backend_reports_tool.py,sha256=2Z1DCt6f0XTrQcEoynxMFUnenhtYMuIt_epq4YBSLDE,12234
|
165
|
-
alita_sdk/tools/carrier/backend_tests_tool.py,sha256=
|
134
|
+
alita_sdk/tools/carrier/backend_tests_tool.py,sha256=xfcp0-CHLW_yi5eNeoepd9w8He_1ls_knnhuWt_Kjv4,21723
|
166
135
|
alita_sdk/tools/carrier/cancel_ui_test_tool.py,sha256=pD1sKEcZGBWJqFpgjeohMk93uuUPWruVJRPVVg90rpo,6438
|
167
|
-
alita_sdk/tools/carrier/carrier_sdk.py,sha256=
|
136
|
+
alita_sdk/tools/carrier/carrier_sdk.py,sha256=JDPgZ0MSUGEQf07ZBwBYpY-9RvYpXyyDj-cKZsx-3m0,14513
|
168
137
|
alita_sdk/tools/carrier/create_ui_excel_report_tool.py,sha256=8aSpkyIGXsOBTo8Ye_6p19v8OOl1y7QW47IJxZ6QDgM,20163
|
169
138
|
alita_sdk/tools/carrier/create_ui_test_tool.py,sha256=knKvPOo9usI2XHqZtcbBEBzKwB9tS7GEl9KIX78vJiA,8184
|
170
139
|
alita_sdk/tools/carrier/excel_reporter.py,sha256=fXptz7iaBDBcFSc8Ah8nZ9CSgugTONc5JMC1XcQEnfM,21487
|
171
140
|
alita_sdk/tools/carrier/lighthouse_excel_reporter.py,sha256=mVuU63tl2n-Gntx9RuedjEU0U5AP1APKsSx1DvJs7wk,6684
|
172
141
|
alita_sdk/tools/carrier/run_ui_test_tool.py,sha256=Wqfxi_jyOU6XxYGsTje2ftgm8O7PJRXRDHUwWcw8opM,26277
|
173
142
|
alita_sdk/tools/carrier/tickets_tool.py,sha256=d-wFyFWWTvV01o-hyssb2S-oLnr51b6tlNTUqA_CohY,8099
|
174
|
-
alita_sdk/tools/carrier/tools.py,sha256=
|
143
|
+
alita_sdk/tools/carrier/tools.py,sha256=6j0-_DJqOOBwMtpdSFHlOBcS44HWLBINh4RttpVN_cU,1679
|
175
144
|
alita_sdk/tools/carrier/ui_reports_tool.py,sha256=Y6EstTRCa9d11ipFUFGOYlpiEhFx7aOQcgZ_M5Gd1lQ,13708
|
176
145
|
alita_sdk/tools/carrier/update_ui_test_schedule_tool.py,sha256=jh9Q86cMCEqpsFopJPNIP0wlr7sYVa_3lhlq6lRmkGg,11850
|
177
146
|
alita_sdk/tools/carrier/utils.py,sha256=rl7aq-F6ed_PapDM15w8EtS0BkgsjpDrNdKYuDCMOaI,4376
|
@@ -326,8 +295,8 @@ alita_sdk/tools/zephyr_scale/api_wrapper.py,sha256=UHVQUVqcBc3SZvDfO78HSuBzwAsRw
|
|
326
295
|
alita_sdk/tools/zephyr_squad/__init__.py,sha256=rq4jOb3lRW2GXvAguk4H1KinO5f-zpygzhBJf-E1Ucw,2773
|
327
296
|
alita_sdk/tools/zephyr_squad/api_wrapper.py,sha256=iOMxyE7vOc_LwFB_nBMiSFXkNtvbptA4i-BrTlo7M0A,5854
|
328
297
|
alita_sdk/tools/zephyr_squad/zephyr_squad_cloud_client.py,sha256=IYUJoMFOMA70knLhLtAnuGoy3OK80RuqeQZ710oyIxE,3631
|
329
|
-
alita_sdk-0.3.
|
330
|
-
alita_sdk-0.3.
|
331
|
-
alita_sdk-0.3.
|
332
|
-
alita_sdk-0.3.
|
333
|
-
alita_sdk-0.3.
|
298
|
+
alita_sdk-0.3.177.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
299
|
+
alita_sdk-0.3.177.dist-info/METADATA,sha256=avoSyHmQjQ--BnjrSryL8zpwaJdw0q8FJpy9Mc3R7fA,18753
|
300
|
+
alita_sdk-0.3.177.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
301
|
+
alita_sdk-0.3.177.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
|
302
|
+
alita_sdk-0.3.177.dist-info/RECORD,,
|
@@ -1,73 +0,0 @@
|
|
1
|
-
from typing import List, Literal, Optional, Dict, Any
|
2
|
-
from langchain_community.agent_toolkits.base import BaseToolkit
|
3
|
-
from .api_wrapper import BrowserUseAPIWrapper
|
4
|
-
from langchain_core.tools import BaseTool
|
5
|
-
from alita_sdk.tools.base.tool import BaseAction
|
6
|
-
from pydantic import create_model, BaseModel, ConfigDict, Field
|
7
|
-
from alita_sdk.tools.utils import clean_string, TOOLKIT_SPLITTER, get_max_toolkit_length
|
8
|
-
|
9
|
-
name = "browser_use"
|
10
|
-
|
11
|
-
def get_tools(tool):
|
12
|
-
return BrowserUseToolkit().get_toolkit(
|
13
|
-
selected_tools=tool['settings'].get('selected_tools', []),
|
14
|
-
headless=tool['settings'].get('headless', True),
|
15
|
-
width=tool['settings'].get('width', 1280),
|
16
|
-
height=tool['settings'].get('height', 800),
|
17
|
-
cookies=tool['settings'].get('cookies', None),
|
18
|
-
disable_security=tool['settings'].get('disable_security', True),
|
19
|
-
proxy=tool['settings'].get('proxy', None),
|
20
|
-
extra_chromium_args=tool['settings'].get('extra_chromium_args', []),
|
21
|
-
bucket=tool['settings'].get('bucket', None),
|
22
|
-
alita=tool['settings'].get('alita'),
|
23
|
-
toolkit_name=tool.get('toolkit_name')
|
24
|
-
).get_tools()
|
25
|
-
|
26
|
-
toolkit_max_length = 25
|
27
|
-
|
28
|
-
class BrowserUseToolkit(BaseToolkit):
|
29
|
-
tools: List[BaseTool] = []
|
30
|
-
|
31
|
-
@staticmethod
|
32
|
-
def toolkit_config_schema() -> BaseModel:
|
33
|
-
selected_tools = {x['name']: x['args_schema'].schema() for x in
|
34
|
-
BrowserUseAPIWrapper.model_construct().get_available_tools()}
|
35
|
-
return create_model(
|
36
|
-
name,
|
37
|
-
headless=(bool, Field(description="Run browser in headless mode", default=True)),
|
38
|
-
width=(int, Field(description="Browser window width", default=1280)),
|
39
|
-
height=(int, Field(description="Browser window height", default=800)),
|
40
|
-
bucket=(Optional[str], Field(description="Bucket to store test results", default=None)),
|
41
|
-
cookies=(Optional[Dict[str, Any]], Field(description="Browser cookies as JSON", default=None)),
|
42
|
-
disable_security=(bool, Field(description="Disable browser security features", default=True)),
|
43
|
-
proxy=(Optional[Dict[str, str]], Field(description="Proxy settings", default=None)),
|
44
|
-
extra_chromium_args=(List[str], Field(description="Extra arguments to pass to the browser", default=[])),
|
45
|
-
selected_tools=(List[Literal[tuple(selected_tools)]],
|
46
|
-
Field(default=[], json_schema_extra={'args_schemas': selected_tools})),
|
47
|
-
__config__=ConfigDict(json_schema_extra={'metadata': {"label": "Browser Use", "icon_url": None, "hidden": True}})
|
48
|
-
)
|
49
|
-
|
50
|
-
@classmethod
|
51
|
-
def get_toolkit(cls, selected_tools: list[str] | None = None, toolkit_name: Optional[str] = None, **kwargs):
|
52
|
-
if selected_tools is None:
|
53
|
-
selected_tools = []
|
54
|
-
_api_wrapper = BrowserUseAPIWrapper(**kwargs)
|
55
|
-
prefix = clean_string(toolkit_name, toolkit_max_length) + TOOLKIT_SPLITTER if toolkit_name else ''
|
56
|
-
available_tools = _api_wrapper.get_available_tools()
|
57
|
-
tools = []
|
58
|
-
for tool in available_tools:
|
59
|
-
if selected_tools:
|
60
|
-
if tool["name"] not in selected_tools:
|
61
|
-
continue
|
62
|
-
tools.append(
|
63
|
-
BaseAction(
|
64
|
-
api_wrapper=_api_wrapper,
|
65
|
-
name=prefix + tool["name"],
|
66
|
-
description=f"Browser automation tool: {tool['name']}" + tool["description"],
|
67
|
-
args_schema=tool["args_schema"],
|
68
|
-
)
|
69
|
-
)
|
70
|
-
return cls(tools=tools)
|
71
|
-
|
72
|
-
def get_tools(self):
|
73
|
-
return self.tools
|