From e19cfe67f403d8993dec109f04ff53d35b423fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20Su=C3=A1rez?= Date: Wed, 27 Aug 2025 15:33:08 -0700 Subject: [PATCH 1/2] Fixing docstrings (#105) * Fixing docstrings * fixing import --- .../microsoft_agents/activity/activity.py | 40 +++++++++---------- .../activity/animation_card.py | 6 +-- .../activity/attachment_info.py | 2 +- .../microsoft_agents/activity/audio_card.py | 6 +-- .../microsoft_agents/activity/basic_card.py | 6 +-- .../microsoft_agents/activity/card_action.py | 2 +- .../microsoft_agents/activity/card_image.py | 2 +- .../activity/channel_account.py | 2 +- .../activity/conversation_account.py | 2 +- .../activity/conversation_members.py | 2 +- .../activity/conversation_parameters.py | 6 +-- .../activity/conversation_reference.py | 6 +-- .../activity/conversations_result.py | 2 +- .../microsoft_agents/activity/error.py | 2 +- .../activity/error_response.py | 2 +- .../activity/expected_replies.py | 2 +- .../microsoft_agents/activity/hero_card.py | 6 +-- .../microsoft_agents/activity/media_card.py | 6 +-- .../microsoft_agents/activity/mention.py | 2 +- .../activity/message_reaction.py | 2 +- .../microsoft_agents/activity/oauth_card.py | 2 +- .../activity/paged_members_result.py | 2 +- .../microsoft_agents/activity/receipt_card.py | 8 ++-- .../microsoft_agents/activity/receipt_item.py | 4 +- .../activity/semantic_action.py | 4 +- .../microsoft_agents/activity/signin_card.py | 2 +- .../activity/suggested_actions.py | 2 +- .../activity/thumbnail_card.py | 6 +-- .../activity/token_exchange_state.py | 4 +- .../microsoft_agents/activity/transcript.py | 2 +- .../microsoft_agents/activity/video_card.py | 6 +-- .../hosting/core/activity_handler.py | 2 +- .../hosting/core/channel_adapter.py | 16 ++++---- .../hosting/core/channel_service_adapter.py | 2 +- 34 files changed, 84 insertions(+), 84 deletions(-) diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py index 1d5f8f56..3e328cce 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py @@ -27,7 +27,7 @@ class Activity(AgentsModel): 'endOfConversation', 'event', 'invoke', 'deleteUserData', 'messageUpdate', 'messageDelete', 'installationUpdate', 'messageReaction', 'suggestion', 'trace', 'handoff' - :type type: str or ~microsoft_agents.protocols.models.ActivityTypes + :type type: str or ~microsoft_agents.activity.ActivityTypes :param id: Contains an ID that uniquely identifies the activity on the channel. :type id: str :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): :param channel_id: Contains an ID that uniquely identifies the channel. Set by the channel. :type channel_id: str :param from_property: Identifies the sender of the message. - :type from_property: ~microsoft_agents.protocols.models.ChannelAccount + :type from_property: ~microsoft_agents.activity.ChannelAccount :param conversation: Identifies the conversation to which the activity belongs. - :type conversation: ~microsoft_agents.protocols.models.ConversationAccount + :type conversation: ~microsoft_agents.activity.ConversationAccount :param recipient: Identifies the recipient of the message. - :type recipient: ~microsoft_agents.protocols.models.ChannelAccount + :type recipient: ~microsoft_agents.activity.ChannelAccount :param text_format: Format of text fields Default:markdown. Possible values include: 'markdown', 'plain', 'xml' - :type text_format: str or ~microsoft_agents.protocols.models.TextFormatTypes + :type text_format: str or ~microsoft_agents.activity.TextFormatTypes :param attachment_layout: The layout hint for multiple attachments. Default: list. Possible values include: 'list', 'carousel' - :type attachment_layout: str or ~microsoft_agents.protocols.models.AttachmentLayoutTypes + :type attachment_layout: str or ~microsoft_agents.activity.AttachmentLayoutTypes :param members_added: The collection of members added to the conversation. - :type members_added: list[~microsoft_agents.protocols.models.ChannelAccount] + :type members_added: list[~microsoft_agents.activity.ChannelAccount] :param members_removed: The collection of members removed from the conversation. - :type members_removed: list[~microsoft_agents.protocols.models.ChannelAccount] + :type members_removed: list[~microsoft_agents.activity.ChannelAccount] :param reactions_added: The collection of reactions added to the conversation. - :type reactions_added: list[~microsoft_agents.protocols.models.MessageReaction] + :type reactions_added: list[~microsoft_agents.activity.MessageReaction] :param reactions_removed: The collection of reactions removed from the conversation. - :type reactions_removed: list[~microsoft_agents.protocols.models.MessageReaction] + :type reactions_removed: list[~microsoft_agents.activity.MessageReaction] :param topic_name: The updated topic name of the conversation. :type topic_name: str :param history_disclosed: Indicates whether the prior history of the channel is disclosed. @@ -74,15 +74,15 @@ class Activity(AgentsModel): :type speak: str :param input_hint: Indicates whether your agent is accepting, expecting, or ignoring user input after the message is delivered to the client. Possible values include: 'acceptingInput', 'ignoringInput', 'expectingInput' - :type input_hint: str or ~microsoft_agents.protocols.models.InputHints + :type input_hint: str or ~microsoft_agents.activity.InputHints :param summary: The text to display if the channel cannot render cards. :type summary: str :param suggested_actions: The suggested actions for the activity. - :type suggested_actions: ~microsoft_agents.protocols.models.SuggestedActions + :type suggested_actions: ~microsoft_agents.activity.SuggestedActions :param attachments: Attachments - :type attachments: list[~microsoft_agents.protocols.models.Attachment] + :type attachments: list[~microsoft_agents.activity.Attachment] :param entities: Represents the entities that were mentioned in the message. - :type entities: list[~microsoft_agents.protocols.models.Entity] + :type entities: list[~microsoft_agents.activity.Entity] :param channel_data: Contains channel-specific content. :type channel_data: object :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): :param name: The name of the operation associated with an invoke or event activity. :type name: str :param relates_to: A reference to another conversation or activity. - :type relates_to: ~microsoft_agents.protocols.models.ConversationReference + :type relates_to: ~microsoft_agents.activity.ConversationReference :param code: The a code for endOfConversation activities that indicates why the conversation ended. Possible values include: 'unknown', 'completedSuccessfully', 'userCancelled', 'botTimedOut', 'botIssuedInvalidMessage', 'channelFailed' - :type code: str or ~microsoft_agents.protocols.models.EndOfConversationCodes + :type code: str or ~microsoft_agents.activity.EndOfConversationCodes :param expiration: The time at which the activity should be considered to be "expired" and should not be presented to the recipient. :type expiration: datetime :param importance: The importance of the activity. Possible values include: 'low', 'normal', 'high' - :type importance: str or ~microsoft_agents.protocols.models.ActivityImportance + :type importance: str or ~microsoft_agents.activity.ActivityImportance :param delivery_mode: A delivery hint to signal to the recipient alternate delivery paths for the activity. The default delivery mode is "default". Possible values include: 'normal', 'notification', 'expectReplies', 'ephemeral' - :type delivery_mode: str or ~microsoft_agents.protocols.models.DeliveryModes + :type delivery_mode: str or ~microsoft_agents.activity.DeliveryModes :param listen_for: List of phrases and references that speech and language priming systems should listen for :type listen_for: list[str] :param text_highlights: The collection of text fragments to highlight when the activity contains a ReplyToId value. - :type text_highlights: list[~microsoft_agents.protocols.models.TextHighlight] + :type text_highlights: list[~microsoft_agents.activity.TextHighlight] :param semantic_action: An optional programmatic action accompanying this request - :type semantic_action: ~microsoft_agents.protocols.models.SemanticAction + :type semantic_action: ~microsoft_agents.activity.SemanticAction :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, but is instead populated by agents and clients based on cryptographically verifiable data that asserts the identity of the callers (e.g. tokens). :type caller_id: str diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/animation_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/animation_card.py index 9c398e05..b6737b28 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/animation_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/animation_card.py @@ -15,12 +15,12 @@ class AnimationCard(AgentsModel): :param text: Text of this card :type text: str :param image: Thumbnail placeholder - :type image: ~microsoft_agents.protocols.models.ThumbnailUrl + :type image: ~microsoft_agents.activity.ThumbnailUrl :param media: Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content. - :type media: list[~microsoft_agents.protocols.models.MediaUrl] + :type media: list[~microsoft_agents.activity.MediaUrl] :param buttons: Actions on this card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param shareable: This content may be shared with others (default:true) :type shareable: bool :param autoloop: Should the client loop playback at end of content diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/attachment_info.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/attachment_info.py index 8607ed7b..dbab046d 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/attachment_info.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/attachment_info.py @@ -11,7 +11,7 @@ class AttachmentInfo(AgentsModel): :param type: ContentType of the attachment :type type: str :param views: attachment views - :type views: list[~microsoft_agents.protocols.models.AttachmentView] + :type views: list[~microsoft_agents.activity.AttachmentView] """ name: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/audio_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/audio_card.py index b8675131..b1dd041d 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/audio_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/audio_card.py @@ -15,12 +15,12 @@ class AudioCard(AgentsModel): :param text: Text of this card :type text: str :param image: Thumbnail placeholder - :type image: ~microsoft_agents.protocols.models.ThumbnailUrl + :type image: ~microsoft_agents.activity.ThumbnailUrl :param media: Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content. - :type media: list[~microsoft_agents.protocols.models.MediaUrl] + :type media: list[~microsoft_agents.activity.MediaUrl] :param buttons: Actions on this card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param shareable: This content may be shared with others (default:true) :type shareable: bool :param autoloop: Should the client loop playback at end of content diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/basic_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/basic_card.py index d8eb2499..a7a76c57 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/basic_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/basic_card.py @@ -14,12 +14,12 @@ class BasicCard(AgentsModel): :param text: Text for the card :type text: str :param images: Array of images for the card - :type images: list[~microsoft_agents.protocols.models.CardImage] + :type images: list[~microsoft_agents.activity.CardImage] :param buttons: Set of actions applicable to the current card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param tap: This action will be activated when user taps on the card itself - :type tap: ~microsoft_agents.protocols.models.CardAction + :type tap: ~microsoft_agents.activity.CardAction """ title: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/card_action.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/card_action.py index cfbc200c..35386e6e 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/card_action.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/card_action.py @@ -9,7 +9,7 @@ class CardAction(AgentsModel): :param type: The type of action implemented by this button. Possible values include: 'openUrl', 'imBack', 'postBack', 'playAudio', 'playVideo', 'showImage', 'downloadFile', 'signin', 'call', 'messageBack' - :type type: str or ~microsoft_agents.protocols.models.ActionTypes + :type type: str or ~microsoft_agents.activity.ActionTypes :param title: Text description which appears on the button :type title: str :param image: Image URL which will appear on the button, next to text diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/card_image.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/card_image.py index e830e1a9..cb7088d6 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/card_image.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/card_image.py @@ -11,7 +11,7 @@ class CardImage(AgentsModel): :param alt: Image description intended for screen readers :type alt: str :param tap: Action assigned to specific Attachment - :type tap: ~microsoft_agents.protocols.models.CardAction + :type tap: ~microsoft_agents.activity.CardAction """ url: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/channel_account.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/channel_account.py index b686d9c9..13b973d9 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/channel_account.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/channel_account.py @@ -17,7 +17,7 @@ class ChannelAccount(AgentsModel): Directory (AAD) :type aad_object_id: str :param role: Role of the entity behind the account - :type role: str or ~microsoft_agents.protocols.models.RoleTypes + :type role: str or ~microsoft_agents.activity.RoleTypes """ model_config = ConfigDict(extra="allow") diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_account.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_account.py index 31a2a9f4..fa8c6869 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_account.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_account.py @@ -21,7 +21,7 @@ class ConversationAccount(AgentsModel): Directory (AAD) :type aad_object_id: str :param role: Role of the entity behind the account - :type role: str or ~microsoft_agents.protocols.models.RoleTypes + :type role: str or ~microsoft_agents.activity.RoleTypes :param tenant_id: This conversation's tenant ID :type tenant_id: str :param properties: This conversation's properties diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_members.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_members.py index a80692fb..9f353c6c 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_members.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_members.py @@ -9,7 +9,7 @@ class ConversationMembers(AgentsModel): :param id: Conversation ID :type id: str :param members: List of members in this conversation - :type members: list[~microsoft_agents.protocols.models.ChannelAccount] + :type members: list[~microsoft_agents.activity.ChannelAccount] """ id: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_parameters.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_parameters.py index fe8cf432..810db792 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_parameters.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_parameters.py @@ -12,15 +12,15 @@ class ConversationParameters(AgentsModel): :param is_group: IsGroup :type is_group: bool :param agent: The agent address for this conversation - :type agent: ~microsoft_agents.protocols.models.ChannelAccount + :type agent: ~microsoft_agents.activity.ChannelAccount :param members: Members to add to the conversation - :type members: list[~microsoft_agents.protocols.models.ChannelAccount] + :type members: list[~microsoft_agents.activity.ChannelAccount] :param topic_name: (Optional) Topic of the conversation (if supported by the channel) :type topic_name: str :param activity: (Optional) When creating a new conversation, use this activity as the initial message to the conversation - :type activity: ~microsoft_agents.protocols.models.Activity + :type activity: ~microsoft_agents.activity.Activity :param channel_data: Channel specific payload for creating the conversation :type channel_data: object diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_reference.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_reference.py index d42474fc..85c117a7 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_reference.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_reference.py @@ -17,11 +17,11 @@ class ConversationReference(AgentsModel): :param activity_id: (Optional) ID of the activity to refer to :type activity_id: str :param user: (Optional) User participating in this conversation - :type user: ~microsoft_agents.protocols.models.ChannelAccount + :type user: ~microsoft_agents.activity.ChannelAccount :param agent: Agent participating in this conversation - :type agent: ~microsoft_agents.protocols.models.ChannelAccount + :type agent: ~microsoft_agents.activity.ChannelAccount :param conversation: Conversation reference - :type conversation: ~microsoft_agents.protocols.models.ConversationAccount + :type conversation: ~microsoft_agents.activity.ConversationAccount :param channel_id: Channel ID :type channel_id: str :param locale: A locale name for the contents of the text field. diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversations_result.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversations_result.py index 35770b1a..4da8bf1a 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversations_result.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversations_result.py @@ -10,7 +10,7 @@ class ConversationsResult(AgentsModel): :type continuation_token: str :param conversations: List of conversations :type conversations: - list[~microsoft_agents.protocols.models.ConversationMembers] + list[~microsoft_agents.activity.ConversationMembers] """ continuation_token: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/error.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/error.py index ad420be2..6beab043 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/error.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/error.py @@ -11,7 +11,7 @@ class Error(AgentsModel): :param message: Error message :type message: str :param inner_http_error: Error from inner http call - :type inner_http_error: ~microsoft_agents.protocols.models.InnerHttpError + :type inner_http_error: ~microsoft_agents.activity.InnerHttpError """ code: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/error_response.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/error_response.py index 68f423d6..6b1b617e 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/error_response.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/error_response.py @@ -6,7 +6,7 @@ class ErrorResponse(AgentsModel): """An HTTP API response. :param error: Error message - :type error: ~microsoft_agents.protocols.models.Error + :type error: ~microsoft_agents.activity.Error """ error: Error = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/expected_replies.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/expected_replies.py index 073afefe..a5a99ee8 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/expected_replies.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/expected_replies.py @@ -7,7 +7,7 @@ class ExpectedReplies(AgentsModel): :param activities: A collection of Activities that conforms to the ExpectedReplies schema. - :type activities: list[~microsoft_agents.protocols.models.Activity] + :type activities: list[~microsoft_agents.activity.Activity] """ activities: list[Activity] = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/hero_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/hero_card.py index 81468200..1e3c8683 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/hero_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/hero_card.py @@ -14,12 +14,12 @@ class HeroCard(AgentsModel): :param text: Text for the card :type text: str :param images: Array of images for the card - :type images: list[~microsoft_agents.protocols.models.CardImage] + :type images: list[~microsoft_agents.activity.CardImage] :param buttons: Set of actions applicable to the current card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param tap: This action will be activated when user taps on the card itself - :type tap: ~microsoft_agents.protocols.models.CardAction + :type tap: ~microsoft_agents.activity.CardAction """ title: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/media_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/media_card.py index 12e1196a..c9f80983 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/media_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/media_card.py @@ -15,12 +15,12 @@ class MediaCard(AgentsModel): :param text: Text of this card :type text: str :param image: Thumbnail placeholder - :type image: ~microsoft_agents.protocols.models.ThumbnailUrl + :type image: ~microsoft_agents.activity.ThumbnailUrl :param media: Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content. - :type media: list[~microsoft_agents.protocols.models.MediaUrl] + :type media: list[~microsoft_agents.activity.MediaUrl] :param buttons: Actions on this card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param shareable: This content may be shared with others (default:true) :type shareable: bool :param autoloop: Should the client loop playback at end of content diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/mention.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/mention.py index 5d46026a..7bc18cce 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/mention.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/mention.py @@ -7,7 +7,7 @@ class Mention(Entity): """Mention information (entity type: "mention"). :param mentioned: The mentioned user - :type mentioned: ~microsoft_agents.protocols.models.ChannelAccount + :type mentioned: ~microsoft_agents.activity.ChannelAccount :param text: Sub Text which represents the mention (can be null or empty) :type text: str :param type: Type of this entity (RFC 3987 IRI) diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/message_reaction.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/message_reaction.py index 84ad5f81..0ffe1e3d 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/message_reaction.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/message_reaction.py @@ -7,7 +7,7 @@ class MessageReaction(AgentsModel): :param type: Message reaction type. Possible values include: 'like', 'plusOne' - :type type: str or ~microsoft_agents.protocols.models.MessageReactionTypes + :type type: str or ~microsoft_agents.activity.MessageReactionTypes """ type: NonEmptyString diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/oauth_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/oauth_card.py index f9aa1262..e4fea08e 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/oauth_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/oauth_card.py @@ -14,7 +14,7 @@ class OAuthCard(AgentsModel): :param connection_name: The name of the registered connection :type connection_name: str :param buttons: Action to use to perform signin - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] """ text: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/paged_members_result.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/paged_members_result.py index a15f850c..785b9cd3 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/paged_members_result.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/paged_members_result.py @@ -9,7 +9,7 @@ class PagedMembersResult(AgentsModel): :param continuation_token: Paging token :type continuation_token: str :param members: The Channel Accounts. - :type members: list[~microsoft_agents.protocols.models.ChannelAccount] + :type members: list[~microsoft_agents.activity.ChannelAccount] """ continuation_token: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_card.py index 8110e434..abe21781 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_card.py @@ -11,11 +11,11 @@ class ReceiptCard(AgentsModel): :param title: Title of the card :type title: str :param facts: Array of Fact objects - :type facts: list[~microsoft_agents.protocols.models.Fact] + :type facts: list[~microsoft_agents.activity.Fact] :param items: Array of Receipt Items - :type items: list[~microsoft_agents.protocols.models.ReceiptItem] + :type items: list[~microsoft_agents.activity.ReceiptItem] :param tap: This action will be activated when user taps on the card - :type tap: ~microsoft_agents.protocols.models.CardAction + :type tap: ~microsoft_agents.activity.CardAction :param total: Total amount of money paid (or to be paid) :type total: str :param tax: Total amount of tax paid (or to be paid) @@ -23,7 +23,7 @@ class ReceiptCard(AgentsModel): :param vat: Total amount of VAT paid (or to be paid) :type vat: str :param buttons: Set of actions applicable to the current card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] """ title: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_item.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_item.py index 5e794a53..645700e4 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_item.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_item.py @@ -16,14 +16,14 @@ class ReceiptItem(AgentsModel): in font styling only :type text: str :param image: Image - :type image: ~microsoft_agents.protocols.models.CardImage + :type image: ~microsoft_agents.activity.CardImage :param price: Amount with currency :type price: str :param quantity: Number of items of given kind :type quantity: str :param tap: This action will be activated when user taps on the Item bubble. - :type tap: ~microsoft_agents.protocols.models.CardAction + :type tap: ~microsoft_agents.activity.CardAction """ title: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/semantic_action.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/semantic_action.py index 8198dd91..5a276aca 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/semantic_action.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/semantic_action.py @@ -8,9 +8,9 @@ class SemanticAction(AgentsModel): :param id: ID of this action :type id: str :param entities: Entities associated with this action - :type entities: dict[str, ~microsoft_agents.protocols.models.Entity] + :type entities: dict[str, ~microsoft_agents.activity.Entity] :param state: State of this action. Allowed values: `start`, `continue`, `done` - :type state: str or ~microsoft_agents.protocols.models.SemanticActionStates + :type state: str or ~microsoft_agents.activity.SemanticActionStates """ id: NonEmptyString diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/signin_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/signin_card.py index f7f12db5..fac18931 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/signin_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/signin_card.py @@ -9,7 +9,7 @@ class SigninCard(AgentsModel): :param text: Text for signin request :type text: str :param buttons: Action to use to perform signin - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] """ text: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/suggested_actions.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/suggested_actions.py index 22f7ed6e..45d4f189 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/suggested_actions.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/suggested_actions.py @@ -11,7 +11,7 @@ class SuggestedActions(AgentsModel): the activity :type to: list[str] :param actions: Actions that can be shown to the user - :type actions: list[~microsoft_agents.protocols.models.CardAction] + :type actions: list[~microsoft_agents.activity.CardAction] """ to: list[NonEmptyString] diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/thumbnail_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/thumbnail_card.py index 38051dad..319b8646 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/thumbnail_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/thumbnail_card.py @@ -14,12 +14,12 @@ class ThumbnailCard(AgentsModel): :param text: Text for the card :type text: str :param images: Array of images for the card - :type images: list[~microsoft_agents.protocols.models.CardImage] + :type images: list[~microsoft_agents.activity.CardImage] :param buttons: Set of actions applicable to the current card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param tap: This action will be activated when user taps on the card itself - :type tap: ~microsoft_agents.protocols.models.CardAction + :type tap: ~microsoft_agents.activity.CardAction """ title: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/token_exchange_state.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/token_exchange_state.py index 9a5d28c7..85d287bb 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/token_exchange_state.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/token_exchange_state.py @@ -14,9 +14,9 @@ class TokenExchangeState(AgentsModel): :param connection_name: The connection name that was used. :type connection_name: str :param conversation: Gets or sets a reference to the conversation. - :type conversation: ~microsoft_agents.protocols.models.ConversationReference + :type conversation: ~microsoft_agents.activity.ConversationReference :param relates_to: Gets or sets a reference to a related parent conversation for this token exchange. - :type relates_to: ~microsoft_agents.protocols.models.ConversationReference + :type relates_to: ~microsoft_agents.activity.ConversationReference :param agent_url: The URL of the agent messaging endpoint. :type agent_url: str :param ms_app_id: The agent's registered application ID. diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/transcript.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/transcript.py index be05269f..cc72ffe5 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/transcript.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/transcript.py @@ -7,7 +7,7 @@ class Transcript(AgentsModel): :param activities: A collection of Activities that conforms to the Transcript schema. - :type activities: list[~microsoft_agents.protocols.models.Activity] + :type activities: list[~microsoft_agents.activity.Activity] """ activities: list[Activity] = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/video_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/video_card.py index fcbc5be7..389c82e7 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/video_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/video_card.py @@ -15,12 +15,12 @@ class VideoCard(AgentsModel): :param text: Text of this card :type text: str :param image: Thumbnail placeholder - :type image: ~microsoft_agents.protocols.models.ThumbnailUrl + :type image: ~microsoft_agents.activity.ThumbnailUrl :param media: Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content. - :type media: list[~microsoft_agents.protocols.models.MediaUrl] + :type media: list[~microsoft_agents.activity.MediaUrl] :param buttons: Actions on this card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param shareable: This content may be shared with others (default:true) :type shareable: bool :param autoloop: Should the client loop playback at end of content diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py index 50e9db11..5993035b 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py @@ -34,7 +34,7 @@ async def on_turn( ): # pylint: disable=arguments-differ """ Called by the adapter (for example, :class:`ChannelAdapter`) at runtime - in order to process an inbound :class:`hosting.schema.Activity`. + in order to process an inbound :class:`microsoft_agents.activity.Activity`. :param turn_context: The context object for this turn :type turn_context: :class:`microsoft_agents.builder.TurnContext` diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_adapter.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_adapter.py index 312b5f27..7c7bf0d6 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_adapter.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_adapter.py @@ -55,7 +55,7 @@ async def update_activity(self, context: TurnContext, activity: Activity): :param context: The context object for the turn. :type context: :class:`TurnContext` :param activity: New replacement activity. - :type activity: :class:`hosting.schema.Activity` + :type activity: :class:`microsoft_agents.activity.Activity` :return: """ raise NotImplementedError() @@ -70,7 +70,7 @@ async def delete_activity( :param context: The context object for the turn. :type context: :class:`TurnContext` :param reference: Conversation reference for the activity to delete. - :type reference: :class:`hosting.schema.ConversationReference` + :type reference: :class:`microsoft_agents.activity.ConversationReference` :return: """ raise NotImplementedError() @@ -100,11 +100,11 @@ async def continue_conversation( single tenant the Adapters (Console, Test, etc) but is critical to the ChannelAdapter which is multi-tenant aware. :param reference: A reference to the conversation to continue. - :type reference: :class:`hosting.schema.ConversationReference` + :type reference: :class:`microsoft_agents.activity.ConversationReference` :param callback: The method to call for the resulting agent turn. :type callback: :class:`typing.Callable` - :param claims_identity: A :class:`microsoft_agents.authentication.ClaimsIdentity` for the conversation. - :type claims_identity: :class:`microsoft_agents.authentication.ClaimsIdentity` + :param claims_identity: A :class:`microsoft_agents.hosting.core.ClaimsIdentity` for the conversation. + :type claims_identity: :class:`microsoft_agents.hosting.core.ClaimsIdentity` :param audience:A value signifying the recipient of the proactive message. :type audience: str """ @@ -123,10 +123,10 @@ async def continue_conversation_with_claims( Most channels require a user to initiate a conversation with an agent before the agent can send activities to the user. - :param claims_identity: A :class:`microsoft_agents.authentication.ClaimsIdentity` for the conversation. - :type claims_identity: :class:`microsoft_agents.authentication.ClaimsIdentity` + :param claims_identity: A :class:`microsoft_agents.hosting.core.ClaimsIdentity` for the conversation. + :type claims_identity: :class:`microsoft_agents.hosting.core.ClaimsIdentity` :param continuation_activity: The activity to send. - :type continuation_activity: :class:`hosting + :type continuation_activity: :class:`microsoft_agents.activity.Activity` :param callback: The method to call for the resulting agent turn. :type callback: :class:`typing.Callable` :param audience: A value signifying the recipient of the proactive message. diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py index 0ebfa695..6c325c17 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py @@ -155,7 +155,7 @@ async def continue_conversation( # pylint: disable=arguments-differ to the user. :param reference: A reference to the conversation to continue. - :type reference: :class:`hosting.schema.ConversationReference` + :type reference: :class:`microsoft_agents.activity.ConversationReference` :param callback: The method to call for the resulting agent turn. :type callback: :class:`typing.Callable` :param agent_app_id: The application Id of the agent. This is the appId returned by the Azure portal registration, From b5969e5fbae47c6600fbaabd33d97cb085161549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20Su=C3=A1rez?= Date: Wed, 27 Aug 2025 15:33:08 -0700 Subject: [PATCH 2/2] Fixing docstrings (#105) * Fixing docstrings * fixing import --- .../microsoft_agents/activity/activity.py | 40 +++++++++---------- .../activity/animation_card.py | 6 +-- .../activity/attachment_info.py | 2 +- .../microsoft_agents/activity/audio_card.py | 6 +-- .../microsoft_agents/activity/basic_card.py | 6 +-- .../microsoft_agents/activity/card_action.py | 2 +- .../microsoft_agents/activity/card_image.py | 2 +- .../activity/channel_account.py | 2 +- .../activity/conversation_account.py | 2 +- .../activity/conversation_members.py | 2 +- .../activity/conversation_parameters.py | 6 +-- .../activity/conversation_reference.py | 6 +-- .../activity/conversations_result.py | 2 +- .../microsoft_agents/activity/error.py | 2 +- .../activity/error_response.py | 2 +- .../activity/expected_replies.py | 2 +- .../microsoft_agents/activity/hero_card.py | 6 +-- .../microsoft_agents/activity/media_card.py | 6 +-- .../microsoft_agents/activity/mention.py | 2 +- .../activity/message_reaction.py | 2 +- .../microsoft_agents/activity/oauth_card.py | 2 +- .../activity/paged_members_result.py | 2 +- .../microsoft_agents/activity/receipt_card.py | 8 ++-- .../microsoft_agents/activity/receipt_item.py | 4 +- .../activity/semantic_action.py | 4 +- .../microsoft_agents/activity/signin_card.py | 2 +- .../activity/suggested_actions.py | 2 +- .../activity/thumbnail_card.py | 6 +-- .../activity/token_exchange_state.py | 4 +- .../microsoft_agents/activity/transcript.py | 2 +- .../microsoft_agents/activity/video_card.py | 6 +-- .../hosting/core/activity_handler.py | 2 +- .../hosting/core/channel_adapter.py | 16 ++++---- .../hosting/core/channel_service_adapter.py | 2 +- 34 files changed, 84 insertions(+), 84 deletions(-) diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py index 1d5f8f56..3e328cce 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py @@ -27,7 +27,7 @@ class Activity(AgentsModel): 'endOfConversation', 'event', 'invoke', 'deleteUserData', 'messageUpdate', 'messageDelete', 'installationUpdate', 'messageReaction', 'suggestion', 'trace', 'handoff' - :type type: str or ~microsoft_agents.protocols.models.ActivityTypes + :type type: str or ~microsoft_agents.activity.ActivityTypes :param id: Contains an ID that uniquely identifies the activity on the channel. :type id: str :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): :param channel_id: Contains an ID that uniquely identifies the channel. Set by the channel. :type channel_id: str :param from_property: Identifies the sender of the message. - :type from_property: ~microsoft_agents.protocols.models.ChannelAccount + :type from_property: ~microsoft_agents.activity.ChannelAccount :param conversation: Identifies the conversation to which the activity belongs. - :type conversation: ~microsoft_agents.protocols.models.ConversationAccount + :type conversation: ~microsoft_agents.activity.ConversationAccount :param recipient: Identifies the recipient of the message. - :type recipient: ~microsoft_agents.protocols.models.ChannelAccount + :type recipient: ~microsoft_agents.activity.ChannelAccount :param text_format: Format of text fields Default:markdown. Possible values include: 'markdown', 'plain', 'xml' - :type text_format: str or ~microsoft_agents.protocols.models.TextFormatTypes + :type text_format: str or ~microsoft_agents.activity.TextFormatTypes :param attachment_layout: The layout hint for multiple attachments. Default: list. Possible values include: 'list', 'carousel' - :type attachment_layout: str or ~microsoft_agents.protocols.models.AttachmentLayoutTypes + :type attachment_layout: str or ~microsoft_agents.activity.AttachmentLayoutTypes :param members_added: The collection of members added to the conversation. - :type members_added: list[~microsoft_agents.protocols.models.ChannelAccount] + :type members_added: list[~microsoft_agents.activity.ChannelAccount] :param members_removed: The collection of members removed from the conversation. - :type members_removed: list[~microsoft_agents.protocols.models.ChannelAccount] + :type members_removed: list[~microsoft_agents.activity.ChannelAccount] :param reactions_added: The collection of reactions added to the conversation. - :type reactions_added: list[~microsoft_agents.protocols.models.MessageReaction] + :type reactions_added: list[~microsoft_agents.activity.MessageReaction] :param reactions_removed: The collection of reactions removed from the conversation. - :type reactions_removed: list[~microsoft_agents.protocols.models.MessageReaction] + :type reactions_removed: list[~microsoft_agents.activity.MessageReaction] :param topic_name: The updated topic name of the conversation. :type topic_name: str :param history_disclosed: Indicates whether the prior history of the channel is disclosed. @@ -74,15 +74,15 @@ class Activity(AgentsModel): :type speak: str :param input_hint: Indicates whether your agent is accepting, expecting, or ignoring user input after the message is delivered to the client. Possible values include: 'acceptingInput', 'ignoringInput', 'expectingInput' - :type input_hint: str or ~microsoft_agents.protocols.models.InputHints + :type input_hint: str or ~microsoft_agents.activity.InputHints :param summary: The text to display if the channel cannot render cards. :type summary: str :param suggested_actions: The suggested actions for the activity. - :type suggested_actions: ~microsoft_agents.protocols.models.SuggestedActions + :type suggested_actions: ~microsoft_agents.activity.SuggestedActions :param attachments: Attachments - :type attachments: list[~microsoft_agents.protocols.models.Attachment] + :type attachments: list[~microsoft_agents.activity.Attachment] :param entities: Represents the entities that were mentioned in the message. - :type entities: list[~microsoft_agents.protocols.models.Entity] + :type entities: list[~microsoft_agents.activity.Entity] :param channel_data: Contains channel-specific content. :type channel_data: object :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): :param name: The name of the operation associated with an invoke or event activity. :type name: str :param relates_to: A reference to another conversation or activity. - :type relates_to: ~microsoft_agents.protocols.models.ConversationReference + :type relates_to: ~microsoft_agents.activity.ConversationReference :param code: The a code for endOfConversation activities that indicates why the conversation ended. Possible values include: 'unknown', 'completedSuccessfully', 'userCancelled', 'botTimedOut', 'botIssuedInvalidMessage', 'channelFailed' - :type code: str or ~microsoft_agents.protocols.models.EndOfConversationCodes + :type code: str or ~microsoft_agents.activity.EndOfConversationCodes :param expiration: The time at which the activity should be considered to be "expired" and should not be presented to the recipient. :type expiration: datetime :param importance: The importance of the activity. Possible values include: 'low', 'normal', 'high' - :type importance: str or ~microsoft_agents.protocols.models.ActivityImportance + :type importance: str or ~microsoft_agents.activity.ActivityImportance :param delivery_mode: A delivery hint to signal to the recipient alternate delivery paths for the activity. The default delivery mode is "default". Possible values include: 'normal', 'notification', 'expectReplies', 'ephemeral' - :type delivery_mode: str or ~microsoft_agents.protocols.models.DeliveryModes + :type delivery_mode: str or ~microsoft_agents.activity.DeliveryModes :param listen_for: List of phrases and references that speech and language priming systems should listen for :type listen_for: list[str] :param text_highlights: The collection of text fragments to highlight when the activity contains a ReplyToId value. - :type text_highlights: list[~microsoft_agents.protocols.models.TextHighlight] + :type text_highlights: list[~microsoft_agents.activity.TextHighlight] :param semantic_action: An optional programmatic action accompanying this request - :type semantic_action: ~microsoft_agents.protocols.models.SemanticAction + :type semantic_action: ~microsoft_agents.activity.SemanticAction :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, but is instead populated by agents and clients based on cryptographically verifiable data that asserts the identity of the callers (e.g. tokens). :type caller_id: str diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/animation_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/animation_card.py index 9c398e05..b6737b28 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/animation_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/animation_card.py @@ -15,12 +15,12 @@ class AnimationCard(AgentsModel): :param text: Text of this card :type text: str :param image: Thumbnail placeholder - :type image: ~microsoft_agents.protocols.models.ThumbnailUrl + :type image: ~microsoft_agents.activity.ThumbnailUrl :param media: Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content. - :type media: list[~microsoft_agents.protocols.models.MediaUrl] + :type media: list[~microsoft_agents.activity.MediaUrl] :param buttons: Actions on this card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param shareable: This content may be shared with others (default:true) :type shareable: bool :param autoloop: Should the client loop playback at end of content diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/attachment_info.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/attachment_info.py index 8607ed7b..dbab046d 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/attachment_info.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/attachment_info.py @@ -11,7 +11,7 @@ class AttachmentInfo(AgentsModel): :param type: ContentType of the attachment :type type: str :param views: attachment views - :type views: list[~microsoft_agents.protocols.models.AttachmentView] + :type views: list[~microsoft_agents.activity.AttachmentView] """ name: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/audio_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/audio_card.py index b8675131..b1dd041d 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/audio_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/audio_card.py @@ -15,12 +15,12 @@ class AudioCard(AgentsModel): :param text: Text of this card :type text: str :param image: Thumbnail placeholder - :type image: ~microsoft_agents.protocols.models.ThumbnailUrl + :type image: ~microsoft_agents.activity.ThumbnailUrl :param media: Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content. - :type media: list[~microsoft_agents.protocols.models.MediaUrl] + :type media: list[~microsoft_agents.activity.MediaUrl] :param buttons: Actions on this card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param shareable: This content may be shared with others (default:true) :type shareable: bool :param autoloop: Should the client loop playback at end of content diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/basic_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/basic_card.py index d8eb2499..a7a76c57 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/basic_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/basic_card.py @@ -14,12 +14,12 @@ class BasicCard(AgentsModel): :param text: Text for the card :type text: str :param images: Array of images for the card - :type images: list[~microsoft_agents.protocols.models.CardImage] + :type images: list[~microsoft_agents.activity.CardImage] :param buttons: Set of actions applicable to the current card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param tap: This action will be activated when user taps on the card itself - :type tap: ~microsoft_agents.protocols.models.CardAction + :type tap: ~microsoft_agents.activity.CardAction """ title: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/card_action.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/card_action.py index cfbc200c..35386e6e 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/card_action.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/card_action.py @@ -9,7 +9,7 @@ class CardAction(AgentsModel): :param type: The type of action implemented by this button. Possible values include: 'openUrl', 'imBack', 'postBack', 'playAudio', 'playVideo', 'showImage', 'downloadFile', 'signin', 'call', 'messageBack' - :type type: str or ~microsoft_agents.protocols.models.ActionTypes + :type type: str or ~microsoft_agents.activity.ActionTypes :param title: Text description which appears on the button :type title: str :param image: Image URL which will appear on the button, next to text diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/card_image.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/card_image.py index e830e1a9..cb7088d6 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/card_image.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/card_image.py @@ -11,7 +11,7 @@ class CardImage(AgentsModel): :param alt: Image description intended for screen readers :type alt: str :param tap: Action assigned to specific Attachment - :type tap: ~microsoft_agents.protocols.models.CardAction + :type tap: ~microsoft_agents.activity.CardAction """ url: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/channel_account.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/channel_account.py index b686d9c9..13b973d9 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/channel_account.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/channel_account.py @@ -17,7 +17,7 @@ class ChannelAccount(AgentsModel): Directory (AAD) :type aad_object_id: str :param role: Role of the entity behind the account - :type role: str or ~microsoft_agents.protocols.models.RoleTypes + :type role: str or ~microsoft_agents.activity.RoleTypes """ model_config = ConfigDict(extra="allow") diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_account.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_account.py index 31a2a9f4..fa8c6869 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_account.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_account.py @@ -21,7 +21,7 @@ class ConversationAccount(AgentsModel): Directory (AAD) :type aad_object_id: str :param role: Role of the entity behind the account - :type role: str or ~microsoft_agents.protocols.models.RoleTypes + :type role: str or ~microsoft_agents.activity.RoleTypes :param tenant_id: This conversation's tenant ID :type tenant_id: str :param properties: This conversation's properties diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_members.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_members.py index a80692fb..9f353c6c 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_members.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_members.py @@ -9,7 +9,7 @@ class ConversationMembers(AgentsModel): :param id: Conversation ID :type id: str :param members: List of members in this conversation - :type members: list[~microsoft_agents.protocols.models.ChannelAccount] + :type members: list[~microsoft_agents.activity.ChannelAccount] """ id: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_parameters.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_parameters.py index fe8cf432..810db792 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_parameters.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_parameters.py @@ -12,15 +12,15 @@ class ConversationParameters(AgentsModel): :param is_group: IsGroup :type is_group: bool :param agent: The agent address for this conversation - :type agent: ~microsoft_agents.protocols.models.ChannelAccount + :type agent: ~microsoft_agents.activity.ChannelAccount :param members: Members to add to the conversation - :type members: list[~microsoft_agents.protocols.models.ChannelAccount] + :type members: list[~microsoft_agents.activity.ChannelAccount] :param topic_name: (Optional) Topic of the conversation (if supported by the channel) :type topic_name: str :param activity: (Optional) When creating a new conversation, use this activity as the initial message to the conversation - :type activity: ~microsoft_agents.protocols.models.Activity + :type activity: ~microsoft_agents.activity.Activity :param channel_data: Channel specific payload for creating the conversation :type channel_data: object diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_reference.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_reference.py index d42474fc..85c117a7 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_reference.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_reference.py @@ -17,11 +17,11 @@ class ConversationReference(AgentsModel): :param activity_id: (Optional) ID of the activity to refer to :type activity_id: str :param user: (Optional) User participating in this conversation - :type user: ~microsoft_agents.protocols.models.ChannelAccount + :type user: ~microsoft_agents.activity.ChannelAccount :param agent: Agent participating in this conversation - :type agent: ~microsoft_agents.protocols.models.ChannelAccount + :type agent: ~microsoft_agents.activity.ChannelAccount :param conversation: Conversation reference - :type conversation: ~microsoft_agents.protocols.models.ConversationAccount + :type conversation: ~microsoft_agents.activity.ConversationAccount :param channel_id: Channel ID :type channel_id: str :param locale: A locale name for the contents of the text field. diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversations_result.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversations_result.py index 35770b1a..4da8bf1a 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/conversations_result.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/conversations_result.py @@ -10,7 +10,7 @@ class ConversationsResult(AgentsModel): :type continuation_token: str :param conversations: List of conversations :type conversations: - list[~microsoft_agents.protocols.models.ConversationMembers] + list[~microsoft_agents.activity.ConversationMembers] """ continuation_token: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/error.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/error.py index ad420be2..6beab043 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/error.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/error.py @@ -11,7 +11,7 @@ class Error(AgentsModel): :param message: Error message :type message: str :param inner_http_error: Error from inner http call - :type inner_http_error: ~microsoft_agents.protocols.models.InnerHttpError + :type inner_http_error: ~microsoft_agents.activity.InnerHttpError """ code: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/error_response.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/error_response.py index 68f423d6..6b1b617e 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/error_response.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/error_response.py @@ -6,7 +6,7 @@ class ErrorResponse(AgentsModel): """An HTTP API response. :param error: Error message - :type error: ~microsoft_agents.protocols.models.Error + :type error: ~microsoft_agents.activity.Error """ error: Error = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/expected_replies.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/expected_replies.py index 073afefe..a5a99ee8 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/expected_replies.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/expected_replies.py @@ -7,7 +7,7 @@ class ExpectedReplies(AgentsModel): :param activities: A collection of Activities that conforms to the ExpectedReplies schema. - :type activities: list[~microsoft_agents.protocols.models.Activity] + :type activities: list[~microsoft_agents.activity.Activity] """ activities: list[Activity] = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/hero_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/hero_card.py index 81468200..1e3c8683 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/hero_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/hero_card.py @@ -14,12 +14,12 @@ class HeroCard(AgentsModel): :param text: Text for the card :type text: str :param images: Array of images for the card - :type images: list[~microsoft_agents.protocols.models.CardImage] + :type images: list[~microsoft_agents.activity.CardImage] :param buttons: Set of actions applicable to the current card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param tap: This action will be activated when user taps on the card itself - :type tap: ~microsoft_agents.protocols.models.CardAction + :type tap: ~microsoft_agents.activity.CardAction """ title: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/media_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/media_card.py index 12e1196a..c9f80983 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/media_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/media_card.py @@ -15,12 +15,12 @@ class MediaCard(AgentsModel): :param text: Text of this card :type text: str :param image: Thumbnail placeholder - :type image: ~microsoft_agents.protocols.models.ThumbnailUrl + :type image: ~microsoft_agents.activity.ThumbnailUrl :param media: Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content. - :type media: list[~microsoft_agents.protocols.models.MediaUrl] + :type media: list[~microsoft_agents.activity.MediaUrl] :param buttons: Actions on this card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param shareable: This content may be shared with others (default:true) :type shareable: bool :param autoloop: Should the client loop playback at end of content diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/mention.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/mention.py index 5d46026a..7bc18cce 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/mention.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/mention.py @@ -7,7 +7,7 @@ class Mention(Entity): """Mention information (entity type: "mention"). :param mentioned: The mentioned user - :type mentioned: ~microsoft_agents.protocols.models.ChannelAccount + :type mentioned: ~microsoft_agents.activity.ChannelAccount :param text: Sub Text which represents the mention (can be null or empty) :type text: str :param type: Type of this entity (RFC 3987 IRI) diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/message_reaction.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/message_reaction.py index 84ad5f81..0ffe1e3d 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/message_reaction.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/message_reaction.py @@ -7,7 +7,7 @@ class MessageReaction(AgentsModel): :param type: Message reaction type. Possible values include: 'like', 'plusOne' - :type type: str or ~microsoft_agents.protocols.models.MessageReactionTypes + :type type: str or ~microsoft_agents.activity.MessageReactionTypes """ type: NonEmptyString diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/oauth_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/oauth_card.py index f9aa1262..e4fea08e 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/oauth_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/oauth_card.py @@ -14,7 +14,7 @@ class OAuthCard(AgentsModel): :param connection_name: The name of the registered connection :type connection_name: str :param buttons: Action to use to perform signin - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] """ text: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/paged_members_result.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/paged_members_result.py index a15f850c..785b9cd3 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/paged_members_result.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/paged_members_result.py @@ -9,7 +9,7 @@ class PagedMembersResult(AgentsModel): :param continuation_token: Paging token :type continuation_token: str :param members: The Channel Accounts. - :type members: list[~microsoft_agents.protocols.models.ChannelAccount] + :type members: list[~microsoft_agents.activity.ChannelAccount] """ continuation_token: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_card.py index 8110e434..abe21781 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_card.py @@ -11,11 +11,11 @@ class ReceiptCard(AgentsModel): :param title: Title of the card :type title: str :param facts: Array of Fact objects - :type facts: list[~microsoft_agents.protocols.models.Fact] + :type facts: list[~microsoft_agents.activity.Fact] :param items: Array of Receipt Items - :type items: list[~microsoft_agents.protocols.models.ReceiptItem] + :type items: list[~microsoft_agents.activity.ReceiptItem] :param tap: This action will be activated when user taps on the card - :type tap: ~microsoft_agents.protocols.models.CardAction + :type tap: ~microsoft_agents.activity.CardAction :param total: Total amount of money paid (or to be paid) :type total: str :param tax: Total amount of tax paid (or to be paid) @@ -23,7 +23,7 @@ class ReceiptCard(AgentsModel): :param vat: Total amount of VAT paid (or to be paid) :type vat: str :param buttons: Set of actions applicable to the current card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] """ title: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_item.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_item.py index 5e794a53..645700e4 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_item.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/receipt_item.py @@ -16,14 +16,14 @@ class ReceiptItem(AgentsModel): in font styling only :type text: str :param image: Image - :type image: ~microsoft_agents.protocols.models.CardImage + :type image: ~microsoft_agents.activity.CardImage :param price: Amount with currency :type price: str :param quantity: Number of items of given kind :type quantity: str :param tap: This action will be activated when user taps on the Item bubble. - :type tap: ~microsoft_agents.protocols.models.CardAction + :type tap: ~microsoft_agents.activity.CardAction """ title: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/semantic_action.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/semantic_action.py index 8198dd91..5a276aca 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/semantic_action.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/semantic_action.py @@ -8,9 +8,9 @@ class SemanticAction(AgentsModel): :param id: ID of this action :type id: str :param entities: Entities associated with this action - :type entities: dict[str, ~microsoft_agents.protocols.models.Entity] + :type entities: dict[str, ~microsoft_agents.activity.Entity] :param state: State of this action. Allowed values: `start`, `continue`, `done` - :type state: str or ~microsoft_agents.protocols.models.SemanticActionStates + :type state: str or ~microsoft_agents.activity.SemanticActionStates """ id: NonEmptyString diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/signin_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/signin_card.py index f7f12db5..fac18931 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/signin_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/signin_card.py @@ -9,7 +9,7 @@ class SigninCard(AgentsModel): :param text: Text for signin request :type text: str :param buttons: Action to use to perform signin - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] """ text: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/suggested_actions.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/suggested_actions.py index 22f7ed6e..45d4f189 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/suggested_actions.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/suggested_actions.py @@ -11,7 +11,7 @@ class SuggestedActions(AgentsModel): the activity :type to: list[str] :param actions: Actions that can be shown to the user - :type actions: list[~microsoft_agents.protocols.models.CardAction] + :type actions: list[~microsoft_agents.activity.CardAction] """ to: list[NonEmptyString] diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/thumbnail_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/thumbnail_card.py index 38051dad..319b8646 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/thumbnail_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/thumbnail_card.py @@ -14,12 +14,12 @@ class ThumbnailCard(AgentsModel): :param text: Text for the card :type text: str :param images: Array of images for the card - :type images: list[~microsoft_agents.protocols.models.CardImage] + :type images: list[~microsoft_agents.activity.CardImage] :param buttons: Set of actions applicable to the current card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param tap: This action will be activated when user taps on the card itself - :type tap: ~microsoft_agents.protocols.models.CardAction + :type tap: ~microsoft_agents.activity.CardAction """ title: NonEmptyString = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/token_exchange_state.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/token_exchange_state.py index 9a5d28c7..85d287bb 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/token_exchange_state.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/token_exchange_state.py @@ -14,9 +14,9 @@ class TokenExchangeState(AgentsModel): :param connection_name: The connection name that was used. :type connection_name: str :param conversation: Gets or sets a reference to the conversation. - :type conversation: ~microsoft_agents.protocols.models.ConversationReference + :type conversation: ~microsoft_agents.activity.ConversationReference :param relates_to: Gets or sets a reference to a related parent conversation for this token exchange. - :type relates_to: ~microsoft_agents.protocols.models.ConversationReference + :type relates_to: ~microsoft_agents.activity.ConversationReference :param agent_url: The URL of the agent messaging endpoint. :type agent_url: str :param ms_app_id: The agent's registered application ID. diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/transcript.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/transcript.py index be05269f..cc72ffe5 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/transcript.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/transcript.py @@ -7,7 +7,7 @@ class Transcript(AgentsModel): :param activities: A collection of Activities that conforms to the Transcript schema. - :type activities: list[~microsoft_agents.protocols.models.Activity] + :type activities: list[~microsoft_agents.activity.Activity] """ activities: list[Activity] = None diff --git a/libraries/microsoft-agents-activity/microsoft_agents/activity/video_card.py b/libraries/microsoft-agents-activity/microsoft_agents/activity/video_card.py index fcbc5be7..389c82e7 100644 --- a/libraries/microsoft-agents-activity/microsoft_agents/activity/video_card.py +++ b/libraries/microsoft-agents-activity/microsoft_agents/activity/video_card.py @@ -15,12 +15,12 @@ class VideoCard(AgentsModel): :param text: Text of this card :type text: str :param image: Thumbnail placeholder - :type image: ~microsoft_agents.protocols.models.ThumbnailUrl + :type image: ~microsoft_agents.activity.ThumbnailUrl :param media: Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content. - :type media: list[~microsoft_agents.protocols.models.MediaUrl] + :type media: list[~microsoft_agents.activity.MediaUrl] :param buttons: Actions on this card - :type buttons: list[~microsoft_agents.protocols.models.CardAction] + :type buttons: list[~microsoft_agents.activity.CardAction] :param shareable: This content may be shared with others (default:true) :type shareable: bool :param autoloop: Should the client loop playback at end of content diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py index 50e9db11..5993035b 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py @@ -34,7 +34,7 @@ async def on_turn( ): # pylint: disable=arguments-differ """ Called by the adapter (for example, :class:`ChannelAdapter`) at runtime - in order to process an inbound :class:`hosting.schema.Activity`. + in order to process an inbound :class:`microsoft_agents.activity.Activity`. :param turn_context: The context object for this turn :type turn_context: :class:`microsoft_agents.builder.TurnContext` diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_adapter.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_adapter.py index 312b5f27..7c7bf0d6 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_adapter.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_adapter.py @@ -55,7 +55,7 @@ async def update_activity(self, context: TurnContext, activity: Activity): :param context: The context object for the turn. :type context: :class:`TurnContext` :param activity: New replacement activity. - :type activity: :class:`hosting.schema.Activity` + :type activity: :class:`microsoft_agents.activity.Activity` :return: """ raise NotImplementedError() @@ -70,7 +70,7 @@ async def delete_activity( :param context: The context object for the turn. :type context: :class:`TurnContext` :param reference: Conversation reference for the activity to delete. - :type reference: :class:`hosting.schema.ConversationReference` + :type reference: :class:`microsoft_agents.activity.ConversationReference` :return: """ raise NotImplementedError() @@ -100,11 +100,11 @@ async def continue_conversation( single tenant the Adapters (Console, Test, etc) but is critical to the ChannelAdapter which is multi-tenant aware. :param reference: A reference to the conversation to continue. - :type reference: :class:`hosting.schema.ConversationReference` + :type reference: :class:`microsoft_agents.activity.ConversationReference` :param callback: The method to call for the resulting agent turn. :type callback: :class:`typing.Callable` - :param claims_identity: A :class:`microsoft_agents.authentication.ClaimsIdentity` for the conversation. - :type claims_identity: :class:`microsoft_agents.authentication.ClaimsIdentity` + :param claims_identity: A :class:`microsoft_agents.hosting.core.ClaimsIdentity` for the conversation. + :type claims_identity: :class:`microsoft_agents.hosting.core.ClaimsIdentity` :param audience:A value signifying the recipient of the proactive message. :type audience: str """ @@ -123,10 +123,10 @@ async def continue_conversation_with_claims( Most channels require a user to initiate a conversation with an agent before the agent can send activities to the user. - :param claims_identity: A :class:`microsoft_agents.authentication.ClaimsIdentity` for the conversation. - :type claims_identity: :class:`microsoft_agents.authentication.ClaimsIdentity` + :param claims_identity: A :class:`microsoft_agents.hosting.core.ClaimsIdentity` for the conversation. + :type claims_identity: :class:`microsoft_agents.hosting.core.ClaimsIdentity` :param continuation_activity: The activity to send. - :type continuation_activity: :class:`hosting + :type continuation_activity: :class:`microsoft_agents.activity.Activity` :param callback: The method to call for the resulting agent turn. :type callback: :class:`typing.Callable` :param audience: A value signifying the recipient of the proactive message. diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py index 0ebfa695..6c325c17 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py @@ -155,7 +155,7 @@ async def continue_conversation( # pylint: disable=arguments-differ to the user. :param reference: A reference to the conversation to continue. - :type reference: :class:`hosting.schema.ConversationReference` + :type reference: :class:`microsoft_agents.activity.ConversationReference` :param callback: The method to call for the resulting agent turn. :type callback: :class:`typing.Callable` :param agent_app_id: The application Id of the agent. This is the appId returned by the Azure portal registration,