@@ -22,9 +22,10 @@ class ChatllmTask(AbstractApiClass):
2222 numUnreadTaskInstances (int): The number of unread task instances for the chatllm task.
2323 computePointsUsed (int): The compute points used for the chatllm task.
2424 displayMarkdown (str): The display markdown for the chatllm task.
25+ requiresNewConversation (bool): Whether a new conversation is required for the chatllm task.
2526 """
2627
27- def __init__ (self , client , chatllmTaskId = None , daemonTaskId = None , taskType = None , name = None , instructions = None , lifecycle = None , scheduleInfo = None , externalApplicationId = None , deploymentConversationId = None , sourceDeploymentConversationId = None , enableEmailAlerts = None , email = None , numUnreadTaskInstances = None , computePointsUsed = None , displayMarkdown = None ):
28+ def __init__ (self , client , chatllmTaskId = None , daemonTaskId = None , taskType = None , name = None , instructions = None , lifecycle = None , scheduleInfo = None , externalApplicationId = None , deploymentConversationId = None , sourceDeploymentConversationId = None , enableEmailAlerts = None , email = None , numUnreadTaskInstances = None , computePointsUsed = None , displayMarkdown = None , requiresNewConversation = None ):
2829 super ().__init__ (client , chatllmTaskId )
2930 self .chatllm_task_id = chatllmTaskId
3031 self .daemon_task_id = daemonTaskId
@@ -41,11 +42,12 @@ def __init__(self, client, chatllmTaskId=None, daemonTaskId=None, taskType=None,
4142 self .num_unread_task_instances = numUnreadTaskInstances
4243 self .compute_points_used = computePointsUsed
4344 self .display_markdown = displayMarkdown
45+ self .requires_new_conversation = requiresNewConversation
4446 self .deprecated_keys = {}
4547
4648 def __repr__ (self ):
4749 repr_dict = {f'chatllm_task_id' : repr (self .chatllm_task_id ), f'daemon_task_id' : repr (self .daemon_task_id ), f'task_type' : repr (self .task_type ), f'name' : repr (self .name ), f'instructions' : repr (self .instructions ), f'lifecycle' : repr (self .lifecycle ), f'schedule_info' : repr (self .schedule_info ), f'external_application_id' : repr (self .external_application_id ), f'deployment_conversation_id' : repr (
48- self .deployment_conversation_id ), f'source_deployment_conversation_id' : repr (self .source_deployment_conversation_id ), f'enable_email_alerts' : repr (self .enable_email_alerts ), f'email' : repr (self .email ), f'num_unread_task_instances' : repr (self .num_unread_task_instances ), f'compute_points_used' : repr (self .compute_points_used ), f'display_markdown' : repr (self .display_markdown )}
50+ self .deployment_conversation_id ), f'source_deployment_conversation_id' : repr (self .source_deployment_conversation_id ), f'enable_email_alerts' : repr (self .enable_email_alerts ), f'email' : repr (self .email ), f'num_unread_task_instances' : repr (self .num_unread_task_instances ), f'compute_points_used' : repr (self .compute_points_used ), f'display_markdown' : repr (self .display_markdown ), f'requires_new_conversation' : repr ( self . requires_new_conversation ) }
4951 class_name = "ChatllmTask"
5052 repr_str = ',\n ' .join ([f'{ key } ={ value } ' for key , value in repr_dict .items (
5153 ) if getattr (self , key , None ) is not None and key not in self .deprecated_keys ])
@@ -58,6 +60,6 @@ def to_dict(self):
5860 Returns:
5961 dict: The dict value representation of the class parameters
6062 """
61- resp = {'chatllm_task_id' : self .chatllm_task_id , 'daemon_task_id' : self .daemon_task_id , 'task_type' : self .task_type , 'name' : self .name , 'instructions' : self .instructions , 'lifecycle' : self .lifecycle , 'schedule_info' : self .schedule_info , 'external_application_id' : self .external_application_id , 'deployment_conversation_id' :
62- self . deployment_conversation_id , 'source_deployment_conversation_id' : self .source_deployment_conversation_id , 'enable_email_alerts' : self .enable_email_alerts , 'email' : self .email , 'num_unread_task_instances' : self .num_unread_task_instances , 'compute_points_used' : self .compute_points_used , 'display_markdown' : self .display_markdown }
63+ resp = {'chatllm_task_id' : self .chatllm_task_id , 'daemon_task_id' : self .daemon_task_id , 'task_type' : self .task_type , 'name' : self .name , 'instructions' : self .instructions , 'lifecycle' : self .lifecycle , 'schedule_info' : self .schedule_info , 'external_application_id' : self .external_application_id , 'deployment_conversation_id' : self . deployment_conversation_id ,
64+ 'source_deployment_conversation_id' : self .source_deployment_conversation_id , 'enable_email_alerts' : self .enable_email_alerts , 'email' : self .email , 'num_unread_task_instances' : self .num_unread_task_instances , 'compute_points_used' : self .compute_points_used , 'display_markdown' : self .display_markdown , 'requires_new_conversation' : self . requires_new_conversation }
6365 return {key : value for key , value in resp .items () if value is not None and key not in self .deprecated_keys }
0 commit comments