Representation of an action to be executed by an agent.
This is similar to AgentAction, but includes a message log consisting of
chat messages.
This is useful when working with ChatModels, and is used to reconstruct
conversation history from the agent's perspective.
Similar to log, this can be used to pass along extra information about what exact
messages were predicted by the LLM before parsing out the (tool, tool_input).
This is again useful if (tool, tool_input) cannot be used to fully recreate the
LLM prediction, and you need that LLM prediction (for future agent iteration).
Compared to log, this is useful when the underlying LLM is a chat model (and
therefore returns messages rather than a string).
Return True as this class is serializable.
Get the namespace of the LangChain object.
Return a unique identifier for this class for serialization purposes.
Convert the graph to a JSON-serializable format.
Serialize a "not implemented" object.