ToolResultCompactionStrategy.ToolCallFormatter Property

Definition

An optional custom formatter that converts a CompactionMessageGroup into a summary string. When null, DefaultToolCallFormatter(CompactionMessageGroup) is used, which produces a YAML-like block listing each tool name and its results.

public Func<Microsoft.Agents.AI.Compaction.CompactionMessageGroup,string>? ToolCallFormatter { get; init; }
member this.ToolCallFormatter : Func<Microsoft.Agents.AI.Compaction.CompactionMessageGroup, string> with get, set
Public Property ToolCallFormatter As Func(Of CompactionMessageGroup, String)

Property Value

Applies to