MCPcopy
hub / github.com/IBM/AssetOpsBench / from_raw

Method from_raw

src/evaluation/models.py:29–33  ·  view source on GitHub ↗
(cls, raw: dict)

Source from the content-addressed store, hash-verified

27
28 @classmethod
29 def from_raw(cls, raw: dict) -> "Scenario":
30 d = dict(raw)
31 if "id" in d:
32 d["id"] = str(d["id"])
33 return cls.model_validate(d)
34
35
36class PersistedTrajectory(BaseModel):

Calls

no outgoing calls