ConversationReferenceBuilder.Build Method

Definition

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.

Applies to