An observable stream that emits incoming activities from the Copilot Studio service. Each activity represents a message, card, or other interactive element sent by the agent.
All emitted activities include:
An observable that emits the current connection status as numeric values. This allows WebChat clients to monitor and react to connection state changes.
Connection status values:
Gracefully terminates the connection to the Copilot Studio service. This method ensures proper cleanup by completing all active observables and releasing associated resources.
After calling this method:
Posts a user activity to the Copilot Studio service and returns an observable that emits the activity ID once the message is successfully sent.
The method validates that the activity contains meaningful content and handles the complete message flow including optional typing indicators.
The user activity to send.
An observable that emits the unique activity ID upon successful posting.
Represents a connection interface for integrating Copilot Studio with WebChat.
Remarks
This interface provides the necessary methods and observables to facilitate bidirectional communication between a WebChat client and the Copilot Studio service.
The connection follows the DirectLine protocol pattern, making it compatible with Microsoft Bot Framework WebChat components.