forked from elizaOS/eliza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplates.ts
60 lines (49 loc) · 1.45 KB
/
templates.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
export const createResourceTemplate = `
Extract the following details to create a new resource:
- **name** (string): Name of the resource
- **type** (string): Type of resource (document, image, video)
- **description** (string): Description of the resource
- **tags** (array): Array of tags to categorize the resource
Provide the values in the following JSON format:
\`\`\`json
{
"name": "<resource_name>",
"type": "<resource_type>",
"description": "<resource_description>",
"tags": ["<tag1>", "<tag2>"]
}
\`\`\`
Here are the recent user messages for context:
{{recentMessages}}
`;
export const readResourceTemplate = `
Extract the following details to read a resource:
- **id** (string): Unique identifier of the resource
- **fields** (array): Specific fields to retrieve (optional)
Provide the values in the following JSON format:
\`\`\`json
{
"id": "<resource_id>",
"fields": ["<field1>", "<field2>"]
}
\`\`\`
Here are the recent user messages for context:
{{recentMessages}}
`;
export const updateResourceTemplate = `
Extract the following details to update a resource:
- **id** (string): Unique identifier of the resource
- **updates** (object): Key-value pairs of fields to update
Provide the values in the following JSON format:
\`\`\`json
{
"id": "<resource_id>",
"updates": {
"<field1>": "<new_value1>",
"<field2>": "<new_value2>"
}
}
\`\`\`
Here are the recent user messages for context:
{{recentMessages}}
`;