-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc8dba1
commit 66f02ac
Showing
1 changed file
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
/// Copyright (c) Microsoft. All rights reserved. | ||
using System.ComponentModel.DataAnnotations; | ||
using SemanticKernel.Service.CopilotChat.Models; | ||
|
||
namespace SemanticKernel.Service.CopilotChat.Options; | ||
|
||
// <summary> | ||
// Configuration options for the planner. | ||
// </summary> | ||
/// <summary> | ||
/// Configuration options for the planner. | ||
/// </summary> | ||
public class PlannerOptions | ||
{ | ||
public const string PropertyName = "Planner"; | ||
|
||
// <summary> | ||
// Define if the planner must be Sequential or not. | ||
// </summary> | ||
/// <summary> | ||
/// Define if the planner must be Sequential or not. | ||
/// </summary> | ||
[Required] | ||
public PlanType Type { get; set; } = PlanType.Action; | ||
|
||
// <summary> | ||
// The minimum relevancy score for a function to be considered during plan creation when using SequentialPlanner | ||
// </summary> | ||
/// <summary> | ||
/// The minimum relevancy score for a function to be considered during plan creation when using SequentialPlanner | ||
/// </summary> | ||
[Range(0, 1.0)] | ||
public double? RelevancyThreshold { get; set; } = 0; | ||
|
||
// <summary> | ||
// Whether to allow missing functions in the plan on creation then sanitize output. Functions are considered missing if they're not available in the planner's kernel's context. | ||
// If set to true, the plan will be created with missing functions as no-op steps that are filtered from the final proposed plan. | ||
// If this is set to false, the plan creation will fail if any functions are missing. | ||
// </summary> | ||
/// <summary> | ||
/// Whether to allow missing functions in the plan on creation then sanitize output. Functions are considered missing if they're not available in the planner's kernel's context. | ||
/// If set to true, the plan will be created with missing functions as no-op steps that are filtered from the final proposed plan. | ||
/// If this is set to false, the plan creation will fail if any functions are missing. | ||
/// </summary> | ||
public bool SkipOnMissingFunctionsError { get; set; } = true; | ||
|
||
// <summary> | ||
// Whether to retry plan creation if LLM returned response that doesn't contain valid plan (e.g., invalid XML or JSON, contains missing function, etc.). | ||
// </summary> | ||
/// <summary> | ||
/// Whether to retry plan creation if LLM returned response that doesn't contain valid plan (e.g., invalid XML or JSON, contains missing function, etc.). | ||
/// </summary> | ||
public bool AllowRetriesOnInvalidPlan { get; set; } = true; | ||
} |