ToolResultCompactionStrategy.ToolCallFormatter Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)