Skip to content

The agent engineering platform.

docs(xai): point structured outputs guide link to official xAI docs (#40026)

Badar Rahmanb4d46a503e7d
diff --git a/libs/partners/xai/langchain_xai/chat_models.py b/libs/partners/xai/langchain_xai/chat_models.py
index c207cd935c..fe3eb26919 100644
--- a/libs/partners/xai/langchain_xai/chat_models.py
+++ b/libs/partners/xai/langchain_xai/chat_models.py
@@ -767,7 +767,7 @@ class ChatXAI(BaseChatOpenAI): # type: ignore[override]
strict:
- `True`:
Model output is guaranteed to exactly match the schema.
- The input schema will also be validated according to the [supported schemas](https://platform.openai.com/docs/guides/structured-outputs/supported-schemas?api-mode=responses#supported-schemas).
+ The input schema will also be validated according to the [supported schemas](https://docs.x.ai/docs/guides/structured-outputs).
- `False`:
Input schema will not be validated and model output will not be
validated.