diff --git a/dotnet/samples/Concepts/FunctionCalling/FunctionCalling.cs b/dotnet/samples/Concepts/FunctionCalling/FunctionCalling.cs index 9ce10a4ae5ea..de6c65fa623c 100644 --- a/dotnet/samples/Concepts/FunctionCalling/FunctionCalling.cs +++ b/dotnet/samples/Concepts/FunctionCalling/FunctionCalling.cs @@ -49,16 +49,16 @@ namespace FunctionCalling; /// * The option instructs the AI model to call multiple functions in one request if the model supports parallel function calls. /// By default, this option is set to null, meaning that the AI model default value will be used. /// -/// The following table summarizes the effects of different combinations of these options: +/// The following table summarizes the effects of various combinations of the AllowParallelCalls and AllowConcurrentInvocation options: /// -/// | AllowParallelCalls | AllowConcurrentInvocation | AI function call requests | Concurrent Invocation | -/// |---------------------|---------------------------|--------------------------------|-----------------------| -/// | false | false | one request per call | false | -/// | false | true | one request per call | false* | -/// | true | false | one request per multiple calls | false | -/// | true | true | one request per multiple calls | true | +/// | AllowParallelCalls | AllowConcurrentInvocation | # of functions chosen per AI roundtrip | Concurrent Invocation by SK | +/// |---------------------|---------------------------|-----------------------------------------|-----------------------------| +/// | false | false | one | false | +/// | false | true | one | false* | +/// | true | false | multiple | false | +/// | true | true | multiple | true | /// -/// `*` There's only one function to call +/// `*` There's only one function to invoke. /// public class FunctionCalling(ITestOutputHelper output) : BaseTest(output) { diff --git a/dotnet/src/SemanticKernel.Abstractions/AI/FunctionChoiceBehaviors/RequiredFunctionChoiceBehavior.cs b/dotnet/src/SemanticKernel.Abstractions/AI/FunctionChoiceBehaviors/RequiredFunctionChoiceBehavior.cs index 1007fc8573e9..c90db27f906f 100644 --- a/dotnet/src/SemanticKernel.Abstractions/AI/FunctionChoiceBehaviors/RequiredFunctionChoiceBehavior.cs +++ b/dotnet/src/SemanticKernel.Abstractions/AI/FunctionChoiceBehaviors/RequiredFunctionChoiceBehavior.cs @@ -81,12 +81,10 @@ public override FunctionChoiceBehaviorConfiguration GetConfiguration(FunctionCho var functions = base.GetFunctions(this.Functions, context.Kernel, this._autoInvoke); - IReadOnlyList? selectedFunctions = null; - return new FunctionChoiceBehaviorConfiguration(this.Options ?? DefaultOptions) { Choice = FunctionChoice.Required, - Functions = selectedFunctions ?? functions, + Functions = functions, AutoInvoke = this._autoInvoke, }; }