agentFeatureMessageSerializersModule
Provides a SerializersModule that handles polymorphic serialization and deserialization for various events and messages associated with features, agents, and strategies.
This module supports polymorphic serialization for the following base classes:
It registers the concrete subclasses of these base classes for serialization and deserialization:
AIAgentStartedEvent - Fired when an AI agent starts execution
AIAgentFinishedEvent - Fired when an AI agent completes execution
AIAgentBeforeCloseEvent - Fired before an AI agent is closed
AIAgentRunErrorEvent - Fired when an AI agent encounters a runtime error
AIAgentStrategyStartEvent - Fired when an AI agent strategy begins
AIAgentStrategyFinishedEvent - Fired when an AI agent strategy completes
AIAgentNodeExecutionStartEvent - Fired when a node execution starts
AIAgentNodeExecutionEndEvent - Fired when a node execution ends
ToolCallEvent - Fired when a tool is called
ToolValidationErrorEvent - Fired when tool validation fails
ToolCallFailureEvent - Fired when a tool call fails
ToolCallResultEvent - Fired when a tool call returns a result
BeforeLLMCallEvent - Fired before making an LLM call
AfterLLMCallEvent - Fired after completing an LLM call
This configuration enables proper handling of the diverse event types encountered in the system by ensuring that the polymorphic serialization framework can correctly serialize and deserialize each subclass.