Skip to content

Commit b3bc4f8

Browse files
committed
Version 1.4.81
1 parent 083e9a6 commit b3bc4f8

File tree

337 files changed

+1918
-294
lines changed

Some content is hidden

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

337 files changed

+1918
-294
lines changed

abacusai/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
from .compute_point_info import ComputePointInfo
5454
from .concatenation_config import ConcatenationConfig
5555
from .constants_autocomplete_response import ConstantsAutocompleteResponse
56+
from .conversation_and_project_search_results import ConversationAndProjectSearchResults
5657
from .cpu_gpu_memory_specs import CpuGpuMemorySpecs
5758
from .custom_chat_instructions import CustomChatInstructions
5859
from .custom_domain import CustomDomain
@@ -297,4 +298,4 @@
297298
from .workflow_node_template import WorkflowNodeTemplate
298299

299300

300-
__version__ = "1.4.80"
301+
__version__ = "1.4.81"

abacusai/api_class/enums.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,12 @@ class AgentInterface(ApiEnum):
764764
AUTONOMOUS = 'AUTONOMOUS'
765765

766766

767+
class AutonomousTriggerType(ApiEnum):
768+
"""Type of trigger for autonomous agents."""
769+
SCHEDULE = 'SCHEDULE'
770+
WEBHOOK = 'WEBHOOK'
771+
772+
767773
class WorkflowNodeTemplateType(ApiEnum):
768774
TRIGGER = 'trigger'
769775
DEFAULT = 'default'
@@ -845,3 +851,10 @@ class OrganizationSecretType(ApiEnum):
845851
ORG_SECRET = 'ORG_SECRET'
846852
ORG_API_CREDENTIALS = 'ORG_API_CREDENTIALS'
847853
USER_API_CREDENTIALS = 'USER_API_CREDENTIALS'
854+
855+
856+
class DaemonTaskLifecycleUpdateAction(ApiEnum):
857+
"""Action to perform on daemon task lifecycle"""
858+
DELETE = 'DELETE'
859+
PAUSE = 'PAUSE'
860+
RESUME = 'RESUME'

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ class BaseApiClient:
714714
client_options (ClientOptions): Optional API client configurations
715715
skip_version_check (bool): If true, will skip checking the server's current API version on initializing the client
716716
"""
717-
client_version = '1.4.80'
717+
client_version = '1.4.81'
718718

719719
def __init__(self, api_key: str = None, server: str = None, client_options: ClientOptions = None, skip_version_check: bool = False, include_tb: bool = False):
720720
self.api_key = api_key
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
from .return_class import AbstractApiClass
2+
3+
4+
class ConversationAndProjectSearchResults(AbstractApiClass):
5+
"""
6+
A conversation and project search results.
7+
8+
Args:
9+
client (ApiClient): An authenticated API Client instance
10+
deploymentConversationId (str): The unique identifier of the deployment conversation.
11+
name (str): The name of the deployment conversation.
12+
chatllmProjectId (str): The chatllm project id associated with the deployment conversation.
13+
chatllmProjectName (str): The name of the chatllm project associated with the deployment conversation.
14+
createdAt (str): The timestamp at which the deployment conversation was created.
15+
lastEventCreatedAt (str): The timestamp at which the most recent corresponding deployment conversation event was created at.
16+
conversationType (str): The type of the conversation, which depicts the application it caters to.
17+
deploymentId (str): The deployment id associated with the deployment conversation.
18+
externalApplicationId (str): The external application id associated with the deployment conversation.
19+
"""
20+
21+
def __init__(self, client, deploymentConversationId=None, name=None, chatllmProjectId=None, chatllmProjectName=None, createdAt=None, lastEventCreatedAt=None, conversationType=None, deploymentId=None, externalApplicationId=None):
22+
super().__init__(client, None)
23+
self.deployment_conversation_id = deploymentConversationId
24+
self.name = name
25+
self.chatllm_project_id = chatllmProjectId
26+
self.chatllm_project_name = chatllmProjectName
27+
self.created_at = createdAt
28+
self.last_event_created_at = lastEventCreatedAt
29+
self.conversation_type = conversationType
30+
self.deployment_id = deploymentId
31+
self.external_application_id = externalApplicationId
32+
self.deprecated_keys = {}
33+
34+
def __repr__(self):
35+
repr_dict = {f'deployment_conversation_id': repr(self.deployment_conversation_id), f'name': repr(self.name), f'chatllm_project_id': repr(self.chatllm_project_id), f'chatllm_project_name': repr(self.chatllm_project_name), f'created_at': repr(
36+
self.created_at), f'last_event_created_at': repr(self.last_event_created_at), f'conversation_type': repr(self.conversation_type), f'deployment_id': repr(self.deployment_id), f'external_application_id': repr(self.external_application_id)}
37+
class_name = "ConversationAndProjectSearchResults"
38+
repr_str = ',\n '.join([f'{key}={value}' for key, value in repr_dict.items(
39+
) if getattr(self, key, None) is not None and key not in self.deprecated_keys])
40+
return f"{class_name}({repr_str})"
41+
42+
def to_dict(self):
43+
"""
44+
Get a dict representation of the parameters in this class
45+
46+
Returns:
47+
dict: The dict value representation of the class parameters
48+
"""
49+
resp = {'deployment_conversation_id': self.deployment_conversation_id, 'name': self.name, 'chatllm_project_id': self.chatllm_project_id, 'chatllm_project_name': self.chatllm_project_name, 'created_at': self.created_at,
50+
'last_event_created_at': self.last_event_created_at, 'conversation_type': self.conversation_type, 'deployment_id': self.deployment_id, 'external_application_id': self.external_application_id}
51+
return {key: value for key, value in resp.items() if value is not None and key not in self.deprecated_keys}

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

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Classes
6868
abacusai.api_class.enums.StdDevThresholdType
6969
abacusai.api_class.enums.DataType
7070
abacusai.api_class.enums.AgentInterface
71+
abacusai.api_class.enums.AutonomousTriggerType
7172
abacusai.api_class.enums.WorkflowNodeTemplateType
7273
abacusai.api_class.enums.ProjectConfigType
7374
abacusai.api_class.enums.CPUSize
@@ -77,6 +78,7 @@ Classes
7778
abacusai.api_class.enums.DeploymentConversationType
7879
abacusai.api_class.enums.AgentClientType
7980
abacusai.api_class.enums.OrganizationSecretType
81+
abacusai.api_class.enums.DaemonTaskLifecycleUpdateAction
8082

8183

8284
Functions
@@ -3011,6 +3013,24 @@ Module Contents
30113013

30123014

30133015

3016+
.. py:class:: AutonomousTriggerType
3017+
3018+
Bases: :py:obj:`ApiEnum`
3019+
3020+
3021+
Type of trigger for autonomous agents.
3022+
3023+
3024+
.. py:attribute:: SCHEDULE
3025+
:value: 'SCHEDULE'
3026+
3027+
3028+
3029+
.. py:attribute:: WEBHOOK
3030+
:value: 'WEBHOOK'
3031+
3032+
3033+
30143034
.. py:class:: WorkflowNodeTemplateType
30153035
30163036
Bases: :py:obj:`ApiEnum`
@@ -3339,3 +3359,26 @@ Module Contents
33393359

33403360

33413361

3362+
.. py:class:: DaemonTaskLifecycleUpdateAction
3363+
3364+
Bases: :py:obj:`ApiEnum`
3365+
3366+
3367+
Action to perform on daemon task lifecycle
3368+
3369+
3370+
.. py:attribute:: DELETE
3371+
:value: 'DELETE'
3372+
3373+
3374+
3375+
.. py:attribute:: PAUSE
3376+
:value: 'PAUSE'
3377+
3378+
3379+
3380+
.. py:attribute:: RESUME
3381+
:value: 'RESUME'
3382+
3383+
3384+

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

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ Classes
190190
abacusai.api_class.StdDevThresholdType
191191
abacusai.api_class.DataType
192192
abacusai.api_class.AgentInterface
193+
abacusai.api_class.AutonomousTriggerType
193194
abacusai.api_class.WorkflowNodeTemplateType
194195
abacusai.api_class.ProjectConfigType
195196
abacusai.api_class.CPUSize
@@ -199,6 +200,7 @@ Classes
199200
abacusai.api_class.DeploymentConversationType
200201
abacusai.api_class.AgentClientType
201202
abacusai.api_class.OrganizationSecretType
203+
abacusai.api_class.DaemonTaskLifecycleUpdateAction
202204
abacusai.api_class.ApiClass
203205
abacusai.api_class._ApiClassFactory
204206
abacusai.api_class.DocumentProcessingConfig
@@ -6897,6 +6899,24 @@ Package Contents
68976899

68986900

68996901

6902+
.. py:class:: AutonomousTriggerType
6903+
6904+
Bases: :py:obj:`ApiEnum`
6905+
6906+
6907+
Type of trigger for autonomous agents.
6908+
6909+
6910+
.. py:attribute:: SCHEDULE
6911+
:value: 'SCHEDULE'
6912+
6913+
6914+
6915+
.. py:attribute:: WEBHOOK
6916+
:value: 'WEBHOOK'
6917+
6918+
6919+
69006920
.. py:class:: WorkflowNodeTemplateType
69016921
69026922
Bases: :py:obj:`ApiEnum`
@@ -7225,6 +7245,29 @@ Package Contents
72257245

72267246

72277247

7248+
.. py:class:: DaemonTaskLifecycleUpdateAction
7249+
7250+
Bases: :py:obj:`ApiEnum`
7251+
7252+
7253+
Action to perform on daemon task lifecycle
7254+
7255+
7256+
.. py:attribute:: DELETE
7257+
:value: 'DELETE'
7258+
7259+
7260+
7261+
.. py:attribute:: PAUSE
7262+
:value: 'PAUSE'
7263+
7264+
7265+
7266+
.. py:attribute:: RESUME
7267+
:value: 'RESUME'
7268+
7269+
7270+
72287271
.. py:class:: ApiClass
72297272
72307273
Bases: :py:obj:`abc.ABC`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ Module Contents
598598

599599

600600
.. py:attribute:: client_version
601-
:value: '1.4.80'
601+
:value: '1.4.81'
602602

603603

604604

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
abacusai.conversation_and_project_search_results
2+
================================================
3+
4+
.. py:module:: abacusai.conversation_and_project_search_results
5+
6+
7+
Classes
8+
-------
9+
10+
.. autoapisummary::
11+
12+
abacusai.conversation_and_project_search_results.ConversationAndProjectSearchResults
13+
14+
15+
Module Contents
16+
---------------
17+
18+
.. py:class:: ConversationAndProjectSearchResults(client, deploymentConversationId=None, name=None, chatllmProjectId=None, chatllmProjectName=None, createdAt=None, lastEventCreatedAt=None, conversationType=None, deploymentId=None, externalApplicationId=None)
19+
20+
Bases: :py:obj:`abacusai.return_class.AbstractApiClass`
21+
22+
23+
A conversation and project search results.
24+
25+
:param client: An authenticated API Client instance
26+
:type client: ApiClient
27+
:param deploymentConversationId: The unique identifier of the deployment conversation.
28+
:type deploymentConversationId: str
29+
:param name: The name of the deployment conversation.
30+
:type name: str
31+
:param chatllmProjectId: The chatllm project id associated with the deployment conversation.
32+
:type chatllmProjectId: str
33+
:param chatllmProjectName: The name of the chatllm project associated with the deployment conversation.
34+
:type chatllmProjectName: str
35+
:param createdAt: The timestamp at which the deployment conversation was created.
36+
:type createdAt: str
37+
:param lastEventCreatedAt: The timestamp at which the most recent corresponding deployment conversation event was created at.
38+
:type lastEventCreatedAt: str
39+
:param conversationType: The type of the conversation, which depicts the application it caters to.
40+
:type conversationType: str
41+
:param deploymentId: The deployment id associated with the deployment conversation.
42+
:type deploymentId: str
43+
:param externalApplicationId: The external application id associated with the deployment conversation.
44+
:type externalApplicationId: str
45+
46+
47+
.. py:attribute:: deployment_conversation_id
48+
:value: None
49+
50+
51+
52+
.. py:attribute:: name
53+
:value: None
54+
55+
56+
57+
.. py:attribute:: chatllm_project_id
58+
:value: None
59+
60+
61+
62+
.. py:attribute:: chatllm_project_name
63+
:value: None
64+
65+
66+
67+
.. py:attribute:: created_at
68+
:value: None
69+
70+
71+
72+
.. py:attribute:: last_event_created_at
73+
:value: None
74+
75+
76+
77+
.. py:attribute:: conversation_type
78+
:value: None
79+
80+
81+
82+
.. py:attribute:: deployment_id
83+
:value: None
84+
85+
86+
87+
.. py:attribute:: external_application_id
88+
:value: None
89+
90+
91+
92+
.. py:attribute:: deprecated_keys
93+
94+
95+
.. py:method:: __repr__()
96+
97+
98+
.. py:method:: to_dict()
99+
100+
Get a dict representation of the parameters in this class
101+
102+
:returns: The dict value representation of the class parameters
103+
:rtype: dict
104+
105+
106+

0 commit comments

Comments
 (0)