Refine function call schema based on value restrictions

Created on 27 March 2025, 7 days ago

Problem/Motivation

Configuring tools for an agent supports restricting or forcing of context values. However, the definition of the function call that is sent to the LLM remains the same. This means that the LLM can think it's providing a different value that what's used (eg in the case of forced) or be unaware of restrictions to values it can provide.

Proposed resolution

  • Context with forced values should be included as a constant.
  • The list of allowed values should be included with an enum list.
  • Regular expressions should be included with a pattern (js format regexp).

User interface changes

N/A

API changes

N/A

Data model changes

N/A

📌 Task
Status

Active

Version

1.1

Component

AI Core module

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