MCPcopy
hub / github.com/simstudioai/sim / build_operators

Function build_operators

apps/pii/server.py:184–194  ·  view source on GitHub ↗
(
    raw_operators: dict[str, dict[str, Any]] | None,
)

Source from the content-addressed store, hash-verified

182
183
184def build_operators(
185 raw_operators: dict[str, dict[str, Any]] | None,
186) -> dict[str, OperatorConfig] | None:
187 if not raw_operators:
188 return None
189 operators: dict[str, OperatorConfig] = {}
190 for entity, raw_cfg in raw_operators.items():
191 op_cfg = dict(raw_cfg)
192 op_type = op_cfg.pop("type", "replace")
193 operators[entity] = OperatorConfig(op_type, op_cfg)
194 return operators
195
196
197def run_anonymize(

Callers 2

anonymizeFunction · 0.85
anonymize_batchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected