Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions docs-website/reference/haystack-api/utils_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,47 +196,6 @@ Get a Azure AD token using the DefaultAzureCredential and the "https://cognitive

## base_serialization

### serialize_class_instance

```python
serialize_class_instance(obj: Any) -> dict[str, Any]
```

Serializes an object that has a `to_dict` method into a dictionary.

**Parameters:**

- **obj** (<code>Any</code>) – The object to be serialized.

**Returns:**

- <code>dict\[str, Any\]</code> – A dictionary representation of the object.

**Raises:**

- <code>SerializationError</code> – If the object does not have a `to_dict` method.

### deserialize_class_instance

```python
deserialize_class_instance(data: dict[str, Any]) -> Any
```

Deserializes an object from a dictionary representation generated by `auto_serialize_class_instance`.

**Parameters:**

- **data** (<code>dict\[str, Any\]</code>) – The dictionary to deserialize from.

**Returns:**

- <code>Any</code> – The deserialized object.

**Raises:**

- <code>DeserializationError</code> – If the serialization data is malformed, the class type cannot be imported, or the
class does not have a `from_dict` method.

## callable_serialization

### serialize_callable
Expand Down