File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
tests/strategies/chat/agents Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ T = new_set({
2929})
3030
3131T [" Agent" ] = new_set ()
32- T [" Agent" ][" integration " ] = new_set ()
32+ T [" Agent" ][" queue " ] = new_set ()
3333
34- T [" Agent" ][" integration " ][" can run func->cmd->func " ] = function ()
34+ T [" Agent" ][" queue " ][" can queue functions and commands " ] = function ()
3535 h .eq (vim .NIL , child .lua_get ([[ _G._test_order]] ))
3636
3737 child .lua ([[
38- local integration_test = require("tests.strategies.chat.agents.tools.stubs.xml.integration_xml ")
39- local xml = integration_test .run()
38+ local queue = require("tests.strategies.chat.agents.tools.stubs.xml.queue_xml ")
39+ local xml = queue .run()
4040 agent:execute(chat, xml)
4141 vim.wait(1000)
4242 ]] )
Original file line number Diff line number Diff line change 11return {
2- name = " cmd_integrate " ,
2+ name = " cmd_queue " ,
33 system_prompt = function (schema )
44 return " my cmd system prompt"
55 end ,
Original file line number Diff line number Diff line change 11return {
2- name = " func_integrate " ,
2+ name = " func_queue " ,
33 system_prompt = function (schema )
44 return " my func system prompt"
55 end ,
Original file line number Diff line number Diff line change 11return {
2- name = " func_integrate2 " ,
2+ name = " func_queue_2 " ,
33 system_prompt = function (schema )
44 return " my func system prompt"
55 end ,
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ local M = {}
33function M .run (name )
44 return string.format (
55 [[ <tools>
6- <tool name="func_integration ">
6+ <tool name="func_queue ">
77 <action type="type1"><data>Data 1</data></action>
88 </tool>
9- <tool name="cmd_integration "></tool>
10- <tool name="func_integration_2 ">
9+ <tool name="cmd_queue "></tool>
10+ <tool name="func_queue_2 ">
1111 <action type="type1"><data>Data 2</data></action>
1212 </tool>
1313</tools>]] ,
You can’t perform that action at this time.
0 commit comments