Skip to content

Commit 0e56966

Browse files
committed
Version 1.4.89
1 parent ce03065 commit 0e56966

45 files changed

Lines changed: 409 additions & 106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

abacusai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,4 +305,4 @@
305305
from .workflow_node_template import WorkflowNodeTemplate
306306

307307

308-
__version__ = "1.4.88"
308+
__version__ = "1.4.89"

abacusai/agent_skill.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ class AgentSkill(AbstractApiClass):
1414
chatllmProjectId (str): The project ID this skill is associated with.
1515
systemCreated (bool): Whether this skill was created by the system.
1616
enabled (bool): Whether the skill is currently enabled.
17+
default (bool): Whether this skill is a default skill.
1718
createdAt (str): The timestamp when the skill was created.
1819
updatedAt (str): The timestamp when the skill was last updated.
1920
"""
2021

21-
def __init__(self, client, agentSkillId=None, skillName=None, description=None, skillDirectoryName=None, chatllmProjectId=None, systemCreated=None, enabled=None, createdAt=None, updatedAt=None):
22+
def __init__(self, client, agentSkillId=None, skillName=None, description=None, skillDirectoryName=None, chatllmProjectId=None, systemCreated=None, enabled=None, default=None, createdAt=None, updatedAt=None):
2223
super().__init__(client, agentSkillId)
2324
self.agent_skill_id = agentSkillId
2425
self.skill_name = skillName
@@ -27,13 +28,14 @@ def __init__(self, client, agentSkillId=None, skillName=None, description=None,
2728
self.chatllm_project_id = chatllmProjectId
2829
self.system_created = systemCreated
2930
self.enabled = enabled
31+
self.default = default
3032
self.created_at = createdAt
3133
self.updated_at = updatedAt
3234
self.deprecated_keys = {}
3335

3436
def __repr__(self):
3537
repr_dict = {f'agent_skill_id': repr(self.agent_skill_id), f'skill_name': repr(self.skill_name), f'description': repr(self.description), f'skill_directory_name': repr(self.skill_directory_name), f'chatllm_project_id': repr(
36-
self.chatllm_project_id), f'system_created': repr(self.system_created), f'enabled': repr(self.enabled), f'created_at': repr(self.created_at), f'updated_at': repr(self.updated_at)}
38+
self.chatllm_project_id), f'system_created': repr(self.system_created), f'enabled': repr(self.enabled), f'default': repr(self.default), f'created_at': repr(self.created_at), f'updated_at': repr(self.updated_at)}
3739
class_name = "AgentSkill"
3840
repr_str = ',\n '.join([f'{key}={value}' for key, value in repr_dict.items(
3941
) if getattr(self, key, None) is not None and key not in self.deprecated_keys])
@@ -47,5 +49,5 @@ def to_dict(self):
4749
dict: The dict value representation of the class parameters
4850
"""
4951
resp = {'agent_skill_id': self.agent_skill_id, 'skill_name': self.skill_name, 'description': self.description, 'skill_directory_name': self.skill_directory_name,
50-
'chatllm_project_id': self.chatllm_project_id, 'system_created': self.system_created, 'enabled': self.enabled, 'created_at': self.created_at, 'updated_at': self.updated_at}
52+
'chatllm_project_id': self.chatllm_project_id, 'system_created': self.system_created, 'enabled': self.enabled, 'default': self.default, 'created_at': self.created_at, 'updated_at': self.updated_at}
5153
return {key: value for key, value in resp.items() if value is not None and key not in self.deprecated_keys}

abacusai/application_connector.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ class ApplicationConnector(AbstractApiClass):
1515
status (str): The status of the Application Connector
1616
auth (dict): Non-secret connection information for this connector
1717
baseConnector (str): The hashed ID of the config connector this user connector is based on (for config connector flows)
18+
createdBy (str): The email of the user who created this connector.
1819
"""
1920

20-
def __init__(self, client, applicationConnectorId=None, service=None, serviceName=None, name=None, createdAt=None, status=None, auth=None, baseConnector=None):
21+
def __init__(self, client, applicationConnectorId=None, service=None, serviceName=None, name=None, createdAt=None, status=None, auth=None, baseConnector=None, createdBy=None):
2122
super().__init__(client, applicationConnectorId)
2223
self.application_connector_id = applicationConnectorId
2324
self.service = service
@@ -27,11 +28,12 @@ def __init__(self, client, applicationConnectorId=None, service=None, serviceNam
2728
self.status = status
2829
self.auth = auth
2930
self.base_connector = baseConnector
31+
self.created_by = createdBy
3032
self.deprecated_keys = {}
3133

3234
def __repr__(self):
3335
repr_dict = {f'application_connector_id': repr(self.application_connector_id), f'service': repr(self.service), f'service_name': repr(self.service_name), f'name': repr(
34-
self.name), f'created_at': repr(self.created_at), f'status': repr(self.status), f'auth': repr(self.auth), f'base_connector': repr(self.base_connector)}
36+
self.name), f'created_at': repr(self.created_at), f'status': repr(self.status), f'auth': repr(self.auth), f'base_connector': repr(self.base_connector), f'created_by': repr(self.created_by)}
3537
class_name = "ApplicationConnector"
3638
repr_str = ',\n '.join([f'{key}={value}' for key, value in repr_dict.items(
3739
) if getattr(self, key, None) is not None and key not in self.deprecated_keys])
@@ -44,8 +46,8 @@ def to_dict(self):
4446
Returns:
4547
dict: The dict value representation of the class parameters
4648
"""
47-
resp = {'application_connector_id': self.application_connector_id, 'service': self.service, 'service_name': self.service_name,
48-
'name': self.name, 'created_at': self.created_at, 'status': self.status, 'auth': self.auth, 'base_connector': self.base_connector}
49+
resp = {'application_connector_id': self.application_connector_id, 'service': self.service, 'service_name': self.service_name, 'name': self.name,
50+
'created_at': self.created_at, 'status': self.status, 'auth': self.auth, 'base_connector': self.base_connector, 'created_by': self.created_by}
4951
return {key: value for key, value in resp.items() if value is not None and key not in self.deprecated_keys}
5052

5153
def rename(self, name: str):

abacusai/batch_prediction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(self, client, batchPredictionId=None, createdAt=None, name=None, de
8484
BatchPredictionArgs, globalPredictionArgs)
8585
self.batch_prediction_args = client._build_class(getattr(
8686
api_class, batchPredictionArgsType, BatchPredictionArgs) if batchPredictionArgsType else BatchPredictionArgs, batchPredictionArgs)
87-
self.deprecated_keys = {'explanations', 'global_prediction_args'}
87+
self.deprecated_keys = {'global_prediction_args', 'explanations'}
8888

8989
def __repr__(self):
9090
repr_dict = {f'batch_prediction_id': repr(self.batch_prediction_id), f'created_at': repr(self.created_at), f'name': repr(self.name), f'deployment_id': repr(self.deployment_id), f'file_connector_output_location': repr(self.file_connector_output_location), f'database_connector_id': repr(self.database_connector_id), f'database_output_configuration': repr(self.database_output_configuration), f'file_output_format': repr(self.file_output_format), f'connector_type': repr(self.connector_type), f'legacy_input_location': repr(self.legacy_input_location), f'output_feature_group_id': repr(self.output_feature_group_id), f'feature_group_table_name': repr(self.feature_group_table_name), f'output_feature_group_table_name': repr(self.output_feature_group_table_name), f'summary_feature_group_table_name': repr(self.summary_feature_group_table_name), f'csv_input_prefix': repr(

abacusai/batch_prediction_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def __init__(self, client, batchPredictionVersion=None, batchPredictionId=None,
100100
BatchPredictionArgs, globalPredictionArgs)
101101
self.batch_prediction_args = client._build_class(getattr(
102102
api_class, batchPredictionArgsType, BatchPredictionArgs) if batchPredictionArgsType else BatchPredictionArgs, batchPredictionArgs)
103-
self.deprecated_keys = {'explanations', 'global_prediction_args'}
103+
self.deprecated_keys = {'global_prediction_args', 'explanations'}
104104

105105
def __repr__(self):
106106
repr_dict = {f'batch_prediction_version': repr(self.batch_prediction_version), f'batch_prediction_id': repr(self.batch_prediction_id), f'status': repr(self.status), f'drift_monitor_status': repr(self.drift_monitor_status), f'deployment_id': repr(self.deployment_id), f'model_id': repr(self.model_id), f'model_version': repr(self.model_version), f'predictions_started_at': repr(self.predictions_started_at), f'predictions_completed_at': repr(self.predictions_completed_at), f'database_output_error': repr(self.database_output_error), f'total_predictions': repr(self.total_predictions), f'failed_predictions': repr(self.failed_predictions), f'database_connector_id': repr(self.database_connector_id), f'database_output_configuration': repr(self.database_output_configuration), f'file_connector_output_location': repr(self.file_connector_output_location), f'file_output_format': repr(self.file_output_format), f'connector_type': repr(self.connector_type), f'legacy_input_location': repr(self.legacy_input_location), f'error': repr(self.error), f'drift_monitor_error': repr(self.drift_monitor_error), f'monitor_warnings': repr(self.monitor_warnings), f'csv_input_prefix': repr(

abacusai/chatllm_project.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ class ChatllmProject(AbstractApiClass):
1515
updatedAt (str): The update time of the chatllm project.
1616
verticalType (str): The vertical type (HEALTH or null for regular projects).
1717
preferences (dict): The preferences JSON for vertical projects.
18+
orchestratorDeploymentConversationId (id): The ID of the orchestrator deployment conversation.
1819
"""
1920

20-
def __init__(self, client, chatllmProjectId=None, name=None, description=None, customInstructions=None, createdAt=None, updatedAt=None, verticalType=None, preferences=None):
21+
def __init__(self, client, chatllmProjectId=None, name=None, description=None, customInstructions=None, createdAt=None, updatedAt=None, verticalType=None, preferences=None, orchestratorDeploymentConversationId=None):
2122
super().__init__(client, chatllmProjectId)
2223
self.chatllm_project_id = chatllmProjectId
2324
self.name = name
@@ -27,11 +28,12 @@ def __init__(self, client, chatllmProjectId=None, name=None, description=None, c
2728
self.updated_at = updatedAt
2829
self.vertical_type = verticalType
2930
self.preferences = preferences
31+
self.orchestrator_deployment_conversation_id = orchestratorDeploymentConversationId
3032
self.deprecated_keys = {}
3133

3234
def __repr__(self):
33-
repr_dict = {f'chatllm_project_id': repr(self.chatllm_project_id), f'name': repr(self.name), f'description': repr(self.description), f'custom_instructions': repr(
34-
self.custom_instructions), f'created_at': repr(self.created_at), f'updated_at': repr(self.updated_at), f'vertical_type': repr(self.vertical_type), f'preferences': repr(self.preferences)}
35+
repr_dict = {f'chatllm_project_id': repr(self.chatllm_project_id), f'name': repr(self.name), f'description': repr(self.description), f'custom_instructions': repr(self.custom_instructions), f'created_at': repr(
36+
self.created_at), f'updated_at': repr(self.updated_at), f'vertical_type': repr(self.vertical_type), f'preferences': repr(self.preferences), f'orchestrator_deployment_conversation_id': repr(self.orchestrator_deployment_conversation_id)}
3537
class_name = "ChatllmProject"
3638
repr_str = ',\n '.join([f'{key}={value}' for key, value in repr_dict.items(
3739
) if getattr(self, key, None) is not None and key not in self.deprecated_keys])
@@ -44,6 +46,6 @@ def to_dict(self):
4446
Returns:
4547
dict: The dict value representation of the class parameters
4648
"""
47-
resp = {'chatllm_project_id': self.chatllm_project_id, 'name': self.name, 'description': self.description, 'custom_instructions': self.custom_instructions,
48-
'created_at': self.created_at, 'updated_at': self.updated_at, 'vertical_type': self.vertical_type, 'preferences': self.preferences}
49+
resp = {'chatllm_project_id': self.chatllm_project_id, 'name': self.name, 'description': self.description, 'custom_instructions': self.custom_instructions, 'created_at': self.created_at,
50+
'updated_at': self.updated_at, 'vertical_type': self.vertical_type, 'preferences': self.preferences, 'orchestrator_deployment_conversation_id': self.orchestrator_deployment_conversation_id}
4951
return {key: value for key, value in resp.items() if value is not None and key not in self.deprecated_keys}

abacusai/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ class BaseApiClient:
716716
client_options (ClientOptions): Optional API client configurations
717717
skip_version_check (bool): If true, will skip checking the server's current API version on initializing the client
718718
"""
719-
client_version = '1.4.88'
719+
client_version = '1.4.89'
720720

721721
def __init__(self, api_key: str = None, server: str = None, client_options: ClientOptions = None, skip_version_check: bool = False, include_tb: bool = False):
722722
self.api_key = api_key
@@ -7505,7 +7505,7 @@ def lookup_features(self, deployment_token: str, deployment_id: str, query_data:
75057505
deployment_id, deployment_token) if deployment_token else None
75067506
return self._call_api('lookupFeatures', 'POST', query_params={'deploymentToken': deployment_token, 'deploymentId': deployment_id}, body={'queryData': query_data, 'limitResults': limit_results, 'resultColumns': result_columns}, server_override=prediction_url)
75077507

7508-
def predict(self, deployment_token: str, deployment_id: str, query_data: dict, **kwargs) -> Dict:
7508+
def predict(self, deployment_token: str, deployment_id: str, query_data: dict = None, **kwargs) -> Dict:
75097509
"""Returns a prediction for Predictive Modeling
75107510

75117511
Args:

abacusai/database_connector.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,23 @@ class DatabaseConnector(AbstractApiClass):
1313
status (str): The status of the database connector.
1414
auth (dict): Non-secret connection information for this connector.
1515
createdAt (str): The ISO-8601 string indicating when the API key was created.
16+
createdBy (str): The email of the user who created this connector.
1617
"""
1718

18-
def __init__(self, client, databaseConnectorId=None, service=None, name=None, status=None, auth=None, createdAt=None):
19+
def __init__(self, client, databaseConnectorId=None, service=None, name=None, status=None, auth=None, createdAt=None, createdBy=None):
1920
super().__init__(client, databaseConnectorId)
2021
self.database_connector_id = databaseConnectorId
2122
self.service = service
2223
self.name = name
2324
self.status = status
2425
self.auth = auth
2526
self.created_at = createdAt
27+
self.created_by = createdBy
2628
self.deprecated_keys = {}
2729

2830
def __repr__(self):
2931
repr_dict = {f'database_connector_id': repr(self.database_connector_id), f'service': repr(self.service), f'name': repr(
30-
self.name), f'status': repr(self.status), f'auth': repr(self.auth), f'created_at': repr(self.created_at)}
32+
self.name), f'status': repr(self.status), f'auth': repr(self.auth), f'created_at': repr(self.created_at), f'created_by': repr(self.created_by)}
3133
class_name = "DatabaseConnector"
3234
repr_str = ',\n '.join([f'{key}={value}' for key, value in repr_dict.items(
3335
) if getattr(self, key, None) is not None and key not in self.deprecated_keys])
@@ -40,8 +42,8 @@ def to_dict(self):
4042
Returns:
4143
dict: The dict value representation of the class parameters
4244
"""
43-
resp = {'database_connector_id': self.database_connector_id, 'service': self.service,
44-
'name': self.name, 'status': self.status, 'auth': self.auth, 'created_at': self.created_at}
45+
resp = {'database_connector_id': self.database_connector_id, 'service': self.service, 'name': self.name,
46+
'status': self.status, 'auth': self.auth, 'created_at': self.created_at, 'created_by': self.created_by}
4547
return {key: value for key, value in resp.items() if value is not None and key not in self.deprecated_keys}
4648

4749
def list_objects(self, fetch_raw_data: bool = False):

0 commit comments

Comments
 (0)