product · inferred from evidence
xai-org/xai-sdk-python
The GitHub repository hosting the xAI Python SDK, referenced as the source of a test example.
- xAI SDK: how to force the model to call a specific function
Yes, it works, but you need to use the required_tool helper. Import it with from xai_sdk.chat import required_tool and pass it when you create the chat. That pins the model to the function you name. There is a test in the repo showing the f