langchain_core 0.5.0
langchain_core: ^0.5.0 copied to clipboard
Contains core abstractions of LangChain.dart and the LangChain Expression Language (LCEL).
0.5.0 #
Breaking: AI messages now use ordered content blocks. See the migration guide for constructor, projection, serialization, reasoning, and tool-call ID changes.
- Make
AIChatMessage.contentan orderedList<AIChatMessageContentBlock>and add blocks for visible text, reasoning, media, tool calls/results, provider metadata, and non-standard provider payloads (#967). - Keep
toolCallsas a derived getter. Tool-call IDs are now opaque provider or deterministic part IDs and must not be assumed to equal function names. - Make
contentAsStringandChatResult.outputAsStringreturn visible text only; reasoning remains available through reasoning blocks. - Serialize the canonical ordered block list while retaining support for reading legacy string/tool-call maps.
- Merge streamed blocks only by stable provider identity or explicit stream index, preserving parallel same-name tool calls and signed part boundaries.
- Add namespaced
providerDatato tool-call blocks and preserve it through serialization, equality, hashing, and streaming concatenation (#960). - Add
AgentStep.iteration,buildToolAgentScratchpad, and ordered message-list support inMessagePlaceholderfor complete parallel-tool transcripts (#970).
0.4.0 #
0.3.9 #
- Update a dependency to the latest release.
0.3.8 #
0.3.7 #
0.3.5 #
0.3.4 #
0.3.3 #
0.3.2 #
0.3.1 #
0.3.0 #
Note: This release has breaking changes.
If you are using "function calling" check how to migrate to "tool calling".
0.2.0 #
Note: This release has breaking changes.
If you are usingRunnable.fromFunctioncheck the migration guide.
- FEAT Add support for RunnableRouter (#386). (827e262)
- FEAT: Add support for Runnable.mapInputStream (#393). (a2b6bbb5)
- FEAT: Add support for JsonOutputParser (#392). (c6508f0f)
- FEAT: Reduce input stream for PromptTemplate, LLM, ChatModel, Retriever and Tool (#388). (b59bcd40)
- BREAKING FEAT: Support different logic for streaming in RunnableFunction (#394). (8bb2b8ed)
0.1.0 #
Note: This release has breaking changes.
Migration guide
- BREAKING REFACTOR: Introduce langchain_core and langchain_community packages (#328). (5fa520e6)
- BREAKING REFACTOR: Simplify LLMResult and ChatResult classes (#363). (ffe539c1)
- BREAKING REFACTOR: Simplify Output Parsers (#367). (f24b7058)
- REFACTOR: Simplify internal .stream implementation (#364). (c83fed22)
- FEAT: Implement .batch support (#370). (d254f929)
- FEAT: Add reduceOutputStream option to StringOutputParser (#368). (7f9a9fae)
0.0.1-dev.1 #
- Bootstrap package.