Documentation
¶
Index ¶
- Constants
- func CacheSignature(modelName, text, signature string)
- func ClearSignatureCache(modelName string)
- func GetCachedSignature(modelName, text string) string
- func GetModelGroup(modelName string) string
- func HasValidSignature(modelName, signature string) bool
- func SetSignatureBypassStrictMode(strict bool)
- func SetSignatureCacheEnabled(enabled bool)
- func SignatureBypassStrictMode() bool
- func SignatureCacheEnabled() bool
- type SignatureEntry
Constants ¶
const ( // SignatureCacheTTL is how long signatures are valid SignatureCacheTTL = 3 * time.Hour // SignatureTextHashLen is the length of the hash key (16 hex chars = 64-bit key space) SignatureTextHashLen = 16 // MinValidSignatureLen is the minimum length for a signature to be considered valid MinValidSignatureLen = 50 // CacheCleanupInterval controls how often stale entries are purged CacheCleanupInterval = 10 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func CacheSignature ¶
func CacheSignature(modelName, text, signature string)
CacheSignature stores a thinking signature for a given model group and text. Used for Claude models that require signed thinking blocks in multi-turn conversations.
func ClearSignatureCache ¶
func ClearSignatureCache(modelName string)
ClearSignatureCache clears signature cache for a specific model group or all groups.
func GetCachedSignature ¶
GetCachedSignature retrieves a cached signature for a given model group and text. Returns empty string if not found or expired.
func GetModelGroup ¶ added in v6.7.15
func HasValidSignature ¶
HasValidSignature checks if a signature is valid (non-empty and long enough)
func SetSignatureBypassStrictMode ¶ added in v6.9.20
func SetSignatureBypassStrictMode(strict bool)
SetSignatureBypassStrictMode controls whether bypass mode uses strict protobuf-tree validation.
func SetSignatureCacheEnabled ¶ added in v6.9.20
func SetSignatureCacheEnabled(enabled bool)
SetSignatureCacheEnabled switches Antigravity signature handling between cache mode and bypass mode.
func SignatureBypassStrictMode ¶ added in v6.9.20
func SignatureBypassStrictMode() bool
SignatureBypassStrictMode returns whether bypass mode uses strict protobuf-tree validation.
func SignatureCacheEnabled ¶ added in v6.9.20
func SignatureCacheEnabled() bool
SignatureCacheEnabled returns whether signature cache validation is enabled.
Types ¶
type SignatureEntry ¶
SignatureEntry holds a cached thinking signature with timestamp