hhcs docs cleanup

pull/800/head
Kye Gomez 4 weeks ago
parent f5896c4be9
commit 5285b41ef5

@ -116,37 +116,55 @@ flowchart TD
## Use Case Recommendations
1. **HHCS**: Best for:
- Enterprise-scale operations
- Multi-domain problems
- Complex task routing
- Parallel processing needs
2. **Auto Agent Builder**: Best for:
- Dynamic workloads
- Evolving requirements
- Research and development
- Exploratory tasks
3. **SwarmRouter**: Best for:
- General purpose tasks
- Quick deployment
- Mixed workflow types
- Smaller scale operations
### **HHCS**: Best for:
- Enterprise-scale operations
- Multi-domain problems
- Complex task routing
- Parallel processing needs
### **Auto Agent Builder**: Best for:
- Dynamic workloads
- Evolving requirements
- Research and development
- Exploratory tasks
### **SwarmRouter**: Best for:
- General purpose tasks
- Quick deployment
- Mixed workflow types
- Smaller scale operations
## Documentation Links
1. HHCS Documentation:
- [Hybrid Hierarchical-Cluster Swarm Documentation](https://docs.swarms.world/en/latest/swarms/structs/hhcs/)
- Covers detailed implementation, constructor arguments, and full examples
### HHCS Documentation:
- [Hybrid Hierarchical-Cluster Swarm Documentation](https://docs.swarms.world/en/latest/swarms/structs/hhcs/)
2. Auto Agent Builder Documentation:
- [Agent Builder Documentation](https://docs.swarms.world/en/latest/swarms/structs/auto_agent_builder/)
- Includes enterprise use cases, best practices, and integration patterns
- Covers detailed implementation, constructor arguments, and full examples
### Auto Agent Builder Documentation:
- [Agent Builder Documentation](https://docs.swarms.world/en/latest/swarms/structs/auto_agent_builder/)
- Includes enterprise use cases, best practices, and integration patterns
3. SwarmRouter Documentation:
- [SwarmRouter Documentation](https://docs.swarms.world/en/latest/swarms/structs/swarm_router/)
- Provides comprehensive API reference, advanced usage, and use cases
- [SwarmRouter Documentation](https://docs.swarms.world/en/latest/swarms/structs/swarm_router/)
- Provides comprehensive API reference, advanced usage, and use cases
## Best Practices for Selection

@ -0,0 +1,57 @@
from typing import Any, Dict, List, Optional
from pydantic import BaseModel
class PropertySchema(BaseModel):
type: str
description: Optional[str] = None
enum: Optional[List[str]] = None
items: Optional[Dict[str, Any]] = None
properties: Optional[Dict[str, "PropertySchema"]] = None
required: Optional[List[str]] = None
class ParameterSchema(BaseModel):
type: str
properties: Dict[str, PropertySchema]
required: Optional[List[str]] = None
class FunctionDefinition(BaseModel):
name: str
description: str
parameters: ParameterSchema
class Tool(BaseModel):
type: str
function: FunctionDefinition
class ToolSet(BaseModel):
tools: List[Tool]
model = ToolSet(
tools=[
Tool(
type="function",
function=FunctionDefinition(
name="test",
description="test",
parameters=ParameterSchema(
type="object",
properties={
"weather_tool": PropertySchema(
type="string",
description="Get the weather in a given location",
)
},
required=["weather_tool"],
),
),
),
]
)
print(model.model_dump_json(indent=4))
Loading…
Cancel
Save