overflow

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildJSONContinuationPreview added in v0.1.8

func BuildJSONContinuationPreview(body, refMessageID string, threshold int) (string, bool)

BuildJSONContinuationPreview truncates the largest string field inside a JSON object while preserving or synthesizing a machine-readable continuation contract for message-show. It returns ok=false when body is not JSON or when no truncation is needed.

func BuildOverflowYAML

func BuildOverflowYAML(messageID string, cont *extension.Continuation) (string, error)

BuildOverflowYAML produces a YAML helper document that LLMs and UIs can use to continue reading large content via message-show. It includes the message id, returned/remaining counts and a nextRange hint when available.

func ExtractMessageShowNextArgs added in v0.1.8

func ExtractMessageShowNextArgs(body string) (map[string]interface{}, bool)

ExtractMessageShowNextArgs returns canonical message-show nextArgs when the provided tool result explicitly advertises unresolved continuation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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