signalwire-agents 0.1.25__py3-none-any.whl → 0.1.27__py3-none-any.whl

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.
@@ -18,7 +18,7 @@ A package for building AI agents using SignalWire's AI and SWML capabilities.
18
18
  from .core.logging_config import configure_logging
19
19
  configure_logging()
20
20
 
21
- __version__ = "0.1.25"
21
+ __version__ = "0.1.27"
22
22
 
23
23
  # Import core classes for easier access
24
24
  from .core.agent_base import AgentBase
@@ -205,6 +205,7 @@ class Step:
205
205
  def to_dict(self) -> Dict[str, Any]:
206
206
  """Convert step to dictionary for SWML generation"""
207
207
  step_dict = {
208
+ "name": self.name,
208
209
  "text": self._render_text()
209
210
  }
210
211
 
@@ -111,6 +111,16 @@ class SkillManager:
111
111
  self.logger.info(f"Successfully loaded skill instance '{instance_key}' (skill: '{skill_name}')")
112
112
  return True, ""
113
113
 
114
+ except ValueError as e:
115
+ # Check if this is a duplicate tool registration (expected during agent cloning)
116
+ if "already exists" in str(e):
117
+ debug_msg = f"Skill '{skill_name}' already loaded, skipping duplicate registration"
118
+ self.logger.debug(debug_msg)
119
+ return True, "" # Not an error, skill is already available
120
+ else:
121
+ error_msg = f"Error loading skill '{skill_name}': {e}"
122
+ self.logger.error(error_msg)
123
+ return False, error_msg
114
124
  except Exception as e:
115
125
  error_msg = f"Error loading skill '{skill_name}': {e}"
116
126
  self.logger.error(error_msg)