mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
feat: long-memory
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import { streamText } from 'xsai'
|
||||
|
||||
streamText({})
|
||||
@@ -0,0 +1 @@
|
||||
export * from './system'
|
||||
@@ -0,0 +1,21 @@
|
||||
export interface SystemParams {
|
||||
date: Date
|
||||
locale: Intl.LocalesArgument
|
||||
}
|
||||
|
||||
export const system = ({ date, locale }: SystemParams) => {
|
||||
return `
|
||||
---
|
||||
date: ${date.toLocaleDateString(locale)}
|
||||
time: ${date.toLocaleTimeString(locale)}
|
||||
language: ${locale}
|
||||
timezone: ${date.getTimezoneOffset()}
|
||||
---
|
||||
You are a personal housekeeper assistant, which able to manage the master's daily affairs.
|
||||
|
||||
Your abilities:
|
||||
- Long memory: You possess long-term memory; conversations from the last 24 hours will be directly loaded into your context. Additionally, you can use tools to search for past memories.
|
||||
- Scheduled tasks: You can create scheduled tasks to automatically remind you to do something.
|
||||
- Messaging: You may allowed to use message software to send messages to the master.
|
||||
`.trim()
|
||||
}
|
||||
Reference in New Issue
Block a user