Create Tool Calling

Created on 12 June 2025, about 2 months ago

Problem/Motivation

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...

Proposed resolution

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

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024