Skip to content

Commit e19cfe6

Browse files
axelsrzrodrigobr-msft
authored andcommitted
Fixing docstrings (#105)
* Fixing docstrings * fixing import
1 parent 818e178 commit e19cfe6

34 files changed

+84
-84
lines changed

libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Activity(AgentsModel):
2727
'endOfConversation', 'event', 'invoke', 'deleteUserData', 'messageUpdate',
2828
'messageDelete', 'installationUpdate', 'messageReaction', 'suggestion',
2929
'trace', 'handoff'
30-
:type type: str or ~microsoft_agents.protocols.models.ActivityTypes
30+
:type type: str or ~microsoft_agents.activity.ActivityTypes
3131
:param id: Contains an ID that uniquely identifies the activity on the channel.
3232
:type id: str
3333
: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):
4343
:param channel_id: Contains an ID that uniquely identifies the channel. Set by the channel.
4444
:type channel_id: str
4545
:param from_property: Identifies the sender of the message.
46-
:type from_property: ~microsoft_agents.protocols.models.ChannelAccount
46+
:type from_property: ~microsoft_agents.activity.ChannelAccount
4747
:param conversation: Identifies the conversation to which the activity belongs.
48-
:type conversation: ~microsoft_agents.protocols.models.ConversationAccount
48+
:type conversation: ~microsoft_agents.activity.ConversationAccount
4949
:param recipient: Identifies the recipient of the message.
50-
:type recipient: ~microsoft_agents.protocols.models.ChannelAccount
50+
:type recipient: ~microsoft_agents.activity.ChannelAccount
5151
: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.activity.TextFormatTypes
5353
: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.activity.AttachmentLayoutTypes
5555
: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.activity.ChannelAccount]
5757
: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.activity.ChannelAccount]
5959
: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.activity.MessageReaction]
6161
: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.activity.MessageReaction]
6363
:param topic_name: The updated topic name of the conversation.
6464
:type topic_name: str
6565
:param history_disclosed: Indicates whether the prior history of the channel is disclosed.
@@ -74,15 +74,15 @@ class Activity(AgentsModel):
7474
:type speak: str
7575
:param input_hint: Indicates whether your agent is accepting, expecting, or ignoring user input after the message is delivered to the client.
7676
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.activity.InputHints
7878
:param summary: The text to display if the channel cannot render cards.
7979
:type summary: str
8080
:param suggested_actions: The suggested actions for the activity.
81-
:type suggested_actions: ~microsoft_agents.protocols.models.SuggestedActions
81+
:type suggested_actions: ~microsoft_agents.activity.SuggestedActions
8282
:param attachments: Attachments
83-
:type attachments: list[~microsoft_agents.protocols.models.Attachment]
83+
:type attachments: list[~microsoft_agents.activity.Attachment]
8484
: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.activity.Entity]
8686
:param channel_data: Contains channel-specific content.
8787
:type channel_data: object
8888
: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):
9898
:param name: The name of the operation associated with an invoke or event activity.
9999
:type name: str
100100
: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.activity.ConversationReference
102102
:param code: The a code for endOfConversation activities that indicates why the conversation ended. Possible values include: 'unknown',
103103
'completedSuccessfully', 'userCancelled', 'botTimedOut', 'botIssuedInvalidMessage', 'channelFailed'
104-
:type code: str or ~microsoft_agents.protocols.models.EndOfConversationCodes
104+
:type code: str or ~microsoft_agents.activity.EndOfConversationCodes
105105
:param expiration: The time at which the activity should be considered to be "expired" and should not be presented to the recipient.
106106
:type expiration: datetime
107107
: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.activity.ActivityImportance
109109
:param delivery_mode: A delivery hint to signal to the recipient alternate delivery paths for the activity.
110110
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.activity.DeliveryModes
112112
:param listen_for: List of phrases and references that speech and language priming systems should listen for
113113
:type listen_for: list[str]
114114
: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.activity.TextHighlight]
116116
: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.activity.SemanticAction
118118
: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,
119119
but is instead populated by agents and clients based on cryptographically verifiable data that asserts the identity of the callers (e.g. tokens).
120120
:type caller_id: str

libraries/microsoft-agents-activity/microsoft_agents/activity/animation_card.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ class AnimationCard(AgentsModel):
1515
:param text: Text of this card
1616
:type text: str
1717
:param image: Thumbnail placeholder
18-
:type image: ~microsoft_agents.protocols.models.ThumbnailUrl
18+
:type image: ~microsoft_agents.activity.ThumbnailUrl
1919
:param media: Media URLs for this card. When this field contains more than
2020
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.activity.MediaUrl]
2222
:param buttons: Actions on this card
23-
:type buttons: list[~microsoft_agents.protocols.models.CardAction]
23+
:type buttons: list[~microsoft_agents.activity.CardAction]
2424
:param shareable: This content may be shared with others (default:true)
2525
:type shareable: bool
2626
:param autoloop: Should the client loop playback at end of content

libraries/microsoft-agents-activity/microsoft_agents/activity/attachment_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class AttachmentInfo(AgentsModel):
1111
:param type: ContentType of the attachment
1212
:type type: str
1313
:param views: attachment views
14-
:type views: list[~microsoft_agents.protocols.models.AttachmentView]
14+
:type views: list[~microsoft_agents.activity.AttachmentView]
1515
"""
1616

1717
name: NonEmptyString = None

libraries/microsoft-agents-activity/microsoft_agents/activity/audio_card.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ class AudioCard(AgentsModel):
1515
:param text: Text of this card
1616
:type text: str
1717
:param image: Thumbnail placeholder
18-
:type image: ~microsoft_agents.protocols.models.ThumbnailUrl
18+
:type image: ~microsoft_agents.activity.ThumbnailUrl
1919
:param media: Media URLs for this card. When this field contains more than
2020
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.activity.MediaUrl]
2222
:param buttons: Actions on this card
23-
:type buttons: list[~microsoft_agents.protocols.models.CardAction]
23+
:type buttons: list[~microsoft_agents.activity.CardAction]
2424
:param shareable: This content may be shared with others (default:true)
2525
:type shareable: bool
2626
:param autoloop: Should the client loop playback at end of content

libraries/microsoft-agents-activity/microsoft_agents/activity/basic_card.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ class BasicCard(AgentsModel):
1414
:param text: Text for the card
1515
:type text: str
1616
:param images: Array of images for the card
17-
:type images: list[~microsoft_agents.protocols.models.CardImage]
17+
:type images: list[~microsoft_agents.activity.CardImage]
1818
: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.activity.CardAction]
2020
:param tap: This action will be activated when user taps on the card
2121
itself
22-
:type tap: ~microsoft_agents.protocols.models.CardAction
22+
:type tap: ~microsoft_agents.activity.CardAction
2323
"""
2424

2525
title: NonEmptyString = None

libraries/microsoft-agents-activity/microsoft_agents/activity/card_action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CardAction(AgentsModel):
99
:param type: The type of action implemented by this button. Possible
1010
values include: 'openUrl', 'imBack', 'postBack', 'playAudio', 'playVideo',
1111
'showImage', 'downloadFile', 'signin', 'call', 'messageBack'
12-
:type type: str or ~microsoft_agents.protocols.models.ActionTypes
12+
:type type: str or ~microsoft_agents.activity.ActionTypes
1313
:param title: Text description which appears on the button
1414
:type title: str
1515
:param image: Image URL which will appear on the button, next to text

libraries/microsoft-agents-activity/microsoft_agents/activity/card_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class CardImage(AgentsModel):
1111
:param alt: Image description intended for screen readers
1212
:type alt: str
1313
:param tap: Action assigned to specific Attachment
14-
:type tap: ~microsoft_agents.protocols.models.CardAction
14+
:type tap: ~microsoft_agents.activity.CardAction
1515
"""
1616

1717
url: NonEmptyString = None

libraries/microsoft-agents-activity/microsoft_agents/activity/channel_account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ChannelAccount(AgentsModel):
1717
Directory (AAD)
1818
:type aad_object_id: str
1919
: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.activity.RoleTypes
2121
"""
2222

2323
model_config = ConfigDict(extra="allow")

libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ConversationAccount(AgentsModel):
2121
Directory (AAD)
2222
:type aad_object_id: str
2323
: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.activity.RoleTypes
2525
:param tenant_id: This conversation's tenant ID
2626
:type tenant_id: str
2727
:param properties: This conversation's properties

libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_members.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ConversationMembers(AgentsModel):
99
:param id: Conversation ID
1010
:type id: str
1111
:param members: List of members in this conversation
12-
:type members: list[~microsoft_agents.protocols.models.ChannelAccount]
12+
:type members: list[~microsoft_agents.activity.ChannelAccount]
1313
"""
1414

1515
id: NonEmptyString = None

0 commit comments

Comments
 (0)