Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
a7ac7ad
ENG-1852: Hotfix, added fail-fast option (#488)
kadirpekel Apr 11, 2025
b0887bd
Fix: BUG-503 failed to update utility tool after get (#491)
ahmetgunduz Apr 16, 2025
89daf2f
Bug-503-fix Update (#493)
ahmetgunduz Apr 16, 2025
6bf7d00
ENG-1920: added sentry cred (#476)
xainaz Apr 16, 2025
9e2b03c
Read input variables correctly (#496)
thiago-aixplain Apr 17, 2025
409a893
Fix: file not deleted in test_sql_tool_with_csv test (#492)
ahmetgunduz Apr 17, 2025
3acfacd
ENG-2007: Fix agent and team agent parametrized functional test - Syn…
lucas-aixplain Apr 17, 2025
da7ec38
ENG-1789: Add multiple index backbones support (#443)
basitanees Apr 23, 2025
d360780
ENG-2049: rename air functions (#500)
thiago-aixplain Apr 24, 2025
24e88da
ENG 1924: aixplain sdk new test cases for agents using utility and pi…
OsujiCC Apr 24, 2025
044d8d8
add pydantic requirement (#502)
basitanees Apr 25, 2025
4efdbc8
ENG-1978: Adding instructions to teams (#485)
thiago-aixplain Apr 25, 2025
ab2fcc5
BUG-504: Merged paramMappings for the same link vectors (#499)
kadirpekel Apr 25, 2025
268cc1a
ENG-1836: Set name of tools on the SDK (#501)
thiago-aixplain Apr 28, 2025
9796d19
Eng 2051 Improvements on CI flow (#509)
kadirpekel Apr 30, 2025
f0837fc
Add a finetuned version of BGE model (#512)
Muhammad-Elmallah May 5, 2025
511bf5f
ENG-2055-Aixplain-SDK-Centralized-Error-Handling (#510)
ahmetgunduz May 6, 2025
0c4edf4
ENG-1862:Added status to Tools and deployment check for Agent and Tea…
ahmetgunduz May 6, 2025
0989c51
Merge branch 'test' into development
hadi-aix May 8, 2025
84baed8
Fix: BUG-543 SQL Tool upload db issue (#519)
ahmetgunduz May 9, 2025
de6a1c4
ENG-2028: model streaming (#506)
thiago-aixplain May 9, 2025
b909a54
BUG-542-Utility-Model-Update-Test-Failing-in-SDK (#515)
ahmetgunduz May 9, 2025
8aa3d31
ENG-2115 fixing agent tests (#522)
thiago-aixplain May 9, 2025
4f20c65
Merge branch 'test' into development
thiago-aixplain May 9, 2025
87d5791
ENG-1551 ai xplain sdk caching onboarded models pipelines and agents …
xainaz May 12, 2025
6f600d9
Bug 531: standardize asset names (#521)
OsujiCC May 14, 2025
85d0406
fixed asset issue (#526)
xainaz May 15, 2025
4d650c9
Make functional test more stable (#525)
thiago-aixplain May 15, 2025
91d6864
ENG-2100: Enable JSON schema as output format (#513)
thiago-aixplain May 19, 2025
cecd3a6
Added serialize function for save (#529)
xainaz May 20, 2025
6aa648f
Add Embedding Params to Model (#534)
basitanees May 20, 2025
ad4ddbf
Prod 1785 enable adding any embedding in ai r not just embedding mode…
Muhammad-Elmallah May 21, 2025
bb74b68
Changed cache default to false (#536)
xainaz May 22, 2025
e3f072d
Merge branch 'test' into development
thiago-aixplain May 22, 2025
b2a00e3
added filelock (#538)
xainaz May 23, 2025
239b56a
Add filelock to requirements (#540)
thiago-aixplain May 23, 2025
1f6b614
cache duration (#541)
xainaz May 23, 2025
14485e2
ErrorCode returns code in string (#542)
yunsukim86 May 26, 2025
59be7cc
ENG-2003 : Add LLM's to Agents as Object (#524)
ahmetgunduz May 27, 2025
cdaaa81
ENG-2105: persist sql data (#528)
thiago-aixplain May 27, 2025
77ff8d8
Custom inspector interface (#484)
yunsukim86 Jun 2, 2025
f6422db
Eng 2040 ai r 2 add splitting features to the sdk (#546)
Muhammad-Elmallah Jun 2, 2025
59e40d6
pipeline to_dict change + fixed circular imports pipeline functional …
xainaz Jun 2, 2025
c8aa11c
ENG-1962: composio (#547)
thiago-aixplain Jun 4, 2025
b7a929d
Add input target for inspectors (#548)
yunsukim86 Jun 6, 2025
6067f16
ENG-1900 Refined agent deletion error messages (#543)
kadirpekel Jun 10, 2025
c570a70
ENG-2271: Add code interpreter model ID (#550)
lucas-aixplain Jun 16, 2025
80ddb8a
Update enums.py (#552)
hadi-aix Jun 18, 2025
39be1d0
Update enums.py (#554)
hadi-aix Jun 18, 2025
c45b709
Merge branch 'test' into development
hadi-aix Jun 18, 2025
095f9b8
removed pipeline cache test (#556)
xainaz Jun 19, 2025
01a7f9e
Functional test fix of agent in use error (#560)
ahmetgunduz Jun 20, 2025
585444a
BUG-574 Fixed functionType type handling (#561)
kadirpekel Jun 20, 2025
1e84627
PROD-1833: Optional Instructions in Agents (#559)
ahmetgunduz Jun 24, 2025
ea51442
fixing the tests (#569)
Muhammad-Elmallah Jun 25, 2025
ba406e2
Introducing prompt benchmarking (#497)
shreyasXplain Jun 26, 2025
3d6dc91
ENG-2371 functional test for pipeline run_async (#570)
kadirpekel Jun 27, 2025
a96dd07
Add new methods to Air (#578)
basitanees Jul 8, 2025
ac8b5ac
Bumped model-interfaces to latest release (#221)
mikelam-us-aixplain Jul 8, 2025
7e59519
Re-implement the integration.py file (#581)
elsheikhams99 Jul 13, 2025
5b6bcaa
Improve readability - fix OAUTH methods bug (#583)
elsheikhams99 Jul 14, 2025
6ab5953
Eng 2400 add tests, fix composio bugs (#585)
elsheikhams99 Jul 15, 2025
882cdfe
Merge branch 'test' into Mergetotest_20250715
hadi-aix Jul 15, 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
1 change: 1 addition & 0 deletions aixplain/factories/model_factory/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def create_model_from_response(response: Dict) -> Model:
supports_streaming=response.get("supportsStreaming", False),
status=status,
function_type=function_type,
attributes=attributes,
**additional_kwargs,
)

Expand Down
18 changes: 15 additions & 3 deletions aixplain/factories/tool_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
from aixplain.factories.model_factory.mixins import ModelGetterMixin, ModelListMixin
from aixplain.modules.model import Model
from aixplain.modules.model.index_model import IndexModel
from aixplain.modules.model.integration import Integration
from aixplain.modules.model.integration import Integration, AuthenticationSchema
from aixplain.modules.model.integration import BaseAuthenticationParams
from aixplain.factories.index_factory.utils import BaseIndexParams, AirParams, VectaraParams, ZeroEntropyParams, GraphRAGParams
from aixplain.enums.index_stores import IndexStores
from aixplain.modules.model.utility_model import BaseUtilityModelParams
from typing import Optional, Text, Union
from typing import Optional, Text, Union, Dict
from aixplain.enums import ResponseStatus
from aixplain.utils import config

Expand All @@ -22,6 +22,8 @@ def create(
cls,
integration: Optional[Union[Text, Model]] = None,
params: Optional[Union[BaseUtilityModelParams, BaseIndexParams, BaseAuthenticationParams]] = None,
authentication_schema: Optional[AuthenticationSchema] = None,
data: Optional[Dict] = None,
**kwargs,
) -> Model:
"""Factory method to create indexes, script models and connections
Expand Down Expand Up @@ -143,7 +145,17 @@ def add(a: int, b: int) -> int:
assert (
connector.function_type == FunctionType.INTEGRATION
), f"The model you are trying to connect ({connector.id}) to is not a connector."
response = connector.connect(params)

assert authentication_schema is not None, "Please provide the authentication schema to use (authentication_schema parameter)"
assert isinstance(authentication_schema, AuthenticationSchema), "authentication_schema must be an instance of AuthenticationSchema"

auth_data = data if data is not None else {}
if not auth_data:
for key, value in kwargs.items():
if key not in ['name', 'connector_id']:
auth_data[key] = value

response = connector.connect(authentication_schema, params, auth_data)
assert response.status == ResponseStatus.SUCCESS, f"Failed to connect to {connector.id} - {response.error_message}"
connection = cls.get(response.data["id"])
if "redirectURL" in response.data:
Expand Down
8 changes: 4 additions & 4 deletions tests/functional/agent/agent_functional_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,13 +732,13 @@ class Response(BaseModel):
def test_agent_with_action_tool():
from aixplain.modules.model.integration import AuthenticationSchema

connector = ModelFactory.get("67eff5c0e05614297caeef98")
connector = ModelFactory.get("686432941223092cb4294d3f")
# connect
response = connector.connect(authentication_schema=AuthenticationSchema.BEARER, token=os.getenv("SLACK_TOKEN"))
response = connector.connect(authentication_schema=AuthenticationSchema.BEARER_TOKEN, data={"token": os.getenv("SLACK_TOKEN")})
connection_id = response.data["id"]

connection = ModelFactory.get(connection_id)
connection.action_scope = [action for action in connection.actions if action.code == "SLACK_CHAT_POST_MESSAGE"]
connection.action_scope = [action for action in connection.actions if action.code == "SLACK_SENDS_A_MESSAGE_TO_A_SLACK_CHANNEL"]

agent = AgentFactory.create(
name="Test Agent",
Expand All @@ -757,5 +757,5 @@ def test_agent_with_action_tool():
assert response is not None
assert response["status"].lower() == "success"
assert "helsinki" in response.data.output.lower()
assert "SLACK_CHAT_POST_MESSAGE" in [step["tool"] for step in response.data.intermediate_steps[0]["tool_steps"]]
assert "SLACK_SENDS_A_MESSAGE_TO_A_SLACK_CHANNEL" in [step["tool"] for step in response.data.intermediate_steps[0]["tool_steps"]]
connection.delete()
6 changes: 3 additions & 3 deletions tests/functional/team_agent/team_agent_functional_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,13 @@ class Response(BaseModel):
def test_team_agent_with_slack_connector():
from aixplain.modules.model.integration import AuthenticationSchema

connector = ModelFactory.get("67eff5c0e05614297caeef98")
connector = ModelFactory.get("686432941223092cb4294d3f")
# connect
response = connector.connect(authentication_schema=AuthenticationSchema.BEARER, token=os.getenv("SLACK_TOKEN"))
response = connector.connect(authentication_schema=AuthenticationSchema.BEARER_TOKEN, data={"token": os.getenv("SLACK_TOKEN")})
connection_id = response.data["id"]

connection = ModelFactory.get(connection_id)
connection.action_scope = [action for action in connection.actions if action.code == "SLACK_CHAT_POST_MESSAGE"]
connection.action_scope = [action for action in connection.actions if action.code == "SLACK_SENDS_A_MESSAGE_TO_A_SLACK_CHANNEL"]

agent = AgentFactory.create(
name="Test Agent",
Expand Down