Mason Daugherty
3d687ea8fb
chore: update twitter URLs ( #34736 )
2026-01-13 01:54:11 -05:00
Mason Daugherty
18c25e9f10
chore: ban relative imports on all packages ( #34691 )
2026-01-09 17:02:24 -05:00
ccurme
c1f1641018
fix(anthropic): fix version ( #34606 )
2026-01-05 16:03:20 -05:00
ccurme
225e0fa8c9
release(anthropic): 1.3.1 ( #34605 )
2026-01-05 15:55:15 -05:00
Loganaden Velvindron
f021e899dc
fix(anthropic): CVE-2025-68664 ( #34563 )
2026-01-05 15:51:25 -05:00
lwtaiyty
578cef9622
fix(anthropic): skip cache_control for code_execution blocks ( #34579 )
2026-01-05 15:40:59 -05:00
ccurme
5ec0fa69de
fix(core): serialization patch ( #34455 )
...
- `allowed_objects` kwarg in `load`
- escape lc-ser formatted dicts on `dump`
- fix for jinja2
---------
Co-authored-by: Mason Daugherty <github@mdrxy.com >
2025-12-22 17:33:31 -06:00
Mason Daugherty
1a3cd46d88
release(anthropic): 1.3.1 ( #34337 )
2025-12-12 17:37:55 -05:00
Viktor Taranenko
470160cf81
fix(anthropic): prevent crash with cache_control and empty message content ( #34025 )
2025-12-12 17:32:11 -05:00
Mason Daugherty
6fa4a45311
chore(anthropic): bump min core version ( #34326 )
2025-12-12 15:17:36 -05:00
Mason Daugherty
97dd5f2cb8
release(anthropic): 1.3.0 ( #34324 )
2025-12-12 15:10:49 -05:00
ccurme
c3738ea376
chore(anthropic): make test agnostic of python version ( #34320 )
2025-12-12 18:10:14 +00:00
Mason Daugherty
57ff48e62e
docs(anthropic): clean up docstrings ( #34317 )
...
migration to docs
2025-12-12 11:30:34 -05:00
Mason Daugherty
13dd115d1d
docs(anthropic): nit comments ( #34314 )
2025-12-12 10:33:23 -05:00
Mason Daugherty
2cff369cdc
feat(anthropic): accept TypedDict for built-in tool types ( #34279 )
...
Widen `bind_tools` to accept `TypedDict` via `Mapping` so that users may
import and use Anthropic's built-in tool types:
```python
import subprocess
from anthropic.types.beta import BetaToolBash20250124Param
from langchain.tools import tool
tool_spec = BetaToolBash20250124Param(
name="bash",
type="bash_20250124",
strict=True,
)
@tool(extras={"provider_tool_definition": tool_spec})
def bash(*, command: str, restart: bool = False, **kw):
"""Execute a bash command."""
if restart:
return "Bash session restarted"
try:
result = subprocess.run(
command,
shell=True,
capture_output=True,
text=True,
timeout=30,
)
return result.stdout + result.stderr
except Exception as e:
return f"Error: {e}"
# Bind bash tool to your model
```
---------
Co-authored-by: Chester Curme <chester.curme@gmail.com >
2025-12-12 10:29:12 -05:00
Christophe Bornet
f5b6eecf72
refactor(standard-tests): improve VCR config ( #33968 )
...
Use of the fixture `_base_vcr_config` is deprecated with alternative
function `base_vcr_config()`
This way:
* we don't need to import `_base_vcr_config` seen as unused (which leads
to ruff violations PLC0414 and F811)
* we don't need to make a copy since a new dict is created at each
function invocation
Co-authored-by: Mason Daugherty <mason@langchain.dev >
2025-12-12 10:14:26 -05:00
Mason Daugherty
d6b5f05f33
refactor(anthropic): comments and _BUILTIN_TOOL_PREFIXES ( #34305 )
2025-12-11 16:57:22 -05:00
Mason Daugherty
5eec11e2db
docs(anthropic): fix line number highlighting ( #34303 )
2025-12-11 16:12:01 -05:00
Mason Daugherty
3b7abdff96
feat(anthropic): auto-apply mcp beta header ( #34301 )
...
and update docstring example
2025-12-11 15:49:32 -05:00
Mason Daugherty
4aebfbad59
docs(anthropic): use named betas param in docstring example ( #34300 )
2025-12-11 15:48:13 -05:00
Mason Daugherty
ae1f03fbe0
docs(anthropic): cleanup nits ( #34299 )
2025-12-11 15:17:56 -05:00
ccurme
46dbb3967e
chore(anthropic): update test_tool_search cassette ( #34297 )
2025-12-11 10:53:52 -05:00
ccurme
69dd39c461
fix(anthropic): ignore null values of caller on tool_use blocks ( #34286 )
2025-12-10 13:13:02 -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
91d5ca275d
feat(anthropic): use model profile for max output tokens ( #34163 )
...
Need(?) to adjust tests to also pull from model profile? currently
hardcoded
2025-12-08 15:31:16 -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
Sydney Runkle
78c10f8790
chore: update core dep in lockfiles ( #34216 )
2025-12-04 15:30:42 -05:00
Mason Daugherty
b7091d391d
feat(anthropic): auto append relevant beta headers ( #34113 )
2025-12-01 12:20:41 -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
Sydney Runkle
4ab94579ad
feat(langchain): support SystemMessage in create_agent's system_prompt ( #34055 )
...
* `create_agent`'s `system_prompt` allows `str | SystemMessage`
* added `system_message: SystemMessage` on `ModelRequest`
* `ModelRequest.system_prompt` is a function of `system_message.text`,
now deprecated
* disallow setting `system_prompt` and `system_message`
* `ModelRequest.system_prompt` can still be set (w/ custom setattr) for
custom backwards compat, but the updates just get propogated to the
`ModelRequest.system_message`
---------
Co-authored-by: Chester Curme <chester.curme@gmail.com >
2025-11-24 14:53:57 +00:00
ccurme
eb0545a173
release: (integration packages) 1.1 ( #34087 )
2025-11-24 09:13:01 -05:00
Mason Daugherty
47b79c30c0
chore(docs): fix a few refs syntax errors ( #34044 )
...
missing whitespace for some admonitions
2025-11-22 00:58:21 -05:00
ccurme
33e5d01f7c
feat(model-profiles): distribute data across packages ( #34024 )
2025-11-21 15:47:05 -05:00
Sydney Runkle
b7d1831f9d
fix: deprecate setattr on ModelCallRequest ( #34022 )
...
* one alternative considered was setting `frozen=True` on the dataclass,
but this is breaking, so a deprecation is a nicer approach
2025-11-19 11:08:55 -05:00
ccurme
990e346c46
release(anthropic): 1.1 ( #33997 )
2025-11-17 16:24:29 -05:00
ccurme
9b7792631d
feat(anthropic): support native structured output feature and strict tool calling ( #33980 )
2025-11-17 16:14:20 -05:00
Mason Daugherty
52b1516d44
style(langchain): fix some middleware ref syntax ( #33988 )
2025-11-16 00:33:17 -05:00
Sydney Runkle
1bc88028e6
fix(anthropic): execute bash + file tools via tool node ( #33960 )
...
* use `override` instead of directly patching things on `ModelRequest`
* rely on `ToolNode` for execution of tools related to said middleware,
using `wrap_model_call` to inject the relevant claude tool specs +
allowing tool node to forward them along to corresponding langchain tool
implementations
* making the same change for the native shell tool middleware
* allowing shell tool middleware to specify a name for the shell tool
(negative diff then for claude bash middleware)
long term I think the solution might be to attach metadata to a tool to
map the provider spec to a langchain implementation, which we could also
take some lessons from on the MCP front.
2025-11-14 13:17:01 -05:00
Sydney Runkle
83c078f363
fix: adding missing async hooks ( #33957 )
...
* filling in missing async gaps
* using recommended tool runtime injection instead of injected state
* updating tests to use helper function as well
2025-11-14 09:13:39 -05:00
ccurme
fbe32c8e89
release(anthropic): 1.0.3 ( #33935 )
2025-11-12 10:55:28 -05:00
Mohammad Mohtashim
2511c28f92
feat(anthropic): support code_execution_20250825 ( #33925 )
2025-11-12 10:44:51 -05:00
Mason Daugherty
3dfea96ec1
chore: update README.md files ( #33919 )
2025-11-10 22:51:35 -05:00
ccurme
3c492571ab
release(anthropic): 1.0.2 ( #33888 )
2025-11-07 16:47:25 -05:00
Mason Daugherty
e023201d42
style: some cleanup ( #33857 )
2025-11-06 23:50:46 -05:00
Mason Daugherty
d40e340479
chore: attribute package change versions ( #33854 )
...
Needed to disambiguate for within inherited docs
2025-11-06 16:57:30 -05:00