Unable to create new Agent

Created on 9 April 2025, 7 days ago

Problem/Motivation

Getting the following error after clicking the 'Add AI Agent' button
TypeError: Drupal\Component\Utility\Html::escape(): Argument #1 ($text) must be of type string, null given, called in /var/www/html/web/core/lib/Drupal/Component/Render/FormattableMarkup.php on line 238 in Drupal\Component\Utility\Html::escape() (line 431 of core/lib/Drupal/Component/Utility/Html.php).

Steps to reproduce

Install the latest dev release of the module
Go to admin/config/ai/agents and click 'Add AI Agent' .

Proposed resolution

The error is triggered from Drupal\ai_agents\Form\AiAgentForm::form

    $form['#title'] = $this->t('AI agent: %label', [
      '%label' => $this->entity->label(),
    ]);

$this->entity->label() is null while adding a new agent.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇮🇳India Akhil Babu Chengannur

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