ConversationReferenceBuilder.Build 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.
Builds and returns a complete conversation reference, ensuring all required fields are populated.
public Microsoft.Agents.Core.Models.ConversationReference Build();
member this.Build : unit -> Microsoft.Agents.Core.Models.ConversationReference
Public Function Build () As ConversationReference
Returns
A ConversationReference instance with guaranteed non-null ServiceUrl, Agent, and
User properties.
Remarks
If the ServiceUrl property is not set, it is automatically determined based on the channel ID. The Agent and User properties are initialized with default roles if they are null.