ConversationReferenceBuilder.WithAgent 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 |
|---|---|
| WithAgent(ChannelAccount) |
Sets the agent information for the reference and returns the current builder instance. |
| WithAgent(String, String) |
Sets the agent information for the reference using the specified agent ID, name, and role. |
WithAgent(ChannelAccount)
Sets the agent information for the reference and returns the current builder instance.
public Microsoft.Agents.Builder.App.Proactive.ConversationReferenceBuilder WithAgent(Microsoft.Agents.Core.Models.ChannelAccount agent);
member this.WithAgent : Microsoft.Agents.Core.Models.ChannelAccount -> Microsoft.Agents.Builder.App.Proactive.ConversationReferenceBuilder
Public Function WithAgent (agent As ChannelAccount) As ConversationReferenceBuilder
Parameters
- agent
- ChannelAccount
The agent to associate with the reference. Cannot be null.
Returns
The current ConversationReferenceBuilder instance with the updated agent information.
Applies to
WithAgent(String, String)
Sets the agent information for the reference using the specified agent ID, name, and role.
public Microsoft.Agents.Builder.App.Proactive.ConversationReferenceBuilder WithAgent(string agentClientId, string agentName = default);
member this.WithAgent : string * string -> Microsoft.Agents.Builder.App.Proactive.ConversationReferenceBuilder
Public Function WithAgent (agentClientId As String, Optional agentName As String = Nothing) As ConversationReferenceBuilder
Parameters
- agentClientId
- String
The unique identifier of the agent. Cannot be null.
- agentName
- String
Optional Agent name.
Returns
The current ReferenceBuilder instance with the updated agent information.