@@ -42,12 +42,14 @@ class DeploymentConversation(AbstractApiClass):
4242 latestContext (dict): dict containing a list of important segments for pagination in deepagent.
4343 shareType (str): The sharing status of the deployment conversation (PUBLIC or PRIVATE).
4444 pushNotificationsEnabled (bool): Whether push notifications are enabled for the deployment conversation.
45+ platform (str): The platform the conversation was created from (WEB, IOS, ANDROID).
46+ agentType (str): The type of agent for the deployment conversation (e.g., META_AGENT).
4547 history (DeploymentConversationEvent): The history of the deployment conversation.
4648 hostedArtifacts (HostedArtifact): Artifacts that have been deployed by this conversation.
4749 mobileBuildInfo (MobileBuildInfo): List of mobile app builds with type, build URL, status, and IDs.
4850 """
4951
50- def __init__ (self , client , deploymentConversationId = None , name = None , deploymentId = None , ownerUserId = None , ownerOrgId = None , createdAt = None , lastEventCreatedAt = None , hasHistory = None , externalSessionId = None , regenerateAttempt = None , externalApplicationId = None , unusedDocumentUploadIds = None , humanizeInstructions = None , conversationWarning = None , conversationType = None , metadata = None , llmDisplayName = None , llmBotIcon = None , searchSuggestions = None , chatllmTaskId = None , conversationStatus = None , computerStatus = None , filesystemStatus = None , totalEvents = None , contestNames = None , daemonTaskId = None , parentDeploymentConversationId = None , introMessage = None , previewInfo = None , latestContext = None , shareType = None , pushNotificationsEnabled = None , history = {}, hostedArtifacts = {}, mobileBuildInfo = {}):
52+ def __init__ (self , client , deploymentConversationId = None , name = None , deploymentId = None , ownerUserId = None , ownerOrgId = None , createdAt = None , lastEventCreatedAt = None , hasHistory = None , externalSessionId = None , regenerateAttempt = None , externalApplicationId = None , unusedDocumentUploadIds = None , humanizeInstructions = None , conversationWarning = None , conversationType = None , metadata = None , llmDisplayName = None , llmBotIcon = None , searchSuggestions = None , chatllmTaskId = None , conversationStatus = None , computerStatus = None , filesystemStatus = None , totalEvents = None , contestNames = None , daemonTaskId = None , parentDeploymentConversationId = None , introMessage = None , previewInfo = None , latestContext = None , shareType = None , pushNotificationsEnabled = None , platform = None , agentType = None , history = {}, hostedArtifacts = {}, mobileBuildInfo = {}):
5153 super ().__init__ (client , deploymentConversationId )
5254 self .deployment_conversation_id = deploymentConversationId
5355 self .name = name
@@ -81,6 +83,8 @@ def __init__(self, client, deploymentConversationId=None, name=None, deploymentI
8183 self .latest_context = latestContext
8284 self .share_type = shareType
8385 self .push_notifications_enabled = pushNotificationsEnabled
86+ self .platform = platform
87+ self .agent_type = agentType
8488 self .history = client ._build_class (
8589 DeploymentConversationEvent , history )
8690 self .hosted_artifacts = client ._build_class (
@@ -91,7 +95,7 @@ def __init__(self, client, deploymentConversationId=None, name=None, deploymentI
9195
9296 def __repr__ (self ):
9397 repr_dict = {f'deployment_conversation_id' : repr (self .deployment_conversation_id ), f'name' : repr (self .name ), f'deployment_id' : repr (self .deployment_id ), f'owner_user_id' : repr (self .owner_user_id ), f'owner_org_id' : repr (self .owner_org_id ), f'created_at' : repr (self .created_at ), f'last_event_created_at' : repr (self .last_event_created_at ), f'has_history' : repr (self .has_history ), f'external_session_id' : repr (self .external_session_id ), f'regenerate_attempt' : repr (self .regenerate_attempt ), f'external_application_id' : repr (self .external_application_id ), f'unused_document_upload_ids' : repr (self .unused_document_upload_ids ), f'humanize_instructions' : repr (self .humanize_instructions ), f'conversation_warning' : repr (self .conversation_warning ), f'conversation_type' : repr (self .conversation_type ), f'metadata' : repr (self .metadata ), f'llm_display_name' : repr (self .llm_display_name ), f'llm_bot_icon' : repr (
94- self .llm_bot_icon ), f'search_suggestions' : repr (self .search_suggestions ), f'chatllm_task_id' : repr (self .chatllm_task_id ), f'conversation_status' : repr (self .conversation_status ), f'computer_status' : repr (self .computer_status ), f'filesystem_status' : repr (self .filesystem_status ), f'total_events' : repr (self .total_events ), f'contest_names' : repr (self .contest_names ), f'daemon_task_id' : repr (self .daemon_task_id ), f'parent_deployment_conversation_id' : repr (self .parent_deployment_conversation_id ), f'intro_message' : repr (self .intro_message ), f'preview_info' : repr (self .preview_info ), f'latest_context' : repr (self .latest_context ), f'share_type' : repr (self .share_type ), f'push_notifications_enabled' : repr (self .push_notifications_enabled ), f'history' : repr (self .history ), f'hosted_artifacts' : repr (self .hosted_artifacts ), f'mobile_build_info' : repr (self .mobile_build_info )}
98+ self .llm_bot_icon ), f'search_suggestions' : repr (self .search_suggestions ), f'chatllm_task_id' : repr (self .chatllm_task_id ), f'conversation_status' : repr (self .conversation_status ), f'computer_status' : repr (self .computer_status ), f'filesystem_status' : repr (self .filesystem_status ), f'total_events' : repr (self .total_events ), f'contest_names' : repr (self .contest_names ), f'daemon_task_id' : repr (self .daemon_task_id ), f'parent_deployment_conversation_id' : repr (self .parent_deployment_conversation_id ), f'intro_message' : repr (self .intro_message ), f'preview_info' : repr (self .preview_info ), f'latest_context' : repr (self .latest_context ), f'share_type' : repr (self .share_type ), f'push_notifications_enabled' : repr (self .push_notifications_enabled ), f'platform' : repr ( self . platform ), f'agent_type' : repr ( self . agent_type ), f' history' : repr (self .history ), f'hosted_artifacts' : repr (self .hosted_artifacts ), f'mobile_build_info' : repr (self .mobile_build_info )}
9599 class_name = "DeploymentConversation"
96100 repr_str = ',\n ' .join ([f'{ key } ={ value } ' for key , value in repr_dict .items (
97101 ) if getattr (self , key , None ) is not None and key not in self .deprecated_keys ])
@@ -104,8 +108,8 @@ def to_dict(self):
104108 Returns:
105109 dict: The dict value representation of the class parameters
106110 """
107- resp = {'deployment_conversation_id' : self .deployment_conversation_id , 'name' : self .name , 'deployment_id' : self .deployment_id , 'owner_user_id' : self .owner_user_id , 'owner_org_id' : self .owner_org_id , 'created_at' : self .created_at , 'last_event_created_at' : self .last_event_created_at , 'has_history' : self .has_history , 'external_session_id' : self .external_session_id , 'regenerate_attempt' : self .regenerate_attempt , 'external_application_id' : self .external_application_id , 'unused_document_upload_ids' : self .unused_document_upload_ids , 'humanize_instructions' : self .humanize_instructions , 'conversation_warning' : self .conversation_warning , 'conversation_type' : self .conversation_type , 'metadata' : self .metadata , 'llm_display_name' : self .llm_display_name , 'llm_bot_icon' : self .llm_bot_icon ,
108- 'search_suggestions' : self . search_suggestions , ' chatllm_task_id' : self .chatllm_task_id , 'conversation_status' : self .conversation_status , 'computer_status' : self .computer_status , 'filesystem_status' : self .filesystem_status , 'total_events' : self .total_events , 'contest_names' : self .contest_names , 'daemon_task_id' : self .daemon_task_id , 'parent_deployment_conversation_id' : self .parent_deployment_conversation_id , 'intro_message' : self .intro_message , 'preview_info' : self .preview_info , 'latest_context' : self .latest_context , 'share_type' : self .share_type , 'push_notifications_enabled' : self .push_notifications_enabled , 'history' : self ._get_attribute_as_dict (self .history ), 'hosted_artifacts' : self ._get_attribute_as_dict (self .hosted_artifacts ), 'mobile_build_info' : self ._get_attribute_as_dict (self .mobile_build_info )}
111+ resp = {'deployment_conversation_id' : self .deployment_conversation_id , 'name' : self .name , 'deployment_id' : self .deployment_id , 'owner_user_id' : self .owner_user_id , 'owner_org_id' : self .owner_org_id , 'created_at' : self .created_at , 'last_event_created_at' : self .last_event_created_at , 'has_history' : self .has_history , 'external_session_id' : self .external_session_id , 'regenerate_attempt' : self .regenerate_attempt , 'external_application_id' : self .external_application_id , 'unused_document_upload_ids' : self .unused_document_upload_ids , 'humanize_instructions' : self .humanize_instructions , 'conversation_warning' : self .conversation_warning , 'conversation_type' : self .conversation_type , 'metadata' : self .metadata , 'llm_display_name' : self .llm_display_name , 'llm_bot_icon' : self .llm_bot_icon , 'search_suggestions' : self . search_suggestions ,
112+ 'chatllm_task_id' : self .chatllm_task_id , 'conversation_status' : self .conversation_status , 'computer_status' : self .computer_status , 'filesystem_status' : self .filesystem_status , 'total_events' : self .total_events , 'contest_names' : self .contest_names , 'daemon_task_id' : self .daemon_task_id , 'parent_deployment_conversation_id' : self .parent_deployment_conversation_id , 'intro_message' : self .intro_message , 'preview_info' : self .preview_info , 'latest_context' : self .latest_context , 'share_type' : self .share_type , 'push_notifications_enabled' : self .push_notifications_enabled , 'platform' : self . platform , 'agent_type' : self . agent_type , 'history' : self ._get_attribute_as_dict (self .history ), 'hosted_artifacts' : self ._get_attribute_as_dict (self .hosted_artifacts ), 'mobile_build_info' : self ._get_attribute_as_dict (self .mobile_build_info )}
109113 return {key : value for key , value in resp .items () if value is not None and key not in self .deprecated_keys }
110114
111115 def get (self , external_session_id : str = None , deployment_id : str = None , filter_intermediate_conversation_events : bool = True , get_unused_document_uploads : bool = False , start : int = None , limit : int = None , include_all_versions : bool = False ):
0 commit comments