Commit 0785d8a

mo khan <mo@mokhan.ca>
2025-09-01 20:50:02
style: cleanup tools
1 parent a75bb7a
Changed files (2)
lib
elelem
lib/elelem/toolbox/file.rb
@@ -4,29 +4,25 @@ module Elelem
   module Toolbox
     class File < Tool
       def initialize(configuration)
-        super(
-          "file",
-          "Read and write files",
-          {
-            type: :object,
-            properties: {
-              action: {
-                type: :string,
-                enum: ["read", "write"],
-                description: "Action to perform: read or write"
-              },
-              path: {
-                type: :string,
-                description: "File path"
-              },
-              content: {
-                type: :string,
-                description: "Content to write (only for write action)"
-              }
+        super("file", "Read and write files", {
+          type: :object,
+          properties: {
+            action: {
+              type: :string,
+              enum: ["read", "write"],
+              description: "Action to perform: read or write"
             },
-            required: [:action, :path]
-          }
-        )
+            path: {
+              type: :string,
+              description: "File path"
+            },
+            content: {
+              type: :string,
+              description: "Content to write (only for write action)"
+            }
+          },
+          required: [:action, :path]
+        })
       end
 
       def call(args)
@@ -60,4 +56,4 @@ module Elelem
       end
     end
   end
-end
\ No newline at end of file
+end
lib/elelem/toolbox/prompt.rb
@@ -4,20 +4,16 @@ module Elelem
   module Toolbox
     class Prompt < Tool
       def initialize(configuration)
-        super(
-          "prompt",
-          "Ask the user a question and get their response.",
-          {
-            type: :object,
-            properties: {
-              question: {
-                type: :string,
-                description: "The question to ask the user."
-              }
-            },
-            required: [:question]
-          }
-        )
+        super("prompt", "Ask the user a question and get their response.", {
+          type: :object,
+          properties: {
+            question: {
+              type: :string,
+              description: "The question to ask the user."
+            }
+          },
+          required: [:question]
+        })
       end
 
       def call(agent, **args)