Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TruncationResult ¶
type TruncationResult struct {
TruncatedContent string `json:"truncated_content"`
CacheKey string `json:"cache_key,omitempty"`
RecordPath string `json:"record_path,omitempty"`
TotalRecords int `json:"total_records,omitempty"`
TotalSize int `json:"total_size"`
CacheAvailable bool `json:"cache_available"`
}
TruncationResult represents the result of truncating a tool response
type Truncator ¶
type Truncator struct {
// contains filtered or unexported fields
}
Truncator handles truncating large tool responses
func NewTruncator ¶
NewTruncator creates a new truncator with the specified character limit
func (*Truncator) ShouldTruncate ¶
ShouldTruncate returns true if content should be truncated
Click to show internal directories.
Click to hide internal directories.