Class: Girb::Tools::GetCurrentDirectory
- Inherits:
-
Base
- Object
- Base
- Girb::Tools::GetCurrentDirectory
show all
- Defined in:
- lib/girb/tools/environment_tools.rb
Overview
General tool for getting current directory - always available
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
available?, to_gemini_tool, tool_name
Class Method Details
.description ⇒ Object
10
11
12
|
# File 'lib/girb/tools/environment_tools.rb', line 10
def description
"Get the current working directory (pwd). Use this when user asks about current directory or project location."
end
|
.parameters ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/girb/tools/environment_tools.rb', line 14
def parameters
{
type: "object",
properties: {},
required: []
}
end
|
Instance Method Details
#execute(binding) ⇒ Object
23
24
25
26
27
28
|
# File 'lib/girb/tools/environment_tools.rb', line 23
def execute(binding)
{
current_directory: Dir.pwd,
home_directory: Dir.home
}
end
|