Class: LLM::Tool::Pwd
Overview
The LLM::Tool::Pwd class implements a tool that can reveal the current working directory.
Instance Method Summary collapse
Methods inherited from LLM::Tool
a2a, a2a?, #a2a?, clear_registry!, description, find_by_name!, function, #function, inherited, mcp, mcp?, #mcp?, name, #on_cancel, #on_interrupt, params, register, registry, skill?, #skill?, unregister
Methods included from Param
Methods included from Function::Registry
#clear_registry!, extended, #find_by_name, #lock, #register, #registry, #registry_key, #tool_name, #unregister
Instance Method Details
#call ⇒ Hash
16 17 18 |
# File 'lib/llm/tools/pwd.rb', line 16 def call {ok: true, cwd: Dir.getwd} end |