haive.agents.base.serialization_mixin¶

Serialization mixin for Agent classes.

This mixin provides proper serialization support for Agent instances in LangGraph, handling both pickle and msgpack serialization formats.

Classes¶

SerializationMixin

Mixin for serializing and deserializing Agent instances.

Module Contents¶

class haive.agents.base.serialization_mixin.SerializationMixin¶

Mixin for serializing and deserializing Agent instances.

This mixin provides methods for handling serialization with both pickle and msgpack, focusing on addressing the specific needs of agents within LangGraph.

LangGraph uses msgpack under the hood for serialization during graph execution. This mixin ensures agents can be properly serialized without errors.