SkillHandler Klasse

Konstruktor

SkillHandler(adapter: BotAdapter, bot: Bot, conversation_id_factory: ConversationIdFactoryBase, credential_provider: CredentialProvider, auth_configuration: AuthenticationConfiguration, channel_provider: ChannelProvider = None, logger: Logger = None)

Parameter

Name Beschreibung
adapter
Erforderlich
bot
Erforderlich
conversation_id_factory
Erforderlich
credential_provider
Erforderlich
auth_configuration
Erforderlich
channel_provider
Standardwert: None
logger
Standardwert: None

Methoden

on_delete_activity
on_reply_to_activity

reply_to_activity() API für Qualifikation.

Mit dieser Methode können Sie auf eine Aktivität antworten.

Dies unterscheidet sich geringfügig von SendToConversation().

  • SendToConversation(conversation_id) – fügt die Aktivität entsprechend dem Zeitstempel oder der Semantik des Kanals an das Ende der Unterhaltung an.
  • ReplyToActivity(conversation_id,ActivityId) – Fügt die Aktivität als Antwort auf eine andere Aktivität hinzu, wenn der Kanal sie unterstützt. Wenn der Kanal keine geschachtelten Antworten unterstützt, greift ReplyToActivity auf SendToConversation zurück.

Verwenden Sie ReplyToActivity, wenn Sie auf eine bestimmte Aktivität in der Unterhaltung antworten.

Verwenden Sie SendToConversation in allen anderen Fällen. :p aram claims_identity: Anspruchsidentität für den Bot. :type claims_identity: <xref:botframework.connector.auth.ClaimsIdentity> :p aram conversation_id:Die Unterhaltungs-ID. :type conversation_id: str :p aram activity_id: Zu sendende Aktivitäts-ID. :type activity_id: str :p aram activity: Activity to send. :type activity: Activity :return:

on_send_to_conversation

send_to_conversation() API für Qualifikation

Mit dieser Methode können Sie eine Aktivität an das Ende einer Unterhaltung senden.

Dies unterscheidet sich geringfügig von ReplyToActivity().

  • SendToConversation(conversation_id) – fügt die Aktivität entsprechend dem Zeitstempel oder der Semantik des Kanals an das Ende der Unterhaltung an.
  • ReplyToActivity(conversation_id,ActivityId) – Fügt die Aktivität als Antwort auf eine andere Aktivität hinzu, wenn der Kanal sie unterstützt. Wenn der Kanal keine geschachtelten Antworten unterstützt, greift ReplyToActivity auf SendToConversation zurück.

Verwenden Sie ReplyToActivity, wenn Sie auf eine bestimmte Aktivität in der Unterhaltung antworten.

Verwenden Sie SendToConversation in allen anderen Fällen. :p aram claims_identity: Anspruchsidentität für den Bot. :type claims_identity: <xref:botframework.connector.auth.ClaimsIdentity> :p aram conversation_id:Die Unterhaltungs-ID. :type conversation_id: str :p aram activity: Activity to send. :type activity: Activity :return:

on_update_activity

on_delete_activity

async on_delete_activity(claims_identity: ClaimsIdentity, conversation_id: str, activity_id: str)

Parameter

Name Beschreibung
claims_identity
Erforderlich
conversation_id
Erforderlich
activity_id
Erforderlich

on_reply_to_activity

reply_to_activity() API für Qualifikation.

Mit dieser Methode können Sie auf eine Aktivität antworten.

Dies unterscheidet sich geringfügig von SendToConversation().

  • SendToConversation(conversation_id) – fügt die Aktivität entsprechend dem Zeitstempel oder der Semantik des Kanals an das Ende der Unterhaltung an.
  • ReplyToActivity(conversation_id,ActivityId) – Fügt die Aktivität als Antwort auf eine andere Aktivität hinzu, wenn der Kanal sie unterstützt. Wenn der Kanal keine geschachtelten Antworten unterstützt, greift ReplyToActivity auf SendToConversation zurück.

Verwenden Sie ReplyToActivity, wenn Sie auf eine bestimmte Aktivität in der Unterhaltung antworten.

Verwenden Sie SendToConversation in allen anderen Fällen. :p aram claims_identity: Anspruchsidentität für den Bot. :type claims_identity: <xref:botframework.connector.auth.ClaimsIdentity> :p aram conversation_id:Die Unterhaltungs-ID. :type conversation_id: str :p aram activity_id: Zu sendende Aktivitäts-ID. :type activity_id: str :p aram activity: Activity to send. :type activity: Activity :return:

async on_reply_to_activity(claims_identity: ClaimsIdentity, conversation_id: str, activity_id: str, activity: Activity) -> ResourceResponse

Parameter

Name Beschreibung
claims_identity
Erforderlich
conversation_id
Erforderlich
activity_id
Erforderlich
activity
Erforderlich

on_send_to_conversation

send_to_conversation() API für Qualifikation

Mit dieser Methode können Sie eine Aktivität an das Ende einer Unterhaltung senden.

Dies unterscheidet sich geringfügig von ReplyToActivity().

  • SendToConversation(conversation_id) – fügt die Aktivität entsprechend dem Zeitstempel oder der Semantik des Kanals an das Ende der Unterhaltung an.
  • ReplyToActivity(conversation_id,ActivityId) – Fügt die Aktivität als Antwort auf eine andere Aktivität hinzu, wenn der Kanal sie unterstützt. Wenn der Kanal keine geschachtelten Antworten unterstützt, greift ReplyToActivity auf SendToConversation zurück.

Verwenden Sie ReplyToActivity, wenn Sie auf eine bestimmte Aktivität in der Unterhaltung antworten.

Verwenden Sie SendToConversation in allen anderen Fällen. :p aram claims_identity: Anspruchsidentität für den Bot. :type claims_identity: <xref:botframework.connector.auth.ClaimsIdentity> :p aram conversation_id:Die Unterhaltungs-ID. :type conversation_id: str :p aram activity: Activity to send. :type activity: Activity :return:

async on_send_to_conversation(claims_identity: ClaimsIdentity, conversation_id: str, activity: Activity) -> ResourceResponse

Parameter

Name Beschreibung
claims_identity
Erforderlich
conversation_id
Erforderlich
activity
Erforderlich

on_update_activity

async on_update_activity(claims_identity: ClaimsIdentity, conversation_id: str, activity_id: str, activity: Activity) -> ResourceResponse

Parameter

Name Beschreibung
claims_identity
Erforderlich
conversation_id
Erforderlich
activity_id
Erforderlich
activity
Erforderlich

Attribute

SKILL_CONVERSATION_REFERENCE_KEY

SKILL_CONVERSATION_REFERENCE_KEY = 'botbuilder.core.skills.SkillConversationReference'