Help us shape the future of Go! Take the 2026 Go Developer Survey

messageutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterInvalidHistoryMessages

func FilterInvalidHistoryMessages(history []protocoltypes.Message) []protocoltypes.Message

FilterInvalidHistoryMessages removes invalid persisted history records such as transient assistant thought-only messages.

func IsTransientAssistantThoughtMessage

func IsTransientAssistantThoughtMessage(msg protocoltypes.Message) bool

IsTransientAssistantThoughtMessage reports whether msg is an invalid reasoning-only assistant history record. These "hanging" thought messages are not a canonical persisted format and should be discarded instead of replayed or reconstructed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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