Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ 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)
:type tax: str
: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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading