ccurme
46dbb3967e
chore(anthropic): update test_tool_search cassette ( #34297 )
2025-12-11 10:53:52 -05:00
ccurme
5350967ddc
feat(anthropic): support mcp_toolset in bind_tools ( #34284 )
2025-12-10 14:39:35 +00:00
Mason Daugherty
7542278997
feat(core,anthropic): extras on BaseTool ( #34120 )
2025-12-10 09:37:14 -05:00
Mason Daugherty
2faed37ff1
feat(anthropic): document and test fine grained tool streaming ( #34118 )
...
https://platform.claude.com/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming
2025-12-08 15:34:56 -05:00
Mason Daugherty
dcb670f395
feat(anthropic): auto append relevant beta headers for computer use ( #34117 )
...
in addition to documenting it
https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool
2025-12-08 15:25:36 -05:00
Mason Daugherty
8a5f46322b
feat(anthropic): tool search support ( #34119 )
2025-12-08 10:46:37 -05:00
Mason Daugherty
4a42158e6c
feat(anthropic): add effort support ( #34116 )
2025-12-05 13:44:42 -05:00
ccurme
7549845d82
chore(anthropic): vcr integration test ( #34160 )
2025-12-01 15:28:28 +00:00
Mason Daugherty
0a6d01e61d
docs(anthropic,core,langchain): updates ( #34106 )
2025-11-25 17:58:09 -05:00
ccurme
9b7792631d
feat(anthropic): support native structured output feature and strict tool calling ( #33980 )
2025-11-17 16:14:20 -05:00
Mohammad Mohtashim
2511c28f92
feat(anthropic): support code_execution_20250825 ( #33925 )
2025-11-12 10:44:51 -05:00
Mason Daugherty
0a442644e3
test(anthropic): add vcr to test_search_result_tool_message ( #33793 )
...
To fix nondeterministic results causing integration testing to sometimes
fail
Also speeds up from 10s to 0.5
---------
Co-authored-by: ccurme <chester.curme@gmail.com >
2025-11-03 15:13:30 +00:00
ccurme
81c4f21b52
fix(standard-tests): update multimodal tests ( #33781 )
2025-11-01 16:38:20 -04:00
Mason Daugherty
32d294b89a
fix(anthropic): clean up tests, update default model to use ID ( #33751 )
...
- use latest models in examples to highlight support
- standardize on using IDs in examples - no more aliases to improve
determinism in future tests
- bump lock
- in integration tests, fix stale casettes and use `MODEL_NAME`
uniformly where possible
- add case for default max tokens for sonnet-4-5 (was missing)
2025-10-30 16:08:18 -04:00
Sydney Runkle
fabcacc3e5
chore: remove mentions of sonnet 3.5 ( #33737 )
...
see
https://docs.claude.com/en/docs/about-claude/model-deprecations#2025-08-13%3A-claude-sonnet-3-5-models
2025-10-29 15:49:27 -07:00
Mason Daugherty
f94108b4bc
fix: links ( #33691 )
...
* X-ref to new docs
* Formatting updates
2025-10-27 19:04:29 -04:00
Mason Daugherty
1d056487c7
style(anthropic): use aliases for model names ( #33590 )
2025-10-17 21:40:22 +00:00
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
ccurme
11a2efe49b
fix(anthropic): handle empty AIMessage ( #33390 )
2025-10-09 13:57:42 -04:00
Mason Daugherty
31eeb50ce0
chore: drop UP045 ( #33362 )
...
Python 3.9 EOL
2025-10-08 21:17:53 -04: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
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
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
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
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
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
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
1167e7458e
fix(anthropic): update test model names and adjust token count assertions in integration tests ( #32422 )
2025-08-12 19:39:35 +00:00
Mason Daugherty
3a487bf720
refactor(anthropic): AnthropicLLM to use Messages API ( #32290 )
...
re: #32189
2025-07-28 16:22:58 -04:00
ccurme
3672bbc71e
fix(anthropic): update integration test models ( #32189 )
...
Multiple models were
[retired](https://docs.anthropic.com/en/docs/about-claude/model-deprecations#model-status )
yesterday.
Tests remain broken until we figure out what to do with the legacy
Anthropic LLM integration— currently uses their (legacy) text
completions API, for which there appear to be no remaining supported
models.
2025-07-22 19:51:39 +00:00
ccurme
2ef9465893
fix(anthropic): fix test ( #32145 )
2025-07-21 14:49:40 +00:00
Mason Daugherty
ae210c1590
ruff: add bugbear across packages ( #31917 )
...
WIP, other packages will get in next PRs
2025-07-08 12:22:55 -04:00
Mason Daugherty
2a7645300c
anthropic[patch]: ruff fixes and rules ( #31899 )
...
* bump ruff deps
* add more thorough ruff rules
* fix said rules
2025-07-07 18:32:27 -04:00
ccurme
3f4b355eef
anthropic[patch]: pass back in citations in multi-turn conversations ( #31882 )
...
Also adds VCR cassettes for some heavy tests.
2025-07-05 17:33:22 -04:00
ccurme
f88fff0b8a
anthropic: release 0.3.17 ( #31852 )
2025-07-03 13:18:43 -04:00
Mason Daugherty
645e25f624
langchain-anthropic[patch]: Add ruff bandit rules ( #31789 )
2025-06-30 14:00:53 -04:00
ccurme
b02bd67788
anthropic[patch]: cache clients ( #31659 )
2025-06-25 14:49:02 -04:00
ccurme
14c561e15d
infra: relax types-requests version range ( #31504 )
2025-06-05 18:57:08 +00:00
Bagatur
310e643842
release[anthropic]: 0.3.15 ( #31479 )
...
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-06-03 10:38:11 -04:00
ccurme
49eeb0f3c3
standard-tests: add benchmarks ( #31302 )
...
Co-authored-by: Sydney Runkle <sydneymarierunkle@gmail.com >
2025-05-29 15:21:37 +00:00
ccurme
580986b260
anthropic: support for code execution, MCP connector, files API features ( #31340 )
...
Support for the new [batch of beta
features](https://www.anthropic.com/news/agent-capabilities-api )
released yesterday:
- [Code
execution](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/code-execution-tool )
- [MCP
connector](https://docs.anthropic.com/en/docs/agents-and-tools/mcp-connector )
- [Files
API](https://docs.anthropic.com/en/docs/build-with-claude/files )
Also verified support for [prompt cache
TTL](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching#1-hour-cache-duration-beta ).
2025-05-27 12:45:45 -04:00
ccurme
2d202f9762
anthropic[patch]: split test into two ( #31167 )
2025-05-08 09:23:36 -04:00
ccurme
e34f9fd6f7
anthropic: update streaming usage metadata ( #31158 )
...
Anthropic updated how they report token counts during streaming today.
See changes to `MessageDeltaUsage` in [this
commit](2da00f26c5 (diff-1a396eba0cd9cd8952dcdb58049d3b13f6b7768ead1411888d66e28211f7bfc5) ).
It's clean and simple to grab these fields from the final
`message_delta` event. However, some of them are typed as Optional, and
language
[here](e42451ab3f/src/anthropic/lib/streaming/_messages.py (L462) )
suggests they may not always be present. So here we take the required
field from the `message_delta` event as we were doing previously, and
ignore the rest.
2025-05-07 23:09:56 -04:00
ccurme
9cfe6bcacd
multiple: multi-modal content blocks ( #30746 )
...
Introduces standard content block format for images, audio, and files.
## Examples
Image from url:
```
{
"type": "image",
"source_type": "url",
"url": "https://path.to.image.png ",
}
```
Image, in-line data:
```
{
"type": "image",
"source_type": "base64",
"data": "<base64 string>",
"mime_type": "image/png",
}
```
PDF, in-line data:
```
{
"type": "file",
"source_type": "base64",
"data": "<base64 string>",
"mime_type": "application/pdf",
}
```
File from ID:
```
{
"type": "file",
"source_type": "id",
"id": "file-abc123",
}
```
Plain-text file:
```
{
"type": "file",
"source_type": "text",
"text": "foo bar",
}
```
2025-04-15 09:48:06 -04:00
Sydney Runkle
8c6734325b
partners[lint]: run pyupgrade to get code in line with 3.9 standards ( #30781 )
...
Using `pyupgrade` to get all `partners` code up to 3.9 standards
(mostly, fixing old `typing` imports).
2025-04-11 07:18:44 -04:00