langchain/libs/standard-tests/langchain_tests/integration_tests
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
..
__init__.py multiple: combine sync/async vector store standard test suites (#28580) 2024-12-06 14:55:06 -05:00
base_store.py standard-tests: Bump ruff version to 0.9 (#29230) 2025-01-22 00:23:01 +00:00
cache.py standard-tests: show right classes in api docs (#28591) 2024-12-06 14:48:13 -08:00
chat_models.py standard-tests[patch]: require model_name in response_metadata if returns_usage_metadata (#30497) 2025-03-26 12:20:53 -04:00
embeddings.py tests[patch]: run standard tests for embeddings and populate embeddings API ref (#28545) 2024-12-05 19:39:03 +00:00
indexer.py standard-tests: show right classes in api docs (#28591) 2024-12-06 14:48:13 -08:00
retrievers.py standard-tests: retriever docstrings (#28596) 2024-12-07 00:32:19 +00:00
tools.py standard-tests: Fix ToolsIntegrationTests to correctly handle "content_and_artifact" tools (#29391) 2025-02-05 21:27:09 -05:00
vectorstores.py standard-tests: sync/async vectorstore tests conditional (#28636) 2024-12-09 18:02:55 +00:00