val type: Class<AgentMessage>
is the type of parsable class
type - is the type of parsable class
type