ToolModel.from_data

classmethod ToolModel.from_data(data)

Construct a ToolModel from its data representation.

To be used in conjunction with the to_data() method.

Parameters

data (dict) – The data dictionary.

Returns

ToolModel – The constructed ToolModel.