次の方法で共有


HandlebarsPlannerOptions.CreatePlanPromptHandler Property

Definition

Delegate that returns an override for the CreatePlan prompt.

public Func<string>? CreatePlanPromptHandler { get; set; }
member this.CreatePlanPromptHandler : Func<string> with get, set
Public Property CreatePlanPromptHandler As Func(Of String)

Property Value

Remarks

Handler will be used as a callback. The callback should return a valid Handlebars template string in a ```handlebars codeblock. If this is set, the planner will use this prompt instead of the default prompt. Devs can select any partial defined in Planners.Handlebars.CreatePlanPromptPartials namespace when constructing their own prompt. No partials are included by default; make sure to select partials such as "{{> UserGoal }}" or {{> AdditionalContext}} if needed.

Applies to