Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
358 commits
Select commit Hold shift + click to select a range
93d0e11
Development 2 Test (#239)
thiago-aixplain Aug 27, 2024
9a89f52
Update click dependency (#241)
thiago-aixplain Aug 28, 2024
cb0d313
Added input and output attributes to model (#244)
xainaz Sep 2, 2024
716d898
Eng 467 ai xplain sdk update finetune functional tests to cover all n…
xainaz Sep 3, 2024
50d7c6a
Merge branch 'test' into development
thiago-aixplain Sep 4, 2024
272488b
Merge to test (#246)
ikxplain Sep 4, 2024
f3d89ed
Added name to update (#245)
xainaz Sep 5, 2024
1700304
ENG-504: Make the agent architecture configurable (#243)
thiago-aixplain Sep 6, 2024
357e10d
Eng 544 ai xplain sdk update llm functional tests to cover all new ll…
xainaz Sep 9, 2024
e3f261e
Merge branch 'main' into test
ikxplain Sep 10, 2024
731a150
Eng 399 - Introducing Metric Nodes in Designer (#247)
kadirpekel Sep 10, 2024
0e62774
Add TeamAgent factory and module. Fix typos in code comments (#227)
lucas-aixplain Sep 12, 2024
7f64955
Merge branch 'test' into development
ikxplain Sep 19, 2024
45d4c3f
Merge to test (#250)
ikxplain Sep 19, 2024
b93a706
Add fileMetadata information in script node (#251)
thiago-aixplain Sep 20, 2024
ea846e6
Merge branch 'test' into development
thiago-aixplain Sep 23, 2024
a747d69
Development 2 Test (#252)
thiago-aixplain Sep 23, 2024
f7bd983
Name Validation of Agents and Team Agents (#253)
thiago-aixplain Sep 23, 2024
357aaf2
Development 2 Test (#254)
thiago-aixplain Sep 24, 2024
b886287
Fixes in pipeline design and reconstructor node (#255)
thiago-aixplain Sep 26, 2024
350e563
Development 2 Test (#256)
thiago-aixplain Sep 26, 2024
14f9000
Merge branch 'main' into test
ikxplain Sep 27, 2024
8bd6460
Add get method to agent and team agent tests (#259)
lucas-aixplain Sep 29, 2024
4bd9bc0
initial API key factory (#261)
xainaz Oct 7, 2024
63e0f82
BUG-177: Fixed pipeline validation (#262)
kadirpekel Oct 7, 2024
5b1d481
Merge to test (#263)
ikxplain Oct 8, 2024
0208be1
Get usage limit (#264)
thiago-aixplain Oct 8, 2024
f515da6
Merge branch 'main' into test
thiago-aixplain Oct 9, 2024
662420e
Update SDK version (#266)
thiago-aixplain Oct 9, 2024
08c925e
Merge branch 'test' into development
thiago-aixplain Oct 9, 2024
b9e8739
Development 2 Test (#267)
thiago-aixplain Oct 9, 2024
828bdee
Eng 739 get api key (#268)
thiago-aixplain Oct 9, 2024
5ece957
Merge branch 'test' into development
thiago-aixplain Oct 9, 2024
629e934
Development (#269)
ikxplain Oct 9, 2024
b74af97
Merge branch 'main' into test
thiago-aixplain Oct 9, 2024
b13c21d
Fix Update API Key Bug (#272)
thiago-aixplain Oct 10, 2024
2a2a476
Merge branch 'test' into development
thiago-aixplain Oct 10, 2024
9149952
Development 2 Test (#273)
thiago-aixplain Oct 10, 2024
f6b783b
Merge branch 'main' into test
thiago-aixplain Oct 10, 2024
8182293
Eng 735 ai xplain sdk improve error log messages (#271)
xainaz Oct 16, 2024
ecba34f
Max tokens and iterations in agents/teams (#276)
thiago-aixplain Oct 17, 2024
2127cc5
Update model running endpoints from v1 to v2 (#275)
thiago-aixplain Oct 17, 2024
736a7b1
Eng 711 new model endpoints (#278)
thiago-aixplain Oct 17, 2024
5f8ee84
Merge to test (#280)
ikxplain Oct 22, 2024
fa33531
Group of Improvements in API Key CRUD (#277)
thiago-aixplain Oct 25, 2024
349ea60
Bug 149 - Path validation removed and decision node output param hand…
kadirpekel Oct 25, 2024
dd46dcf
Changed function to required field (#283)
xainaz Oct 29, 2024
b86d5e7
BUG-206: Fixed passthrough parameter reflection to next node (#284)
kadirpekel Oct 29, 2024
0dbfab1
Get model description (#286)
thiago-aixplain Oct 29, 2024
2eebc27
Merge branch 'test' into development
thiago-aixplain Oct 29, 2024
50746a8
Development 2 Test (#287)
thiago-aixplain Oct 29, 2024
7ce3c73
Fixing default parameters setting (#288)
thiago-aixplain Oct 29, 2024
9fbc3e6
Merge branch 'test' into development
thiago-aixplain Oct 29, 2024
5a0f40b
Development 2 Test (#289)
thiago-aixplain Oct 29, 2024
09908ed
Eng 893 ai xplain sdk improve error log message when deleting an agen…
xainaz Oct 30, 2024
c3c0228
Fixes of errors pointed by functional test (#291)
thiago-aixplain Oct 30, 2024
45e0ff0
Merge branch 'test' into development
thiago-aixplain Oct 30, 2024
529b247
Development 2 Test (#293)
thiago-aixplain Oct 30, 2024
ef5d61f
Fix agent and team agent functional tests (#294)
lucas-aixplain Oct 31, 2024
1e43ed3
designer pipeline building are now compatible with custom inputs (#296)
kadirpekel Oct 31, 2024
680e355
Merge branch 'main' into test
ikxplain Nov 1, 2024
d77348a
Model Response Class (#279)
xainaz Nov 4, 2024
d1538af
Set Model Tool description (#292)
thiago-aixplain Nov 4, 2024
d731ff0
Eng 812 update agents (#285)
thiago-aixplain Nov 4, 2024
8340687
Service mode parameter in the SDK (#295)
thiago-aixplain Nov 4, 2024
4e79c02
Merge branch 'test' into development
ikxplain Nov 5, 2024
ffb997e
Merge to test (#301)
ikxplain Nov 5, 2024
f1bd8f3
BUG-233 Prompt variables are now populated and validated automaticall…
kadirpekel Nov 7, 2024
e2d1be1
Fix check_storage_type to not detect folder as a file (#302)
lucas-aixplain Nov 8, 2024
9700903
Merge branch 'test' into development
thiago-aixplain Nov 11, 2024
3754cc4
ENG-979 New functional test for script nodes (#305)
kadirpekel Nov 11, 2024
6353254
Bug 228 sdk always return model response when running model (#304)
xainaz Nov 11, 2024
b5e2285
Make function filter in model search optional (#307)
thiago-aixplain Nov 11, 2024
d273330
Set default 'parameters' to None and adding tests (#300)
lucas-aixplain Nov 11, 2024
705e44c
Development 2 Test (#308)
thiago-aixplain Nov 11, 2024
4eb3ac2
Fixing pipeline poll bug (#309)
thiago-aixplain Nov 13, 2024
fe5dd2f
Fixing pipeline poll (#310)
thiago-aixplain Nov 13, 2024
3af70da
Merge branch 'main' into test
thiago-aixplain Nov 18, 2024
a472790
Hotfix: Increase benchmark test timeout
shreyasXplain Nov 18, 2024
2081205
Merge branch 'test' into development
thiago-aixplain Nov 19, 2024
332bd83
Eng-1070: agent/team's output format (#316)
thiago-aixplain Nov 20, 2024
a3435df
Merge to test (#315)
ikxplain Nov 20, 2024
574398f
Hotfix: Increase benchmark test timeout (#312)
shreyasXplain Nov 21, 2024
f8ca14e
Default parameter on ModelResponse.get (#319)
thiago-aixplain Nov 25, 2024
f4b251a
ENG-1094: Validate prompt variables (#317)
thiago-aixplain Nov 25, 2024
664d081
added tests (#320)
xainaz Nov 25, 2024
93e24f3
added aixplain key (#314)
xainaz Nov 25, 2024
bfb5f68
Merge branch 'test' into development
thiago-aixplain Nov 25, 2024
778dd26
Development 2 Test (#322)
thiago-aixplain Nov 25, 2024
c01ade5
Merge branch 'main' into test
thiago-aixplain Nov 26, 2024
540b0a1
ENG-1110: Onboard Utilities (#321)
thiago-aixplain Nov 27, 2024
14765a8
ModelResponse.__setitem__ (#325)
thiago-aixplain Nov 27, 2024
3852e2d
Merge
thiago-aixplain Dec 4, 2024
a31878c
Merge to test (#328)
ikxplain Dec 4, 2024
7732dad
ENG-1129: aixplain sdk caching functions (#324)
xainaz Dec 4, 2024
3ccbf62
ENG-1110: onboard utility model (#329)
thiago-aixplain Dec 4, 2024
b7ece3f
BUG-262: Payload gets values from both parameters and data (#327)
xainaz Dec 5, 2024
14c26d4
Fixing validation of utility models (#331)
thiago-aixplain Dec 9, 2024
88a0afd
Merge branch 'test' into development
thiago-aixplain Dec 10, 2024
a3d4bb2
Development 2 Test (#333)
thiago-aixplain Dec 10, 2024
717b2b1
ENG-1110: Onboarding an Utility Model (#334)
thiago-aixplain Dec 10, 2024
478495c
Merge branch 'test' into development
thiago-aixplain Dec 11, 2024
0744a4f
Development 2 Test (#335)
thiago-aixplain Dec 11, 2024
4988de0
BUG-283: Fix finetune functional tests (#336)
lucas-aixplain Dec 11, 2024
cc92516
Improvements in functional tests and set default temperature on LLMs …
thiago-aixplain Dec 12, 2024
9ccaf1d
Development 2 Test (#338)
thiago-aixplain Dec 12, 2024
ef17efd
BUG-288: Input parameters of utility models (#339)
thiago-aixplain Dec 13, 2024
7e33a2a
Merge branch 'test' into development
thiago-aixplain Dec 16, 2024
49ea399
Development 2 Test (#341)
thiago-aixplain Dec 16, 2024
88f18fc
Merge
thiago-aixplain Dec 16, 2024
125527b
ENG-1235 Utility functions has now special treatment as they need dyn…
kadirpekel Dec 19, 2024
a7b5a46
Add restriction when setting Utilities function in model tool (#346)
lucas-aixplain Dec 20, 2024
9e787b9
ENG-1245: transition from update to save (#345)
ahmetgunduz Dec 23, 2024
6f12c91
ENG-1153: Enabling custom python code tool (#326)
thiago-aixplain Dec 23, 2024
7628004
ENG-1230: set aixplain as default supplier (#348)
thiago-aixplain Dec 24, 2024
5ddb867
ENG-1069: Initial updates for airv2 model (#330)
xainaz Dec 26, 2024
4cb3b74
ENG-1282: Set default pipeline engine version to 3.0 with fallback to…
kadirpekel Dec 30, 2024
889c641
ENG-1288: Added diarization test into pipelines functional tests (#351)
kadirpekel Dec 30, 2024
57acca8
Merge branch 'test' into development
ikxplain Jan 2, 2025
69b235a
Merge to test (#353)
ikxplain Jan 2, 2025
5ee6b97
Set method on pipeline saving (#354)
thiago-aixplain Jan 2, 2025
48c774d
BUG-275: team deployment (#332)
thiago-aixplain Jan 2, 2025
220ddda
ENG-1289: Enabled reconstructor and segmentor designer nodes when pip…
kadirpekel Jan 2, 2025
1b05a0c
ENG-1282 revert (#355)
thiago-aixplain Jan 3, 2025
3024cc0
Merge branch 'test' into development
thiago-aixplain Jan 6, 2025
6057919
Development 2 Test (#357)
thiago-aixplain Jan 6, 2025
cb8c65a
Bug 309 utility model update save without code (#358)
ahmetgunduz Jan 9, 2025
336a0f3
ENG-1393: Index improvements (#360)
thiago-aixplain Jan 13, 2025
e16020b
BUG-329: Fix agent validation when using api key (#361)
lucas-aixplain Jan 13, 2025
cf3dad0
Get error in other field (#359)
thiago-aixplain Jan 14, 2025
62a904c
ENG-1393: index improvements (#363)
thiago-aixplain Jan 14, 2025
fc0347c
Development (#365)
ikxplain Jan 15, 2025
0cef496
BUG-338: Fixing custom code test (#366)
thiago-aixplain Jan 17, 2025
06de715
Development 2 Test (#367)
thiago-aixplain Jan 17, 2025
244c0be
Index Factory List/Test (#369)
thiago-aixplain Jan 18, 2025
2033d90
Merge branch 'test' into development
thiago-aixplain Jan 18, 2025
2264b7c
Development 2 Test (#370)
thiago-aixplain Jan 18, 2025
6c99b05
Merge branch 'main' into test
thiago-aixplain Jan 18, 2025
54fd94c
ENG-1422 validation (#362)
OsujiCC Jan 20, 2025
450d53f
ENG-1272: Added Agent Response, and edited unit tests (#347)
xainaz Jan 20, 2025
8acd40f
Prod-1534: Utility Asset Improvements (#364)
ahmetgunduz Jan 22, 2025
56627d7
Temporaly set utility asset status to onboarded by default (#377)
ahmetgunduz Jan 24, 2025
884b496
for temporarily set the status to onboarded and fixed tests according…
ahmetgunduz Jan 24, 2025
1102629
ENG-1494: Listing models by IDs (#378)
thiago-aixplain Jan 24, 2025
49f02dd
ENG-1471: adding agent role filed (#374)
thiago-aixplain Jan 28, 2025
8d3a524
Fixing intermediate steps problem (#380)
thiago-aixplain Jan 28, 2025
6a97d84
merge to test (#381)
hadi-aix Jan 29, 2025
d790982
Fix CustomPythonCodeTool and add tests (#382)
lucas-aixplain Jan 31, 2025
440f0da
ENG-1291: Adding agents tasks (#373)
thiago-aixplain Jan 31, 2025
a9fc709
ENG-1378: Add default parameters to Model tool (#372)
lucas-aixplain Jan 31, 2025
0c84e4b
ENG-1484: Added an inspector Id to the team agent (#375)
OsujiCC Feb 1, 2025
ecfebf9
ENG 1544: block mentalist without inspector for now and edit the test…
OsujiCC Feb 3, 2025
70863bb
ENG-1291: agent tasks (revert code to the 'query' attribute requireme…
thiago-aixplain Feb 3, 2025
df232c5
BUG-371: Fixing descriptiption -> role in parametrized agent test (#385)
thiago-aixplain Feb 4, 2025
c546351
ENG-1332: Started implementing new aixplain programmatic api (#356)
kadirpekel Feb 4, 2025
1c530d9
Merge developement
thiago-aixplain Feb 4, 2025
b3974eb
Update return type so it works with python 3.8 (#390)
lucas-aixplain Feb 7, 2025
4bbcf82
Update return type so it works with python 3.8 (#390) (#391)
thiago-aixplain Feb 7, 2025
5096031
ENG-1557: model params are now available for designer assets (#387)
kadirpekel Feb 7, 2025
cb7f809
ENG-1559: Fixed designer tests (#388)
kadirpekel Feb 7, 2025
ff739a4
Merge branch 'main' into test
lucas-aixplain Feb 7, 2025
1870dea
Use input api key to list models when given (#395)
thiago-aixplain Feb 10, 2025
2b5c9ec
BUG-375 new functional test regarding ensuring failure (#396)
kadirpekel Feb 10, 2025
168f2f5
Role 2 Instructions (#393)
thiago-aixplain Feb 10, 2025
f74a27f
added validate check when s3 link (#399)
ahmetgunduz Feb 13, 2025
9133b78
Merge branch 'test' into development
ikxplain Feb 13, 2025
b7accd9
Merge to test (#402)
ikxplain Feb 13, 2025
b7d3538
ENG-1392: SQL tool in Agents (#400)
thiago-aixplain Feb 17, 2025
99aac2c
Development 2 Test (#407)
thiago-aixplain Feb 18, 2025
e53e7af
Eng 1627: Enable mentalist without inspector (#408)
OsujiCC Feb 19, 2025
c9a0f2b
overwrited the data field of parameters with s3 path (#405)
ahmetgunduz Feb 19, 2025
411f04d
ENG-791: Pipeline Response Changes (#282)
xainaz Feb 19, 2025
463beca
BUG-400: pipeline_test tests fixed (#409)
kadirpekel Feb 24, 2025
1acce59
BUG-382: Fixing validation of team and agents (#406)
kadirpekel Feb 24, 2025
d84a606
Setting the version of the pipeline appropriately (#410)
thiago-aixplain Feb 25, 2025
a48fc2d
BUG-382 tests fixed (#415)
kadirpekel Feb 25, 2025
3abe609
Fix ModelFactory.get() calls in agent/team_agent.create() (#411)
lucas-aixplain Feb 26, 2025
78dde57
'tatus ->status bug fixed ' (#416)
ahmetgunduz Feb 26, 2025
1891040
BUG-382: fixed tests (#418)
kadirpekel Feb 26, 2025
3720f64
Merge branch 'test' into development
thiago-aixplain Feb 27, 2025
43c46f1
Development 2 Test (#412)
thiago-aixplain Feb 27, 2025
35608d8
feat: add functional tests.
ikxplain Mar 6, 2025
e102ae8
feat: add functional tests.
ikxplain Mar 6, 2025
a456703
feat: add functional tests.
ikxplain Mar 6, 2025
793b45b
feat: add functional tests.
ikxplain Mar 6, 2025
dea2341
feat: add functional tests.
ikxplain Mar 6, 2025
c035f32
feat: add functional tests.
ikxplain Mar 6, 2025
9642abc
feat: add functional tests.
ikxplain Mar 6, 2025
d50ae74
feat: add functional tests.
ikxplain Mar 6, 2025
9ca2cc3
feat: add functional tests.
ikxplain Mar 6, 2025
0b5d276
feat: add functional tests.
ikxplain Mar 6, 2025
9bf702c
feat: add functional tests.
ikxplain Mar 6, 2025
106238b
feat: add functional tests.
ikxplain Mar 6, 2025
c778a93
feat: add functional tests.
ikxplain Mar 6, 2025
a4ba161
removed pipeline test file (#425)
xainaz Mar 7, 2025
11001ea
Eng 1392 sqllite (#421)
ahmetgunduz Mar 7, 2025
4423d93
Development 2 Test (#426)
thiago-aixplain Mar 7, 2025
43a516c
Bug 431 (#429)
kadirpekel Mar 12, 2025
3a82c70
Update finetune functional tests (#432)
lucas-aixplain Mar 12, 2025
7fe8073
Improve function tests workflow
ikxplain Mar 13, 2025
4c8a21a
Improve function tests workflow
ikxplain Mar 13, 2025
35e486e
Improve function tests workflow
ikxplain Mar 13, 2025
28f42f2
Merge to test (#435)
ikxplain Mar 13, 2025
62be125
Utility model bulk bugs (#430)
ahmetgunduz Mar 13, 2025
331d877
Source type as ENUM for create sql tool (#428)
ahmetgunduz Mar 13, 2025
a47613e
Name parameter set for tools (#419)
ahmetgunduz Mar 13, 2025
38b4c4e
Added type checking of source_type and updated tests (#436)
ahmetgunduz Mar 13, 2025
5104a75
Improve function tests workflow
ikxplain Mar 14, 2025
1d487ce
Eng 1649 agentification improve tool intermediate steps for better vi…
ahmetgunduz Mar 14, 2025
8dfa928
fixed completed field (#438)
xainaz Mar 17, 2025
d0386a0
ENG-1734: Add new inspector arguments (#431)
yunsukim86 Mar 20, 2025
26bf54a
Fix Finetune functional tests and problematic unit tests (#445)
lucas-aixplain Mar 21, 2025
6619a1e
BUG-443:Fix the table name setting of CSV Tool (#447)
ahmetgunduz Mar 21, 2025
7d80644
ENG-1842: Utility asset status set to draft as default (#449)
ahmetgunduz Mar 24, 2025
b912157
Adding pipeline ID and poll URL on execution logs (#453)
thiago-aixplain Mar 24, 2025
3ee80da
ENG-1846: HOTFIX - Fix Finetune functional tests and problematic unit…
lucas-aixplain Mar 24, 2025
67c15ac
Team agent functional tests fix (#450)
yunsukim86 Mar 25, 2025
b8a1f70
Fix metadata naming syntax (#452)
thiago-aixplain Mar 25, 2025
317398b
Add main workflow to test
ikxplain Mar 25, 2025
e0a85a0
Revert "Team agent functional tests fix (#450)" (#457)
lucas-aixplain Mar 26, 2025
695f044
ENG-1616: Enable embedding models for air v2 (#403)
thiago-aixplain Mar 26, 2025
a6317ea
Merge branch 'main' into test
thiago-aixplain Mar 27, 2025
6c4a07e
Merge branch 'test' into development
lucas-aixplain Mar 29, 2025
0497f90
Merge to test (#465)
ikxplain Mar 31, 2025
155a80b
ENG-1899: Fixing test model ids test (#466)
thiago-aixplain Mar 31, 2025
38a6b12
Set unique api key name in api key functional test (#467)
lucas-aixplain Mar 31, 2025
97b8594
ENG-1832 add air 2 functionalities to the sdk (#456)
Muhammad-Elmallah Mar 31, 2025
6df6409
Merge branch 'test' into development
ikxplain Mar 31, 2025
6a567d8
Fix general assets and api key functional tests (#468)
lucas-aixplain Mar 31, 2025
55c04a8
BUG-463: Fix when When Utility model code updated inputs should also …
ahmetgunduz Apr 1, 2025
42e999c
BUG-460: raise error if poll fails (#463)
xainaz Apr 1, 2025
f65e542
ENG-1830: Setting default tool description (#442)
thiago-aixplain Apr 1, 2025
61ad242
ENG-1835: aixplain sdk objectify responses from team agents (#448)
OsujiCC Apr 1, 2025
9f9eae4
edit the userwarning (#469)
OsujiCC Apr 1, 2025
7050224
Bump jinja2 from 3.1.4 to 3.1.6 (#420)
dependabot[bot] Apr 1, 2025
30e4ed4
ENG-1851: Update test and main workflows to run unit tests - Sync wit…
lucas-aixplain Apr 2, 2025
b26e6ea
ENG-1851: Update test and main workflows to run unit tests (#472)
lucas-aixplain Apr 2, 2025
27ad1c5
Fix team agent parametrized functional test (#470)
lucas-aixplain Apr 2, 2025
dc12be6
ENG-1917: Fix team agent parametrized functional test - Sync with dev…
lucas-aixplain Apr 2, 2025
63eaa09
BUG-447: Renamed decision node output param along with dataSourceId c…
kadirpekel Apr 3, 2025
1b3a5b8
ENG-1933: Add two new embedding models to aiR (BGE, E5) (#478)
Muhammad-Elmallah Apr 4, 2025
5afccf9
Eng 1933 add both e 5 and bge models to ai r (#480)
Muhammad-Elmallah Apr 8, 2025
a5b1c8f
Handle case when agent function is none (#482)
lucas-aixplain Apr 8, 2025
d7f732c
Fix BUG-482: model tool creation does not check status of model (#481)
ahmetgunduz Apr 9, 2025
19348d3
Eng 1852 Parallelizing functional tests during CI process (#462)
kadirpekel Apr 9, 2025
6aa52b2
Merge remote-tracking branch 'origin/test' into test
ikxplain Apr 11, 2025
a1d83b7
ENG-1852: Hotfix, added fail-fast option (#488) (#489)
lucas-aixplain Apr 11, 2025
3b5c403
Fix: file not deleted in test_sql_tool_with_csv test
ahmetgunduz Apr 16, 2025
e6a400a
ENG-2007: Fix agent and team agent parametrized functional test (#494)
lucas-aixplain Apr 17, 2025
a1723bb
Merge branch 'main' into test
lucas-aixplain Apr 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 42 additions & 51 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,37 @@
name: Run Tests on Production Environment
name: Run Tests

on:
push:
branches:
- main
pull_request:
branches:
- main
# any branch other than main, will use the test key
- test
workflow_dispatch:

jobs:
test:
setup-and-test:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
test-suite: [
'tests/unit',
'tests/functional/file_asset',
'tests/functional/data_asset',
'tests/functional/benchmark',
'tests/functional/model',
'tests/functional/pipelines/run_test.py --pipeline_version 2.0 --sdk_version v1 --sdk_version_param PipelineFactory',
'tests/functional/pipelines/run_test.py --pipeline_version 2.0 --sdk_version v2 --sdk_version_param PipelineFactory',
'tests/functional/pipelines/run_test.py --pipeline_version 3.0 --sdk_version v1 --sdk_version_param PipelineFactory',
'tests/functional/pipelines/run_test.py --pipeline_version 3.0 --sdk_version v2 --sdk_version_param PipelineFactory',
'tests/functional/pipelines/designer_test.py',
'tests/functional/pipelines/create_test.py',
'tests/functional/finetune --sdk_version v1 --sdk_version_param FinetuneFactory',
'tests/functional/finetune --sdk_version v2 --sdk_version_param FinetuneFactory',
'tests/functional/general_assets',
'tests/functional/apikey',
'tests/functional/agent tests/functional/team_agent',
]
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -21,54 +40,26 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.8"

cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[test]"

- name: Set environment variables
run: |
echo "TEAM_API_KEY=${{ secrets.TEAM_API_KEY_PROD }}" >> $GITHUB_ENV
echo "BACKEND_URL=https://platform-api.aixplain.com" >> $GITHUB_ENV
echo "MODELS_RUN_URL=https://models.aixplain.com/api/v1/execute" >> $GITHUB_ENV
echo "PIPELINES_RUN_URL=https://platform-api.aixplain.com/assets/pipeline/execution/run" >> $GITHUB_ENV

- name: Run Unit Tests
continue-on-error: true
run: python -m pytest tests/unit

- name: Run General Assets
continue-on-error: true
run: python -m pytest tests/functional/general_assets

- name: Run File Asset
continue-on-error: true
run: python -m pytest tests/functional/file_asset

- name: Run Agent
continue-on-error: true
run: python -m pytest tests/functional/agent

- name: Run Team Agent
continue-on-error: true
run: python -m pytest tests/functional/team_agent

- name: Run Data
continue-on-error: true
run: python -m pytest tests/functional/data_asset

- name: Run Benchmark
continue-on-error: true
run: python -m pytest tests/functional/benchmark

- name: Run Pipelines
continue-on-error: true
run: python -m pytest tests/functional/pipelines

- name: Run Api Key
continue-on-error: true
run: python -m pytest tests/functional/apikey

- name: Run Finetuner
continue-on-error: true
run: python -m pytest tests/functional/finetune
if [ "${{ github.ref_name }}" = "refs/heads/main" ]; then
echo "TEAM_API_KEY=${{ secrets.TEAM_API_KEY_PROD }}" >> $GITHUB_ENV
echo "BACKEND_URL=https://platform-api.aixplain.com" >> $GITHUB_ENV
echo "MODELS_RUN_URL=https://models.aixplain.com/api/v1/execute" >> $GITHUB_ENV
echo "PIPELINES_RUN_URL=https://platform-api.aixplain.com/assets/pipeline/execution/run" >> $GITHUB_ENV
else
echo "TEAM_API_KEY=${{ secrets.TEAM_API_KEY }}" >> $GITHUB_ENV
echo "BACKEND_URL=https://test-platform-api.aixplain.com" >> $GITHUB_ENV
echo "MODELS_RUN_URL=https://test-models.aixplain.com/api/v1/execute" >> $GITHUB_ENV
echo "PIPELINES_RUN_URL=https://test-platform-api.aixplain.com/assets/pipeline/execution/run" >> $GITHUB_ENV
fi

- name: Run Tests
run: python -m pytest ${{ matrix.test-suite}}
75 changes: 0 additions & 75 deletions .github/workflows/test.yaml

This file was deleted.

5 changes: 5 additions & 0 deletions aixplain/enums/embedding_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ class EmbeddingModel(Enum):
OPENAI_ADA002 = "6734c55df127847059324d9e"
SNOWFLAKE_ARCTIC_EMBED_L_V2_0 = "678a4f8547f687504744960a"
JINA_CLIP_V2_MULTIMODAL = "67c5f705d8f6a65d6f74d732"
MULTILINGUAL_E5_LARGE = "67efd0772a0a850afa045af3"
BGE_M3 = "67f401032a0a850afa045b19"




def __str__(self):
return self._value_
6 changes: 3 additions & 3 deletions aixplain/factories/agent_factory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def create(
Agent: created Agent
"""
warnings.warn(
"The 'instructions' parameter was recently added and serves the same purpose as 'description' did previously: set the role of the agent as a system prompt. "
"The 'description' parameter is still required and should be used to set a short summary of the agent's purpose. "
"For the next releases, the 'instructions' parameter will be required.",
"Use `instructions` to define the **system prompt**. "
"Use `description` to provide a **short summary** of the agent for metadata and dashboard display. "
"Note: In upcoming releases, `instructions` will become a required parameter.",
UserWarning,
)
from aixplain.factories.agent_factory.utils import build_agent
Expand Down
14 changes: 12 additions & 2 deletions aixplain/factories/agent_factory/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,15 @@ def build_tool(tool: Dict):
]:
supplier = supplier_
break
assert "function" in tool, "Function is required for model tools"
function_name = tool.get("function")
try:
function = Function(function_name)
except ValueError:
valid_functions = [func.value for func in Function]
raise ValueError(f"Function {function_name} is not a valid function. The valid functions are: {valid_functions}")
tool = ModelTool(
function=Function(tool.get("function", None)),
function=function,
supplier=supplier,
version=tool["version"],
model=tool["assetId"],
Expand All @@ -63,7 +70,7 @@ def build_tool(tool: Dict):
description=tool["description"], database=database, schema=schema, tables=tables, enable_commit=enable_commit
)
else:
raise Exception("Agent Creation Error: Tool type not supported.")
raise ValueError("Agent Creation Error: Tool type not supported.")

return tool

Expand All @@ -77,6 +84,9 @@ def build_agent(payload: Dict, tools: List[Tool] = None, api_key: Text = config.
for tool in tools_dict:
try:
payload_tools.append(build_tool(tool))
except (ValueError, AssertionError) as e:
logging.warning(str(e))
continue
except Exception:
logging.warning(
f"Tool {tool['assetId']} is not available. Make sure it exists or you have access to it. "
Expand Down
3 changes: 2 additions & 1 deletion aixplain/factories/model_factory/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from aixplain.modules.model.llm_model import LLM
from aixplain.modules.model.index_model import IndexModel
from aixplain.modules.model.utility_model import UtilityModel, UtilityModelInput
from aixplain.enums import DataType, Function, Language, OwnershipType, Supplier, SortBy, SortOrder
from aixplain.enums import DataType, Function, Language, OwnershipType, Supplier, SortBy, SortOrder, AssetStatus
from aixplain.utils import config
from aixplain.utils.file_utils import _request_with_retry
from datetime import datetime
Expand Down Expand Up @@ -80,6 +80,7 @@ def create_model_from_response(response: Dict) -> Model:
version=response["version"]["id"],
inputs=inputs,
temperature=temperature,
status=response.get("status", AssetStatus.DRAFT),
)


Expand Down
Loading
Loading