Module: SwarmSDK::Tools::PathResolver
- Defined in:
- lib/swarm_sdk/tools/path_resolver.rb
Overview
Shared path resolution and agent context logic for file tools
This module provides:
- Path resolution (relative to agent's working directory)
- Agent context initialization (agent_name, directory expansion)
- Standard error message formatting
Tools resolve relative paths against the agent's directory. Absolute paths are used as-is.
Instance Attribute Summary collapse
-
#agent_name ⇒ Symbol
readonly
Agent context attributes.
-
#directory ⇒ String
readonly
Absolute path to agent's working directory.
Instance Attribute Details
#agent_name ⇒ Symbol (readonly)
Agent context attributes
34 35 36 |
# File 'lib/swarm_sdk/tools/path_resolver.rb', line 34 def agent_name @agent_name end |
#directory ⇒ String (readonly)
Returns Absolute path to agent's working directory.
37 38 39 |
# File 'lib/swarm_sdk/tools/path_resolver.rb', line 37 def directory @directory end |