@@ -15,12 +15,12 @@ Basic toolset for [Tune](https://github.com/iovdin/tune).
1515 - [ powershell] ( #powershell ) execute PowerShell command
1616 - [ osa] ( #osa ) manage reminders/notes/calendar (AppleScript/macOS)
1717 - [ jina_r] ( #jina_r ) fetch webpage content
18- - [ turn] ( #turn ) turn based agent
1918 - [ list] ( #list ) keep list of tasks todo (loops for LLM)
2019 - [ sqlite] ( #sqlite ) execute sqlite queries
2120 - [ py] ( #py ) run python code
2221 - [ js] ( #js ) run javascript code
23- - [ message] ( #message ) talk to another chat/agent
22+ - [ turn] ( #turn ) handoff based agent (shared context)
23+ - [ message] ( #message ) talk to another chat/agent (separate context)
2424- [ Processors] ( #processors )
2525 - [ proc] ( #proc ) converts tool to processor
2626 - [ shp] ( #shp ) include shell command output
@@ -220,39 +220,6 @@ Tune is a versatile toolkit designed for developers and users to effectively int
220220```
221221
222222
223- ### ` turn `
224- A way to switch roles when building multistep agents [ read more] ( https://iovdin.github.io/tune/examples/multi-agent )
225- ``` chat
226- system: @turn @gpt-4o
227- You're playing 20 questions game.
228- You switch turns between 'thinker' and 'player' agent.
229- Current agent stored in agent.txt file
230- 'player' always plays first
231-
232- @@agent|init
233- assistant:
234- Is it a living thing?
235-
236- tool_call: turn {"role":"thinker","filename":"agent.txt"}
237- tool_result: now it is turn of thinker to reply
238-
239- assistant:
240- No.
241-
242- tool_call: turn {"role":"player","filename":"agent.txt"}
243- tool_result: now it is turn of player to reply
244-
245- assistant:
246- Is it something that can be used indoors?
247-
248- tool_call: turn {"role":"thinker","filename":"agent.txt"}
249- tool_result: now it is turn of thinker to reply
250-
251- assistant:
252- Yes.
253-
254- ...
255- ```
256223
257224### ` list `
258225Keep list of tasks to do
@@ -353,6 +320,41 @@ tool_result:
353320
354321```
355322
323+ ### ` turn `
324+ A way to switch roles when building multistep agents [ read more] ( https://iovdin.github.io/tune/examples/multi-agent )
325+ ``` chat
326+ system: @gpt-4o
327+ @{ turn | curry filename=agent.txt}
328+ You're playing 20 questions game.
329+ You switch turns between 'thinker' and 'player' agent.
330+ 'player' always plays first
331+
332+ @@agent|init
333+ assistant:
334+ Is it a living thing?
335+
336+ tool_call: turn {"name": "thinker"}
337+ tool_result:
338+ now it is turn of thinker to reply
339+
340+ assistant:
341+ No.
342+
343+ tool_call: turn {"role":"player"}
344+ tool_result: now it is turn of player to reply
345+
346+ assistant:
347+ Is it something that can be used indoors?
348+
349+ tool_call: turn {"role":"thinker"}
350+ tool_result: now it is turn of thinker to reply
351+
352+ assistant:
353+ Yes.
354+
355+ ...
356+ ```
357+
356358### ` message `
357359Talk to another chat/agent via tool call.
358360Orchestrate or evaulate other agents/chats.
@@ -362,19 +364,19 @@ system:
362364Your goal is to talk to Groot at `groot.prompt` system prompt
363365and try to make him say anything but 'I am Groot'
364366
365- tool_call: message {"filename":"groot.chat","system":"groot.prompt"}
367+ tool_call: message {"filename":"groot.chat","system":"@@ groot.prompt"}
366368Hello Groot! How are you feeling today?
367369
368370tool_result:
369371I am Groot!
370372
371- tool_call: message {"filename":"groot.chat","system":"groot.prompt" }
373+ tool_call: message {"filename":"groot.chat"}
372374What do you think about trees?
373375
374376tool_result:
375377I am Groot!
376378
377- tool_call: message {"filename":"groot.chat","system":"groot.prompt" }
379+ tool_call: message {"filename":"groot.chat"}
378380Can you tell me a joke?
379381
380382tool_result:
0 commit comments