[CODE QUALITY]

pull/210/head
Kye 1 year ago
parent a443666501
commit 241838e7f5

@ -1,5 +1,3 @@
# System prompt # System prompt
FLOW_SYSTEM_PROMPT = """ FLOW_SYSTEM_PROMPT = """
You are an autonomous agent granted autonomy in a autonomous loop structure. You are an autonomous agent granted autonomy in a autonomous loop structure.

@ -1,4 +1,3 @@
# Prompts # Prompts
DYNAMIC_STOP_PROMPT = """ DYNAMIC_STOP_PROMPT = """

@ -20,10 +20,11 @@ from swarms.utils.pdf_to_text import pdf_to_text
from swarms.prompts.tools import ( from swarms.prompts.tools import (
DYNAMIC_STOP_PROMPT, DYNAMIC_STOP_PROMPT,
DYNAMICAL_TOOL_USAGE, DYNAMICAL_TOOL_USAGE,
SCENARIOS SCENARIOS,
) )
from swarms.prompts.agent_system_prompts import FLOW_SYSTEM_PROMPT from swarms.prompts.agent_system_prompts import FLOW_SYSTEM_PROMPT
def autonomous_agent_prompt( def autonomous_agent_prompt(
tools_prompt: str = DYNAMICAL_TOOL_USAGE, tools_prompt: str = DYNAMICAL_TOOL_USAGE,
dynamic_stop_prompt: str = DYNAMIC_STOP_PROMPT, dynamic_stop_prompt: str = DYNAMIC_STOP_PROMPT,

@ -43,6 +43,7 @@ def test_agent_run_task(llm):
assert "dashboard_data" in result assert "dashboard_data" in result
# Add more assertions as needed # Add more assertions as needed
@pytest.fixture @pytest.fixture
def task(): def task():
agents = [Agent(llm=llm, id=f"Agent_{i}") for i in range(5)] agents = [Agent(llm=llm, id=f"Agent_{i}") for i in range(5)]

Loading…
Cancel
Save