TestXAIStandard Class — langchain Architecture
Architecture documentation for the TestXAIStandard class in test_chat_models_standard.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 08461e1f_e401_42de_3ceb_a86ca4b7cbaa["TestXAIStandard"] f4b40f56_1158_0e72_1cac_d0121e4eabd8["ChatModelUnitTests"] 08461e1f_e401_42de_3ceb_a86ca4b7cbaa -->|extends| f4b40f56_1158_0e72_1cac_d0121e4eabd8 55d5a256_046a_a856_1611_314e47b02c1f["test_chat_models_standard.py"] 08461e1f_e401_42de_3ceb_a86ca4b7cbaa -->|defined in| 55d5a256_046a_a856_1611_314e47b02c1f 0f1f3d68_eb8a_682f_281a_e7f66a69e1f8["chat_model_class()"] 08461e1f_e401_42de_3ceb_a86ca4b7cbaa -->|method| 0f1f3d68_eb8a_682f_281a_e7f66a69e1f8 eae081bb_8227_536e_5d48_403696725100["chat_model_params()"] 08461e1f_e401_42de_3ceb_a86ca4b7cbaa -->|method| eae081bb_8227_536e_5d48_403696725100 b07bc58a_d9ee_2278_3393_f57ce0b77efb["init_from_env_params()"] 08461e1f_e401_42de_3ceb_a86ca4b7cbaa -->|method| b07bc58a_d9ee_2278_3393_f57ce0b77efb
Relationship Graph
Source Code
libs/partners/xai/tests/unit_tests/test_chat_models_standard.py lines 13–35
class TestXAIStandard(ChatModelUnitTests):
@property
def chat_model_class(self) -> type[BaseChatModel]:
return ChatXAI
@property
def chat_model_params(self) -> dict:
return {"model": MODEL_NAME}
@property
def init_from_env_params(self) -> tuple[dict, dict, dict]:
return (
{
"XAI_API_KEY": "api_key",
},
{
"model": MODEL_NAME,
},
{
"xai_api_key": "api_key",
"xai_api_base": "https://api.x.ai/v1/",
},
)
Extends
Source
Frequently Asked Questions
What is the TestXAIStandard class?
TestXAIStandard is a class in the langchain codebase, defined in libs/partners/xai/tests/unit_tests/test_chat_models_standard.py.
Where is TestXAIStandard defined?
TestXAIStandard is defined in libs/partners/xai/tests/unit_tests/test_chat_models_standard.py at line 13.
What does TestXAIStandard extend?
TestXAIStandard extends ChatModelUnitTests.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free