rosa_kb.typedb_model_interface.convert_component_parameter_value_to_py_type
- rosa_kb.typedb_model_interface.convert_component_parameter_value_to_py_type(param, param_type)
Convert ComponentParameter value to python type.
- Parameters:
param (
dict
[str
,MatchResultDict
]) – ComponentParameter valueparam_type (
Literal
['boolean'
,'boolean_array'
,'double'
,'double_array'
,'long'
,'long_array'
,'string'
,'string_array'
]) – CompomentParameter parameter-type
- Return type:
bool
|list
[bool
] |float
|list
[float
] |int
|list
[int
] |str
|list
[str
]- Returns:
converted value