symphony.bdk.core.activity.command.CommandContext#

class symphony.bdk.core.activity.command.CommandContext(initiator: symphony.bdk.gen.agent_model.v4_initiator.V4Initiator, source_event: symphony.bdk.gen.agent_model.v4_message_sent.V4MessageSent, bot_display_name: str, bot_user_id: Optional[int] = None)#

Bases: symphony.bdk.core.activity.api.ActivityContext[symphony.bdk.gen.agent_model.v4_message_sent.V4MessageSent]

Default implementation of the ActivityContext handled by the CommandActivity.

__init__(initiator: symphony.bdk.gen.agent_model.v4_initiator.V4Initiator, source_event: symphony.bdk.gen.agent_model.v4_message_sent.V4MessageSent, bot_display_name: str, bot_user_id: Optional[int] = None)#
Parameters
  • initiator – The activity initiator (i.e. the Symphony user that triggered an event in the chat)

  • source_event – The activity source real-time event.

Methods

__init__(initiator, source_event, ...[, ...])

param initiator

The activity initiator (i.e. the Symphony user that triggered an event in the chat)

Attributes

arguments

bot_display_name

bot_user_id

initiator

return

The activity initiator (i.e. the Symphony user that triggered an event in the chat)

message_id

source_event

return

The activity source real-time event.

stream_id

text_content

property initiator#
Returns

The activity initiator (i.e. the Symphony user that triggered an event in the chat)

property source_event#
Returns

The activity source real-time event.