Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/loop.metta
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
(change-state! &loops (maxNewInputLoops))))

(= (getContext)
(string-safe (py-str ("PROMPT: " (getPrompt) " SKILLS: " (getSkills)
" OUTPUT_FORMAT: Output a ((skillName1 args1) (skillName2 args2) (skillName3 args3) (skillName4 args4) (skillName5 args5)) S-expression of up to 5 sexpr commands, double-check the parentheses it must be (cmd1 ... cmdn)!"
(string-safe (py-str ("PROMPT: " (getPrompt) " TOOLS: " (getSkills)
" OUTPUT_FORMAT: Output a ((toolName1 args1) (toolName2 args2) (toolName3 args3) (toolName4 args4) (toolName5 args5)) S-expression of up to 5 sexpr commands, double-check the parentheses it must be (cmd1 ... cmdn)!"
" each arg is an explicit string hence needs quotes, and variables are forbidden!"
" LAST_SKILL_USE_RESULTS: " (last_chars (get-state &lastresults) (maxFeedback)) " HISTORY: " (getHistory) " TIME: " (get_time_as_string)))))
" LAST_TOOL_USE_RESULTS: " (last_chars (get-state &lastresults) (maxFeedback)) " HISTORY: " (getHistory) " TIME: " (get_time_as_string)))))

(= (HandleError $msg $cmd $sexpr)
(case $sexpr (((Error $a $b) (let $new (append (get-state &error) (($msg $cmd)))
Expand Down