ccurme
7c41298355
feat(core): add ContextOverflowError, raise in anthropic and openai ( #35099 )
2026-02-09 15:15:34 -05:00
aahanabobade
7b4ced2d3b
docs: add example to create_message function docstring ( #34851 )
2026-01-31 22:40:00 -05:00
Mason Daugherty
f2dab562a8
style: misc refs work ( #33771 )
2025-10-31 18:29:53 -04:00
Mason Daugherty
f94108b4bc
fix: links ( #33691 )
...
* X-ref to new docs
* Formatting updates
2025-10-27 19:04:29 -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
Mason Daugherty
5f9e3e33cd
style: remove Defaults to None ( #33404 )
2025-10-09 17:27:35 -04:00
Mason Daugherty
d8a680ee57
style: address Sphinx double-backtick snippet syntax ( #33389 )
2025-10-09 13:35:51 -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
6ea03ab46c
style(core): drop python 39 linting target for 3.10 ( #33286 )
2025-10-05 23:22:34 -04:00
Christophe Bornet
f4e83e0ad8
chore(core): fix some docstrings (from DOC preview rule) ( #32833 )
...
* Add `Raises` sections
* Add `Returns` sections
* Add `Yields` sections
---------
Co-authored-by: Mason Daugherty <mason@langchain.dev >
2025-09-08 15:44:15 +00:00
Christophe Bornet
913c896598
core: Add ruff rules FBT001 and FBT002 ( #30695 )
...
Add ruff rules
[FBT001](https://docs.astral.sh/ruff/rules/boolean-type-hint-positional-argument/ )
and
[FBT002](https://docs.astral.sh/ruff/rules/boolean-default-value-positional-argument/ ).
Mostly `noqa`s to not introduce breaking changes and possible
non-breaking fixes have already been done in a [previous
PR](https://github.com/langchain-ai/langchain/pull/29424 ).
These rules will prevent new violations to happen.
2025-04-11 16:26:33 -04:00
Christophe Bornet
88b4233fa1
core: Add ruff rules D (docstring) ( #29406 )
...
This ensures that the code is properly documented:
https://docs.astral.sh/ruff/rules/#pydocstyle-d
Related to #21983
2025-04-01 13:15:45 -04:00
Erick Friis
b3ee1f8713
core: add space at end of error message link ( #28270 )
2024-11-21 22:19:59 +00:00
Erick Friis
0ebddabf7d
docs, core: error messaging [wip] ( #27397 )
2024-10-17 03:39:36 +00:00
Christophe Bornet
d31ec8810a
core: Add ruff rules for error messages (EM) ( #26965 )
...
All auto-fixes
Co-authored-by: Erick Friis <erick@langchain.dev >
2024-10-07 22:12:28 +00:00
Christophe Bornet
7809b31b95
core[patch]: Add ruff rules for flake8-simplify (SIM) ( #26848 )
...
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2024-09-27 20:13:23 +00:00
Christophe Bornet
fd21ffe293
core: Add N(naming) ruff rules ( #25362 )
...
Public classes/functions are not renamed and rule is ignored for them.
Co-authored-by: Erick Friis <erick@langchain.dev >
2024-09-19 05:09:39 +00:00
Christophe Bornet
ee98da4f4e
core[patch]: Add UP(upgrade) ruff rules ( #25358 )
2024-08-22 16:29:22 -07:00
Leonid Ganeline
198b85334f
core[patch]: docstrings langchain_core/ files update ( #24285 )
...
Added missed docstrings. Formatted docstrings to the consistent form.
2024-07-16 09:21:51 -04:00
Leonid Ganeline
2c9b84c3a8
core[patch]: docstrings agents ( #23502 )
...
Added missed docstrings. Formatted docstrings to the consistent form.
2024-06-26 17:50:48 -04:00
Leonid Ganeline
2f2b77602e
docs: modules descriptions ( #17844 )
...
Several `core` modules do not have descriptions, like the
[agent](https://api.python.langchain.com/en/latest/core_api_reference.html#module-langchain_core.agents )
module.
- Added missed module descriptions. The descriptions are mostly copied
from the `langchain` or `community` package modules.
2024-02-21 15:58:21 -08:00
Bagatur
d32e511826
REFACTOR: Refactor langchain_core ( #13627 )
...
Changes:
- remove langchain_core/schema since no clear distinction b/n schema and
non-schema modules
- make every module that doesn't end in -y plural
- where easy have 1-2 classes per file
- no more than one level of nesting in directories
- only import from top level core modules in langchain
2023-11-21 08:35:29 -08:00