Support aiprompt arguments

Created on 29 June 2024, 5 months ago

Problem/Motivation

AIPrompt feature Allow to pass variables to aiprompt programatically Active will allow to pass variables to prompt. Therefore AIChat can also allow to pass those variables AIPrompt as a next step.

Steps to reproduce

Proposed resolution

1) Set variable within conversation particular/current/latest message data.
2) When response is received, set key of the message which triggered the response. So that response message could reference initiator message and therefore would also have variables available for use.
3) Introduce new methods for MessageBase:

  • setVariable($key, $val, $scopes = ['system-message'])
  • getVariable($key, $scope = 'system-message')
  • getVariables($scope = 'system-message')

4) Pass all defined variables defined within 'system-message' scope to AI Prompt system prompt entity.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇱🇹Lithuania mindaugasd

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

Comments & Activities

Production build 0.71.5 2024