AI Agent context definitions aren't valid

Created on 4 April 2025, 3 days ago

Problem/Motivation

📌 Add support for constants in function call schema Active added validation of constraints to the chat explorer for function calls. When using an agent as a tool in chat explorer, you get context definition errors.

Steps to reproduce

Use any agent in the chat explorer, you will hit one of two errors:

As part of $this->functionCallPluginManager->convertToolResponseToObject($tool)
Cannot set a list with a non-array value.

As part of $function->validateContexts()

The options "type", "description" do not exist in constraint "Drupal\ai\Plugin\Validation\Constraint\SimpleToolItemsConstraint".

Proposed resolution

Review and fix the context definitions...

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇬🇧United Kingdom andrewbelcher

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024