agent_c 2.9979 → 2.71828

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "open3"
4
-
5
- module AgentC
6
- module Tools
7
- class GitStatus < RubyLLM::Tool
8
- description <<~DESC
9
- Return the current git status
10
- DESC
11
-
12
- params do
13
- end
14
-
15
- attr_reader :workspace_dir
16
- def initialize(workspace_dir: nil, **)
17
- raise ArgumentError, "workspace_dir is required" unless workspace_dir
18
- @workspace_dir = workspace_dir
19
- end
20
-
21
- def execute(**params)
22
- if params.any?
23
- return "The following params were passed but are not allowed: #{params.keys.join(",")}"
24
- end
25
-
26
- Utils::Git.new(workspace_dir).status
27
- end
28
- end
29
- end
30
- end