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

Function loopControlToToml

packages/agent-core/src/config/toml.ts:651–660  ·  view source on GitHub ↗
(
  loopControl: LoopControl,
  rawLoopControl: unknown,
)

Source from the content-addressed store, hash-verified

649}
650
651function loopControlToToml(
652 loopControl: LoopControl,
653 rawLoopControl: unknown,
654): Record<string, unknown> {
655 const out = cloneRecord(rawLoopControl);
656 for (const [key, value] of Object.entries(loopControl)) {
657 setDefined(out, camelToSnake(key), value);
658 }
659 return out;
660}
661
662function backgroundToToml(
663 background: BackgroundConfig,

Callers

nothing calls this directly

Calls 3

setDefinedFunction · 0.85
cloneRecordFunction · 0.70
camelToSnakeFunction · 0.70

Tested by

no test coverage detected