MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

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:33
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:408
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
(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
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:797
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:173
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
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:180
MethodExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/openaicompat/content_compress_test.go:32
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/openai/content_compress.go:88
MethodExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/azureopenai/azureopenai.go:31
MethodExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/internal/gateway/cache_prefix_invariant_test.go:1552
FunctionFilterByTag
FilterByTag returns the items carrying the given tag, sorted by score descending so the most relevant items come first.
engine/evals/fixtures/sample.go:52
MethodFindTaskDecision
(id string)
engine/ccr/store_generation.go:247
FunctionFixtureFiles
FixtureFiles lists the embedded fixture file names (excluding the manifest), for tests and tooling.
engine/evals/harness.go:331
MethodFlush
()
proxy/internal/translate/wire_gaps_test.go:1097
MethodFlush
()
proxy/internal/translate/wire_gaps_test.go:1155
MethodFlush
()
proxy/internal/translate/bench_test.go:118
MethodFlush
()
proxy/internal/gateway/route_test.go:422
MethodFlush
()
proxy/internal/gateway/route_pool.go:233
FunctionFuzzAXTreeDeterministicAndFailClosed
(f *testing.F)
engine/compressors/axtree_test.go:326
FunctionFuzzCachePrefixInvariant
FuzzCachePrefixInvariant walks random sequences of the same operations — turns, tool results, side requests, forks, rewinds, client edits, compaction,
proxy/internal/gateway/cache_prefix_invariant_test.go:1049
FunctionFuzzChatToChat
(f *testing.F)
proxy/internal/translate/properties_test.go:282
FunctionFuzzChatToMessages
(f *testing.F)
proxy/internal/translate/properties_test.go:281
FunctionFuzzChatToResponses
(f *testing.F)
proxy/internal/translate/properties_test.go:283
FunctionFuzzInspectObject
(f *testing.F)
proxy/providers/inspect_test.go:131
FunctionFuzzMessagesToChat
(f *testing.F)
proxy/internal/translate/properties_test.go:279
FunctionFuzzMessagesToMessages
(f *testing.F)
proxy/internal/translate/properties_test.go:278
FunctionFuzzMessagesToResponses
(f *testing.F)
proxy/internal/translate/properties_test.go:280
FunctionFuzzResponsesToChat
(f *testing.F)
proxy/internal/translate/properties_test.go:285
FunctionFuzzResponsesToMessages
(f *testing.F)
proxy/internal/translate/properties_test.go:284
FunctionFuzzResponsesToResponses
(f *testing.F)
proxy/internal/translate/properties_test.go:286
FunctionFuzzScanJSONString
(f *testing.F)
proxy/providers/anthropic/scan_string_test.go:55
FunctionFuzzTOONDecode
(f *testing.F)
engine/compressors/toon_roundtrip_test.go:68
FunctionFuzzTOONRoundTrip
(f *testing.F)
engine/compressors/toon_roundtrip_test.go:32
FunctionFuzzUsageLineFilter
(f *testing.F)
proxy/providers/usage_line_filter_test.go:80
MethodGet
(handle string)
engine/ccr/store_generation.go:217
MethodGetMetadata
(handle string)
engine/ccr/store_generation.go:221
MethodGetObject
(id string)
engine/ccr/store_generation.go:229
MethodGrade
(_ context.Context, g Grader, s Subject)
engine/evals/quality.go:53
MethodGrant
(authority, grant string)
proxy/internal/store/middleware_postgres.go:468
MethodGrant
Grant never accepts a global CCR hash as authority. Even possession of the random grant requires the authenticated principal and matching session scop
proxy/internal/store/middleware.go:672
MethodHeader
()
proxy/internal/translate/messages_responses.go:314
MethodHeader
()
proxy/internal/translate/bench_test.go:115
MethodInitMiddleware
InitMiddleware migrates under an advisory lock, so replicas starting together run it one after another; the later ones find the version current and sk
proxy/internal/store/middleware_postgres.go:206
MethodInitMiddleware
(ctx context.Context)
proxy/internal/store/middleware.go:133
MethodInspectRequest
(ctx context.Context, body providers.BodyReader, headers http.Header)
proxy/providers/gemini/gemini.go:97
MethodInspectRequest
InspectRequest fills in request metadata. Bedrock carries the model id in the request path (/bedrock/model/{modelId}/…) rather than the body, so the m
proxy/providers/bedrock/routing.go:276
MethodInspectRequest
(ctx context.Context, body providers.BodyReader, headers http.Header)
proxy/providers/anthropic/anthropic.go:17
MethodInspectRequest
(ctx context.Context, body providers.BodyReader, headers http.Header)
proxy/providers/openaicompat/openaicompat.go:156
MethodInspectRequest
(ctx context.Context, body providers.BodyReader, headers http.Header)
proxy/providers/openaicompat/openaicompat.go:240
MethodInspectRequest
(ctx context.Context, body providers.BodyReader, headers http.Header)
proxy/providers/openai/openai.go:39
MethodInspectRequest
(ctx context.Context, body providers.BodyReader, headers http.Header)
proxy/providers/azureopenai/azureopenai.go:19
MethodInspectRequest
InspectRequest fills in request metadata. Vertex carries the model id in the request path (.../models/{model}:{method}) rather than the body, so the m
proxy/providers/vertex/routing.go:95
← previousnext →8,001–8,100 of 12,391, ranked by callers