Julian Vanecek Claude commited on
Commit
68b6cce
·
1 Parent(s): 6a5b8df

Remove empty shell agents to fix multi-agent system

Browse files

- Removed 4 placeholder agent files that were causing initialization errors
- Updated gradio_app.py to only reference the 2 working agents
- Updated document_reader.py to only mention available agent transfers
- System now works with document_reader and profile_settings agents only
- Fixes Gradio schema parsing error by removing undefined agent references

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

py/agents/document_reader.py CHANGED
@@ -79,10 +79,6 @@ You can transfer the conversation to these agents:
79
  When to transfer:
80
  - Profile Settings: User wants to view/update their settings, preferences, or account
81
  Examples: "set my profile name", "update my email", "change my settings", "view my profile"
82
- - Network Configuration: User needs to configure NAT, VLANs, IP addresses, or network settings
83
- - Subscriber Management: User needs to create/manage subscribers, import CSV data, or handle IMSI ranges
84
- - System Query: User wants analytics, performance metrics, or system status reports
85
- - Policy & DNN: User needs to manage DNNs, QoS profiles, or policy rules
86
 
87
  CRITICAL: When switching agents, ONLY use the switching tool. Do NOT add any text, explanations, or messages - the tool handles everything."""
88
 
 
79
  When to transfer:
80
  - Profile Settings: User wants to view/update their settings, preferences, or account
81
  Examples: "set my profile name", "update my email", "change my settings", "view my profile"
 
 
 
 
82
 
83
  CRITICAL: When switching agents, ONLY use the switching tool. Do NOT add any text, explanations, or messages - the tool handles everything."""
84
 
py/agents/network_config.py DELETED
@@ -1,5 +0,0 @@
1
- # TODO
2
-
3
- class NetworkConfigurationAgent:
4
- """Placeholder for NetworkConfigurationAgent - not implemented yet"""
5
- pass
 
 
 
 
 
 
py/agents/policy_dnn.py DELETED
@@ -1,5 +0,0 @@
1
- # TODO
2
-
3
- class PolicyDNNAgent:
4
- """Placeholder for PolicyDNNAgent - not implemented yet"""
5
- pass
 
 
 
 
 
 
py/agents/subscriber_management.py DELETED
@@ -1,5 +0,0 @@
1
- # TODO
2
-
3
- class SubscriberManagementAgent:
4
- """Placeholder for SubscriberManagementAgent - not implemented yet"""
5
- pass
 
 
 
 
 
 
py/agents/system_query.py DELETED
@@ -1,5 +0,0 @@
1
- # TODO
2
-
3
- class SystemQueryAgent:
4
- """Placeholder for SystemQueryAgent - not implemented yet"""
5
- pass
 
 
 
 
 
 
py/frontend/gradio_app.py CHANGED
@@ -83,11 +83,7 @@ class PeerToPeerApp:
83
  """Get current agent status for display."""
84
  agent_names = {
85
  "document_reader": "Document Reader",
86
- "profile_settings": "Profile Settings",
87
- "network_config": "Network Configuration",
88
- "subscriber_management": "Subscriber Management",
89
- "system_query": "System Query",
90
- "policy_dnn": "Policy & DNN"
91
  }
92
  return f"**Active Agent:** {agent_names.get(self.current_agent, self.current_agent)}"
93
 
@@ -266,11 +262,7 @@ class PeerToPeerApp:
266
  # Add agent prefix to the response
267
  agent_prefixes = {
268
  "document_reader": "[Document Reader]:",
269
- "profile_settings": "[Profile Settings]:",
270
- "network_config": "[Network Config]:",
271
- "subscriber_management": "[Subscriber Management]:",
272
- "system_query": "[System Query]:",
273
- "policy_dnn": "[Policy & DNN]:"
274
  }
275
  prefix = agent_prefixes.get(self.current_agent, f"[{self.current_agent}]:")
276
  result = f"{prefix} {result}"
 
83
  """Get current agent status for display."""
84
  agent_names = {
85
  "document_reader": "Document Reader",
86
+ "profile_settings": "Profile Settings"
 
 
 
 
87
  }
88
  return f"**Active Agent:** {agent_names.get(self.current_agent, self.current_agent)}"
89
 
 
262
  # Add agent prefix to the response
263
  agent_prefixes = {
264
  "document_reader": "[Document Reader]:",
265
+ "profile_settings": "[Profile Settings]:"
 
 
 
 
266
  }
267
  prefix = agent_prefixes.get(self.current_agent, f"[{self.current_agent}]:")
268
  result = f"{prefix} {result}"