langchain/libs
Eugene Yurtsev 30fb345342
core[minor]: Add from_env utility (#25189)
Add a utility that can be used as a default factory

The goal will be to start migrating from of the pydantic models to use
`from_env` as a default factory if possible.

```python

from pydantic import Field, BaseModel
from langchain_core.utils import from_env

class Foo(BaseModel):
   name: str = Field(default_factory=from_env('HELLO'))
```
2024-08-08 14:52:35 -04:00
..
cli [docs]: change rag reference in vector store pages (#25125) 2024-08-08 10:08:14 -07:00
community community[patch]: Use get_fields adapter for pydantic (#25191) 2024-08-08 14:43:09 -04:00
core core[minor]: Add from_env utility (#25189) 2024-08-08 14:52:35 -04:00
experimental experimental: Add gliner graph transformer (#25066) 2024-08-05 21:01:27 +00:00
langchain langchain[patch]: Upgrade pydantic extra (#25186) 2024-08-08 17:27:27 +00:00
partners [docs]: combine tools and toolkits (#25158) 2024-08-08 08:59:02 -07:00
standard-tests core[patch]: Add pydantic metadata to subset model (#25032) 2024-08-05 17:57:39 -07:00
text-splitters text-splitters[patch]: Release 0.2.3 (#24998) 2024-08-02 20:27:22 +00:00