[FIX][Better Testing System]

pull/692/merge
Kye Gomez 3 weeks ago
parent 9abe300548
commit e98d618bd8

@ -255,6 +255,7 @@ nav:
# - An Analysis on Prompting Strategies: "swarms/prompts/overview.md" # - An Analysis on Prompting Strategies: "swarms/prompts/overview.md"
# - Managing Prompts in Production: "swarms/prompts/main.md" # - Managing Prompts in Production: "swarms/prompts/main.md"
- Community: - Community:
- Bounty Program: "corporate/bounty_program.md"
- Contributing: - Contributing:
- Contributing: "swarms/contributing.md" - Contributing: "swarms/contributing.md"
- Tests: "swarms/framework/test.md" - Tests: "swarms/framework/test.md"
@ -264,7 +265,6 @@ nav:
- Swarms 5.6.8: "swarms/changelog/5_6_8.md" - Swarms 5.6.8: "swarms/changelog/5_6_8.md"
- Swarms 5.8.1: "swarms/changelog/5_8_1.md" - Swarms 5.8.1: "swarms/changelog/5_8_1.md"
- Swarms 5.9.2: "swarms/changelog/changelog_new.md" - Swarms 5.9.2: "swarms/changelog/changelog_new.md"
- Bounty Program: "corporate/bounty_program.md"
- Corporate: - Corporate:
- Culture: "corporate/culture.md" - Culture: "corporate/culture.md"
- Hiring: "corporate/hiring.md" - Hiring: "corporate/hiring.md"

@ -69,7 +69,7 @@ psutil = "*"
sentry-sdk = "*" sentry-sdk = "*"
python-dotenv = "*" python-dotenv = "*"
PyYAML = "*" PyYAML = "*"
docstring_parser = "0.16" docstring_parser = "0.16" # TODO:
tiktoken = "*" tiktoken = "*"
networkx = "*" networkx = "*"
aiofiles = "*" aiofiles = "*"

@ -21,8 +21,6 @@ from typing import (
import toml import toml
import yaml import yaml
# from swarms.utils.loguru_logger import initialize_logger
from loguru import logger from loguru import logger
from pydantic import BaseModel from pydantic import BaseModel
from swarm_models.tiktoken_wrapper import TikTokenizer from swarm_models.tiktoken_wrapper import TikTokenizer
@ -500,10 +498,6 @@ class Agent:
if preset_stopping_token is not None: if preset_stopping_token is not None:
self.stopping_token = "<DONE>" self.stopping_token = "<DONE>"
# # Check the parameters
# # Telemetry Processor to log agent data
# threading.Thread(target=self.agent_initialization()).start
# If the docs exist then ingest the docs # If the docs exist then ingest the docs
if exists(self.docs): if exists(self.docs):
threading.Thread( threading.Thread(

@ -1,6 +1,5 @@
from typing import Literal from typing import Literal
# Literal of output types
# Literal of output types # Literal of output types
OutputType = Literal[ OutputType = Literal[
"all", "all",

@ -92,9 +92,6 @@ class SwarmsIssueReporter:
self.issues_created = [] self.issues_created = []
self.last_issue_time = datetime.now() self.last_issue_time = datetime.now()
# Validate GitHub token
# self._validate_github_credentials()
def _get_swarms_version(self) -> str: def _get_swarms_version(self) -> str:
"""Get the installed version of Swarms.""" """Get the installed version of Swarms."""
try: try:
@ -316,11 +313,6 @@ class SwarmsIssueReporter:
return None return None
# from swarms import Agent
# from swarm_models import OpenAIChat
# from swarms.utils.issue_reporter import SwarmsIssueReporter
# import os
# Setup the reporter with your GitHub token # Setup the reporter with your GitHub token
reporter = SwarmsIssueReporter( reporter = SwarmsIssueReporter(
github_token=os.getenv("GITHUB_API_KEY") github_token=os.getenv("GITHUB_API_KEY")

@ -1,11 +1,13 @@
import asyncio import asyncio
from swarms import Agent import json
from swarm_models import OpenAIChat
import os import os
import tempfile
import time import time
import json
import yaml import yaml
import tempfile from swarm_models import OpenAIChat
from swarms import Agent
def test_basic_agent_functionality(): def test_basic_agent_functionality():
Loading…
Cancel
Save