load.load.loads(text, *[, secrets_map, ...])
Revive a LangChain class from a JSON string.
load.serializable.to_json_not_implemented(obj)
Serialize a "not implemented" object.
load.serializable.try_neq_default(value, ...)
langchain_core.memory¶
Classes¶
memory.BaseMemory
Abstract base class for memory in Chains.
langchain_core.messages¶
Classes¶
messages.ai.AIMessage
A Message from an AI.
messages.ai.AIMessageChunk
A Message chunk from an AI.
messages.base.BaseMessage
The base abstract Message class.
messages.base.BaseMessageChunk
A Message chunk, which can be concatenated with other Message chunks.
messages.chat.ChatMessage
A Message that can be assigned an arbitrary speaker (i.e.
messages.chat.ChatMessageChunk
A Chat Message chunk.
messages.function.FunctionMessage
A Message for passing the result of executing a function back to a model.
messages.function.FunctionMessageChunk
A Function Message chunk.
messages.human.HumanMessage
A Message from a human.
messages.human.HumanMessageChunk
A Human Message chunk.
messages.system.SystemMessage
A Message for priming AI behavior, usually passed in as the first of a sequence of input messages.
messages.system.SystemMessageChunk
A System Message chunk.
messages.tool.ToolMessage
A Message for passing the result of executing a tool back to a model.
messages.tool.ToolMessageChunk
A Tool Message chunk.
Functions¶
messages.base.merge_content(first_content, ...)
messages.base.message_to_dict(message)
messages.base.messages_to_dict(messages)
Convert a sequence of Messages to a list of dictionaries.
langchain_core.output_parsers¶
Classes¶
output_parsers.base.BaseGenerationOutputParser
Base class to parse the output of an LLM call.