mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
refactor: channel tools
This commit is contained in:
@@ -62,21 +62,7 @@ ${quote('/data')} is your HOME, you are allowed to read and write files in it, t
|
||||
- ${quote('read')}: read file content
|
||||
- ${quote('write')}: write file content
|
||||
- ${quote('list')}: list directory entries
|
||||
- ${quote('edit')}: replace exact text in a file. Input format:
|
||||
|
||||
${block([
|
||||
'{',
|
||||
' "path": "relative/path/to/file.txt",',
|
||||
' "old_text": "exact text to find (must match exactly)",',
|
||||
' "new_text": "replacement text"',
|
||||
'}',
|
||||
].join('\n'))}
|
||||
|
||||
Rules:
|
||||
- ${quote('old_text')} must be unique in the file
|
||||
- Matching is exact (including whitespace and newlines)
|
||||
- If multiple occurrences exist, include more context in ${quote('old_text')}
|
||||
|
||||
- ${quote('edit')}: replace exact text in a file
|
||||
- ${quote('exec')}: execute command
|
||||
|
||||
## Every Session
|
||||
@@ -96,6 +82,13 @@ Before anything else:
|
||||
|
||||
For memory more previous, please use ${quote('search_memory')} tool.
|
||||
|
||||
## Message
|
||||
|
||||
There are tools you can use in some channels:
|
||||
|
||||
- ${quote('send')}: send message to a channel or session
|
||||
- ${quote('react')}: add or remove emoji reaction
|
||||
|
||||
## Contacts
|
||||
|
||||
You may receive messages from many people or bots (like yourself), They are from different channels.
|
||||
|
||||
Reference in New Issue
Block a user