MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / ensure_json_object

Function ensure_json_object

src/agents/kiro.rs:505–513  ·  view source on GitHub ↗
(config: &serde_json::Value, path: &Path)

Source from the content-addressed store, hash-verified

503}
504
505fn ensure_json_object(config: &serde_json::Value, path: &Path) -> Result<()> {
506 if config.is_object() {
507 Ok(())
508 } else {
509 Err(TraceDecayError::Config {
510 message: format!("{} must contain a JSON object", path.display()),
511 })
512 }
513}
514
515fn ensure_child_object(config: &mut serde_json::Value, key: &str, path: &Path) -> Result<()> {
516 if config.get(key).is_none() {

Callers 2

install_mcp_serverFunction · 0.85
install_default_agentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected