Releases: davidmigloz/langchain_dart
2025-07-30
Changes
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
anthropic_sdk_dart
-v0.2.2
chromadb
-v0.2.2
googleai_dart
-v0.1.2
langchain
-v0.7.8+1
langchain_anthropic
-v0.2.1+1
langchain_chroma
-v0.2.2+1
langchain_community
-v0.3.4+1
langchain_core
-v0.3.8
langchain_firebase
-v0.2.2+1
langchain_google
-v0.6.5+1
langchain_mistralai
-v0.2.4+1
langchain_ollama
-v0.3.3+1
langchain_openai
-v0.7.5
langchain_pinecone
-v0.1.1+1
langchain_supabase
-v0.1.2+1
mistralai_dart
-v0.0.5
ollama_dart
-v0.2.4
openai_dart
-v0.5.3
openai_realtime_dart
-v0.0.5
tavily_dart
-v0.1.2
vertex_ai
-v0.1.2
anthropic_sdk_dart
- v0.2.2
chromadb
- v0.2.2
googleai_dart
- v0.1.2
langchain
- v0.7.8+1
langchain_anthropic
- v0.2.1+1
langchain_chroma
- v0.2.2+1
langchain_community
- v0.3.4+1
langchain_core
- v0.3.8
- FEAT: Make CreateChatCompletionStreamResponse.choices field nullable to support Groq's OpenAI-compatible API (#742). (76fbbdc6)
- FIX: Add multi-LLM compatibility for Tool.fromFunction getInputFromJson (#738). (291a0efc)
- BUILD: Update dependencies (#751). (250a3c6)
langchain_firebase
- v0.2.2+1
langchain_google
- v0.6.5+1
langchain_mistralai
- v0.2.4+1
langchain_ollama
- v0.3.3+1
langchain_openai
- v0.7.5
- FEAT: Make CreateChatCompletionStreamResponse.choices field nullable to support Groq's OpenAI-compatible API (#742). (76fbbdc6)
- BUILD: Update dependencies (#751). (250a3c6)
langchain_pinecone
- v0.1.1+1
langchain_supabase
- v0.1.2+1
mistralai_dart
- v0.0.5
ollama_dart
- v0.2.4
openai_dart
- v0.5.3
- FEAT: Make CreateChatCompletionStreamResponse.choices field nullable to support Groq's OpenAI-compatible API (#742). (76fbbdc6)
- BUILD: Update dependencies (#751). (250a3c6)
openai_realtime_dart
- v0.0.5
tavily_dart
- v0.1.2
vertex_ai
- v0.1.2
New Contributors
2025-06-18
Changes
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
Packages with dependency updates only:
Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
langchain_openai
-v0.7.4+1
openai_dart
- v0.5.1
- FEAT: Make ToolCallChunk.index field nullable to support Gemini OpenAI-compatible API (#733). (19cb49c0)
- FEAT: Make Embedding.index field nullable to support Gemini OpenAI-compatible API (#729). (9d22f197)
openai_realtime_dart
- v0.0.4+1
2025-06-12
Changes
Packages with changes:
openai_dart
-v0.5.0
anthropic_sdk_dart
-v0.2.1
chromadb
-v0.2.1
googleai_dart
-v0.1.1
langchain
-v0.7.8
langchain_anthropic
-v0.2.1
langchain_chroma
-v0.2.2
langchain_community
-v0.3.4
langchain_core
-v0.3.7
langchain_firebase
-v0.2.2
langchain_google
-v0.6.5
langchain_mistralai
-v0.2.4
langchain_ollama
-v0.3.3
langchain_openai
-v0.7.4
langchain_pinecone
-v0.1.1
langchain_supabase
-v0.1.2
langgraph
-v0.0.1-dev.2
mistralai_dart
-v0.0.4
ollama_dart
-v0.2.3
openai_realtime_dart
-v0.0.4
tavily_dart
-v0.1.1
vertex_ai
-v0.1.1
openai_dart
- v0.5.0
- BREAKING FEAT: Align OpenAI API changes (#706). (b8b04ca6)
- FEAT: Add support for web search, gpt-image-1 and list chat completions (#716). (269dea03)
- FEAT: Update OpenAI model catalog (#714). (68df4558)
- FEAT: Change the default value of 'reasoning_effort' from medium to null (#713). (f224572e)
- FEAT: Update dependencies (requires Dart 3.6.0) (#709). (9e3467f7)
- REFACTOR: Remove fetch_client dependency in favor of http v1.3.0 (#659). (0e0a685c)
- REFACTOR: Fix linter issues (#708). (652e7c64)
- DOCS: Fix TruncationObject docs typo in openai_dart. (ee5ed4fd)
- DOCS: Document Azure Assistants API base url (#626). (c3459eea)
anthropic_sdk_dart
- v0.2.1
- FEAT: Update dependencies (requires Dart 3.6.0) (#709). (9e3467f7)
- REFACTOR: Remove fetch_client dependency in favor of http v1.3.0 (#659). (0e0a685c)
- FIX: Fix linter issues (#656). (88a79c65)
chromadb
- v0.2.1
- FEAT: Update dependencies (requires Dart 3.6.0) (#709). (9e3467f7)
- REFACTOR: Remove fetch_client dependency in favor of http v1.3.0 (#659). (0e0a685c)
- FIX: Fix linter issues (#656). (88a79c65)
googleai_dart
- v0.1.1
- FEAT: Update dependencies (requires Dart 3.6.0) (#709). (9e3467f7)
- REFACTOR: Remove fetch_client dependency in favor of http v1.3.0 (#659). (0e0a685c)
- FIX: Fix linter issues (#656). (88a79c65)
langchain
- v0.7.8
- FEAT: Implement Markdown text splitter (#635). (242e4be2)
- FEAT: Update dependencies (requires Dart 3.6.0) (#709). (9e3467f7)
- FEAT: Add to/fromMap serialization to ChatMessage, PromptValue & ChatHistory (#681). (d239c7c7)
- FIX: Correctly calculate start_index when using chunkOverlap in TextSplitter (#640). (71dd5ac3)
- FIX: Fix linter issues (#656). (88a79c65)
- FIX: Made apiKey optional for
TavilyAnswerTool
andTavilySearchResultsTool
(#646). (5085ea4a)
langchain_anthropic
- v0.2.1
- FEAT: Update dependencies (requires Dart 3.6.0) (#709). (9e3467f7)
- REFACTOR: Remove fetch_client dependency in favor of http v1.3.0 (#659). (0e0a685c)
- FIX: Fix linter issues (#656). (88a79c65)
langchain_chroma
- v0.2.2
- FEAT: Update dependencies (requires Dart 3.6.0) (#709). (9e3467f7)
- REFACTOR: Remove fetch_client dependency in favor of http v1.3.0 (#659). (0e0a685c)
- FIX: Fix linter issues (#656). (88a79c65)
langchain_community
- v0.3.4
- FEAT: Update dependencies (requires Dart 3.6.0) (#709). (9e3467f7)
- REFACTOR: Remove fetch_client dependency in favor of http v1.3.0 (#659). (0e0a685c)
- FIX: Fix static instance of ObjectBoxVectorStore (#684). (719ead93)
- FIX: Fix langchain_community WASM compatibility (#660). (0be8aae4)
- FIX: Fix linter issues (#656). (88a79c65)
- FIX: Made apiKey optional for
TavilyAnswerTool
andTavilySearchResultsTool
(#646). ([5085ea4](5085ea4ad8b5...
2024-12-16
Changes
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
anthropic_sdk_dart
-v0.2.0+1
chromadb
-v0.2.0+2
googleai_dart
-v0.1.0+3
langchain
-v0.7.7+2
langchain_anthropic
-v0.2.0+1
langchain_community
-v0.3.3
langchain_core
-v0.3.6+1
langchain_firebase
-v0.2.1+4
langchain_google
-v0.6.4+2
langchain_mistralai
-v0.2.3+2
langchain_ollama
-v0.3.2+2
langchain_openai
-v0.7.3
mistralai_dart
-v0.0.3+4
ollama_dart
-v0.2.2+1
openai_dart
-v0.4.5
openai_realtime_dart
-v0.0.3+1
tavily_dart
-v0.1.0+1
vertex_ai
-v0.1.0+3
langchain_chroma
-v0.2.1+5
langchain_pinecone
-v0.1.0+11
langchain_supabase
-v0.1.1+4
Packages with dependency updates only:
Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
langchain_chroma
-v0.2.1+5
langchain_pinecone
-v0.1.0+11
langchain_supabase
-v0.1.1+4
langchain
- v0.7.7+2
langchain_core
- v0.3.6+1
langchain_community
- v0.3.3
- FEAT: Add support for DirectoryLoader (#620). (4730f2a3)
- FEAT: Expose internal store in ObjectBoxVectorStore (#611). (c33f2e07)
- FIX: Chinese character support on web loader (#600). (48e64d5b)
- REFACTOR: Add new lint rules and fix issues (#621). (60b10e00)
- REFACTOR: Upgrade api clients generator version (#610). (0c8750e8)
langchain_openai
- v0.7.3
- FEAT: Add gpt-4o-2024-11-20 to model catalog in openai_dart (#614). (bf333081)
- REFACTOR: Add new lint rules and fix issues (#621). (60b10e00)
langchain_anthropic
- v0.2.0+1
langchain_firebase
- v0.2.1+4
langchain_google
- v0.6.4+2
langchain_mistralai
- v0.2.3+2
langchain_ollama
- v0.3.2+2
openai_dart
- v0.4.5
- FEAT: Support Predicted Outputs in openai_dart (#613). (315fe0fd)
- FEAT: Support streaming audio responses in chat completions in openai_dart (#615). (6da756a8)
- FEAT: Add gpt-4o-2024-11-20 to model catalog in openai_dart (#614). (bf333081)
- FIX: Default store field to null in openai_dart to support Azure and Groq APIs (#608). (21332960)
- FIX: Make first_id and last_id nullable in list endpoints in openai_dart (#607). (7cfc4ddf)
- DOCS: Update OpenAI endpoints descriptions (#612). (10c66888)
- REFACTOR: Add new lint rules and fix issues (#621). (60b10e00)
- REFACTOR: Upgrade api clients generator version (#610). (0c8750e8)
openai_realtime_dart
- v0.0.3+1
- REFACTOR: Add new lint rules and fix issues (#621). (60b10e00)
- REFACTOR: Upgrade api clients generator version (#610). (0c8750e8)
- DOCS: Update openai_spec_official.yaml. (ee2eb35b)
- DOCS: Update README.md. (44291a06)
anthropic_sdk_dart
- v0.2.0+1
- REFACTOR: Add new lint rules and fix issues (#621). (60b10e00)
- REFACTOR: Upgrade api clients generator version (#610). (0c8750e8)
chromadb
- v0.2.0+2
- REFACTOR: Add new lint rules and fix issues (#621). (60b10e00)
- REFACTOR: Upgrade api clients generator version (#610). (0c8750e8)
googleai_dart
- v0.1.0+3
mistralai_dart
- v0.0.3+4
- REFACTOR: Add new lint rules and fix issues (#621). (60b10e00)
- REFACTOR: Upgrade api clients generator version (#610). (0c8750e8)
ollama_dart
...
2024-10-31
Changes
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
Packages with dependency updates only:
Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
langchain_openai
-v0.7.2+5
openai_dart
- v0.4.4
openai_realtime_dart
- v0.0.3
2024-10-29
What's New?
I haven't announced the last few releases as much as I used to due to lack of time (I should probably automate it), but we've been quietly working on enhancements and new features!
Here's a summary of the latest updates:
🔄 Runnable Retry:
Thanks to @Ganeshsivakumar, you can now effortlessly retry failed runnables.
final chatModel = ChatOpenAI();
final chatModelWithRetry = chatModel.withRetry(maxRetries: 5);
final res = await chatModelWithRetry.invoke(...);
Pro-tip: combine with fallbacks for robustness. For example, retry 5 times and then fallback to another model.
final openAi = ChatOpenAI(...);
final anthropic = ChatAnthropic(...);
final chatModel = openAi
.withRetry(maxRetries: 5)
.withFallbacks([anthropic]);
Learn more in the docs.
✨ langchain_google package:
- ChatGoogleGenerativeAI now supports code execution
final chatModel = ChatGoogleGenerativeAI(
apiKey: apiKey,
defaultOptions: ChatGoogleGenerativeAIOptions(
model: 'gemini-1.5-flash',
enableCodeExecution: true,
),
);
final res = await chatModel.invoke(
PromptValue.string(
'Calculate the fibonacci sequence up to 10 terms. '
'Return only the last term without explanations.',
),
);
final text = res.output.content;
print(text); // 34
final executableCode = res.metadata['executable_code'] as String;
print(executableCode);
final codeExecutionResult = res.metadata['code_execution_result'] as Map<String, dynamic>;
print(codeExecutionResult);
- GoogleGenerativeAIEmbeddings now supports reduced output dimensionality
✨ langchain_openai package:
- Added support for o1-preview and o1-mini models.
✨ langchain_community package:
- ObjectBox integration enhancements: Added
deleteWhere
functionality and updated SDK to v4.0.3 to fix critical iOS exception.
await vectorStore.deleteWhere(
ObjectBoxDocumentProps.metadata.contains('cat'),
);
🤖 Default models updates:
- ChatAnthropic: Updated to
claude-3-5-sonnet-20241022
. - Ollama and ChatOllama: Updated to
llama-3.2
.
🆕🔥 New Package: openai_realtime_dart
Introducing openai_realtime_dart
package, a strongly-typed Dart client for OpenAI Realtime API.
OpenAI recently released a new websocket-based API for low-latency, multi-modal conversational experiences. You can find all the details in the official documentation.
🎯 openai_dart client:
- Audio Support: Now available in chat completions (check out the official docs for more details)
final res = await client.createChatCompletion(
request: CreateChatCompletionRequest(
model: ChatCompletionModel.model(
ChatCompletionModels.gpt4oAudioPreview,
),
modalities: [
ChatCompletionModality.text,
ChatCompletionModality.audio,
],
audio: ChatCompletionAudioOptions(
voice: ChatCompletionAudioVoice.alloy,
format: ChatCompletionAudioFormat.wav,
),
messages: [
ChatCompletionMessage.user(
content: ChatCompletionUserMessageContent.string(
'Is a golden retriever a good family dog?',
),
),
],
),
);
final choice = res.choices.first;
final audio = choice.message.audio;
print(audio?.id);
print(audio?.expiresAt);
print(audio?.transcript);
print(audio?.data);
- Support for storing outputs for model distillation and metadata
- Support for multi-modal moderations
- Support for maxCompletionTokens and reasoningTokens (for o1-preview and o1-mini models)
- Support for file search results in assistants API
🎯 anthropic_sdk_dart client:
- Support for Computer Use
const request = CreateMessageRequest(
model: Model.model(Models.claude35Sonnet20241022),
messages: [
Message(
role: MessageRole.user,
content: MessageContent.text(
'Save a picture of a cat to my desktop. '
'After each step, take a screenshot and carefully evaluate if you '
'have achieved the right outcome. Explicitly show your thinking: '
'"I have evaluated step X..." If not correct, try again. '
'Only when you confirm a step was executed correctly should '
'you move on to the next one.',
),
),
],
tools: [
Tool.computerUse(displayWidthPx: 1024, displayHeightPx: 768),
Tool.textEditor(),
Tool.bash(),
],
maxTokens: 1024,
);
final res = await client.createMessage(request: request);
- Support for Message Batches
- Support for Prompt Caching
Changes
Packages with breaking changes:
Packages with other changes:
langchain_community
-v0.3.2+2
openai_dart
-v0.4.3
openai_realtime_dart
-v0.0.2
langchain_openai
-v0.7.2+4
Packages with dependency updates only:
Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
langchain_openai
-v0.7.2+4
langchain_anthropic
- v0.2.0
langchain_community
- v0.3.2+2
anthropic_sdk_dart
- v0.2.0
- FEAT: Add support for Message Batches in anthropic_sdk_dart (#585). (a41270a0)
- FEAT: Add claude-3-5-sonnet-20241022 to model catalog in anthropic_sdk_dart (#583). (0cc59e13)
- BREAKING FEAT: Add support for prompt caching in anthropic_sdk_dart (#587). (79dabaa5)
- BREAKING FEAT: Add computer use support in anthropic_sdk_dart (#586). (36c4a3e3)
- DOCS: Update anthropic_sdk_dart readme. (78b7bccf)
openai_dart
- v0.4.3
- FEAT: Add support for audio in chat completions in openai_dart (#577). (0fb058cd)
- FEAT: Add support for storing outputs for model distillation and metadata in openai_dart (#578). (c9b8bdf4)
- FEAT: Support multi-modal moderations in openai_dart (#576). (45b9f423)
- FIX: submitThreadToolOutputsToRunStream not returning any events (#574). (00803ac7)
- DOCS: Add xAI to list of OpenAI-compatible APIs in openai_dart (#582). (017cb74f)
- DOCS: Fix openai_dart assistants API outdated documentation (#579). (624c4128)
openai_realtime_dart
- v0.0.2
New Contributors
Contributors
2024-10-14
Changes
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
Packages with dependency updates only:
Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
langchain_openai
-v0.7.2+3
openai_realtime_dart
- v0.0.1+2
openai_dart
- v0.4.2+2
- DOCS: Fix typo in openai_dart. (e7ddd558)
New Contributors
- @josancamon19 made their first contribution in #572
2024-10-09
Changes
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
langchain
-v0.7.7+1
langchain_chroma
-v0.2.1+4
langchain_community
-v0.3.2+1
langchain_firebase
-v0.2.1+3
langchain_google
-v0.6.4+1
langchain_ollama
-v0.3.2+1
langchain_openai
-v0.7.2+2
langchain_pinecone
-v0.1.0+10
openai_realtime_dart
-v0.0.1+1
langchain
- v0.7.7+1
langchain_chroma
- v0.2.1+4
langchain_community
- v0.3.2+1
langchain_firebase
- v0.2.1+3
langchain_google
- v0.6.4+1
langchain_ollama
- v0.3.2+1
langchain_openai
- v0.7.2+2
langchain_pinecone
- v0.1.0+10
openai_realtime_dart
- v0.0.1+1
- DOCS: Add note about the openai_dart client. (26de8d97)
2024-10-08
Changes
Packages with breaking changes:
- There are no breaking changes in this release.
New packages:
Packages with other changes:
langchain
- v0.7.7
langchain_google
- v0.6.4
openai_realtime_dart
- v0.0.1
openai_dart
- v0.4.2+1
- DOCS: Add note about the new openai_realtime_dart client. (44672f0a)
2024-09-25
Changes
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
langchain
-v0.7.6
langchain_core
-v0.3.6
langchain_community
-v0.3.2
langchain_firebase
-v0.2.1+2
langchain_google
-v0.6.3+1
langchain_ollama
-v0.3.2
langchain_openai
-v0.7.2
ollama_dart
-v0.2.2
openai_dart
-v0.4.2
langchain_supabase
-v0.1.1+3
langchain_pinecone
-v0.1.0+9
langchain_anthropic
-v0.1.1+2
langchain_chroma
-v0.2.1+3
langchain_mistralai
-v0.2.3+1
Packages with dependency updates only:
Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
langchain_supabase
-v0.1.1+3
langchain_pinecone
-v0.1.0+9
langchain_anthropic
-v0.1.1+2
langchain_chroma
-v0.2.1+3
langchain_mistralai
-v0.2.3+1
vertex_ai
-v0.1.0+2
langchain
- v0.7.6
langchain_core
- v0.3.6
langchain_community
- v0.3.2
- FEAT: Add support for deleteWhere in ObjectBoxVectorStore (#552). (90918bba)
- REFACTOR: Add stubs for ObjectBox on web platform (#553). (41caed92)
langchain_firebase
- v0.2.1+2
langchain_google
- v0.6.3+1
- FEAT: Add support for reduced output dimensionality in GoogleGenerativeAIEmbeddings (#544). (d5880704)
- DOCS: Update Google's models in documentation (#551). (1da543f7)
langchain_ollama
- v0.3.2
langchain_openai
- v0.7.2
- FEAT: Add OpenAI o1-preview and o1-mini to model catalog (#555). (9ceb5ff9)
- REFACTOR: Migrate ChatOpenAI to maxCompletionTokens (#557). (08057a5b)
ollama_dart
- v0.2.2
openai_dart
- v0.4.2
- FEAT: Add OpenAI o1-preview and o1-mini to model catalog (#555). (9ceb5ff9)
- FEAT: Add support for maxCompletionTokens and reasoningTokens in openai_dart (#556). (37d75b61)
- FEAT: Option to include file search results in assistants API (#543). (e916ad3c)