Update test_comprehensive_test.py

pull/1101/head
CI-DEV 1 week ago committed by GitHub
parent 695510a11f
commit 4442ab5e03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -463,9 +463,7 @@ def test_spreadsheet_swarm():
def test_hierarchical_swarm():
"""Test HierarchicalSwarm structure"""
try:
from swarms.utils.function_caller_model import (
OpenAIFunctionCaller,
)
from swarms.utils.litellm_wrapper import LiteLLM
from swarms.structs.hiearchical_swarm import SwarmSpec
# Create worker agents
@ -481,9 +479,9 @@ def test_hierarchical_swarm():
]
# Create director agent with explicit knowledge of available agents
director = OpenAIFunctionCaller(
base_model=SwarmSpec,
api_key=API_KEY,
director = LiteLLM(
model_name="gpt-4o",
response_format=SwarmSpec,
system_prompt=(
"As the Director of this Hierarchical Agent Swarm, you coordinate tasks among agents. "
"You must ONLY assign tasks to the following available agents:\n"

Loading…
Cancel
Save