Mason Daugherty
c9018f81ec
docs(anthropic): update extended thinking docs and fix urls ( #33525 )
...
new urls
extended thinking isn't just 3.7 anymore
2025-10-16 11:18:47 -04:00
Mason Daugherty
26e0a00c4c
style: more work for refs ( #33508 )
...
Largely:
- Remove explicit `"Default is x"` since new refs show default inferred
from sig
- Inline code (useful for eventual parsing)
- Fix code block rendering (indentations)
2025-10-15 18:46:55 -04:00
Eugene Yurtsev
d0f8f00e7e
release(anthropic): 1.0.0a5 ( #33507 )
...
Release anthropic
2025-10-15 21:31:52 +00:00
Eugene Yurtsev
a39132787c
feat(anthropic): add async implementation to middleware ( #33506 )
...
Add async implementation to middleware
2025-10-15 17:05:39 -04:00
Mason Daugherty
79200cf3c2
docs: update package READMEs ( #33488 )
2025-10-15 10:49:35 -04:00
ccurme
bcb6789888
fix(anthropic): set langgraph-prebuilt dep explicitly ( #33495 )
2025-10-15 14:44:37 +00:00
Eugene Yurtsev
1cf851e054
chore(langchain_v1,anthropic): migrate anthropic middleware to langchain_anthropic ( #33463 )
...
Migrate prompt caching implementation into langchain_anthropic.middleware
2025-10-13 15:12:54 -04:00
ccurme
f361acc11c
chore(anthropic): speed up integration tests ( #33430 )
2025-10-10 20:57:44 +00:00
ccurme
abdbe185c5
release(anthropic): 1.0.0a4 ( #33427 )
2025-10-10 16:39:58 -04:00
Mason Daugherty
291a9fcea1
style: llm -> model ( #33423 )
2025-10-10 13:19:13 -04:00
Mason Daugherty
6fc21afbc9
style: .. code-block:: admonition translations ( #33400 )
...
biiiiiiiiiiiiiiiigggggggg pass
2025-10-09 16:52:58 -04:00
ccurme
11a2efe49b
fix(anthropic): handle empty AIMessage ( #33390 )
2025-10-09 13:57:42 -04:00
Mason Daugherty
d8a680ee57
style: address Sphinx double-backtick snippet syntax ( #33389 )
2025-10-09 13:35:51 -04:00
Mason Daugherty
3576e690fa
chore: update Sphinx links to markdown ( #33386 )
2025-10-09 11:54:14 -04:00
Mason Daugherty
b6132fc23e
style: remove more Optional syntax ( #33371 )
2025-10-08 23:28:43 -04:00
Mason Daugherty
31eeb50ce0
chore: drop UP045 ( #33362 )
...
Python 3.9 EOL
2025-10-08 21:17:53 -04:00
Mason Daugherty
d13823043d
style: monorepo pass for refs ( #33359 )
...
* Delete some double backticks previously used by Sphinx (not done
everywhere yet)
* Fix some code blocks / dropdowns
Ignoring CLI CI for now
2025-10-08 18:41:39 -04:00
Mason Daugherty
cda336295f
chore: enrich pyproject.toml files with links to new references, others ( #33343 )
2025-10-07 16:17:14 -04:00
ccurme
2e024b7ede
release(anthropic): 1.0.0a3 ( #33317 )
2025-10-07 09:24:54 -04:00
ccurme
de48e102c4
fix(core,openai,anthropic): delegate to core implementation on invoke when streaming=True ( #33308 )
2025-10-06 15:54:55 -04:00
Mason Daugherty
90e4d944ac
chore(infra): pdm -> hatchling ( #33289 )
2025-10-05 23:52:52 -04:00
Mason Daugherty
8e7cd85431
style: drop target-version = "py39" for OpenAI, Anthropic, HuggingFace ( #33287 )
2025-10-06 03:29:34 +00:00
ccurme
010ed5d096
fix(anthropic,openai): fix tests ( #33257 )
...
following https://github.com/langchain-ai/langchain/pull/33192
2025-10-03 13:41:37 -04:00
Mason Daugherty
ae5b105d11
docs: v1 docs updates ( #33173 )
...
Co-authored-by: Mohammad Mohtashim <45242107+keenborder786@users.noreply.github.com >
Co-authored-by: Caspar Broekhuizen <caspar@langchain.dev >
Co-authored-by: ccurme <chester.curme@gmail.com >
Co-authored-by: Christophe Bornet <cbornet@hotmail.com >
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
Co-authored-by: Sadra Barikbin <sadraqazvin1@yahoo.com >
Co-authored-by: Vadym Barda <vadim.barda@gmail.com >
2025-10-02 18:46:26 -04:00
Mason Daugherty
eaa6dcce9e
release: v1.0.0 ( #32567 )
...
Co-authored-by: Mohammad Mohtashim <45242107+keenborder786@users.noreply.github.com >
Co-authored-by: Caspar Broekhuizen <caspar@langchain.dev >
Co-authored-by: ccurme <chester.curme@gmail.com >
Co-authored-by: Christophe Bornet <cbornet@hotmail.com >
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
Co-authored-by: Sadra Barikbin <sadraqazvin1@yahoo.com >
Co-authored-by: Vadym Barda <vadim.barda@gmail.com >
2025-10-02 10:49:42 -04:00
ccurme
002d623f2d
feat: (core, standard-tests) support PDF inputs in ToolMessages ( #33183 )
2025-10-01 10:16:16 -04:00
ccurme
ca9217c02d
release(anthropic): 0.3.21 ( #33147 )
2025-09-29 19:56:28 +00:00
ccurme
f9bae40475
feat(anthropic): support memory and context management features ( #33146 )
...
https://docs.claude.com/en/docs/build-with-claude/context-editing
---------
Co-authored-by: Mason Daugherty <mason@langchain.dev >
2025-09-29 15:42:38 -04:00
Mason Daugherty
986302322f
docs: more standardization ( #33124 )
2025-09-25 20:46:20 -04:00
Mason Daugherty
5bea28393d
docs: standardize .. code-block directive usage ( #33122 )
...
and fix typos
2025-09-25 16:49:56 -04:00
Christophe Bornet
eaf8dce7c2
chore: bump ruff version to 0.13 ( #33043 )
...
Co-authored-by: Mason Daugherty <mason@langchain.dev >
2025-09-25 12:27:39 -04:00
Mason Daugherty
b92b394804
style: repo linting pass ( #33089 )
...
enable docstring-code-format
2025-09-24 15:25:55 -04:00
Mason Daugherty
781db9d892
chore: update pyproject.toml files, remove codespell ( #33028 )
...
- Removes Codespell from deps, docs, and `Makefile`s
- Python version requirements in all `pyproject.toml` files now use the
`~=` (compatible release) specifier
- All dependency groups and main dependencies now use explicit lower and
upper bounds, reducing potential for breaking changes
2025-09-20 22:09:33 -04:00
Youngho Kim
4619a2727f
docs(anthropic): update documentation links ( #32938 )
...
**Description:**
This PR updated links to the latest Anthropic documentation. Changes
include revised links for model overview, tool usage, web search tool,
text editor tool, and more.
**Issue:**
N/A
**Dependencies:**
None
**Twitter handle:**
N/A
2025-09-14 21:38:51 -04:00
Mason Daugherty
649d8a8223
test(anthropic): enable VCR for web fetch test ( #32913 )
...
The API issues have been resolved; no longer xfailing
2025-09-12 03:19:55 +00:00
Matthew Lapointe
b1f08467cd
feat(core): allow overriding ls_model_name from kwargs ( #32541 )
2025-09-11 16:18:06 -04:00
Mason Daugherty
255ad31955
release(anthropic): 0.3.20 ( #32900 )
2025-09-11 15:18:43 -04:00
Mason Daugherty
00e992a780
feat(anthropic): web fetch beta ( #32894 )
...
Note: citations are broken until Anthropic fixes their API
2025-09-11 15:14:06 -04:00
Mason Daugherty
7a158c7f1c
revert: "chore: remove ruff target-version" ( #32895 )
...
Reverts langchain-ai/langchain#32880
Not needed at the moment, will do when finishing v1
2025-09-10 20:56:48 -04:00
Mason Daugherty
38001699d5
fix(anthropic): remove unneeded beta flags ( #32893 )
...
- Beta isn't needed for search result tests anymore
- Add TODO for other tests to come back when generally available
- Regenerate remote MCP snapshot after some testing (now the same, but
fresher)
- Bump deps
2025-09-10 20:47:13 +00:00
Mason Daugherty
3da0377c02
fix(anthropic): update ChatAnthropic model in tests/doc ( #32892 )
...
from `'claude-3-5-sonnet-latest'` to `'claude-3-5-haiku-latest'` since
sonnet is deprecated
2025-09-10 16:44:04 -04:00
Christophe Bornet
b274416441
chore: remove ruff target-version ( #32880 )
...
This is not needed anymore since `requires-python` was added when moving
to `uv`.
2025-09-10 11:12:30 -04:00
Mason Daugherty
4e39c164bb
fix(anthropic): remove beta header warning for TTL ( #32832 )
...
No longer beta as of Aug 13
2025-09-05 14:28:58 -04:00
Mason Daugherty
3d08b6bd11
chore: adress pytest-asyncio deprecation warnings + other nits ( #32696 )
...
amongst some linting imcompatible rules
2025-08-26 15:51:38 -04:00
Mason Daugherty
a6690eb9fd
release(anthropic): 0.3.19 ( #32595 )
2025-08-18 14:25:03 -04:00
Mason Daugherty
f69f9598f5
chore: update references to use the latest version of Claude-3.5 Sonnet ( #32594 )
2025-08-18 14:11:15 -04:00
Mason Daugherty
8d0fb2d04b
fix(anthropic): correct input_token count for streaming ( #32591 )
...
* Create usage metadata on
[`message_delta`](https://docs.anthropic.com/en/docs/build-with-claude/streaming#event-types )
instead of at the beginning. Consequently, token counts are not included
during streaming but instead at the end. This allows for accurate
reporting of server-side tool usage (important for billing)
* Add some clarifying comments
* Fix some outstanding Pylance warnings
* Remove unnecessary `text` popping in thinking blocks
* Also now correctly reports `input_cache_read`/`input_cache_creation`
as a result
2025-08-18 17:51:47 +00:00
Mason Daugherty
8042b04da6
fix(anthropic): clean up null file_id fields in citations during message formatting ( #32592 )
...
When citations are returned from streaming, they include a `file_id:
null` field in their `content_block_location` structure.
When these citations are passed back to the API in subsequent messages,
the API rejects them with "Extra inputs are not permitted" for the
`file_id` field.
2025-08-18 13:01:52 -04:00
Mason Daugherty
fd891ee3d4
revert(anthropic): streaming token counting to defer input tokens until completion ( #32587 )
...
Reverts langchain-ai/langchain#32518
2025-08-18 09:48:33 -04:00
ccurme
b8cdbc4eca
fix(anthropic): sanitize tool use block when taking directly from content ( #32574 )
2025-08-18 09:06:57 -04:00