microsoft-agents-activity 0.2.0__py3-none-any.whl → 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of microsoft-agents-activity might be problematic. Click here for more details.

Files changed (197) hide show
  1. {microsoft/agents → microsoft_agents}/activity/activity.py +20 -20
  2. {microsoft/agents → microsoft_agents}/activity/adaptive_card_invoke_value.py +2 -2
  3. {microsoft/agents → microsoft_agents}/activity/animation_card.py +3 -3
  4. {microsoft/agents → microsoft_agents}/activity/attachment_info.py +1 -1
  5. {microsoft/agents → microsoft_agents}/activity/audio_card.py +3 -3
  6. {microsoft/agents → microsoft_agents}/activity/basic_card.py +3 -3
  7. {microsoft/agents → microsoft_agents}/activity/card_action.py +1 -1
  8. {microsoft/agents → microsoft_agents}/activity/card_image.py +1 -1
  9. {microsoft/agents → microsoft_agents}/activity/channel_account.py +1 -1
  10. {microsoft/agents → microsoft_agents}/activity/channel_adapter_protocol.py +1 -1
  11. {microsoft/agents → microsoft_agents}/activity/conversation_account.py +1 -1
  12. {microsoft/agents → microsoft_agents}/activity/conversation_members.py +1 -1
  13. {microsoft/agents → microsoft_agents}/activity/conversation_parameters.py +3 -3
  14. {microsoft/agents → microsoft_agents}/activity/conversation_reference.py +3 -3
  15. {microsoft/agents → microsoft_agents}/activity/conversations_result.py +1 -1
  16. {microsoft/agents → microsoft_agents}/activity/error.py +1 -1
  17. {microsoft/agents → microsoft_agents}/activity/error_response.py +1 -1
  18. {microsoft/agents → microsoft_agents}/activity/expected_replies.py +1 -1
  19. {microsoft/agents → microsoft_agents}/activity/hero_card.py +3 -3
  20. {microsoft/agents → microsoft_agents}/activity/media_card.py +3 -3
  21. {microsoft/agents → microsoft_agents}/activity/mention.py +1 -1
  22. {microsoft/agents → microsoft_agents}/activity/message_reaction.py +1 -1
  23. {microsoft/agents → microsoft_agents}/activity/oauth_card.py +1 -1
  24. {microsoft/agents → microsoft_agents}/activity/paged_members_result.py +1 -1
  25. {microsoft/agents → microsoft_agents}/activity/receipt_card.py +4 -4
  26. {microsoft/agents → microsoft_agents}/activity/receipt_item.py +2 -2
  27. {microsoft/agents → microsoft_agents}/activity/semantic_action.py +2 -2
  28. {microsoft/agents → microsoft_agents}/activity/signin_card.py +1 -1
  29. {microsoft/agents → microsoft_agents}/activity/suggested_actions.py +1 -1
  30. {microsoft/agents → microsoft_agents}/activity/thumbnail_card.py +3 -3
  31. {microsoft/agents → microsoft_agents}/activity/token_exchange_state.py +2 -2
  32. {microsoft/agents → microsoft_agents}/activity/token_response.py +3 -0
  33. {microsoft/agents → microsoft_agents}/activity/transcript.py +1 -1
  34. {microsoft/agents → microsoft_agents}/activity/turn_context_protocol.py +1 -1
  35. {microsoft/agents → microsoft_agents}/activity/video_card.py +3 -3
  36. {microsoft_agents_activity-0.2.0.dist-info → microsoft_agents_activity-0.3.0.dist-info}/METADATA +1 -1
  37. microsoft_agents_activity-0.3.0.dist-info/RECORD +195 -0
  38. microsoft_agents_activity-0.3.0.dist-info/top_level.txt +1 -0
  39. microsoft_agents_activity-0.2.0.dist-info/RECORD +0 -195
  40. microsoft_agents_activity-0.2.0.dist-info/top_level.txt +0 -1
  41. {microsoft/agents → microsoft_agents}/activity/__init__.py +0 -0
  42. {microsoft/agents → microsoft_agents}/activity/_load_configuration.py +0 -0
  43. {microsoft/agents → microsoft_agents}/activity/_type_aliases.py +0 -0
  44. {microsoft/agents → microsoft_agents}/activity/action_types.py +0 -0
  45. {microsoft/agents → microsoft_agents}/activity/activity_event_names.py +0 -0
  46. {microsoft/agents → microsoft_agents}/activity/activity_importance.py +0 -0
  47. {microsoft/agents → microsoft_agents}/activity/activity_types.py +0 -0
  48. {microsoft/agents → microsoft_agents}/activity/adaptive_card_invoke_action.py +0 -0
  49. {microsoft/agents → microsoft_agents}/activity/adaptive_card_invoke_response.py +0 -0
  50. {microsoft/agents → microsoft_agents}/activity/agents_model.py +0 -0
  51. {microsoft/agents → microsoft_agents}/activity/ai_entity.py +0 -0
  52. {microsoft/agents → microsoft_agents}/activity/attachment.py +0 -0
  53. {microsoft/agents → microsoft_agents}/activity/attachment_data.py +0 -0
  54. {microsoft/agents → microsoft_agents}/activity/attachment_layout_types.py +0 -0
  55. {microsoft/agents → microsoft_agents}/activity/attachment_view.py +0 -0
  56. {microsoft/agents → microsoft_agents}/activity/caller_id_constants.py +0 -0
  57. {microsoft/agents → microsoft_agents}/activity/channels.py +0 -0
  58. {microsoft/agents → microsoft_agents}/activity/contact_relation_update_action_types.py +0 -0
  59. {microsoft/agents → microsoft_agents}/activity/conversation_resource_response.py +0 -0
  60. {microsoft/agents → microsoft_agents}/activity/conversation_update_types.py +0 -0
  61. {microsoft/agents → microsoft_agents}/activity/delivery_modes.py +0 -0
  62. {microsoft/agents → microsoft_agents}/activity/end_of_conversation_codes.py +0 -0
  63. {microsoft/agents → microsoft_agents}/activity/entity.py +0 -0
  64. {microsoft/agents → microsoft_agents}/activity/fact.py +0 -0
  65. {microsoft/agents → microsoft_agents}/activity/geo_coordinates.py +0 -0
  66. {microsoft/agents → microsoft_agents}/activity/inner_http_error.py +0 -0
  67. {microsoft/agents → microsoft_agents}/activity/input_hints.py +0 -0
  68. {microsoft/agents → microsoft_agents}/activity/installation_update_action_types.py +0 -0
  69. {microsoft/agents → microsoft_agents}/activity/invoke_response.py +0 -0
  70. {microsoft/agents → microsoft_agents}/activity/media_event_value.py +0 -0
  71. {microsoft/agents → microsoft_agents}/activity/media_url.py +0 -0
  72. {microsoft/agents → microsoft_agents}/activity/message_reaction_types.py +0 -0
  73. {microsoft/agents → microsoft_agents}/activity/message_update_types.py +0 -0
  74. {microsoft/agents → microsoft_agents}/activity/place.py +0 -0
  75. {microsoft/agents → microsoft_agents}/activity/resource_response.py +0 -0
  76. {microsoft/agents → microsoft_agents}/activity/role_types.py +0 -0
  77. {microsoft/agents → microsoft_agents}/activity/semantic_actions_states.py +0 -0
  78. {microsoft/agents → microsoft_agents}/activity/sign_in_constants.py +0 -0
  79. {microsoft/agents → microsoft_agents}/activity/sign_in_resource.py +0 -0
  80. {microsoft/agents → microsoft_agents}/activity/teams/__init__.py +0 -0
  81. {microsoft/agents → microsoft_agents}/activity/teams/app_based_link_query.py +0 -0
  82. {microsoft/agents → microsoft_agents}/activity/teams/batch_failed_entries_response.py +0 -0
  83. {microsoft/agents → microsoft_agents}/activity/teams/batch_failed_entry.py +0 -0
  84. {microsoft/agents → microsoft_agents}/activity/teams/batch_operation_response.py +0 -0
  85. {microsoft/agents → microsoft_agents}/activity/teams/batch_operation_state_response.py +0 -0
  86. {microsoft/agents → microsoft_agents}/activity/teams/bot_config_auth.py +0 -0
  87. {microsoft/agents → microsoft_agents}/activity/teams/cache_info.py +0 -0
  88. {microsoft/agents → microsoft_agents}/activity/teams/cancel_operation_response.py +0 -0
  89. {microsoft/agents → microsoft_agents}/activity/teams/channel_info.py +0 -0
  90. {microsoft/agents → microsoft_agents}/activity/teams/config_auth_response.py +0 -0
  91. {microsoft/agents → microsoft_agents}/activity/teams/config_response.py +0 -0
  92. {microsoft/agents → microsoft_agents}/activity/teams/config_response_base.py +0 -0
  93. {microsoft/agents → microsoft_agents}/activity/teams/config_task_response.py +0 -0
  94. {microsoft/agents → microsoft_agents}/activity/teams/conversation_list.py +0 -0
  95. {microsoft/agents → microsoft_agents}/activity/teams/file_consent_card.py +0 -0
  96. {microsoft/agents → microsoft_agents}/activity/teams/file_consent_card_response.py +0 -0
  97. {microsoft/agents → microsoft_agents}/activity/teams/file_download_info.py +0 -0
  98. {microsoft/agents → microsoft_agents}/activity/teams/file_info_card.py +0 -0
  99. {microsoft/agents → microsoft_agents}/activity/teams/file_upload_info.py +0 -0
  100. {microsoft/agents → microsoft_agents}/activity/teams/meeting_details.py +0 -0
  101. {microsoft/agents → microsoft_agents}/activity/teams/meeting_details_base.py +0 -0
  102. {microsoft/agents → microsoft_agents}/activity/teams/meeting_end_event_details.py +0 -0
  103. {microsoft/agents → microsoft_agents}/activity/teams/meeting_event_details.py +0 -0
  104. {microsoft/agents → microsoft_agents}/activity/teams/meeting_info.py +0 -0
  105. {microsoft/agents → microsoft_agents}/activity/teams/meeting_notification.py +0 -0
  106. {microsoft/agents → microsoft_agents}/activity/teams/meeting_notification_base.py +0 -0
  107. {microsoft/agents → microsoft_agents}/activity/teams/meeting_notification_channel_data.py +0 -0
  108. {microsoft/agents → microsoft_agents}/activity/teams/meeting_notification_recipient_failure_info.py +0 -0
  109. {microsoft/agents → microsoft_agents}/activity/teams/meeting_notification_response.py +0 -0
  110. {microsoft/agents → microsoft_agents}/activity/teams/meeting_participant_info.py +0 -0
  111. {microsoft/agents → microsoft_agents}/activity/teams/meeting_participants_event_details.py +0 -0
  112. {microsoft/agents → microsoft_agents}/activity/teams/meeting_stage_surface.py +0 -0
  113. {microsoft/agents → microsoft_agents}/activity/teams/meeting_start_event_details.py +0 -0
  114. {microsoft/agents → microsoft_agents}/activity/teams/meeting_tab_icon_surface.py +0 -0
  115. {microsoft/agents → microsoft_agents}/activity/teams/message_actions_payload.py +0 -0
  116. {microsoft/agents → microsoft_agents}/activity/teams/message_actions_payload_app.py +0 -0
  117. {microsoft/agents → microsoft_agents}/activity/teams/message_actions_payload_attachment.py +0 -0
  118. {microsoft/agents → microsoft_agents}/activity/teams/message_actions_payload_body.py +0 -0
  119. {microsoft/agents → microsoft_agents}/activity/teams/message_actions_payload_conversation.py +0 -0
  120. {microsoft/agents → microsoft_agents}/activity/teams/message_actions_payload_from.py +0 -0
  121. {microsoft/agents → microsoft_agents}/activity/teams/message_actions_payload_mention.py +0 -0
  122. {microsoft/agents → microsoft_agents}/activity/teams/message_actions_payload_reaction.py +0 -0
  123. {microsoft/agents → microsoft_agents}/activity/teams/message_actions_payload_user.py +0 -0
  124. {microsoft/agents → microsoft_agents}/activity/teams/messaging_extension_action.py +0 -0
  125. {microsoft/agents → microsoft_agents}/activity/teams/messaging_extension_action_response.py +0 -0
  126. {microsoft/agents → microsoft_agents}/activity/teams/messaging_extension_attachment.py +0 -0
  127. {microsoft/agents → microsoft_agents}/activity/teams/messaging_extension_parameter.py +0 -0
  128. {microsoft/agents → microsoft_agents}/activity/teams/messaging_extension_query.py +0 -0
  129. {microsoft/agents → microsoft_agents}/activity/teams/messaging_extension_query_options.py +0 -0
  130. {microsoft/agents → microsoft_agents}/activity/teams/messaging_extension_response.py +0 -0
  131. {microsoft/agents → microsoft_agents}/activity/teams/messaging_extension_result.py +0 -0
  132. {microsoft/agents → microsoft_agents}/activity/teams/messaging_extension_suggested_action.py +0 -0
  133. {microsoft/agents → microsoft_agents}/activity/teams/notification_info.py +0 -0
  134. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card.py +0 -0
  135. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_action_base.py +0 -0
  136. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_action_card.py +0 -0
  137. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_action_query.py +0 -0
  138. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_date_input.py +0 -0
  139. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_fact.py +0 -0
  140. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_http_post.py +0 -0
  141. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_image.py +0 -0
  142. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_input_base.py +0 -0
  143. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_multichoice_input.py +0 -0
  144. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_multichoice_input_choice.py +0 -0
  145. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_open_uri.py +0 -0
  146. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_open_uri_target.py +0 -0
  147. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_section.py +0 -0
  148. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_text_input.py +0 -0
  149. {microsoft/agents → microsoft_agents}/activity/teams/o365_connector_card_view_action.py +0 -0
  150. {microsoft/agents → microsoft_agents}/activity/teams/on_behalf_of.py +0 -0
  151. {microsoft/agents → microsoft_agents}/activity/teams/read_receipt_info.py +0 -0
  152. {microsoft/agents → microsoft_agents}/activity/teams/signin_state_verification_query.py +0 -0
  153. {microsoft/agents → microsoft_agents}/activity/teams/surface.py +0 -0
  154. {microsoft/agents → microsoft_agents}/activity/teams/tab_context.py +0 -0
  155. {microsoft/agents → microsoft_agents}/activity/teams/tab_entity_context.py +0 -0
  156. {microsoft/agents → microsoft_agents}/activity/teams/tab_request.py +0 -0
  157. {microsoft/agents → microsoft_agents}/activity/teams/tab_response.py +0 -0
  158. {microsoft/agents → microsoft_agents}/activity/teams/tab_response_card.py +0 -0
  159. {microsoft/agents → microsoft_agents}/activity/teams/tab_response_cards.py +0 -0
  160. {microsoft/agents → microsoft_agents}/activity/teams/tab_response_payload.py +0 -0
  161. {microsoft/agents → microsoft_agents}/activity/teams/tab_submit.py +0 -0
  162. {microsoft/agents → microsoft_agents}/activity/teams/tab_submit_data.py +0 -0
  163. {microsoft/agents → microsoft_agents}/activity/teams/tab_suggested_actions.py +0 -0
  164. {microsoft/agents → microsoft_agents}/activity/teams/targeted_meeting_notification.py +0 -0
  165. {microsoft/agents → microsoft_agents}/activity/teams/targeted_meeting_notification_value.py +0 -0
  166. {microsoft/agents → microsoft_agents}/activity/teams/task_module_card_response.py +0 -0
  167. {microsoft/agents → microsoft_agents}/activity/teams/task_module_continue_response.py +0 -0
  168. {microsoft/agents → microsoft_agents}/activity/teams/task_module_message_response.py +0 -0
  169. {microsoft/agents → microsoft_agents}/activity/teams/task_module_request.py +0 -0
  170. {microsoft/agents → microsoft_agents}/activity/teams/task_module_request_context.py +0 -0
  171. {microsoft/agents → microsoft_agents}/activity/teams/task_module_response.py +0 -0
  172. {microsoft/agents → microsoft_agents}/activity/teams/task_module_response_base.py +0 -0
  173. {microsoft/agents → microsoft_agents}/activity/teams/task_module_task_info.py +0 -0
  174. {microsoft/agents → microsoft_agents}/activity/teams/team_details.py +0 -0
  175. {microsoft/agents → microsoft_agents}/activity/teams/team_info.py +0 -0
  176. {microsoft/agents → microsoft_agents}/activity/teams/teams_batch_operation_response.py +0 -0
  177. {microsoft/agents → microsoft_agents}/activity/teams/teams_channel_account.py +0 -0
  178. {microsoft/agents → microsoft_agents}/activity/teams/teams_channel_data.py +0 -0
  179. {microsoft/agents → microsoft_agents}/activity/teams/teams_channel_data_settings.py +0 -0
  180. {microsoft/agents → microsoft_agents}/activity/teams/teams_meeting_info.py +0 -0
  181. {microsoft/agents → microsoft_agents}/activity/teams/teams_meeting_member.py +0 -0
  182. {microsoft/agents → microsoft_agents}/activity/teams/teams_meeting_participant.py +0 -0
  183. {microsoft/agents → microsoft_agents}/activity/teams/teams_member.py +0 -0
  184. {microsoft/agents → microsoft_agents}/activity/teams/teams_paged_members_result.py +0 -0
  185. {microsoft/agents → microsoft_agents}/activity/teams/tenant_info.py +0 -0
  186. {microsoft/agents → microsoft_agents}/activity/teams/user_meeting_details.py +0 -0
  187. {microsoft/agents → microsoft_agents}/activity/text_format_types.py +0 -0
  188. {microsoft/agents → microsoft_agents}/activity/text_highlight.py +0 -0
  189. {microsoft/agents → microsoft_agents}/activity/thing.py +0 -0
  190. {microsoft/agents → microsoft_agents}/activity/thumbnail_url.py +0 -0
  191. {microsoft/agents → microsoft_agents}/activity/token_exchange_invoke_request.py +0 -0
  192. {microsoft/agents → microsoft_agents}/activity/token_exchange_invoke_response.py +0 -0
  193. {microsoft/agents → microsoft_agents}/activity/token_exchange_resource.py +0 -0
  194. {microsoft/agents → microsoft_agents}/activity/token_post_resource.py +0 -0
  195. {microsoft/agents → microsoft_agents}/activity/token_request.py +0 -0
  196. {microsoft/agents → microsoft_agents}/activity/token_status.py +0 -0
  197. {microsoft_agents_activity-0.2.0.dist-info → microsoft_agents_activity-0.3.0.dist-info}/WHEEL +0 -0
@@ -27,7 +27,7 @@ class Activity(AgentsModel):
27
27
  'endOfConversation', 'event', 'invoke', 'deleteUserData', 'messageUpdate',
28
28
  'messageDelete', 'installationUpdate', 'messageReaction', 'suggestion',
29
29
  'trace', 'handoff'
30
- :type type: str or ~microsoft.agents.protocols.models.ActivityTypes
30
+ :type type: str or ~microsoft_agents.protocols.models.ActivityTypes
31
31
  :param id: Contains an ID that uniquely identifies the activity on the channel.
32
32
  :type id: str
33
33
  :param timestamp: Contains the date and time that the message was sent, in UTC, expressed in ISO-8601 format.
@@ -43,23 +43,23 @@ class Activity(AgentsModel):
43
43
  :param channel_id: Contains an ID that uniquely identifies the channel. Set by the channel.
44
44
  :type channel_id: str
45
45
  :param from_property: Identifies the sender of the message.
46
- :type from_property: ~microsoft.agents.protocols.models.ChannelAccount
46
+ :type from_property: ~microsoft_agents.protocols.models.ChannelAccount
47
47
  :param conversation: Identifies the conversation to which the activity belongs.
48
- :type conversation: ~microsoft.agents.protocols.models.ConversationAccount
48
+ :type conversation: ~microsoft_agents.protocols.models.ConversationAccount
49
49
  :param recipient: Identifies the recipient of the message.
50
- :type recipient: ~microsoft.agents.protocols.models.ChannelAccount
50
+ :type recipient: ~microsoft_agents.protocols.models.ChannelAccount
51
51
  :param text_format: Format of text fields Default:markdown. Possible values include: 'markdown', 'plain', 'xml'
52
- :type text_format: str or ~microsoft.agents.protocols.models.TextFormatTypes
52
+ :type text_format: str or ~microsoft_agents.protocols.models.TextFormatTypes
53
53
  :param attachment_layout: The layout hint for multiple attachments. Default: list. Possible values include: 'list', 'carousel'
54
- :type attachment_layout: str or ~microsoft.agents.protocols.models.AttachmentLayoutTypes
54
+ :type attachment_layout: str or ~microsoft_agents.protocols.models.AttachmentLayoutTypes
55
55
  :param members_added: The collection of members added to the conversation.
56
- :type members_added: list[~microsoft.agents.protocols.models.ChannelAccount]
56
+ :type members_added: list[~microsoft_agents.protocols.models.ChannelAccount]
57
57
  :param members_removed: The collection of members removed from the conversation.
58
- :type members_removed: list[~microsoft.agents.protocols.models.ChannelAccount]
58
+ :type members_removed: list[~microsoft_agents.protocols.models.ChannelAccount]
59
59
  :param reactions_added: The collection of reactions added to the conversation.
60
- :type reactions_added: list[~microsoft.agents.protocols.models.MessageReaction]
60
+ :type reactions_added: list[~microsoft_agents.protocols.models.MessageReaction]
61
61
  :param reactions_removed: The collection of reactions removed from the conversation.
62
- :type reactions_removed: list[~microsoft.agents.protocols.models.MessageReaction]
62
+ :type reactions_removed: list[~microsoft_agents.protocols.models.MessageReaction]
63
63
  :param topic_name: The updated topic name of the conversation.
64
64
  :type topic_name: str
65
65
  :param history_disclosed: Indicates whether the prior history of the channel is disclosed.
@@ -74,15 +74,15 @@ class Activity(AgentsModel):
74
74
  :type speak: str
75
75
  :param input_hint: Indicates whether your agent is accepting, expecting, or ignoring user input after the message is delivered to the client.
76
76
  Possible values include: 'acceptingInput', 'ignoringInput', 'expectingInput'
77
- :type input_hint: str or ~microsoft.agents.protocols.models.InputHints
77
+ :type input_hint: str or ~microsoft_agents.protocols.models.InputHints
78
78
  :param summary: The text to display if the channel cannot render cards.
79
79
  :type summary: str
80
80
  :param suggested_actions: The suggested actions for the activity.
81
- :type suggested_actions: ~microsoft.agents.protocols.models.SuggestedActions
81
+ :type suggested_actions: ~microsoft_agents.protocols.models.SuggestedActions
82
82
  :param attachments: Attachments
83
- :type attachments: list[~microsoft.agents.protocols.models.Attachment]
83
+ :type attachments: list[~microsoft_agents.protocols.models.Attachment]
84
84
  :param entities: Represents the entities that were mentioned in the message.
85
- :type entities: list[~microsoft.agents.protocols.models.Entity]
85
+ :type entities: list[~microsoft_agents.protocols.models.Entity]
86
86
  :param channel_data: Contains channel-specific content.
87
87
  :type channel_data: object
88
88
  :param action: Indicates whether the recipient of a contactRelationUpdate was added or removed from the sender's contact list.
@@ -98,23 +98,23 @@ class Activity(AgentsModel):
98
98
  :param name: The name of the operation associated with an invoke or event activity.
99
99
  :type name: str
100
100
  :param relates_to: A reference to another conversation or activity.
101
- :type relates_to: ~microsoft.agents.protocols.models.ConversationReference
101
+ :type relates_to: ~microsoft_agents.protocols.models.ConversationReference
102
102
  :param code: The a code for endOfConversation activities that indicates why the conversation ended. Possible values include: 'unknown',
103
103
  'completedSuccessfully', 'userCancelled', 'botTimedOut', 'botIssuedInvalidMessage', 'channelFailed'
104
- :type code: str or ~microsoft.agents.protocols.models.EndOfConversationCodes
104
+ :type code: str or ~microsoft_agents.protocols.models.EndOfConversationCodes
105
105
  :param expiration: The time at which the activity should be considered to be "expired" and should not be presented to the recipient.
106
106
  :type expiration: datetime
107
107
  :param importance: The importance of the activity. Possible values include: 'low', 'normal', 'high'
108
- :type importance: str or ~microsoft.agents.protocols.models.ActivityImportance
108
+ :type importance: str or ~microsoft_agents.protocols.models.ActivityImportance
109
109
  :param delivery_mode: A delivery hint to signal to the recipient alternate delivery paths for the activity.
110
110
  The default delivery mode is "default". Possible values include: 'normal', 'notification', 'expectReplies', 'ephemeral'
111
- :type delivery_mode: str or ~microsoft.agents.protocols.models.DeliveryModes
111
+ :type delivery_mode: str or ~microsoft_agents.protocols.models.DeliveryModes
112
112
  :param listen_for: List of phrases and references that speech and language priming systems should listen for
113
113
  :type listen_for: list[str]
114
114
  :param text_highlights: The collection of text fragments to highlight when the activity contains a ReplyToId value.
115
- :type text_highlights: list[~microsoft.agents.protocols.models.TextHighlight]
115
+ :type text_highlights: list[~microsoft_agents.protocols.models.TextHighlight]
116
116
  :param semantic_action: An optional programmatic action accompanying this request
117
- :type semantic_action: ~microsoft.agents.protocols.models.SemanticAction
117
+ :type semantic_action: ~microsoft_agents.protocols.models.SemanticAction
118
118
  :param caller_id: A string containing an IRI identifying the caller of an agent. This field is not intended to be transmitted over the wire,
119
119
  but is instead populated by agents and clients based on cryptographically verifiable data that asserts the identity of the callers (e.g. tokens).
120
120
  :type caller_id: str
@@ -10,9 +10,9 @@ class AdaptiveCardInvokeValue(AgentsModel):
10
10
  Defines the structure that arrives in the Activity.Value for Invoke activity with Name of 'adaptiveCard/action'.
11
11
 
12
12
  :param action: The action of this adaptive card invoke action value.
13
- :type action: :class:`microsoft.agents.activity.models.AdaptiveCardInvokeAction`
13
+ :type action: :class:`microsoft_agents.activity.models.AdaptiveCardInvokeAction`
14
14
  :param authentication: The TokenExchangeInvokeRequest for this adaptive card invoke action value.
15
- :type authentication: :class:`microsoft.agents.activity.models.TokenExchangeInvokeRequest`
15
+ :type authentication: :class:`microsoft_agents.activity.models.TokenExchangeInvokeRequest`
16
16
  :param state: The 'state' or magic code for an OAuth flow.
17
17
  :type state: str
18
18
  """
@@ -15,12 +15,12 @@ class AnimationCard(AgentsModel):
15
15
  :param text: Text of this card
16
16
  :type text: str
17
17
  :param image: Thumbnail placeholder
18
- :type image: ~microsoft.agents.protocols.models.ThumbnailUrl
18
+ :type image: ~microsoft_agents.protocols.models.ThumbnailUrl
19
19
  :param media: Media URLs for this card. When this field contains more than
20
20
  one URL, each URL is an alternative format of the same content.
21
- :type media: list[~microsoft.agents.protocols.models.MediaUrl]
21
+ :type media: list[~microsoft_agents.protocols.models.MediaUrl]
22
22
  :param buttons: Actions on this card
23
- :type buttons: list[~microsoft.agents.protocols.models.CardAction]
23
+ :type buttons: list[~microsoft_agents.protocols.models.CardAction]
24
24
  :param shareable: This content may be shared with others (default:true)
25
25
  :type shareable: bool
26
26
  :param autoloop: Should the client loop playback at end of content
@@ -11,7 +11,7 @@ class AttachmentInfo(AgentsModel):
11
11
  :param type: ContentType of the attachment
12
12
  :type type: str
13
13
  :param views: attachment views
14
- :type views: list[~microsoft.agents.protocols.models.AttachmentView]
14
+ :type views: list[~microsoft_agents.protocols.models.AttachmentView]
15
15
  """
16
16
 
17
17
  name: NonEmptyString = None
@@ -15,12 +15,12 @@ class AudioCard(AgentsModel):
15
15
  :param text: Text of this card
16
16
  :type text: str
17
17
  :param image: Thumbnail placeholder
18
- :type image: ~microsoft.agents.protocols.models.ThumbnailUrl
18
+ :type image: ~microsoft_agents.protocols.models.ThumbnailUrl
19
19
  :param media: Media URLs for this card. When this field contains more than
20
20
  one URL, each URL is an alternative format of the same content.
21
- :type media: list[~microsoft.agents.protocols.models.MediaUrl]
21
+ :type media: list[~microsoft_agents.protocols.models.MediaUrl]
22
22
  :param buttons: Actions on this card
23
- :type buttons: list[~microsoft.agents.protocols.models.CardAction]
23
+ :type buttons: list[~microsoft_agents.protocols.models.CardAction]
24
24
  :param shareable: This content may be shared with others (default:true)
25
25
  :type shareable: bool
26
26
  :param autoloop: Should the client loop playback at end of content
@@ -14,12 +14,12 @@ class BasicCard(AgentsModel):
14
14
  :param text: Text for the card
15
15
  :type text: str
16
16
  :param images: Array of images for the card
17
- :type images: list[~microsoft.agents.protocols.models.CardImage]
17
+ :type images: list[~microsoft_agents.protocols.models.CardImage]
18
18
  :param buttons: Set of actions applicable to the current card
19
- :type buttons: list[~microsoft.agents.protocols.models.CardAction]
19
+ :type buttons: list[~microsoft_agents.protocols.models.CardAction]
20
20
  :param tap: This action will be activated when user taps on the card
21
21
  itself
22
- :type tap: ~microsoft.agents.protocols.models.CardAction
22
+ :type tap: ~microsoft_agents.protocols.models.CardAction
23
23
  """
24
24
 
25
25
  title: NonEmptyString = None
@@ -9,7 +9,7 @@ class CardAction(AgentsModel):
9
9
  :param type: The type of action implemented by this button. Possible
10
10
  values include: 'openUrl', 'imBack', 'postBack', 'playAudio', 'playVideo',
11
11
  'showImage', 'downloadFile', 'signin', 'call', 'messageBack'
12
- :type type: str or ~microsoft.agents.protocols.models.ActionTypes
12
+ :type type: str or ~microsoft_agents.protocols.models.ActionTypes
13
13
  :param title: Text description which appears on the button
14
14
  :type title: str
15
15
  :param image: Image URL which will appear on the button, next to text
@@ -11,7 +11,7 @@ class CardImage(AgentsModel):
11
11
  :param alt: Image description intended for screen readers
12
12
  :type alt: str
13
13
  :param tap: Action assigned to specific Attachment
14
- :type tap: ~microsoft.agents.protocols.models.CardAction
14
+ :type tap: ~microsoft_agents.protocols.models.CardAction
15
15
  """
16
16
 
17
17
  url: NonEmptyString = None
@@ -17,7 +17,7 @@ class ChannelAccount(AgentsModel):
17
17
  Directory (AAD)
18
18
  :type aad_object_id: str
19
19
  :param role: Role of the entity behind the account
20
- :type role: str or ~microsoft.agents.protocols.models.RoleTypes
20
+ :type role: str or ~microsoft_agents.protocols.models.RoleTypes
21
21
  """
22
22
 
23
23
  model_config = ConfigDict(extra="allow")
@@ -2,7 +2,7 @@ from abc import abstractmethod
2
2
  from typing import Protocol, List, Callable, Awaitable, Optional
3
3
 
4
4
  from .turn_context_protocol import TurnContextProtocol
5
- from microsoft.agents.activity import (
5
+ from microsoft_agents.activity import (
6
6
  Activity,
7
7
  ResourceResponse,
8
8
  ConversationReference,
@@ -21,7 +21,7 @@ class ConversationAccount(AgentsModel):
21
21
  Directory (AAD)
22
22
  :type aad_object_id: str
23
23
  :param role: Role of the entity behind the account
24
- :type role: str or ~microsoft.agents.protocols.models.RoleTypes
24
+ :type role: str or ~microsoft_agents.protocols.models.RoleTypes
25
25
  :param tenant_id: This conversation's tenant ID
26
26
  :type tenant_id: str
27
27
  :param properties: This conversation's properties
@@ -9,7 +9,7 @@ class ConversationMembers(AgentsModel):
9
9
  :param id: Conversation ID
10
10
  :type id: str
11
11
  :param members: List of members in this conversation
12
- :type members: list[~microsoft.agents.protocols.models.ChannelAccount]
12
+ :type members: list[~microsoft_agents.protocols.models.ChannelAccount]
13
13
  """
14
14
 
15
15
  id: NonEmptyString = None
@@ -12,15 +12,15 @@ class ConversationParameters(AgentsModel):
12
12
  :param is_group: IsGroup
13
13
  :type is_group: bool
14
14
  :param agent: The agent address for this conversation
15
- :type agent: ~microsoft.agents.protocols.models.ChannelAccount
15
+ :type agent: ~microsoft_agents.protocols.models.ChannelAccount
16
16
  :param members: Members to add to the conversation
17
- :type members: list[~microsoft.agents.protocols.models.ChannelAccount]
17
+ :type members: list[~microsoft_agents.protocols.models.ChannelAccount]
18
18
  :param topic_name: (Optional) Topic of the conversation (if supported by
19
19
  the channel)
20
20
  :type topic_name: str
21
21
  :param activity: (Optional) When creating a new conversation, use this
22
22
  activity as the initial message to the conversation
23
- :type activity: ~microsoft.agents.protocols.models.Activity
23
+ :type activity: ~microsoft_agents.protocols.models.Activity
24
24
  :param channel_data: Channel specific payload for creating the
25
25
  conversation
26
26
  :type channel_data: object
@@ -17,11 +17,11 @@ class ConversationReference(AgentsModel):
17
17
  :param activity_id: (Optional) ID of the activity to refer to
18
18
  :type activity_id: str
19
19
  :param user: (Optional) User participating in this conversation
20
- :type user: ~microsoft.agents.protocols.models.ChannelAccount
20
+ :type user: ~microsoft_agents.protocols.models.ChannelAccount
21
21
  :param agent: Agent participating in this conversation
22
- :type agent: ~microsoft.agents.protocols.models.ChannelAccount
22
+ :type agent: ~microsoft_agents.protocols.models.ChannelAccount
23
23
  :param conversation: Conversation reference
24
- :type conversation: ~microsoft.agents.protocols.models.ConversationAccount
24
+ :type conversation: ~microsoft_agents.protocols.models.ConversationAccount
25
25
  :param channel_id: Channel ID
26
26
  :type channel_id: str
27
27
  :param locale: A locale name for the contents of the text field.
@@ -10,7 +10,7 @@ class ConversationsResult(AgentsModel):
10
10
  :type continuation_token: str
11
11
  :param conversations: List of conversations
12
12
  :type conversations:
13
- list[~microsoft.agents.protocols.models.ConversationMembers]
13
+ list[~microsoft_agents.protocols.models.ConversationMembers]
14
14
  """
15
15
 
16
16
  continuation_token: NonEmptyString = None
@@ -11,7 +11,7 @@ class Error(AgentsModel):
11
11
  :param message: Error message
12
12
  :type message: str
13
13
  :param inner_http_error: Error from inner http call
14
- :type inner_http_error: ~microsoft.agents.protocols.models.InnerHttpError
14
+ :type inner_http_error: ~microsoft_agents.protocols.models.InnerHttpError
15
15
  """
16
16
 
17
17
  code: NonEmptyString = None
@@ -6,7 +6,7 @@ class ErrorResponse(AgentsModel):
6
6
  """An HTTP API response.
7
7
 
8
8
  :param error: Error message
9
- :type error: ~microsoft.agents.protocols.models.Error
9
+ :type error: ~microsoft_agents.protocols.models.Error
10
10
  """
11
11
 
12
12
  error: Error = None
@@ -7,7 +7,7 @@ class ExpectedReplies(AgentsModel):
7
7
 
8
8
  :param activities: A collection of Activities that conforms to the
9
9
  ExpectedReplies schema.
10
- :type activities: list[~microsoft.agents.protocols.models.Activity]
10
+ :type activities: list[~microsoft_agents.protocols.models.Activity]
11
11
  """
12
12
 
13
13
  activities: list[Activity] = None
@@ -14,12 +14,12 @@ class HeroCard(AgentsModel):
14
14
  :param text: Text for the card
15
15
  :type text: str
16
16
  :param images: Array of images for the card
17
- :type images: list[~microsoft.agents.protocols.models.CardImage]
17
+ :type images: list[~microsoft_agents.protocols.models.CardImage]
18
18
  :param buttons: Set of actions applicable to the current card
19
- :type buttons: list[~microsoft.agents.protocols.models.CardAction]
19
+ :type buttons: list[~microsoft_agents.protocols.models.CardAction]
20
20
  :param tap: This action will be activated when user taps on the card
21
21
  itself
22
- :type tap: ~microsoft.agents.protocols.models.CardAction
22
+ :type tap: ~microsoft_agents.protocols.models.CardAction
23
23
  """
24
24
 
25
25
  title: NonEmptyString = None
@@ -15,12 +15,12 @@ class MediaCard(AgentsModel):
15
15
  :param text: Text of this card
16
16
  :type text: str
17
17
  :param image: Thumbnail placeholder
18
- :type image: ~microsoft.agents.protocols.models.ThumbnailUrl
18
+ :type image: ~microsoft_agents.protocols.models.ThumbnailUrl
19
19
  :param media: Media URLs for this card. When this field contains more than
20
20
  one URL, each URL is an alternative format of the same content.
21
- :type media: list[~microsoft.agents.protocols.models.MediaUrl]
21
+ :type media: list[~microsoft_agents.protocols.models.MediaUrl]
22
22
  :param buttons: Actions on this card
23
- :type buttons: list[~microsoft.agents.protocols.models.CardAction]
23
+ :type buttons: list[~microsoft_agents.protocols.models.CardAction]
24
24
  :param shareable: This content may be shared with others (default:true)
25
25
  :type shareable: bool
26
26
  :param autoloop: Should the client loop playback at end of content
@@ -7,7 +7,7 @@ class Mention(Entity):
7
7
  """Mention information (entity type: "mention").
8
8
 
9
9
  :param mentioned: The mentioned user
10
- :type mentioned: ~microsoft.agents.protocols.models.ChannelAccount
10
+ :type mentioned: ~microsoft_agents.protocols.models.ChannelAccount
11
11
  :param text: Sub Text which represents the mention (can be null or empty)
12
12
  :type text: str
13
13
  :param type: Type of this entity (RFC 3987 IRI)
@@ -7,7 +7,7 @@ class MessageReaction(AgentsModel):
7
7
 
8
8
  :param type: Message reaction type. Possible values include: 'like',
9
9
  'plusOne'
10
- :type type: str or ~microsoft.agents.protocols.models.MessageReactionTypes
10
+ :type type: str or ~microsoft_agents.protocols.models.MessageReactionTypes
11
11
  """
12
12
 
13
13
  type: NonEmptyString
@@ -14,7 +14,7 @@ class OAuthCard(AgentsModel):
14
14
  :param connection_name: The name of the registered connection
15
15
  :type connection_name: str
16
16
  :param buttons: Action to use to perform signin
17
- :type buttons: list[~microsoft.agents.protocols.models.CardAction]
17
+ :type buttons: list[~microsoft_agents.protocols.models.CardAction]
18
18
  """
19
19
 
20
20
  text: NonEmptyString = None
@@ -9,7 +9,7 @@ class PagedMembersResult(AgentsModel):
9
9
  :param continuation_token: Paging token
10
10
  :type continuation_token: str
11
11
  :param members: The Channel Accounts.
12
- :type members: list[~microsoft.agents.protocols.models.ChannelAccount]
12
+ :type members: list[~microsoft_agents.protocols.models.ChannelAccount]
13
13
  """
14
14
 
15
15
  continuation_token: NonEmptyString = None
@@ -11,11 +11,11 @@ class ReceiptCard(AgentsModel):
11
11
  :param title: Title of the card
12
12
  :type title: str
13
13
  :param facts: Array of Fact objects
14
- :type facts: list[~microsoft.agents.protocols.models.Fact]
14
+ :type facts: list[~microsoft_agents.protocols.models.Fact]
15
15
  :param items: Array of Receipt Items
16
- :type items: list[~microsoft.agents.protocols.models.ReceiptItem]
16
+ :type items: list[~microsoft_agents.protocols.models.ReceiptItem]
17
17
  :param tap: This action will be activated when user taps on the card
18
- :type tap: ~microsoft.agents.protocols.models.CardAction
18
+ :type tap: ~microsoft_agents.protocols.models.CardAction
19
19
  :param total: Total amount of money paid (or to be paid)
20
20
  :type total: str
21
21
  :param tax: Total amount of tax paid (or to be paid)
@@ -23,7 +23,7 @@ class ReceiptCard(AgentsModel):
23
23
  :param vat: Total amount of VAT paid (or to be paid)
24
24
  :type vat: str
25
25
  :param buttons: Set of actions applicable to the current card
26
- :type buttons: list[~microsoft.agents.protocols.models.CardAction]
26
+ :type buttons: list[~microsoft_agents.protocols.models.CardAction]
27
27
  """
28
28
 
29
29
  title: NonEmptyString = None
@@ -16,14 +16,14 @@ class ReceiptItem(AgentsModel):
16
16
  in font styling only
17
17
  :type text: str
18
18
  :param image: Image
19
- :type image: ~microsoft.agents.protocols.models.CardImage
19
+ :type image: ~microsoft_agents.protocols.models.CardImage
20
20
  :param price: Amount with currency
21
21
  :type price: str
22
22
  :param quantity: Number of items of given kind
23
23
  :type quantity: str
24
24
  :param tap: This action will be activated when user taps on the Item
25
25
  bubble.
26
- :type tap: ~microsoft.agents.protocols.models.CardAction
26
+ :type tap: ~microsoft_agents.protocols.models.CardAction
27
27
  """
28
28
 
29
29
  title: NonEmptyString = None
@@ -8,9 +8,9 @@ class SemanticAction(AgentsModel):
8
8
  :param id: ID of this action
9
9
  :type id: str
10
10
  :param entities: Entities associated with this action
11
- :type entities: dict[str, ~microsoft.agents.protocols.models.Entity]
11
+ :type entities: dict[str, ~microsoft_agents.protocols.models.Entity]
12
12
  :param state: State of this action. Allowed values: `start`, `continue`, `done`
13
- :type state: str or ~microsoft.agents.protocols.models.SemanticActionStates
13
+ :type state: str or ~microsoft_agents.protocols.models.SemanticActionStates
14
14
  """
15
15
 
16
16
  id: NonEmptyString
@@ -9,7 +9,7 @@ class SigninCard(AgentsModel):
9
9
  :param text: Text for signin request
10
10
  :type text: str
11
11
  :param buttons: Action to use to perform signin
12
- :type buttons: list[~microsoft.agents.protocols.models.CardAction]
12
+ :type buttons: list[~microsoft_agents.protocols.models.CardAction]
13
13
  """
14
14
 
15
15
  text: NonEmptyString = None
@@ -11,7 +11,7 @@ class SuggestedActions(AgentsModel):
11
11
  the activity
12
12
  :type to: list[str]
13
13
  :param actions: Actions that can be shown to the user
14
- :type actions: list[~microsoft.agents.protocols.models.CardAction]
14
+ :type actions: list[~microsoft_agents.protocols.models.CardAction]
15
15
  """
16
16
 
17
17
  to: list[NonEmptyString]
@@ -14,12 +14,12 @@ class ThumbnailCard(AgentsModel):
14
14
  :param text: Text for the card
15
15
  :type text: str
16
16
  :param images: Array of images for the card
17
- :type images: list[~microsoft.agents.protocols.models.CardImage]
17
+ :type images: list[~microsoft_agents.protocols.models.CardImage]
18
18
  :param buttons: Set of actions applicable to the current card
19
- :type buttons: list[~microsoft.agents.protocols.models.CardAction]
19
+ :type buttons: list[~microsoft_agents.protocols.models.CardAction]
20
20
  :param tap: This action will be activated when user taps on the card
21
21
  itself
22
- :type tap: ~microsoft.agents.protocols.models.CardAction
22
+ :type tap: ~microsoft_agents.protocols.models.CardAction
23
23
  """
24
24
 
25
25
  title: NonEmptyString = None
@@ -14,9 +14,9 @@ class TokenExchangeState(AgentsModel):
14
14
  :param connection_name: The connection name that was used.
15
15
  :type connection_name: str
16
16
  :param conversation: Gets or sets a reference to the conversation.
17
- :type conversation: ~microsoft.agents.protocols.models.ConversationReference
17
+ :type conversation: ~microsoft_agents.protocols.models.ConversationReference
18
18
  :param relates_to: Gets or sets a reference to a related parent conversation for this token exchange.
19
- :type relates_to: ~microsoft.agents.protocols.models.ConversationReference
19
+ :type relates_to: ~microsoft_agents.protocols.models.ConversationReference
20
20
  :param agent_url: The URL of the agent messaging endpoint.
21
21
  :type agent_url: str
22
22
  :param ms_app_id: The agent's registered application ID.
@@ -23,3 +23,6 @@ class TokenResponse(AgentsModel):
23
23
  token: NonEmptyString = None
24
24
  expiration: NonEmptyString = None
25
25
  channel_id: NonEmptyString = None
26
+
27
+ def __bool__(self):
28
+ return bool(self.token)
@@ -7,7 +7,7 @@ class Transcript(AgentsModel):
7
7
 
8
8
  :param activities: A collection of Activities that conforms to the
9
9
  Transcript schema.
10
- :type activities: list[~microsoft.agents.protocols.models.Activity]
10
+ :type activities: list[~microsoft_agents.protocols.models.Activity]
11
11
  """
12
12
 
13
13
  activities: list[Activity] = None
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
  from typing import Protocol, List, Callable, Optional, Generic, TypeVar
4
4
  from abc import abstractmethod
5
5
 
6
- from microsoft.agents.activity import (
6
+ from microsoft_agents.activity import (
7
7
  Activity,
8
8
  ResourceResponse,
9
9
  ConversationReference,
@@ -15,12 +15,12 @@ class VideoCard(AgentsModel):
15
15
  :param text: Text of this card
16
16
  :type text: str
17
17
  :param image: Thumbnail placeholder
18
- :type image: ~microsoft.agents.protocols.models.ThumbnailUrl
18
+ :type image: ~microsoft_agents.protocols.models.ThumbnailUrl
19
19
  :param media: Media URLs for this card. When this field contains more than
20
20
  one URL, each URL is an alternative format of the same content.
21
- :type media: list[~microsoft.agents.protocols.models.MediaUrl]
21
+ :type media: list[~microsoft_agents.protocols.models.MediaUrl]
22
22
  :param buttons: Actions on this card
23
- :type buttons: list[~microsoft.agents.protocols.models.CardAction]
23
+ :type buttons: list[~microsoft_agents.protocols.models.CardAction]
24
24
  :param shareable: This content may be shared with others (default:true)
25
25
  :type shareable: bool
26
26
  :param autoloop: Should the client loop playback at end of content
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-activity
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: A protocol library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  Project-URL: Homepage, https://github.com/microsoft/Agents