Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
36
class
PersistedTrajectory(BaseModel):
Callers
14
_load_one_trajectory
Function · 0.45
_load_scenario_dir
Function · 0.45
_load_scenario_file
Function · 0.45
test_scenario_from_raw_coerces_int_id_to_str
Function · 0.45
test_scenario_preserves_extra_fields
Function · 0.45
test_persisted_trajectory_coerces_scenario_id
Function · 0.45
test_persisted_trajectory_allows_none_scenario_id
Function · 0.45
test_sdk_trajectory_sums_per_turn
Method · 0.45
test_handles_none_trajectory
Method · 0.45
test_sdk_trajectory_falls_back_to_raw_event_tokens
Method · 0.45
test_plan_execute_list_trajectory
Method · 0.45
test_static_json_scorer_wrapper_exact_match
Function · 0.45
Calls
no outgoing calls
Tested by
11
test_scenario_from_raw_coerces_int_id_to_str
Function · 0.36
test_scenario_preserves_extra_fields
Function · 0.36
test_persisted_trajectory_coerces_scenario_id
Function · 0.36
test_persisted_trajectory_allows_none_scenario_id
Function · 0.36
test_sdk_trajectory_sums_per_turn
Method · 0.36
test_handles_none_trajectory
Method · 0.36
test_sdk_trajectory_falls_back_to_raw_event_tokens
Method · 0.36
test_plan_execute_list_trajectory
Method · 0.36
test_static_json_scorer_wrapper_exact_match
Function · 0.36
_factory
Function · 0.36
test_join_drops_orphans
Function · 0.36