Commit Graph

14001 Commits

Author SHA1 Message Date
Mason Daugherty
8d8a61ab3b fix: create_plaintext_block 2025-08-04 11:31:29 -04:00
Mason Daugherty
a6686d7c4f type guards to remove casting 2025-08-04 11:29:36 -04:00
Mason Daugherty
822dd5075c del impl plan 2025-08-04 11:15:40 -04:00
Mason Daugherty
82492d6d89 export v1 tests 2025-08-01 12:53:37 -04:00
Mason Daugherty
eae4d1db43 integration tests 2025-08-01 12:47:08 -04:00
Mason Daugherty
6820723177 update dep in lock 2025-07-31 22:53:36 -04:00
Mason Daugherty
6669ac7891 fix: local format incompat with ruff 2025-07-31 22:51:47 -04:00
Mason Daugherty
bc5c6751dc fix test 2025-07-31 17:37:42 -04:00
Mason Daugherty
05d075a37f messages.v1 mypy fixes 2025-07-31 17:32:59 -04:00
Mason Daugherty
7a0c3e0482 fix: update snapshots 2025-07-31 17:27:37 -04:00
Mason Daugherty
1b2a677eed first pass (w/o integration) 2025-07-31 17:24:19 -04:00
Mason Daugherty
02d02ccf1b feat: enhance serialization for v1 message classes in dump and load modules 2025-07-31 17:08:39 -04:00
Mason Daugherty
e1b8ae2e6c content_blocks: add missing blocks to aliases and formatting 2025-07-31 17:08:10 -04:00
Mason Daugherty
2cb48b685f messages v1: some nits, and use create_text_block() 2025-07-31 17:07:42 -04:00
Mason Daugherty
45533fc875 fix: correct syrupy import 2025-07-31 13:16:55 -04:00
Mason Daugherty
e9bb40f221 nit: lint standard-tests files 2025-07-31 13:15:39 -04:00
Mason Daugherty
4f4e831a44 Merge branch 'standard_outputs_copy' of github.com:langchain-ai/langchain into mdrxy/ollama_v1 2025-07-31 12:23:29 -04:00
Mason Daugherty
525fa453be fix: revert pydantic bump (#32355) 2025-07-31 12:22:23 -04:00
Mason Daugherty
9a4fb44736 Merge branch 'mdrxy/ollama_v1' of github.com:langchain-ai/langchain into mdrxy/ollama_v1 2025-07-31 11:22:09 -04:00
Mason Daugherty
48b02fead9 Merge branch 'standard_outputs_copy' of github.com:langchain-ai/langchain into mdrxy/ollama_v1 2025-07-31 11:21:52 -04:00
Mason Daugherty
c88adfad70 fix: updatd snapshots 2025-07-31 11:21:40 -04:00
Mason Daugherty
ca6e3322a9 fix: update snapshots 2025-07-31 11:21:14 -04:00
Mason Daugherty
1a04543791 Merge branch 'standard_outputs_copy' of github.com:langchain-ai/langchain into mdrxy/ollama_v1 2025-07-31 11:19:18 -04:00
Mason Daugherty
7f1e98c7fb fix: add index to InvalidToolCall 2025-07-31 11:19:01 -04:00
Mason Daugherty
9a4d878b2d bump pydantic 2025-07-31 11:16:02 -04:00
Mason Daugherty
3dcfc6c389 Merge branch 'standard_outputs_copy' of github.com:langchain-ai/langchain into mdrxy/ollama_v1 2025-07-31 11:15:27 -04:00
Mason Daugherty
44bd6fe837 feat(core): content block factories + ids + docs + tests (#32316)
## Benefits

1. **Type Safety**: Compile-time validation of required fields and
proper type setting
2. **Less Boilerplate**: No need to manually set the `type` field or
generate IDs
3. **Input Validation**: Runtime validation prevents common errors
(e.g., base64 without MIME type)
4. **Consistent Patterns**: Standardized creation patterns across all
block types
5. **Better Developer Experience**: Cleaner, more intuitive API than
manual TypedDict construction. Also follows similar other patterns (e.g.
`create_react_agent`, `init_chat_model`
2025-07-31 11:12:00 -04:00
ccurme
740d9d3e7e fix(core): fix tracing for new message types in case of multiple messages (#32352) 2025-07-31 10:47:23 -04:00
Mason Daugherty
588fe46601 Merge branch 'standard_outputs_copy' into mdrxy/ollama_v1 2025-07-30 17:41:16 -04:00
ccurme
642262f6fe feat(core): widen input type for output parsers (#32332) 2025-07-30 16:52:34 -04:00
Mason Daugherty
7a902c1bf5 Merge branch 'standard_outputs_copy' of github.com:langchain-ai/langchain into mdrxy/ollama_v1 2025-07-30 16:29:14 -04:00
ccurme
3afcd6132e fix(openai): fix test on standard outputs branch (#32329) 2025-07-30 13:33:42 -04:00
Chester Curme
a0abb79f6d Merge branch 'wip-v0.4' into standard_outputs_copy 2025-07-30 13:17:08 -04:00
Chester Curme
881c6534a6 Merge branch 'master' into wip-v0.4
# Conflicts:
#	.github/workflows/_integration_test.yml
#	.github/workflows/_release.yml
#	.github/workflows/api_doc_build.yml
#	.github/workflows/people.yml
#	.github/workflows/run_notebooks.yml
#	.github/workflows/scheduled_test.yml
#	SECURITY.md
#	docs/docs/integrations/vectorstores/pgvectorstore.ipynb
#	libs/langchain_v1/langchain/chat_models/base.py
#	libs/langchain_v1/tests/integration_tests/chat_models/test_base.py
#	libs/langchain_v1/tests/unit_tests/chat_models/test_chat_models.py
2025-07-30 13:16:17 -04:00
ccurme
309d1a232a fix(openai): fix tracing and typing on standard outputs branch (#32326) 2025-07-30 13:02:15 -04:00
ccurme
a9e52ca605 chore(openai): bump openai sdk (#32322) 2025-07-30 10:58:18 -04:00
Kanav Bansal
e2bc8f19c0 docs(docs): update RAG tutorials link across multiple vector store docs (AstraDB, DatabricksVectorSearch, FAISS, Redis, etc.) (#32301)
## **Description:** 
This PR updates the internal documentation link for the RAG tutorials to
reflect the updated path. Previously, the link pointed to the root
`/docs/tutorials/`, which was generic. It now correctly routes to the
RAG-specific tutorial page for the following vector store docs.

1. AstraDBVectorStore
2. Clickhouse
3. CouchbaseSearchVectorStore
4. DatabricksVectorSearch
5. ElasticsearchStore
6. FAISS
7. Milvus
8. MongoDBAtlasVectorSearch
9. openGauss
10. PGVector
11. PGVectorStore
12. PineconeVectorStore
13. QdrantVectorStore
14. Redis
15. SQLServer

## **Issue:** N/A
## **Dependencies:** None
## **Twitter handle:** N/A
2025-07-30 09:46:01 -04:00
Mason Daugherty
502dba4af8 tweaks 2025-07-29 15:43:32 -04:00
ccurme
8cf97e838c fix(core): lint standard outputs branch (#32311) 2025-07-29 15:38:45 -04:00
Mason Daugherty
27347cdcf5 move file 2025-07-29 14:59:33 -04:00
Mason Daugherty
589ee059f2 updates 2025-07-29 14:57:52 -04:00
Mason Daugherty
80971b69d0 implement 2025-07-29 14:34:22 -04:00
Mason Daugherty
fee695ce6d tests updates before implementation 2025-07-29 14:27:39 -04:00
Mason Daugherty
174b3d6537 refine plan 2025-07-29 14:17:00 -04:00
Mason Daugherty
735f264654 bump lock 2025-07-29 13:57:17 -04:00
Mason Daugherty
0148b1a03c plan 2025-07-29 13:51:35 -04:00
Mason Daugherty
fbd5a238d8 fix(core): revert "fix: tool call streaming bug with inconsistent indices from Qwen3" (#32307)
Reverts langchain-ai/langchain#32160

Original issue stems from using `ChatOpenAI` to interact with a `qwen`
model. Recommended to use
[langchain-qwq](https://python.langchain.com/docs/integrations/chat/qwq/)
which is built for Qwen
2025-07-29 10:26:38 -04:00
HerrDings
fc2f66ca80 docs: fixed link to docs of unstructured (#32306)
In the section [How to load documents from a
directory](https://python.langchain.com/docs/how_to/document_loader_directory/)
there is a link to the docs of *unstructured*. When you click this link,
it tells you that it has moved. Accordingly this PR fixes this link in
LangChain docs directly

from: `https://unstructured-io.github.io/unstructured/#`
to: `https://docs.unstructured.io/`
2025-07-29 10:12:22 -04:00
Chester Curme
9507d0f21c ? 2025-07-29 09:12:11 -04:00
Mason Daugherty
0e287763cd fix: lint 2025-07-28 18:49:43 -04:00