In AiAgentWrapper, throw and helpful error message if a default chat_with_tools is not set.

Created on 12 May 2025, 3 days ago

Problem/Motivation

Currently the AiAgentWrapper assumes that a chat_with_tools is set, and when it's not set it will give back an error that is hard to understand about an array missing a key, and in the chatbot it will just be a red message.

Instead we should throw an exception with the message that a chat_with_tools is not set.

Steps to reproduce

Do not setup a chat with tools default
Try to chat with an assistant with subagents.

Proposed resolution

Create an exception that gives back a useful error message.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇩🇪Germany marcus_johansson

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