fix docs protocols

pull/983/head^2
Kye Gomez 2 days ago
parent b63996fc2d
commit f59704db44

@ -225,7 +225,15 @@ nav:
- Quickstart: "quickstart.md" - Quickstart: "quickstart.md"
- Agents: "swarms/agents/index.md" - Agents: "swarms/agents/index.md"
- Multi-Agent Architectures: "swarms/structs/index.md" - Multi-Agent Architectures: "swarms/structs/index.md"
- Protocol:
- Overview: "protocol/overview.md"
- SIPs: "protocol/sip.md"
- Feature Set: "swarms/features.md" - Feature Set: "swarms/features.md"
- Swarms Ecosystem: "swarms/ecosystem.md"
- Technical Support: "swarms/support.md"
- Agents: - Agents:
- Overview: "swarms/framework/agents_explained.md" - Overview: "swarms/framework/agents_explained.md"
- Quickstart: "swarms/agents/index.md" - Quickstart: "swarms/agents/index.md"
@ -316,10 +324,6 @@ nav:
- Communication Structure: "swarms/structs/conversation.md" - Communication Structure: "swarms/structs/conversation.md"
- Protocol:
- Overview: "protocol/overview.md"
- SIPs: "protocol/sip.md"
- Tools: - Tools:
- Overview: "swarms_tools/overview.md" - Overview: "swarms_tools/overview.md"
- BaseTool Reference: "swarms/tools/base_tool.md" - BaseTool Reference: "swarms/tools/base_tool.md"
@ -343,10 +347,6 @@ nav:
- Deploy on Phala: "swarms_cloud/phala_deploy.md" - Deploy on Phala: "swarms_cloud/phala_deploy.md"
# - Deploy on FastAPI: "swarms_cloud/fastapi_deploy.md" # - Deploy on FastAPI: "swarms_cloud/fastapi_deploy.md"
- More About Us:
- Swarms Ecosystem: "swarms/ecosystem.md"
- Technical Support: "swarms/support.md"
- Examples: - Examples:
- Overview: "examples/index.md" - Overview: "examples/index.md"
@ -488,7 +488,7 @@ nav:
- Understanding Swarms Architecture: "swarms/concept/framework_architecture.md" - Understanding Swarms Architecture: "swarms/concept/framework_architecture.md"
- Development Philosophy & Principles: "swarms/concept/philosophy.md" - Development Philosophy & Principles: "swarms/concept/philosophy.md"
- About Swarms: # - About Swarms:
- Vision & Mission: "swarms/concept/vision.md" # - Vision & Mission: "swarms/concept/vision.md"
- Swarm Ecosystem: "swarms/concept/swarm_ecosystem.md" # - Swarm Ecosystem: "swarms/concept/swarm_ecosystem.md"
- Products: "swarms/products.md" # - Products: "swarms/products.md"

@ -963,10 +963,16 @@ Remember: You are part of a team. Your response should reflect that you've read,
to respond to the user query. to respond to the user query.
""" """
# Filter out invalid agents # Filter out invalid agents
valid_agents = [name for name in mentioned_agents if name in self.agent_map] valid_agents = [
name
for name in mentioned_agents
if name in self.agent_map
]
if not valid_agents: if not valid_agents:
raise AgentNotFoundError("No valid agents found in the conversation") raise AgentNotFoundError(
"No valid agents found in the conversation"
)
# Randomly select exactly one agent to respond # Randomly select exactly one agent to respond
random_agent = random.choice(valid_agents) random_agent = random.choice(valid_agents)

Loading…
Cancel
Save