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

Function setDefined

packages/agent-core/src/config/toml.ts:729–735  ·  view source on GitHub ↗
(target: Record<string, unknown>, key: string, value: unknown)

Source from the content-addressed store, hash-verified

727}
728
729function setDefined(target: Record<string, unknown>, key: string, value: unknown): void {
730 if (value !== undefined) {
731 target[key] = value;
732 } else {
733 delete target[key];
734 }
735}
736
737function isFileExistsError(error: unknown): boolean {
738 return (

Callers 12

configToTomlDataFunction · 0.85
providerToTomlFunction · 0.85
modelToTomlFunction · 0.85
modelOverridesToTomlFunction · 0.85
thinkingToTomlFunction · 0.85
permissionRuleToTomlFunction · 0.85
serviceToTomlFunction · 0.85
loopControlToTomlFunction · 0.85
backgroundToTomlFunction · 0.85
experimentalToTomlFunction · 0.85
hookToTomlFunction · 0.85
oauthToTomlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected