BackgroundAgentsProviderOptions.AgentListBuilder Property
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.
Gets or sets a custom function that builds the agent list text to append to instructions.
public Func<System.Collections.Generic.IReadOnlyDictionary<string,Microsoft.Agents.AI.AIAgent>,string>? AgentListBuilder { get; set; }
member this.AgentListBuilder : Func<System.Collections.Generic.IReadOnlyDictionary<string, Microsoft.Agents.AI.AIAgent>, string> with get, set
Public Property AgentListBuilder As Func(Of IReadOnlyDictionary(Of String, AIAgent), String)
Property Value
When null (the default), the provider generates a standard list of agent names and descriptions.
When set, this function receives the dictionary of available agents (keyed by name) and should return
a formatted string describing the available background agents.