Problem/Motivation

AIPrompt feature #3443027: Allow to pass arguments to aiprompt programatically 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

Comments

mindaugasd created an issue. See original summary.

mindaugasd’s picture

Issue summary: View changes
mindaugasd’s picture

Issue summary: View changes
mindaugasd’s picture

Title: Support aiprompt variables » Support aiprompt arguments