This PR is a preparation for merging https://github.com/trueagi-io/hyperon-experimental/pull/580 , which introduces a number of breaking changes to the behavior of imports and extensions. Thus, it was necessary to refactor metta-motto. The main changes:
1) !(import! motto &self) should be used instead of !(extend-py! motto).
2) Prompt templates still can be loaded into spaces, but they will not know chat-gpt, EchoAgent and other motto tokens. To make things more convenient Script parameter is added to llm. It is now a preferable way for specifying templates unless you want to change the prompt space explicitly.
@patham9 , FYI. It may require a little refactoring for you MeTTa-Motto-NARS
@besSveta , please check that all examples work correctly for you (with this version https://github.com/trueagi-io/hyperon-experimental/pull/580 ). Some of your recent code will require a few fixes also. And we may need to prepare changes to SNet Assistant as well (as a draft PR), so we can update it quickly after the merge.
This PR is a preparation for merging https://github.com/trueagi-io/hyperon-experimental/pull/580 , which introduces a number of breaking changes to the behavior of imports and extensions. Thus, it was necessary to refactor metta-motto. The main changes: 1)
!(import! motto &self)
should be used instead of!(extend-py! motto)
. 2) Prompt templates still can be loaded into spaces, but they will not knowchat-gpt
,EchoAgent
and other motto tokens. To make things more convenientScript
parameter is added tollm
. It is now a preferable way for specifying templates unless you want to change the prompt space explicitly. @patham9 , FYI. It may require a little refactoring for you MeTTa-Motto-NARS @besSveta , please check that all examples work correctly for you (with this version https://github.com/trueagi-io/hyperon-experimental/pull/580 ). Some of your recent code will require a few fixes also. And we may need to prepare changes to SNet Assistant as well (as a draft PR), so we can update it quickly after the merge.