MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / backgroundToToml

Function backgroundToToml

packages/agent-core/src/config/toml.ts:662–671  ·  view source on GitHub ↗
(
  background: BackgroundConfig,
  rawBackground: unknown,
)

Source from the content-addressed store, hash-verified

660}
661
662function backgroundToToml(
663 background: BackgroundConfig,
664 rawBackground: unknown,
665): Record<string, unknown> {
666 const out = cloneRecord(rawBackground);
667 for (const [key, value] of Object.entries(background)) {
668 setDefined(out, camelToSnake(key), value);
669 }
670 return out;
671}
672
673function experimentalToToml(
674 experimental: ExperimentalConfig,

Callers

nothing calls this directly

Calls 3

setDefinedFunction · 0.85
cloneRecordFunction · 0.70
camelToSnakeFunction · 0.70

Tested by

no test coverage detected