Commit f254ffb

mo khan <mo@mokhan.ca>
2026-01-19 20:17:25
fix: make Agent#turn public to allow sub agent to call it
1 parent d699e05
Changed files (1)
lib
elelem
lib/elelem/agent.rb
@@ -24,8 +24,6 @@ module Elelem
       end
     end
 
-    private
-
     def command(input)
       case input
       when "/exit" then exit(0)
@@ -58,6 +56,8 @@ module Elelem
       history << { role: "assistant", content: summarize(ctx) }
     end
 
+    private
+
     def summarize(ctx)
       ctx.reverse.find { |m| m[:role] == "assistant" }&.[](:content) || ""
     end