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.
- checksums.yaml +4 -4
- data/CLAUDE.md +1 -1
- data/README.md +1 -1
- data/TODO.md +5 -98
- data/docs/chat-methods.md +6 -5
- data/docs/pipeline-tips-and-tricks.md +0 -382
- data/docs/testing.md +19 -19
- data/lib/agent_c/agent/chat_response.rb +4 -10
- data/lib/agent_c/batch.rb +4 -40
- data/lib/agent_c/configs/repo.rb +1 -1
- data/lib/agent_c/pipeline.rb +83 -47
- data/lib/agent_c/processor.rb +1 -1
- data/lib/agent_c/schema.rb +22 -8
- data/lib/agent_c/session.rb +2 -1
- data/lib/agent_c/tools/edit_file.rb +1 -3
- data/lib/agent_c/tools.rb +0 -1
- data/lib/agent_c/utils/git.rb +14 -26
- data/lib/agent_c/version.rb +1 -1
- metadata +2 -5
- data/docs/batch.md +0 -503
- data/lib/agent_c/pipelines/agent.rb +0 -219
- data/lib/agent_c/tools/git_status.rb +0 -30
|
@@ -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
|