langchain==1.3.0a1

LangChain Releases / 5/2/2026

📰 NewsDeveloper Stack & InfrastructureTools & Practical UsageModels & Research

Key Points

  • LangChain v1.3.0a1 has been released as an initial (alpha) update.
  • The update wires the v3 stream_events protocol into create_agent, improving how event streaming works during agent execution.
  • Core changes also introduce a stream_events(version='v3') protocol implementation.
  • Additional LangChain releases (1.2.17 and 1.2.16) and a Fireworks release (v1.2.1) were published alongside this cycle.
  • LangChain added a new `respond` decision to HITL (human-in-the-loop) middleware to support more explicit human oversight behavior.

Initial release

release(langchain): 1.3.0a1 (#37140)
feat(langchain): wire stream_events(version='v3') into create_agent (#37136)
Merge remote-tracking branch 'origin/master' into v1.4
feat(core): stream_events(version='v3') protocol (#37111)
release(fireworks): 1.2.1 (#37113)
release(langchain): 1.2.17 (#37110)
feat(langchain): add respond decision to HITL middleware (#37095)
release(langchain): 1.2.16 (#37085)
chore(docs): update x handle references (#37081)
release(anthropic): 1.4.2 (#37061)
perf(langchain): stop inlining agent state into tool-dispatch Sends (#36960)
docs(langchain): correct import paths in agent middleware docstrings (#36987)
hotfix: bump min core versions (#36996)
release(openai): 1.2.1 (#36995)
feat(core): add content-block-centric streaming (v2) (#36834)
fix(fireworks): honor max_retries (#36973)
release(openai): 1.2.0 (#36961)
docs(langchain): correct import path in ModelCallLimitMiddleware docstring (#36895)
feat(langchain): ls_agent_type tag on create_agent calls (#36774)
release(core): release 1.3.0 (#36851)
chore: bump langsmith from 0.6.3 to 0.7.31 in /libs/langchain_v1 (#36800)
chore(deps): bump pytest to 9.0.3 (#36801)
chore: bump pytest from 9.0.2 to 9.0.3 in /libs/langchain_v1 (#36717)
chore: bump pillow from 12.1.1 to 12.2.0 in /libs/langchain_v1 (#36710)
test(langchain): test cache hit/miss on lru (#36659)
perf(langchain): add lru cache when resolving types (#36649)
perf(langchain): add another init test with middleware (#36644)
chore(core): reduce streaming metadata / perf (#36588)
perf(langchain): add benchmark command (#36641)
chore: bump cryptography from 46.0.6 to 46.0.7 in /libs/langchain_v1 (#36619)
docs(langchain): add missing baseten and litellm to init_chat_model (#36562)
release(core): 1.2.26 (#36511)
release: langchain v1.2.15 (#36496)
chore: bump aiohttp from 3.13.3 to 3.13.4 in /libs/langchain_v1 (#36438)
release(langchain): 1.2.14 (#36396)
chore: pygments>=2.20.0 across all packages (CVE-2026-4539) (#36385)
test(langchain): cover runtime recursion limit override in create_agent (#36376)
perf(langchain): reduce init speed by 15% (#36375)
fix(langchain): update recursion limit for create_agent (#36351)
fix(infra): correct lint_diff relative paths in package makefiles (#36333)
chore: bump cryptography from 46.0.5 to 46.0.6 in /libs/langchain_v1 (#36324)
fix(langchain): recognize ChatAnthropicVertex in _get_approximate_token_counter (#36320)
chore(langchain): remove unnecessary description for toods list as a group (#36315)
chore(langchain): add async implementation to todolist and test (#36313)
chore(langchain): speed up todo list middleware init (#36311)
chore: bump requests from 2.32.5 to 2.33.0 in /libs/langchain_v1 (#36241)
chore(partners): bump langchain-core min to 1.2.21 (#36183)
fix(core,model-profiles): add missing ModelProfile fields, warn on schema drift (#36129)
fix(langchain,langchain-classic): update model provider classes for Azure AI Foundry (#35812)
release(langchain): 1.2.13 (#36111)
ci: suppress pytest streaming output in CI (#36092)
feat: Add LangSmith integration metadata to create_agent and init_chat_model (#35810)
ci: avoid unnecessary dep installs in lint targets (#36046)
chore: bump pyasn1 from 0.6.2 to 0.6.3 in /libs/langchain_v1 (#36029)
chore: bump pyjwt from 2.10.1 to 2.12.0 in /libs/langchain_v1 (#36024)
fix(langchain): export Runtime from agents.middleware (#35975)
chore: bump locks, lint (#35985)
fix(openai): add type: message to Responses API input items (#35693)
chore: bump black from 25.11.0 to 26.3.1 in /libs/langchain_v1 (#35802)
chore: bump orjson from 3.11.5 to 3.11.6 in /libs/langchain_v1 (#35807)
chore(langchain): add baseten to _BUILTIN_PROVIDERS (#35777)
release(langchain_v1): 1.2.12 (#35770)
feat: tracing for wrap model + tool call (#35765)
release(langchain_v1): 1.2.11 (#35723)
fix(langchain): normalize custom detector output to prevent KeyError in hash/mask strategies (#35651)
chore: bump the minor-and-patch group across 3 directories with 7 updates (#35605)
chore(langchain): switch refs from gemini-3 to gemini-3.1 (#35535)
chore: bump the langchain-deps group across 3 directories with 7 updates (#35513)
chore: bump langgraph-checkpoint from 3.0.1 to 4.0.0 in /libs/langchain_v1 (#35445)
chore: bump the langchain-deps group across 3 directories with 14 updates (#35441)
chore: bump google-cloud-aiplatform from 1.127.0 to 1.133.0 in /libs/langchain_v1 (#35397)
revert: add ChatAnthropicBedrockWrapper (#35371)
fix(langchain): support anthropic-bedrock in init_chat_model (#35366)
style: fix some ruff noqa (#35321)
fix(langchain): allow Gemini 3 models to use ProviderStrategy with tools (#34464)
docs: fix docstring inaccuracies and update outdated LangSmith URLs (#35283)
feat(openai): support automatic server-side compaction (#35212)
chore: bump the langchain-deps group across 3 directories with 8 updates (#35257)
feat(openrouter): add langchain-openrouter provider package (#35211)
style: bump ruff version to 0.15 (#35042)
chore(deps): bump pillow from 12.0.0 to 12.1.1 in /libs/langchain_v1 (#35174)
chore(core): raise more descriptive model error in init_chat_model (#35167)
chore(deps): bump langsmith from 0.4.42 to 0.6.3 in /libs/langchain_v1 (#35149)
chore(deps): bump cryptography from 46.0.3 to 46.0.5 in /libs/langchain_v1 (#35148)
release(langchain): 1.2.10 (#35137)
chore(deps): bump the langchain-deps group across 3 directories with 40 updates (#35129)
chore(deps): bump the langchain-deps group across 3 directories with 11 updates (#35121)
fix(langchain): fix token counting on partial message sequences (#35101)
refactor(langchain): rename _SUPPORTED_PROVIDERS -> _BUILTIN_PROVIDERS (#35100)
fix(langchain): normalize raw schemas in middleware response_format override (#35019)
feat: support state updates from wrap_model_call with command(s) (#35033)
test(langchain): types in test_tool_call_limit and test_model_retry (#34629)
fix(langchain): bump min core version and improve approximate token counting (#35026)
release: langchain 1.2.9 (#35023)
feat: threading context through create_agent flows + middleware (#34978)
chore: add make type target (#35015)
revert: "chore: add typing target in Makefile" (#35013)
chore: add typing target in Makefile (#35012)
revert: use usage metadata scaling in SummarizationMiddleware default token counter (#35002)
fix(langchain): use usage metadata scaling in SummarizationMiddleware default token counter (#35001)
fix(langchain): avoid UnboundLocalError when no AIMessage exists (#34816)
chore: enrich pyproject.toml files (#34980)
release(langchain): 1.2.8 (#34976)
chore(deps): bump the uv group across 20 directories with 3 updates (#34941)
fix: reuse ToolStrategy in agent factory to prevent name mismatch (#34871)
chore: upgrade urllib3 to 2.6.3 (#34940)
feat(langchain): add ToolCallRequest to middleware exports (#34894)
style(langchain): lint (#34863)
fix(langchain): blocking unit test (#34866)
test(langchain): use blockbuster to detect blocking calls in the async event loop (#34777)
release: langchain 1.2.7 (#34854)
feat: dynamic tool registration via middleware (#34842)
fix(langchain): strip trailing whitespace from the summarization prompt (#34835)
fix(langchain): improve grammar in SummarizationMiddleware system prompt (#34834)
docs(langchain): nit (#34788)
chore(deps): bump the uv group across 5 directories with 5 updates (#34785)
chore(deps): bump the uv group across 8 directories with 6 updates (#34773)
chore(core, langchain): add version consistency check pre-commit hooks (#34782)
release(langchain): 1.2.6 (#34781)
fix(langchain): SummarizationMiddleware signature mismatch & config invocation (#34775)
release(langchain): 1.2.5 (#34772)
fix(langchain): add metadata configuration to summarization model invocation (#34763)
feat(langchain): update summarization prompt (#34754)
chore: add tests for agent name metadata when streaming (#34764)
Revert "metadata"
metadata
release: langchain 1.2.4 (#34755)
chore(langchain): add agent name metadata (#34743)
chore: update twitter URLs (#34736)
chore: add tests for private state attr use (really, lack thereof) (#34725)
docs(langchain): clarify model ID usage for reliable behavior (#34718)
fix(langchain): tag messages generated from summarization (#34693)
fix(langchain): activate test_return_direct_spec tests, fix types (#34565)
chore(langchain): fix types in test_todo, test_tool_retry (#34503)
chore(langchain): fix types in test_shell_tool (#34502)
chore(langchain): activate mypy warn_return_any rule (#34549)
chore(langchain): fix types in test_tool_selection and test_tool_emulator (#34499)
chore(langchain): fix types in test_shell_execution_policies (#34498)
chore(langchain): improve ignore_missing_imports config (#34551)
test(langchain): complete and activate test_responses tests (#34560)
fix(langchain): activate mypy warn-unreachable (#34553)
chore(langchain): fix types in test_injected_runtime_create_agent, test_create_agent_tool_validation (#34568)
chore(langchain): fix types in test_response_format and test_state_schema (#34571)
chore(langchain): remove generic from FakeToolCallingModel (#34572)
chore(langchain): fix types in test_context_editing, test_agent_name, test_response_format_integration (#34574)
chore(langchain): fix types in test_overrides (#34635)
feat(langchain): add state to _ModelRequestOverrides (#34692)
chore(langchain): fix types in test_tools (#34592)
chore(langchain): fix types in test_summarization (#34656)
test(langchain): activate test_responses_spec tests (#34564)
style(langchain): fix some ruff preview rules (#34663)
chore(langchain): fix types in test_framework (#34567)
chore(langchain): fix types in memory_assert, conftest, conftest_checkpointer and conftest_store (#34636)
chore(langchain): fix types in test_system_message (#34634)
style: bump ruff version to 0.14.11 (#34674)
fix: remove relative imports (#34680)
fix(langchain,langchain-classic): more descriptive error msg when dep is not installed (#34679)
fix(langchain): infer provider from mixed-case prefixes (#34672)
fix: add test confirming we don't inject args based on args_schema alone (#34677)
release(langchain): 1.2.3 (#34668)
refactor(langchain): engage summarization based on reported usage_metadata (#34632)
fix(langchain): keep tool call / AIMessage pairings when summarizing (#34609)
test(langchain): cover chat model provider inference (#34657)
fix(langchain): fix copy-paste error on azure_openai embedding provider map (#34655)
fix(langchain): add test to verify version (#34644)
release(langchain): release 1.2.2 (#34643)
fix(langchain): handle parallel usage of the todo tool in planning middleware (#34637)
chore(langchain): fix types in test_wrap_model_call (#34573)
release(langchain): 1.2.1 (#34622)
fix(core,langchain): use get_buffer_string for message summarization (#34607)
chore(langchain): fix types in test_model_fallback (#34615)
chore(langchain): fix types in test_pii (#34617)
chore(langchain): add admonition around redaction_rules (#34618)
chore(langchain): fix types in test_composition (#34580)
chore(langchain): fix types in test_decorators (#34583)
chore(langchain): fix types in test_wrap_tool_call (#34600)
chore(langchain): fix types in test_model_call_limit_types (#34601)
chore(langchain): fix types in test_file_search and test_human_in_the_loop (#34602)
fix(core): exclude injected args from tool schema (#34582)
chore(langchain): fix types in test_diagram and test_sync_async_wrappers (#34591)
style(langchain): add ruff rule PLC0415 (#34559)
fix(langchain): resolve race condition in ShellSession.execute() (#34535)
fix(infra): use langchain_v1 for dev container deps (#34534)
chore(deps): bump mypy to v1.19 and ruff to v1.14 (#34521)
fix(langchain-classic): pass default to config.getoption (#34034)
style(langchain): add ruff rule RUF012 (#34497)
refactor(langchain): refactor optional imports logic (#32813)
style: add ruff ISC001 rule (#34493)
style(langchain): add TC ruff rules (#34496)
style(langchain): fix some ruff preview rules (#34504)
style(langchain): fix some PLC0415 rules (#34475)
style(langchain): add ruff rules PT (#34434)
feat(langchain): enhance init_chat_model with improved validation (#34226)
docs(langchain): Docstring improved to show Streaming custom events (#34353)
feat(langchain): Add support to google_genai provider in init_embeddings (#34388)
release(core): 1.2.3 (#34421)
release(openai): 1.1.6: update max input tokens for gpt-5 series (#34419)
release(openai): 1.1.5 (#34409)
feat(infra): add CI check for out of date lockfiles (#34397)
release(langchain): 1.2 (#34373)
fix(langchain): shell output multithreading race condition (#34333)
refactor(standard-tests): improve VCR config (#33968)
fix(huggingface): Helper logic for init_chat_model with HuggingFace backend (#34259)
chore(langchain): cleanup ruff config (#32810)
fix: little lint thing (#34310)
chore(langchain): check agents integration tests with mypy (#34308)
fix(langchain): add sentinel value to ProviderStrategy / strict (#34290)
chore(langchain): add end to end test for strict mode in provider strategy (#34289)
feat(langchain,openai): add strict flag to ProviderStrategy structured output (#34149)
feat(core,anthropic): extras on BaseTool (#34120)
release(langchain): 1.1.3 (#34255)
feat: add agent name to AIMessage (#34254)
chore(core): improve typing of messages utils functions (#34225)
feat(anthropic): add effort support (#34116)
feat(langchain): add support for Upstage (Solar) in init_chat_model (#34220)
release: langchain 1.1.2 (#34210)
fix: simplify summarization cutoff logic (#34195)
release: langchain 1.1.1 (#34206)
feat: Use uuid7 for run ids (#34172)
fix(langchain): (SummarizationMiddleware) adjust token counts based on model (#34161)
docs(langchain): docstrings for summariziation middleware types (#34158)
fix(langchain): add types to human_in_the_loop middleware (#34137)
docs(anthropic,core,langchain): updates (#34106)
release(langchain): 1.1 (#34090)
feat(langchain): support SystemMessage in create_agent's system_prompt (#34055)
fix: don't reorder tool calls in HITL middleware (#34023)
chore(docs): fix a few refs syntax errors (#34044)
feat(model-profiles): distribute data across packages (#34024)
chore: add more robust test for runtime injection w/ explicit args_schema (#34051)
feat: ModelRetryMiddleware (#34027)
fix: deprecate setattr on ModelCallRequest (