MCPcopy Create free account
hub / github.com/cortexkit/magic-context / resolveAutoSearchFromConfig

Function resolveAutoSearchFromConfig

packages/pi-plugin/src/index.ts:426–436  ·  view source on GitHub ↗
(
	config: MagicContextConfig,
)

Source from the content-addressed store, hash-verified

424}
425
426function resolveAutoSearchFromConfig(
427 config: MagicContextConfig,
428): PiAutoSearchHandlerOptions {
429 const auto = config.memory.auto_search;
430 const enabled = auto?.enabled ?? false;
431 return {
432 enabled,
433 scoreThreshold: auto?.score_threshold ?? 0.55,
434 minPromptChars: auto?.min_prompt_chars ?? 20,
435 };
436}
437
438export function resolveDreamerFromConfig(
439 config: MagicContextConfig,

Callers 2

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected