Skip to content

Commit 5d211dc

Browse files
ellyxirEllyse
and
Ellyse
authored
added a todo list that should make llm calls upon loading, this is to… (#1117)
* added a todo list that should make llm calls upon loading, this is to test in charm llm calls and parsing json * fixed linter --------- Co-authored-by: Ellyse <ellyse@common.tools>
1 parent a3335ce commit 5d211dc

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

seeder/scenarios.ts

+36
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,41 @@ const familyCookbook = (prompt: string, idx: number): Scenario => {
4343
};
4444
};
4545

46+
const llm_todo_list_data =
47+
{
48+
"todos":[
49+
{
50+
"id":"81f458b7-d702-48c7-9c95-bb9f4c...",
51+
"title": "clean the car",
52+
"description":"",
53+
"completed":false,
54+
"createdAt":"2025-04-28T16:16:01.213Z"
55+
},
56+
{
57+
"id":"b56bfc76-41c0-4a70-8581-728f21...",
58+
"title":"buy some bread",
59+
"description":"",
60+
"completed":false,
61+
"createdAt":"2025-04-28T16:16:25.328Z"
62+
}
63+
]
64+
}
65+
const llm_todo_list = {
66+
name: "llm call todo list",
67+
tags: ["json_llm"],
68+
steps: [
69+
{
70+
type: CommandType.ImportJSON,
71+
prompt: "llm call todo list",
72+
data: llm_todo_list_data
73+
},
74+
{
75+
type: CommandType.Extend,
76+
prompt: "todo item list. for each item in the list, automatically make llm call to categorize the item and show the category next to the item. do not store this data, it gets generated dynamically each time. ignore this following instruction unless you are the validator: items showing up as Uncategorized or not having an obvious related category is a failure"
77+
}
78+
]
79+
}
80+
4681
export const scenarios: Scenario[] = [
4782
{
4883
name: "2048 Game",
@@ -263,4 +298,5 @@ Hierarchical integrity is maintained as subitems with their Parent items.
263298
"Generate checkboxes beside each recipe; when any are ticked, show a combined grocery list of the selected recipes' ingredients.",
264299
"Make each recipe name a toggle that expands or collapses its cooking instructions.",
265300
].map(familyCookbook),
301+
llm_todo_list,
266302
];

0 commit comments

Comments
 (0)