[LLMCouncil][Fix import issue with agent]

pull/1201/merge
Kye Gomez 4 days ago
parent 688772e99b
commit 31e3043059

@ -1,6 +1,5 @@
from swarms.structs.llm_council import LLMCouncil from swarms.structs.llm_council import LLMCouncil
# Example usage of the LLM Council without a function:
# Create the council # Create the council
council = LLMCouncil(verbose=True) council = LLMCouncil(verbose=True)
@ -14,9 +13,6 @@ result = council.run(query)
print(result["final_response"]) print(result["final_response"])
# Optionally print evaluations # Optionally print evaluations
print("\n\n" + "="*80)
print("EVALUATIONS")
print("="*80)
for name, evaluation in result["evaluations"].items(): for name, evaluation in result["evaluations"].items():
print(f"\n{name}:") print(f"\n{name}:")
print(evaluation[:500] + "..." if len(evaluation) > 500 else evaluation) print(evaluation[:500] + "..." if len(evaluation) > 500 else evaluation)

@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry] [tool.poetry]
name = "swarms" name = "swarms"
version = "8.6.4" version = "8.6.5"
description = "Swarms - TGSC" description = "Swarms - TGSC"
license = "MIT" license = "MIT"
authors = ["Kye Gomez <kye@swarms.world>"] authors = ["Kye Gomez <kye@swarms.world>"]

@ -12,7 +12,7 @@ often selecting responses from other models as superior to their own.
from typing import Dict, List, Optional from typing import Dict, List, Optional
import random import random
from swarms import Agent from swarms.structs.agent import Agent
from swarms.structs.multi_agent_exec import ( from swarms.structs.multi_agent_exec import (
run_agents_concurrently, run_agents_concurrently,
batched_grid_agent_execution, batched_grid_agent_execution,

Loading…
Cancel
Save