LangChain usually represents messages as it's own message types like HumanMessage
, AIMessage
, SystemMessage
, etc
Sometime, you might want to convert it into plan string which you can do it using get_buffer_string
Learning AI in Public
LangChain usually represents messages as it's own message types like HumanMessage
, AIMessage
, SystemMessage
, etc
Sometime, you might want to convert it into plan string which you can do it using get_buffer_string