Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
12,853 in github.com/JuliusBrussee/caveman
⨍
Functions
12,853
◇
Types & classes
1,364
↳
Endpoints
5
Method
Compress
Compress is the query-agnostic transform (identical to CompressQuery with an empty query).
engine/compressors/json.go:70
Method
Compress
([]byte, engine.Options)
mcp/engine_tools_retrieve_test.go:21
Method
Compress
(in []byte, o engine.Options)
mcp/server_test.go:96
Method
CompressQuery
(input []byte, query string)
engine/compressors/tabular.go:75
Method
CompressQuery
(input []byte, query string)
engine/compressors/text.go:43
Method
CompressQuery
(input []byte, query string)
engine/compressors/json_strategy.go:35
Method
CompressQuery
(input []byte, query string)
engine/compressors/searchresult.go:41
Method
CompressQuery
(input []byte, query string)
engine/compressors/log.go:85
Method
CompressQuery
(input []byte, query string)
engine/compressors/config.go:49
Method
CompressQuery
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
Method
CompressSegment
(segment []byte)
proxy/internal/standalone/standalone.go:434
Method
CompressSegment
([]byte)
proxy/internal/standalone/provider_routes_test.go:16
Method
CompressSegment
(seg []byte)
proxy/internal/store/prefix_stability_e2e_test.go:73
Method
CompressSegment
(seg []byte)
proxy/internal/store/prefix_stability_e2e_test.go:167
Method
CompressSegment
(seg []byte)
proxy/internal/store/prefix_stability_openai_e2e_test.go:57
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/cache_prefix_invariant_test.go:316
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/cache_prefix_invariant_test.go:1381
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/pixel_test.go:26
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/compress_test.go:83
Method
CompressSegment
(segment []byte)
proxy/internal/gateway/chatgpt_test.go:25
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/dedup_test.go:25
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/estimate_test.go:24
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/live_zone_test.go:62
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/prefix_stability_test.go:103
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/prefix_stability_test.go:544
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/toolschema_strip_test.go:62
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/toolschema_strip_test.go:86
Method
CompressSegmentQuery
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
Method
CompressSegmentQuery
(segment []byte, query string)
proxy/internal/gateway/chatgpt_test.go:33
Method
CompressSegmentQuery
(seg []byte, query string)
proxy/internal/gateway/compress_panic_test.go:32
Method
CompressSegmentQuery
(seg []byte, query string)
proxy/internal/gateway/compress_panic_test.go:176
Method
CompressSegmentQuery
(segment []byte, query string)
proxy/internal/gateway/compression_query_test.go:91
Method
CompressSegmentType
(segment []byte, contentType string)
proxy/internal/standalone/standalone.go:443
Method
CompressSegmentType
(seg []byte, contentType string)
proxy/internal/gateway/compress_test.go:48
Method
CompressSegmentType
(seg []byte, contentType string)
proxy/internal/gateway/compress_panic_test.go:28
Method
CompressWithMetadata
(input []byte, _ string)
engine/compressors/toon.go:26
Method
CompressWithMetadata
(input []byte, query string)
engine/compressors/json.go:78
Method
ContentType
()
engine/simulate_test.go:16
Method
ContentType
()
engine/compressors/axtree.go:32
Method
ContentType
()
engine/compressors/tabular.go:70
Method
ContentType
()
engine/compressors/html.go:40
Method
ContentType
()
engine/compressors/repetition.go:40
Method
ContentType
()
engine/compressors/diff.go:26
Method
ContentType
()
engine/compressors/text.go:36
Method
ContentType
()
engine/compressors/json_strategy.go:28
Method
ContentType
()
engine/compressors/toon.go:15
Method
ContentType
()
engine/compressors/toolschema.go:88
Method
ContentType
()
engine/compressors/searchresult.go:34
Method
ContentType
()
engine/compressors/code_nocgo.go:30
Method
ContentType
()
engine/compressors/code_cgo.go:55
Method
ContentType
()
engine/compressors/testreport.go:23
Method
ContentType
()
engine/compressors/log.go:78
Method
ContentType
()
engine/compressors/config.go:44
Method
ContentType
()
engine/compressors/terminal.go:55
Method
ContentType
()
engine/compressors/toolschema_annotations.go:413
Method
ContentType
()
engine/compressors/json.go:65
Method
Count
(b []byte)
engine/engine_test.go:19
Method
Count
(b []byte)
engine/tokens/tokens.go:45
Method
Count
(b []byte)
engine/tokens/tokens.go:68
Method
Count
(b []byte)
proxy/internal/middleware/counter.go:30
Method
Count
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
Method
CountTokensRequest
(original []byte, meta providers.RequestMetadata)
proxy/providers/gemini/count_tokens.go:12
Method
CountTokensRequest
(original []byte, meta providers.RequestMetadata)
proxy/providers/bedrock/count_tokens.go:10
Method
CountTokensRequest
(original []byte, meta providers.RequestMetadata)
proxy/providers/anthropic/count_tokens.go:12
Method
CountTokensRequest
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
Function
Decide
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
Method
DecodeTOON
DecodeTOON converts TOON back to compact JSON. Malformed TOON fails closed.
engine/toon.go:21
Method
DecodeTOON
(in []byte)
mcp/engine_tools_retrieve_test.go:54
Method
DecodeTOON
(in []byte)
mcp/server_test.go:103
Function
DefaultStatsReportPath
(home string)
proxy/internal/store/stats_report.go:11
Method
Driver
()
engine/ccr/store_sqlite.go:100
Method
EncodeTOON
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
Method
EncodeTOON
(in []byte)
mcp/engine_tools_retrieve_test.go:53
Method
EncodeTOON
(in []byte)
mcp/server_test.go:102
Method
EstimateSegment
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
Method
EstimateSegment
(seg []byte)
proxy/internal/gateway/compress_panic_test.go:131
Method
EstimateSegment
(segment []byte)
proxy/internal/gateway/compression_query_test.go:101
Method
EstimateSegment
(seg []byte)
proxy/internal/gateway/estimate_test.go:34
Method
EstimateSegmentQuery
EstimateSegmentQuery mirrors CompressSegmentQuery without storing recovery data.
proxy/internal/standalone/standalone.go:473
Method
EstimateSegmentQuery
(segment []byte, query string)
proxy/internal/gateway/compression_query_test.go:96
Function
EstimateTokens
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
Method
Eval
(_ context.Context, expression string)
browse/session_test.go:49
Method
Eval
(context.Context, string)
browse/cmd/caveman-browse/main.go:509
Method
Eval
(_ context.Context, _ string)
mcp/codemode/stdio_js_builtin_test.go:797
Method
EvalGateCleared
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
Method
ExecContext
(ctx context.Context, _ string, args ...any)
proxy/internal/store/store.go:490
Method
ExpireBatch
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
Method
ExpireBatch
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
Method
ExtractCompressible
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
Method
ExtractCompressible
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
Method
ExtractCompressible
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
Method
ExtractCompressible
(body []byte, meta providers.RequestMetadata)
proxy/providers/openaicompat/openaicompat.go:160
Method
ExtractCompressible
(body []byte, meta providers.RequestMetadata)
proxy/providers/openaicompat/openaicompat.go:185
Method
ExtractCompressible
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
Method
ExtractCompressible
(body []byte, meta providers.RequestMetadata)
proxy/providers/azureopenai/azureopenai.go:27
Method
ExtractCompressible
(body []byte, meta providers.RequestMetadata)
proxy/providers/vertex/content_compress.go:46
Method
ExtractStabilizable
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
Method
ExtractStabilizable
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
Method
ExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/openaicompat/openaicompat.go:164
Method
ExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/openaicompat/openaicompat.go:192
← previous
next →
8,301–8,400 of 12,853, ranked by callers