- Issue created by @marcus_johansson
We will release tools/function calling and structured output in the 1.1.x release and all new agents will use this, so its critical to have support for this for x AI provider to be usable.
It supports it per https://docs.x.ai/docs/guides/function-calling and https://docs.x.ai/docs/guides/structured-outputs.
There is no official documentation on how to integrate this yet, but you can check how its been implemented in other providers:
https://git.drupalcode.org/project/ai_provider_openai/-/commit/a45a015c3...
https://git.drupalcode.org/project/ai_provider_ollama/-/commit/4fffae6dd...
https://git.drupalcode.org/project/ai_provider_aws_bedrock/-/commit/4b58...
https://git.drupalcode.org/project/ai_provider_anthropic/-/commit/c91a1a...
Add support for function calling
If possible add support for Structured Outputs (but this can be a follow up issue, since its not heavily used yet)
Pin to AI equal or over 1.1.0
Active
1.0
Code