MCPcopy Index your code

hub / github.com/maximhq/bifrost / functions

Functions18,697 in github.com/maximhq/bifrost

↓ 2,992 callersMethodEqual
Equal reports whether all section hashes match.
framework/configstore/complexityconfig.go:63
↓ 2,188 callersMethodError
Error logs an error-level message. This is used for serious problems that need attention and may prevent normal operation.
core/schemas/logger.go:44
↓ 1,493 callersMethodRun
Run starts the interactive TUI loop. It loads config and state, then presents the chooser, launches harnesses in a tabbed multiplexer, and loops back
cli/internal/app/app.go:66
↓ 1,491 callersMethodContains
Contains reports whether value is in the whitelist. Returns true if value is in the list.
core/schemas/account.go:34
↓ 1,112 callersMethodFatal
Fatal logs a fatal-level message. This is used for critical situations that require immediate attention and will terminate the program.
core/schemas/logger.go:48
↓ 1,025 callersFunctionSendError
SendError sends a BifrostError response
transports/bifrost-http/handlers/utils.go:103
↓ 892 callersMethodGetValue
GetValue returns the resolved value.
core/schemas/secretvar.go:477
↓ 879 callersMethodSetValue
SetValue sets a value in the internal userValues map. For scoped contexts, delegates to the root context via valueDelegate. This is thread-safe and ca
core/schemas/context.go:338
↓ 842 callersMethodInfo
Info logs an info-level message. This is used for general informational messages about normal operation.
core/schemas/logger.go:36
↓ 640 callersMethodUnlock
Unlock releases the lock if it's held by this holder. Returns an error if the lock is not held by this holder.
framework/configstore/dlock.go:264
↓ 600 callersMethodWarn
Warn logs a warning-level message. This is used for potentially harmful situations that don't prevent normal operation.
core/schemas/logger.go:40
↓ 578 callersMethodLock
Lock acquires the lock, blocking until it's available or the context is cancelled. It will make up to (maxRetries + 1) attempts, sleeping retryInterva
framework/configstore/dlock.go:159
↓ 570 callersMethodValue
Value implements driver.Valuer for database storage. It stores the secret reference (e.g., "env.API_KEY" or "vault.path/to/secret") if the type is env
core/schemas/secretvar.go:442
↓ 496 callersMethodDebug
Debug logs a debug-level message. This is used for detailed debugging information that is typically only needed during development or troubleshooting.
core/schemas/logger.go:32
↓ 479 callersMethodpush
push appends the given rows to the ring, dropping the oldest entries when the cap is exceeded. Each row is appended by reference; vt10x's WithOnScroll
cli/internal/runtime/scrollback.go:49
↓ 478 callersMethodAdd
Add stores a new vector in the vector store.
framework/vectorstore/store.go:102
↓ 468 callersMethodSet
(model string, params ModelParams)
core/providers/utils/modelparamscache.go:130
↓ 468 callersMethodString
String returns a human-readable representation of the duration.
core/schemas/duration.go:29
↓ 410 callersMethodLog
Log appends a structured log entry for the current plugin scope. No-op if the context is not scoped to a plugin or has no log store.
core/schemas/context.go:664
↓ 390 callersFunctiondelete
* Delete a provider
tests/e2e/core/actions/api.ts:62
↓ 377 callersFunctiontest
(name, fn)
tests/e2e/api/lib/pricing.test.js:7
↓ 362 callersFunctioncancel
()
tests/e2e/api/runners/pick-features.mjs:97
↓ 352 callersMethodLen
Len returns the number of key-value pairs.
core/schemas/orderedmap.go:113
↓ 336 callersFunctionsetupMCPManager
setupMCPManager creates an MCP manager for testing
core/internal/mcptests/fixtures.go:1475
↓ 325 callersFunctioncn
(...inputs: ClassValue[])
ui/components/ui/utils.ts:4
↓ 312 callersMethoderror
(content: string, index = 0)
ui/lib/message/message.ts:78
↓ 301 callersFunctionMakeRequest
MakeRequest makes an HTTP request to the Bifrost API
tests/governance/test_utils.go:91
↓ 300 callersMethodSet
Set stores a value using the store's default TTL.
framework/kvstore/kvstore.go:112
↓ 292 callersMethodWrite
Write records downloaded bytes and periodically prints a progress line.
cli/internal/update/selfupdate.go:140
↓ 288 callersFunctioncreateTestContext
============================================================================= HELPER FUNCTIONS =======================================================
core/internal/mcptests/setup_test.go:301
↓ 283 callersMethodDB
DB returns the current runtime database connection. The returned pointer is only valid for the duration of the caller's operation — after a RefreshCon
framework/configstore/rdb.go:301
↓ 262 callersMethodLen
Len returns the number of currently non-expired keys.
framework/kvstore/kvstore.go:335
↓ 261 callersMethodClose
()
tests/e2e/clis/runner_test.go:102
↓ 258 callersMethodGet
(key string)
core/schemas/kvstore.go:9
↓ 246 callersMethodExecuteChatMCPTool
(ctx context.Context, toolCall *schemas.ChatAssistantMessageToolCall)
transports/bifrost-http/handlers/mcpserver.go:34
↓ 241 callersFunctionwait
(ms: number)
tests/e2e/core/utils/test-helpers.ts:13
↓ 236 callersFunctionNewMockLogger
()
plugins/governance/test_utils.go:30
↓ 234 callersFunctionSendJSON
SendJSON sends a JSON response with 200 OK status
transports/bifrost-http/handlers/utils.go:84
↓ 221 callersMethodCreate
(ctx context.Context, entry *Log)
framework/logstore/store.go:24
↓ 218 callersFunctionformat_provider_model
Format provider and model into the standard "provider/model" format. Args: provider: Provider name model: Model name
tests/integrations/python/tests/utils/parametrize.py:126
↓ 217 callersMethodErr
Err returns the error explaining why the context was cancelled. For scoped contexts, delegates to the root context. Returns nil if the context has not
core/schemas/context.go:275
↓ 217 callersFunctionGetErrorMessage
(err *schemas.BifrostError)
core/internal/llmtests/utils.go:729
↓ 217 callersMethodMigrate
Migrate executes all migrations that did not run yet.
framework/migrator/migrator.go:251
↓ 214 callersFunctionNewLocalGovernanceStore
NewLocalGovernanceStore creates a new in-memory governance store The modelCatalog parameter is optional (can be nil) and enables cross-provider model
plugins/governance/store.go:208
↓ 208 callersFunctionKV
KV is a shorthand constructor for Pair.
core/schemas/orderedmap.go:25
↓ 207 callersMethodsendError
sendError sends an error response with the appropriate status code and JSON body. It handles different error types (string, error interface, or arbitr
transports/bifrost-http/integrations/utils.go:198
↓ 205 callersMethodDone
Done returns a channel that is closed when the context is cancelled.
core/schemas/context.go:268
↓ 193 callersMethodClose
()
plugins/otel/client.go:10
↓ 185 callersMethodSetMCPManager
SetMCPManager sets the MCP manager for this Bifrost instance. This allows injecting a custom MCP manager implementation. If the provided manager is a
core/bifrost.go:3811
↓ 184 callersMethodMarshalSorted
MarshalSorted serializes the OrderedMap to JSON with keys sorted alphabetically. Use this when deterministic output is needed regardless of insertion
core/schemas/orderedmap.go:211
↓ 179 callersFunctionpostChat
postChat sends a chat completion and parses the response.
tests/semanticcache/http_test.go:220
↓ 171 callersFunctionPtr
Ptr creates a pointer to any value. This is a helper function for creating pointers to values.
core/schemas/utils.go:17
↓ 167 callersFunctionuseRbac
(_resource: RbacResource, _operation: RbacOperation)
ui/app/_fallbacks/enterprise/lib/contexts/rbacContext.tsx:76
↓ 166 callersFunctionsetupBifrost
setupBifrost creates a Bifrost instance for testing
core/internal/mcptests/fixtures.go:1443
↓ 165 callersFunctionGetSampleEchoToolCall
GetSampleEchoToolCall returns a sample echo tool call
core/internal/mcptests/fixtures.go:257
↓ 158 callersMethodisVisible
* Check if an element is visible
tests/e2e/core/pages/base.page.ts:195
↓ 154 callersFunctionnewBifrostError
newBifrostError wraps a standard error into a BifrostError with IsBifrostError set to false. This helper function reduces code duplication when handli
transports/bifrost-http/integrations/utils.go:42
↓ 147 callersFunctiongetErrorMessage
(error: unknown)
ui/lib/store/apis/baseApi.ts:201
↓ 143 callersFunctionclose
(server)
tests/e2e/api/runners/run-observability-local.mjs:28
↓ 143 callersMethodwaitFor
(n int, timeout time.Duration)
framework/streaming/gate_test.go:67
↓ 140 callersFunctionUnmarshal
Unmarshal decodes JSON data into v using the standard library.
core/schemas/json_wasm.go:25
↓ 139 callersMethodChatCompletionRequest
ChatCompletionRequest sends a chat completion request to the specified provider.
core/bifrost.go:764
↓ 138 callersFunctionsimpleChat
(model, content string)
tests/semanticcache/direct_test.go:1397
↓ 136 callersFunctionassertMiss
assertMiss verifies the response is a cache miss with a non-empty cache_id stamped. cache_debug must be present (plugin ran), CacheHit must be false,
tests/semanticcache/assert_test.go:45
↓ 134 callersFunctionCreateChatResponseWithToolCalls
CreateChatResponseWithToolCalls creates a Chat response with tool calls
core/internal/mcptests/fixtures.go:2570
↓ 133 callersFunctionGetTestConfig
GetTestConfig loads configuration from environment variables
core/internal/mcptests/fixtures.go:1539
↓ 133 callersFunctioncn
(...inputs: ClassValue[])
ui/lib/utils.ts:4
↓ 129 callersMethodDelete
Delete removes a vector from the vector store.
framework/vectorstore/store.go:104
↓ 129 callersMethodadd
(method string, h http.Header)
core/internal/mcptests/extraheaders_test.go:57
↓ 126 callersFunctionLoadConfig
LoadConfig loads initial configuration from a JSON config file into memory with full preprocessing including environment variable resolution and key c
transports/bifrost-http/lib/config.go:765
↓ 126 callersFunctioninitTestLogger
initTestLogger initializes the global logger for SQLite integration tests
transports/bifrost-http/lib/config_test.go:2069
↓ 125 callersMethodEmpty
Empty reports whether no file-backed section hashes are present.
framework/configstore/complexityconfig.go:54
↓ 119 callersMethodCheckAndExecuteAgentForChatRequest
Agent Mode Operations CheckAndExecuteAgentForChatRequest handles agent mode for Chat Completions API. Tool executions inside the agent loop go through
core/mcp/interface.go:31
↓ 119 callersFunctionRegisterEchoTool
============================================================================= INPROCESS TOOL REGISTRATION HELPERS ====================================
core/internal/mcptests/fixtures.go:315
↓ 117 callersFunctionnewLogCtx
(phase, name string)
tests/semanticcache/log_test.go:51
↓ 112 callersFunctionNewOrderedMapFromPairs
NewOrderedMapFromPairs creates an OrderedMap from key-value pairs, preserving the given order.
core/schemas/orderedmap.go:45
↓ 111 callersMethodGetClients
Client Management GetClients returns all MCP clients
core/mcp/interface.go:55
↓ 109 callersFunctionMarshalSorted
MarshalSorted encodes v to JSON with map keys sorted alphabetically. Use this when deterministic output is needed (e.g., hashing, caching keys). Recur
core/schemas/json_wasm.go:38
↓ 106 callersMethodScan
Scan implements sql.Scanner for SkillJSONMap.
framework/configstore/tables/skills.go:57
↓ 106 callersMethodSetAttribute
SetAttribute sets an attribute on the span. Attributes provide additional context about the operation.
core/schemas/tracer.go:63
↓ 106 callersFunctionget_model
Convenience function to get model name
tests/integrations/python/tests/utils/config_loader.py:469
↓ 104 callersMethodWithValue
WithValue returns a new context with the given value set.
core/schemas/context.go:133
↓ 102 callersFunctioncreateConfigFile
createConfigFile creates a config.json file with the given data
transports/bifrost-http/lib/config_test.go:1971
↓ 100 callersMethodAddChatResponse
AddChatResponse adds a Chat response function
core/internal/mcptests/fixtures.go:2280
↓ 100 callersFunctionExtractIDFromResponse
ExtractIDFromResponse extracts the ID from a creation response
tests/governance/test_utils.go:312
↓ 100 callersFunctiongenerateRandomID
generateRandomID generates a random ID for test resources
tests/governance/test_utils.go:198
↓ 99 callersMethodGenerateConfigHash
GenerateConfigHash generates a SHA256 hash of the provider configuration. This is used to detect changes between config.json and database config. Keys
framework/configstore/clientconfig.go:583
↓ 98 callersMethodCleanup
Cleanup is called on bifrost shutdown. It allows plugins to clean up any resources they have allocated. Returns any error that occurred during cleanup
core/schemas/plugin.go:215
↓ 98 callersMethodIsFromSecret
IsFromSecret returns true if the value is sourced from an external secret (env var or vault).
core/schemas/secretvar.go:168
↓ 93 callersFunctionAssertNoCacheHit
AssertNoCacheHit verifies that a response was NOT served from cache
plugins/semanticcache/test_utils.go:652
↓ 93 callersFunctiongetProviderModel
(provider: string, capability: string = 'chat')
tests/integrations/typescript/src/utils/config-loader.ts:436
↓ 92 callersFunctionWaitForCache
WaitForCache waits for async cache operations to complete. WaitForPendingOperations now drains the writersWg accurately (every PostLLMHook goroutine
plugins/semanticcache/test_utils.go:679
↓ 90 callersFunctionmakeKey
--- private helpers (shared across pricing/*.go files) --- makeKey is the composite map key used by pricingData: model|provider|mode.
framework/modelcatalog/datasheet/types.go:319
↓ 87 callersMethodUpdate
(ctx context.Context, id string, entry any)
framework/logstore/store.go:58
↓ 87 callersFunctionformatProviderModel
(provider: string, model: string)
tests/integrations/typescript/src/utils/parametrize.ts:134
↓ 86 callersFunctionCreateChatResponseWithText
CreateChatResponseWithText creates a Chat response with text
core/internal/mcptests/fixtures.go:2592
↓ 85 callersMethodPreLLMHook
(ctx *schemas.BifrostContext, req *schemas.BifrostRequest)
plugins/governance/main.go:53
↓ 84 callersMethodCount
Count returns the number of active sessions.
transports/bifrost-http/websocket/session.go:501
↓ 84 callersMethodValue
Value returns the value associated with the key. For scoped contexts, delegates to the root context via valueDelegate. Otherwise checks the internal u
core/schemas/context.go:287
↓ 84 callersFunctionget_integration_url
(integration: str)
tests/integrations/python/tests/utils/config_loader.py:465
next →1–100 of 18,697, ranked by callers