- Issue created by @mindaugasd
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.
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.
Active
1.0
Code