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

Function thinkingToToml

packages/agent-core/src/config/toml.ts:586–593  ·  view source on GitHub ↗
(thinking: ThinkingConfig, rawThinking: unknown)

Source from the content-addressed store, hash-verified

584}
585
586function thinkingToToml(thinking: ThinkingConfig, rawThinking: unknown): Record<string, unknown> {
587 const out = cloneRecord(rawThinking);
588 delete out['mode'];
589 for (const [key, value] of Object.entries(thinking)) {
590 setDefined(out, camelToSnake(key), value);
591 }
592 return out;
593}
594
595function permissionToToml(
596 permission: PermissionConfig,

Callers

nothing calls this directly

Calls 3

setDefinedFunction · 0.85
cloneRecordFunction · 0.70
camelToSnakeFunction · 0.70

Tested by

no test coverage detected