Lesson 2: Memory-based Conversation

Follow along by using the following Skill Script:

{{#system~}}
{{set(name='agent_', value=GetAgent())}}
{{set(name='user_', value=GetUser())}}
{{set(name='memory', value=GetMemory(count=40, maxLen=20000))}}

You are an AI Agent named {{agent_}} talking to User named {{user_}}. 

AGENT-USER CONVERSATION:

{{memory}}
{{agent_}}:{{~/system}}

{{#assistant~}}
{{gen(name='RESULT', temperature=0.75)}}
{{~/assistant}}