Skip to content

Conversation

pranavjoshi001
Copy link

@pranavjoshi001 pranavjoshi001 commented Sep 9, 2025

Description:
This change introduces support for the deliveryMode property when posting activities through the Direct Line SDK.

Background

Azure Bot Service (ABS) is adding support for streaming responses via Direct Line. To enable this, clients must set deliveryMode: "stream" and use the activity protocol on POST /activities requests.

Currently, the DirectLineJS SDK does not expose deliveryMode as a configurable property, which prevents clients from opting into streaming.

Changes in this PR

  • Extended the Message activity interface to include an optional deliveryMode property.
  • Updated directLine.ts to accept deliveryMode

Delivery mode doc - https://github.com/microsoft/Agents/blob/main/specs/activity/protocol-activity.md#delivery-mode

@pranavjoshi001
Copy link
Author

Keeping it draft for now, we need to merge once ABS changes go live

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant