MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

MethodCompress
Compress is the query-agnostic transform (identical to CompressQuery with an empty query).
engine/compressors/json.go:70
MethodCompress
([]byte, engine.Options)
mcp/engine_tools_retrieve_test.go:21
MethodCompress
(in []byte, o engine.Options)
mcp/server_test.go:96
MethodCompressQuery
(input []byte, query string)
engine/compressors/tabular.go:75
MethodCompressQuery
(input []byte, query string)
engine/compressors/text.go:43
MethodCompressQuery
(input []byte, query string)
engine/compressors/json_strategy.go:35
MethodCompressQuery
(input []byte, query string)
engine/compressors/searchresult.go:41
MethodCompressQuery
(input []byte, query string)
engine/compressors/log.go:85
MethodCompressQuery
(input []byte, query string)
engine/compressors/config.go:49
MethodCompressQuery
CompressQuery biases array selection toward elements relevant to query via the shared deterministic BM25. An empty query behaves exactly like Compress
engine/compressors/json.go:74
MethodCompressSegment
(segment []byte)
proxy/internal/standalone/standalone.go:434
MethodCompressSegment
([]byte)
proxy/internal/standalone/provider_routes_test.go:16
MethodCompressSegment
(seg []byte)
proxy/internal/store/prefix_stability_e2e_test.go:73
MethodCompressSegment
(seg []byte)
proxy/internal/store/prefix_stability_e2e_test.go:167
MethodCompressSegment
(seg []byte)
proxy/internal/store/prefix_stability_openai_e2e_test.go:57
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/cache_prefix_invariant_test.go:316
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/cache_prefix_invariant_test.go:1381
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/pixel_test.go:26
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/compress_test.go:83
MethodCompressSegment
(segment []byte)
proxy/internal/gateway/chatgpt_test.go:25
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/dedup_test.go:25
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/estimate_test.go:24
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/live_zone_test.go:62
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/prefix_stability_test.go:103
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/prefix_stability_test.go:544
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/toolschema_strip_test.go:62
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/toolschema_strip_test.go:86
MethodCompressSegmentQuery
CompressSegmentQuery runs the same engine path with latest-user relevance context. Only query-aware compressors consume it; every other content type k
proxy/internal/standalone/standalone.go:455
MethodCompressSegmentQuery
(segment []byte, query string)
proxy/internal/gateway/chatgpt_test.go:33
MethodCompressSegmentQuery
(seg []byte, query string)
proxy/internal/gateway/compress_panic_test.go:32
MethodCompressSegmentQuery
(seg []byte, query string)
proxy/internal/gateway/compress_panic_test.go:176
MethodCompressSegmentQuery
(segment []byte, query string)
proxy/internal/gateway/compression_query_test.go:91
MethodCompressSegmentType
(segment []byte, contentType string)
proxy/internal/standalone/standalone.go:443
MethodCompressSegmentType
(seg []byte, contentType string)
proxy/internal/gateway/compress_test.go:48
MethodCompressSegmentType
(seg []byte, contentType string)
proxy/internal/gateway/compress_panic_test.go:28
MethodCompressWithMetadata
(input []byte, _ string)
engine/compressors/toon.go:26
MethodCompressWithMetadata
(input []byte, query string)
engine/compressors/json.go:78
MethodContentType
()
engine/simulate_test.go:16
MethodContentType
()
engine/compressors/axtree.go:32
MethodContentType
()
engine/compressors/tabular.go:70
MethodContentType
()
engine/compressors/html.go:40
MethodContentType
()
engine/compressors/repetition.go:40
MethodContentType
()
engine/compressors/diff.go:26
MethodContentType
()
engine/compressors/text.go:36
MethodContentType
()
engine/compressors/json_strategy.go:28
MethodContentType
()
engine/compressors/toon.go:15
MethodContentType
()
engine/compressors/toolschema.go:88
MethodContentType
()
engine/compressors/searchresult.go:34
MethodContentType
()
engine/compressors/code_nocgo.go:30
MethodContentType
()
engine/compressors/code_cgo.go:55
MethodContentType
()
engine/compressors/testreport.go:23
MethodContentType
()
engine/compressors/log.go:78
MethodContentType
()
engine/compressors/config.go:44
MethodContentType
()
engine/compressors/terminal.go:55
MethodContentType
()
engine/compressors/toolschema_annotations.go:413
MethodContentType
()
engine/compressors/json.go:65
MethodCount
(b []byte)
engine/engine_test.go:19
MethodCount
(b []byte)
engine/tokens/tokens.go:45
MethodCount
(b []byte)
engine/tokens/tokens.go:68
MethodCount
(b []byte)
proxy/internal/middleware/counter.go:30
MethodCount
Count returns the number of durable memory blocks without loading their contents. Callers omit this number on error rather than presenting zero.
mem/store.go:396
MethodCountTokensRequest
(original []byte, meta providers.RequestMetadata)
proxy/providers/gemini/count_tokens.go:12
MethodCountTokensRequest
(original []byte, meta providers.RequestMetadata)
proxy/providers/bedrock/count_tokens.go:10
MethodCountTokensRequest
(original []byte, meta providers.RequestMetadata)
proxy/providers/anthropic/count_tokens.go:12
MethodCountTokensRequest
CountTokensRequest projects a Responses request onto POST v1/responses/input_tokens, OpenAI's free count endpoint. Responses ONLY. Chat Completions h
proxy/providers/openai/count_tokens.go:24
FunctionDecide
Decide chooses a transform for an image given the sibling query text, the provider, and the model. It is fail-safe by construction: an empty or ambigu
engine/image/image.go:91
MethodDecodeTOON
DecodeTOON converts TOON back to compact JSON. Malformed TOON fails closed.
engine/toon.go:21
MethodDecodeTOON
(in []byte)
mcp/engine_tools_retrieve_test.go:54
MethodDecodeTOON
(in []byte)
mcp/server_test.go:103
FunctionDefaultStatsReportPath
(home string)
proxy/internal/store/stats_report.go:11
MethodDriver
()
engine/ccr/store_sqlite.go:100
MethodEncodeTOON
EncodeTOON converts JSON to the lossless TOON subset without CCR or size gating. It is for explicit agent/CLI requests, not automatic proxy routing.
engine/toon.go:12
MethodEncodeTOON
(in []byte)
mcp/engine_tools_retrieve_test.go:53
MethodEncodeTOON
(in []byte)
mcp/server_test.go:102
MethodEstimateSegment
EstimateSegment measures the token reduction a real CompressSegment would achieve through the engine's Simulate path, which stores NOTHING (no CCR Put
proxy/internal/standalone/standalone.go:467
MethodEstimateSegment
(seg []byte)
proxy/internal/gateway/compress_panic_test.go:131
MethodEstimateSegment
(segment []byte)
proxy/internal/gateway/compression_query_test.go:101
MethodEstimateSegment
(seg []byte)
proxy/internal/gateway/estimate_test.go:34
MethodEstimateSegmentQuery
EstimateSegmentQuery mirrors CompressSegmentQuery without storing recovery data.
proxy/internal/standalone/standalone.go:473
MethodEstimateSegmentQuery
(segment []byte, query string)
proxy/internal/gateway/compression_query_test.go:96
FunctionEstimateTokens
EstimateTokens retains its signature only; returning zero is a deliberate semantic break from the former provider-wide estimate. Current providers use
engine/image/tokens.go:15
MethodEval
(_ context.Context, expression string)
browse/session_test.go:49
MethodEval
(context.Context, string)
browse/cmd/caveman-browse/main.go:509
MethodEval
(_ context.Context, _ string)
mcp/codemode/stdio_js_builtin_test.go:797
MethodEvalGateCleared
EvalGateCleared reports whether the named optimizer has passed its eval gate. Byte-safe optimizers ignore this; behavioral ones must check it.
proxy/providers/adapter.go:231
MethodExecContext
(ctx context.Context, _ string, args ...any)
proxy/internal/store/store.go:490
MethodExpireBatch
ExpireBatch runs SQLite's batches (see sqliteMiddlewareTx.ExpireBatch). Only the replica holding the sweep lock works; the others return 0 and end the
proxy/internal/store/middleware_postgres.go:542
MethodExpireBatch
ExpireBatch reclaims one bounded batch and reports how many rows it touched, and whether any kind filled its batch (more is likely waiting); a sweeper
proxy/internal/store/middleware.go:806
MethodExtractCompressible
ExtractCompressible opts out by default: a provider without schema-aware content extraction must never have compress mode reshape its body.
proxy/providers/adapter.go:823
MethodExtractCompressible
ExtractCompressible returns only Gemini's live zone: the text parts and direct functionResponse output fields of the latest user turn. It never collec
proxy/providers/gemini/content_compress.go:33
MethodExtractCompressible
ExtractCompressible returns only the Anthropic live zone. For conversations that carry cache_control markers (Claude Code, caching SDKs) the live zone
proxy/providers/anthropic/content_compress.go:133
MethodExtractCompressible
(body []byte, meta providers.RequestMetadata)
proxy/providers/openaicompat/openaicompat.go:160
MethodExtractCompressible
(body []byte, meta providers.RequestMetadata)
proxy/providers/openaicompat/openaicompat.go:185
MethodExtractCompressible
ExtractCompressible returns only OpenAI's live zone: the latest tool message plus the latest user message. It never collects system/developer/assistan
proxy/providers/openai/content_compress.go:40
MethodExtractCompressible
(body []byte, meta providers.RequestMetadata)
proxy/providers/azureopenai/azureopenai.go:27
MethodExtractCompressible
(body []byte, meta providers.RequestMetadata)
proxy/providers/vertex/content_compress.go:46
MethodExtractStabilizable
ExtractStabilizable returns every content block the proxy may rewrite, each tagged with the cache zone it sits in: the latest user turn (Live, eligibl
proxy/providers/gemini/content_compress.go:68
MethodExtractStabilizable
ExtractStabilizable returns every content block the proxy may rewrite, each tagged with the cache zone it sits in: the live zone (Live, eligible for n
proxy/providers/anthropic/content_compress.go:172
MethodExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/openaicompat/openaicompat.go:164
MethodExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/openaicompat/openaicompat.go:192
← previousnext →8,301–8,400 of 12,853, ranked by callers