Builds and returns the ConversationReference.
Sets reference.activityId.
Sets reference.agent from an id + optional name. Role defaults to RoleTypes.Agent. On Teams, id is prefixed with 28:.
OptionalagentName: stringSets reference.conversation.id.
Sets reference.locale.
Sets reference.serviceUrl.
Sets reference.user from an id + optional name. Role defaults to RoleTypes.User.
OptionaluserName: stringStaticcreateCreates a new builder seeded with the agent identity and channel.
On Teams, the agent id is prefixed with 28: automatically.
The agent's client (app) ID.
The target channel (e.g. 'msteams', 'webchat').
OptionalserviceUrl: stringOptional override. If omitted, build() fills in the
channel default via serviceUrlForChannel().
StaticserviceReturns the default service URL for a channel.
Teams returns the public global endpoint; all other channels use the
https://{channelId}.botframework.com/ pattern (matching C# behavior).
Fluent builder for
ConversationReference.