mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-14 23:26:34 +00:00
update README.md
This commit is contained in:
parent
b94fb8c086
commit
e393f512fc
@ -24,12 +24,18 @@ Poetry:
|
||||
poetry add langchain-tests
|
||||
```
|
||||
|
||||
uv:
|
||||
|
||||
```bash
|
||||
uv add langchain-tests
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
To add standard tests to an integration package's e.g. ChatModel, you need to create
|
||||
To add standard tests to an integration package (e.g., for a ChatModel), you need to create
|
||||
|
||||
1. A unit test class that inherits from ChatModelUnitTests
|
||||
2. An integration test class that inherits from ChatModelIntegrationTests
|
||||
1. A unit test class that inherits from `ChatModelUnitTests`
|
||||
2. An integration test class that inherits from `ChatModelIntegrationTests`
|
||||
|
||||
`tests/unit_tests/test_standard.py`:
|
||||
|
||||
@ -86,5 +92,4 @@ as required is optional.
|
||||
For chat models that support the new content blocks v1 format (multimodal content, reasoning blocks, citations, etc.), use the v1 test suite instead:
|
||||
|
||||
- See `QUICK_START.md` and `README_V1.md` for v1 testing documentation
|
||||
- Use `ChatModelV1UnitTests` from `langchain_tests.unit_tests.chat_models_v1`
|
||||
- V1 tests support `BaseChatModelV1` models with enhanced content block features
|
||||
- Use `ChatModelV1Tests` from `langchain_tests.unit_tests.chat_models_v1`
|
||||
|
Loading…
Reference in New Issue
Block a user