Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CavemanMode ¶
type CavemanMode int
CavemanMode options to cover Julius Brussee's caveman mode for more aggressive compacting. see: https://juliusbrussee.github.io/caveman/ License MIT: https://github.com/JuliusBrussee/caveman/blob/main/LICENSE
const ( // CavemanOff is the default mode uses a normal prompt. CavemanOff CavemanMode = iota // CavemanLite is: No filler/hedging. Keep articles + full sentences. Professional but tight. CavemanLite // CavemanFull is: Drop articles, fragments OK, short synonyms. Classic caveman. CavemanFull // CavemanUltra is the most aggressive mode: Abbreviate (DB/auth/config/req/res/fn/impl), strip conjunctions, arrows for causality (X → Y), one word when one word enough. // Be cautious and ensure you've committed your memory files before using this mode - as we tell our kids: "You get what you get, and you don't throw a fit" CavemanUltra )
func ParseCavemanMode ¶
func ParseCavemanMode(s string) CavemanMode
ParseCavemanMode parses a string into a CavemanMode. Unknown values return CavemanOff.
func (CavemanMode) String ¶
func (m CavemanMode) String() string
type Option ¶
type Option func(*Compacter)
Option is a functional option for configuring Compacter.
func WithCavemanMode ¶
func WithCavemanMode(mode CavemanMode) Option
WithCavemanMode enables caveman mode, which Julius Brussee's prompt for reduced token size. Use at your own risk (make sure memory is committed beforehand).
func WithLogger ¶
WithLogger sets the logger for the Compacter.
Click to show internal directories.
Click to hide internal directories.