AIMessage
A message type in LangChain's message role system that carries the text content returned by the model or a tool-calling request.
Timeline (last 90 days)
LangChain's AIMessage only maps standard fields, and unknown fields are usually placed in additional_kwargs or simply discarded, so directly accessing message.reasoning_content will throw an attribute error.
Short-term memory includes SystemMessage, UserMessage, AIMessage, and ToolMessage, and has three characteristics: it is easily lost, has limited capacity, and can be read directly.
In LangChain's message model, both AIMessage and AIMessageChunk support the content blocks structure, used to carry richer output forms such as text blocks, tool call blocks, and reasoning blocks, with each block carrying a type and metadata.
All Facts (3)
LangChain's AIMessage only maps standard fields, and unknown fields are usually placed in additional_kwargs or simply discarded, so directly accessing message.reasoning_content will throw an attribute error.
50%UnverifiedShort-term memory includes SystemMessage, UserMessage, AIMessage, and ToolMessage, and has three characteristics: it is easily lost, has limited capacity, and can be read directly.
50%UnverifiedIn LangChain's message model, both AIMessage and AIMessageChunk support the content blocks structure, used to carry richer output forms such as text blocks, tool call blocks, and reasoning blocks, with each block carrying a type and metadata.
50%