Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type Strategy int
Strategy indicates how continuation should be handled for a tool call.
const ( // NoRanges indicates neither input nor output expose range semantics. // Emit YAML overflow wrapper and instruct message-show. NoRanges Strategy = iota // NativeRanges indicates both output continuation and compatible input ranges // are present. Follow nextRange using the matching range kind (bytes/lines). NativeRanges // OutputOnlyRanges indicates output exposes continuation but inputs do not // accept compatible range selectors. Emit YAML wrapper with messageId/nextRange // and instruct message-show. OutputOnlyRanges // InputOnlyRanges indicates inputs accept ranges but outputs don't expose // continuation hints. Avoid auto-iteration; only honor explicit user ranges // or emit YAML wrapper for autos. InputOnlyRanges )
func Decide ¶
func Decide(in sch.RangeInputs, out sch.ContinuationShape) Strategy
Decide returns the strategy based on the presence of continuation in the output schema and range selectors in the input schema. Preference is given to matching range modalities (bytes with bytes, lines with lines).
Click to show internal directories.
Click to hide internal directories.