次の方法で共有


HandlebarsPlannerOptions.GetAdditionalPromptContext Property

Definition

Delegate to get additional context for the prompt.

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

Property Value

Remarks

Additional context can be any domain knowledge or specific content that might help the model better fulfill the goal. This context should just hold static information that's the same for every request. It should not include variables; use KernelArguments when invoking the planner instead.

Applies to