consolidate

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package consolidate collapses consecutive identical tool turns into a single turn with a count.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsolidateToolRuns

func ConsolidateToolRuns(content string) string

ConsolidateToolRuns collapses consecutive turns with identical body content into a single turn with a count. Handles both tool-call turns and tool-output turns.

Parameters:

  • content: Journal entry content with potential repeated turns

Returns:

  • string: Content with consecutive identical turns collapsed

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL