10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/agent_ruby/prompt/summarize.rb', line 10
def to_s
" <Instruction>\n <Item>\n The workflow has been executed. Here are the results:\n \#{\n @results.map { |r|\n \"Task: \#{r.action.key}, Params: \#{r.action.class.arguments.to_json}, Result: \#{r.result}\"\n }.join(\"\\n\")\n }\n Now, please summarize the results in a single JSON object\n </Item>\n </Instruction>\n\n <Example type=\"success\">\n <Message>\n I have created a folder named \"My Folder\" and a post titled \"My Post\" with content \"This is my post\" in the folder \"My Folder\"\n </Message>\n </Example>\n XML\nend\n"
|