Skip to content

Commit 33b6f81

Browse files
committed
Version 1.4.68
1 parent 813d1fd commit 33b6f81

20 files changed

Lines changed: 287 additions & 14 deletions

File tree

abacusai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,4 +285,4 @@
285285
from .workflow_node_template import WorkflowNodeTemplate
286286

287287

288-
__version__ = "1.4.67"
288+
__version__ = "1.4.68"

abacusai/api_class/dataset_application_connector.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,12 @@ class TeamsScraperDatasetConfig(ApplicationConnectorDatasetConfig):
206206
pull_chat_messages (bool): Whether to pull teams chat messages
207207
pull_channel_posts (bool): Whether to pull posts for each channel
208208
pull_transcripts (bool): Whether to pull transcripts for calendar meetings
209+
max_days_to_lookback (int): The maximum number of days to look back for data
209210
"""
210211
pull_chat_messages: bool = dataclasses.field(default=False)
211212
pull_channel_posts: bool = dataclasses.field(default=False)
212213
pull_transcripts: bool = dataclasses.field(default=False)
214+
max_days_to_lookback: int = dataclasses.field(default=365)
213215

214216
def __post_init__(self):
215217
self.application_connector_type = enums.ApplicationConnectorType.TEAMSSCRAPER

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 = {'global_prediction_args', 'explanations'}
87+
self.deprecated_keys = {'explanations', 'global_prediction_args'}
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 = {'global_prediction_args', 'explanations'}
103+
self.deprecated_keys = {'explanations', 'global_prediction_args'}
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/client.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ class BaseApiClient:
667667
client_options (ClientOptions): Optional API client configurations
668668
skip_version_check (bool): If true, will skip checking the server's current API version on initializing the client
669669
"""
670-
client_version = '1.4.67'
670+
client_version = '1.4.68'
671671

672672
def __init__(self, api_key: str = None, server: str = None, client_options: ClientOptions = None, skip_version_check: bool = False, include_tb: bool = False):
673673
self.api_key = api_key
@@ -9062,6 +9062,20 @@ def remove_app_user_group_from_external_application(self, user_group_id: str, ex
90629062
external_application_id (str): The ID of the External Application."""
90639063
return self._call_api('removeAppUserGroupFromExternalApplication', 'POST', query_params={}, body={'userGroupId': user_group_id, 'externalApplicationId': external_application_id})
90649064

9065+
def add_developers_to_external_application(self, external_application_id: str):
9066+
"""Adds a permission for the platform App User Group to access an External Application.
9067+
9068+
Args:
9069+
external_application_id (str): The ID of the External Application."""
9070+
return self._call_api('addDevelopersToExternalApplication', 'POST', query_params={}, body={'externalApplicationId': external_application_id})
9071+
9072+
def remove_developers_from_external_application(self, external_application_id: str):
9073+
"""Removes a permission for the platform App User Group to access an External Application.
9074+
9075+
Args:
9076+
external_application_id (str): The ID of the External Application."""
9077+
return self._call_api('removeDevelopersFromExternalApplication', 'POST', query_params={}, body={'externalApplicationId': external_application_id})
9078+
90659079
def create_external_application(self, deployment_id: str, name: str = None, description: str = None, logo: str = None, theme: dict = None) -> ExternalApplication:
90669080
"""Creates a new External Application from an existing ChatLLM Deployment.
90679081

abacusai/external_application.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,24 @@ def to_dict(self):
7474
'prediction_overrides': self.prediction_overrides, 'is_system_created': self.is_system_created, 'is_customizable': self.is_customizable, 'is_deprecated': self.is_deprecated, 'is_visible': self.is_visible, 'has_thinking_option': self.has_thinking_option, 'only_image_gen_enabled': self.only_image_gen_enabled, 'project_id': self.project_id, 'is_codellm_chatmode_supported': self.is_codellm_chatmode_supported}
7575
return {key: value for key, value in resp.items() if value is not None and key not in self.deprecated_keys}
7676

77+
def add_developers_to(self):
78+
"""
79+
Adds a permission for the platform App User Group to access an External Application.
80+
81+
Args:
82+
external_application_id (str): The ID of the External Application.
83+
"""
84+
return self.client.add_developers_to_external_application(self.external_application_id)
85+
86+
def remove_developers_from(self):
87+
"""
88+
Removes a permission for the platform App User Group to access an External Application.
89+
90+
Args:
91+
external_application_id (str): The ID of the External Application.
92+
"""
93+
return self.client.remove_developers_from_external_application(self.external_application_id)
94+
7795
def update(self, name: str = None, description: str = None, theme: dict = None, deployment_id: str = None, deployment_conversation_retention_hours: int = None, reset_retention_policy: bool = False):
7896
"""
7997
Updates an External Application.

docs/_sources/autoapi/abacusai/api_class/dataset_application_connector/index.rst.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ Module Contents
443443
:type pull_channel_posts: bool
444444
:param pull_transcripts: Whether to pull transcripts for calendar meetings
445445
:type pull_transcripts: bool
446+
:param max_days_to_lookback: The maximum number of days to look back for data
447+
:type max_days_to_lookback: int
446448

447449

448450
.. py:attribute:: pull_chat_messages
@@ -463,6 +465,12 @@ Module Contents
463465

464466

465467

468+
.. py:attribute:: max_days_to_lookback
469+
:type: int
470+
:value: 365
471+
472+
473+
466474
.. py:method:: __post_init__()
467475
468476

docs/_sources/autoapi/abacusai/api_class/index.rst.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2892,6 +2892,8 @@ Package Contents
28922892
:type pull_channel_posts: bool
28932893
:param pull_transcripts: Whether to pull transcripts for calendar meetings
28942894
:type pull_transcripts: bool
2895+
:param max_days_to_lookback: The maximum number of days to look back for data
2896+
:type max_days_to_lookback: int
28952897

28962898

28972899
.. py:attribute:: pull_chat_messages
@@ -2912,6 +2914,12 @@ Package Contents
29122914

29132915

29142916

2917+
.. py:attribute:: max_days_to_lookback
2918+
:type: int
2919+
:value: 365
2920+
2921+
2922+
29152923
.. py:method:: __post_init__()
29162924
29172925

docs/_sources/autoapi/abacusai/client/index.rst.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ Module Contents
593593

594594

595595
.. py:attribute:: client_version
596-
:value: '1.4.67'
596+
:value: '1.4.68'
597597

598598

599599

@@ -10277,6 +10277,24 @@ Module Contents
1027710277

1027810278

1027910279

10280+
.. py:method:: add_developers_to_external_application(external_application_id)
10281+
10282+
Adds a permission for the platform App User Group to access an External Application.
10283+
10284+
:param external_application_id: The ID of the External Application.
10285+
:type external_application_id: str
10286+
10287+
10288+
10289+
.. py:method:: remove_developers_from_external_application(external_application_id)
10290+
10291+
Removes a permission for the platform App User Group to access an External Application.
10292+
10293+
:param external_application_id: The ID of the External Application.
10294+
:type external_application_id: str
10295+
10296+
10297+
1028010298
.. py:method:: create_external_application(deployment_id, name = None, description = None, logo = None, theme = None)
1028110299
1028210300
Creates a new External Application from an existing ChatLLM Deployment.

docs/_sources/autoapi/abacusai/external_application/index.rst.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,24 @@ Module Contents
188188

189189

190190

191+
.. py:method:: add_developers_to()
192+
193+
Adds a permission for the platform App User Group to access an External Application.
194+
195+
:param external_application_id: The ID of the External Application.
196+
:type external_application_id: str
197+
198+
199+
200+
.. py:method:: remove_developers_from()
201+
202+
Removes a permission for the platform App User Group to access an External Application.
203+
204+
:param external_application_id: The ID of the External Application.
205+
:type external_application_id: str
206+
207+
208+
191209
.. py:method:: update(name = None, description = None, theme = None, deployment_id = None, deployment_conversation_retention_hours = None, reset_retention_policy = False)
192210
193211
Updates an External Application.

0 commit comments

Comments
 (0)