BackgroundAgentsProviderOptions.AgentListBuilder Property

Definition

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.

Applies to