MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / _normalize_mapping

Function _normalize_mapping

trinity/common/dataclass_utils.py:25–28  ·  view source on GitHub ↗
(raw_data: Any)

Source from the content-addressed store, hash-verified

23
24
25def _normalize_mapping(raw_data: Any) -> dict[str, Any]:
26 if isinstance(raw_data, dict):
27 return raw_data
28 return OmegaConf.to_container(OmegaConf.create(raw_data), resolve=True) # type: ignore[return-value]
29
30
31def _strip_optional(value_type: Any) -> Any:

Callers 1

Calls 1

createMethod · 0.80

Tested by

no test coverage detected