Mason Daugherty
31eeb50ce0
chore: drop UP045 ( #33362 )
...
Python 3.9 EOL
2025-10-08 21:17:53 -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
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
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
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
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
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
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
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
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
ee4c2510eb
feat: port various nit changes from wip-v0.4 ( #32506 )
...
Lots of work that wasn't directly related to core
improvements/messages/testing functionality
2025-08-11 15:09:08 -04:00
Mason Daugherty
b7e4797e8b
release(anthropic): 0.3.18 ( #32292 )
2025-07-28 17:07:11 -04:00
niceg
0d6f915442
fix: LLM mimicking Unicode responses due to forced Unicode conversion of non-ASCII characters. ( #32222 )
...
fix: Fix LLM mimicking Unicode responses due to forced Unicode
conversion of non-ASCII characters.
- **Description:** This PR fixes an issue where the LLM would mimic
Unicode responses due to forced Unicode conversion of non-ASCII
characters in tool calls. The fix involves disabling the `ensure_ascii`
flag in `json.dumps()` when converting tool calls to OpenAI format.
- **Issue:** Fixes ↓↓↓
input:
```json
{'role': 'assistant', 'tool_calls': [{'type': 'function', 'id': 'call_nv9trcehdpihr21zj9po19vq', 'function': {'name': 'create_customer', 'arguments': '{"customer_name": "你好啊集团"}'}}]}
```
output:
```json
{'role': 'assistant', 'tool_calls': [{'type': 'function', 'id': 'call_nv9trcehdpihr21zj9po19vq', 'function': {'name': 'create_customer', 'arguments': '{"customer_name": "\\u4f60\\u597d\\u554a\\u96c6\\u56e2"}'}}]}
```
then:
llm will mimic outputting unicode. Unicode's vast number of symbols can
lengthen LLM responses, leading to slower performance.
<img width="686" height="277" alt="image"
src="https://github.com/user-attachments/assets/28f3b007-3964-4455-bee2-68f86ac1906d "
/>
---------
Co-authored-by: Mason Daugherty <github@mdrxy.com >
Co-authored-by: Mason Daugherty <mason@langchain.dev >
2025-07-24 17:01:31 -04:00
Mason Daugherty
71b361936d
ruff: restore stacklevels, disable autofixing ( #31919 )
2025-07-08 12:55:47 -04: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
750721b4c3
huggingface[patch]: ruff fixes and rules ( #31912 )
...
* bump ruff deps
* add more thorough ruff rules
* fix said rules
2025-07-08 10:07:57 -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
Mason Daugherty
e7eac27241
ruff: more rules across the board & fixes ( #31898 )
...
* standardizes ruff dep version across all `pyproject.toml` files
* cli: ruff rules and corrections
* langchain: rules and corrections
2025-07-07 17:48:01 -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
0ae434be21
anthropic: release 0.3.16 ( #31744 )
2025-06-26 09:09:29 -04:00
ccurme
14c561e15d
infra: relax types-requests version range ( #31504 )
2025-06-05 18:57:08 +00:00
Bagatur
ec8bab83f8
anthropic[fix]: bump langchain-core dep ( #31483 )
2025-06-03 10:56:48 -04: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
443341a20d
anthropic: release 0.3.14 ( #31378 )
2025-05-27 17:31:05 +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
d4555ac924
anthropic: release 0.3.13 ( #31162 )
2025-05-08 03:13:15 +00:00
ccurme
682f338c17
anthropic[patch]: support web search ( #31157 )
2025-05-07 18:04:06 -04:00
Sydney Runkle
7e926520d5
packaging: remove Python upper bound for langchain and co libs ( #31025 )
...
Follow up to https://github.com/langchain-ai/langsmith-sdk/pull/1696 ,
I've bumped the `langsmith` version where applicable in `uv.lock`.
Type checking problems here because deps have been updated in
`pyproject.toml` and `uv lock` hasn't been run - we should enforce that
in the future - goes with the other dependabot todos :).
2025-04-28 14:44:28 -04:00
ccurme
f0f90c4d88
anthropic: release 0.3.12 ( #30907 )
2025-04-17 14:45:12 +00:00
ccurme
3382ee8f57
anthropic: release 0.3.11 ( #30857 )
2025-04-15 17:57:00 +00: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
ccurme
422ba4cde5
infra: handle flaky tests ( #30501 )
2025-03-26 13:28:56 -04:00
ccurme
d5d0134e7b
anthropic: release 0.3.10 ( #30287 )
2025-03-14 16:23:21 +00:00
ccurme
226f29bc96
anthropic: support built-in tools, improve docs ( #30274 )
...
- Support features from recent update:
https://www.anthropic.com/news/token-saving-updates (mostly adding
support for built-in tools in `bind_tools`
- Add documentation around prompt caching, token-efficient tool use, and
built-in tools.
2025-03-14 16:18:50 +00:00
ccurme
ba5ddb218f
anthropic[patch]: release 0.3.9 ( #30103 )
2025-03-04 10:53:55 -05:00
ccurme
79f5bbfb26
anthropic[patch]: release 0.3.8 ( #29973 )
2025-02-24 15:24:35 -05:00
ccurme
ded886f622
anthropic[patch]: support claude 3.7 sonnet ( #29971 )
2025-02-24 15:17:47 -05:00
Erick Friis
1a225fad03
multiple: fix uv path deps ( #29790 )
...
file:// format wasn't working with updates - it doesn't install as an
editable dep
move to tool.uv.sources with path= instead
2025-02-13 21:32:34 +00:00
ccurme
488cb4a739
anthropic: release 0.3.7 ( #29653 )
2025-02-06 17:05:57 -05:00