langchain/docs
ccurme 22d1a7d7b6
standard-tests[patch]: require model_name in response_metadata if returns_usage_metadata (#30497)
We are implementing a token-counting callback handler in
`langchain-core` that is intended to work with all chat models
supporting usage metadata. The callback will aggregate usage metadata by
model. This requires responses to include the model name in its
metadata.

To support this, if a model `returns_usage_metadata`, we check that it
includes a string model name in its `response_metadata` in the
`"model_name"` key.

More context: https://github.com/langchain-ai/langchain/pull/30487
2025-03-26 12:20:53 -04:00
..
api_reference docs: sidebar-content-render (#30061) (#30062) 2025-03-01 15:30:41 -05:00
cassettes docs: update cassettes (#30434) 2025-03-22 12:57:36 -04:00
data docs: 👥 Update LangChain people data (#27022) 2024-10-08 17:09:07 +00:00
docs standard-tests[patch]: require model_name in response_metadata if returns_usage_metadata (#30497) 2025-03-26 12:20:53 -04:00
scripts docs: Add AgentQL provider doc, tool/toolkit doc and documentloader doc (#30144) 2025-03-11 21:57:40 -04:00
src docs: Update VectorStoreTab vector store initializations (#30413) 2025-03-22 17:29:45 -04:00
static docs: update readme (#30239) 2025-03-12 13:45:13 -04:00
.gitignore infra: cleanup docs build (#21134) 2024-05-01 17:34:05 -07:00
.yarnrc.yml docs[minor]: Add thumbs up/down to all docs pages (#18526) 2024-03-04 15:14:28 -08:00
babel.config.js
docusaurus.config.js Banner for interrupt (#29567) 2025-02-03 17:40:24 -08:00
ignore-step.sh infra: run docs build on packages.yml updates (#29796) 2025-02-19 18:45:30 +00:00
Makefile docs: fix httpx conflicts with overrides in docs build (#29180) 2025-01-13 21:25:00 +00:00
package.json docs: raw loader codeblock (#28548) 2024-12-06 09:26:34 -08:00
README.md docs: reorganize contributing docs (#27649) 2024-10-25 22:41:54 +00:00
sidebars.js docs: reorg sidebar (#27978) 2024-11-15 14:28:18 -08:00
vercel_overrides.txt docs: add to vercel overrides (#30063) 2025-03-01 17:21:15 -05:00
vercel_requirements.txt docs: more useful vercel warnings (#28699) 2024-12-13 03:07:24 +00:00
vercel.json docs: tests/standard tests api ref redirect (#29444) 2025-01-27 23:21:50 -08:00
yarn.lock docs: raw loader codeblock (#28548) 2024-12-06 09:26:34 -08:00

LangChain Documentation

For more information on contributing to our documentation, see the Documentation Contributing Guide