Creates an instance of CopilotStudioClient.
The connection settings.
The authentication token.
StaticscopeReturns the scope URL needed to connect to Copilot Studio from the connection settings. This is used for authentication token audience configuration.
Copilot Studio connection settings.
The scope URL for token audience.
Sends a question to the Copilot Studio service and retrieves the response activities.
The question to ask.
OptionalconversationId: stringThe ID of the conversation. Defaults to the current conversation ID.
A promise yielding an array of activities.
Sends an activity to the Copilot Studio service and retrieves the response activities.
The activity to send.
The ID of the conversation. Defaults to the current conversation ID.
A promise yielding an array of activities.
Sends an activity to the Copilot Studio service and retrieves the response activities.
The activity to send.
The ID of the conversation. Defaults to the current conversation ID.
An async generator yielding the Agent's Activities.
Starts a new conversation with the Copilot Studio service.
Whether to emit a start conversation event. Defaults to true.
A promise yielding an array of activities.
Starts a new conversation with the Copilot Studio service.
Whether to emit a start conversation event. Defaults to true.
An async generator yielding the Agent's Activities.
Client for interacting with Microsoft Copilot Studio services. Provides functionality to start conversations and send messages to Copilot Studio bots.