ConversationReferenceBuilder.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Create(ChannelId, String) |
Creates a new instance of the ReferenceBuilder class initialized with the specified channel and conversation identifiers. |
| Create(String, ChannelId, String) |
Creates a new instance of the ReferenceBuilder class initialized with the specified agent ID, channel ID, and optional service URL. |
Create(ChannelId, String)
Creates a new instance of the ReferenceBuilder class initialized with the specified channel and conversation identifiers.
public static Microsoft.Agents.Builder.App.Proactive.ConversationReferenceBuilder Create(Microsoft.Agents.Core.Models.ChannelId channelId, string conversationId);
static member Create : Microsoft.Agents.Core.Models.ChannelId * string -> Microsoft.Agents.Builder.App.Proactive.ConversationReferenceBuilder
Public Shared Function Create (channelId As ChannelId, conversationId As String) As ConversationReferenceBuilder
Parameters
- channelId
- ChannelId
The unique identifier of the channel in which the conversation takes place. Cannot be null or empty.
- conversationId
- String
The unique identifier of the conversation within the channel. Cannot be null or empty.
Returns
A ReferenceBuilder instance initialized with the provided channel and conversation identifiers.
Applies to
Create(String, ChannelId, String)
Creates a new instance of the ReferenceBuilder class initialized with the specified agent ID, channel ID, and optional service URL.
public static Microsoft.Agents.Builder.App.Proactive.ConversationReferenceBuilder Create(string agentClientId, Microsoft.Agents.Core.Models.ChannelId channelId, string serviceUrl = default);
static member Create : string * Microsoft.Agents.Core.Models.ChannelId * string -> Microsoft.Agents.Builder.App.Proactive.ConversationReferenceBuilder
Public Shared Function Create (agentClientId As String, channelId As ChannelId, Optional serviceUrl As String = Nothing) As ConversationReferenceBuilder
Parameters
- agentClientId
- String
The unique identifier of the agent. Cannot be null or empty.
- channelId
- ChannelId
The identifier of the channel to associate with the reference. Cannot be null or empty.
- serviceUrl
- String
The service URL to associate with the reference, or null to omit the service URL.
Returns
A ReferenceBuilder instance initialized with the provided agent ID, channel ID, and optional service URL.