-
-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ui #711
base: master
Are you sure you want to change the base?
ui #711
Conversation
ui-v2 ui-v3 ui-v4 ui-v5 ui-v6 ui-v7 ui-v8 ui-v9 ui-v10 ui-v11 refactor: update agent prompts and remove deprecated entries feat: add simple_example.py file refactor: remove deprecated example files for agents and async processing Delete new_features_examples/new_spreadsheet_swarm_examples/workspace directory fix: ensure .env file is created if not found when saving API key
elif swarm_type in ["SequentialWorkflow", "ConcurrentWorkflow"]: | ||
return parse_sequential_workflow_output(data, error_display) | ||
elif swarm_type == "SpreadSheetSwarm": | ||
if os.path.exists(data): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
print(f"Parsing spreadsheet output from: {file_path}") | ||
|
||
try: | ||
with open(file_path, 'r', encoding='utf-8') as file: |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
@@ -0,0 +1,1811 @@ | |||
import os | |||
from dotenv import load_dotenv |
Check failure
Code scanning / Pyre
Undefined import Error
import json | ||
import time | ||
import asyncio | ||
import gradio as gr |
Check failure
Code scanning / Pyre
Undefined import Error
import re | ||
import csv # Import the csv module for csv parsing | ||
from swarms.utils.litellm_wrapper import LiteLLM | ||
from litellm import models_by_provider |
Check failure
Code scanning / Pyre
Undefined import Error
dynamic_temp: float, | ||
swarm_type: str, | ||
agent_keys: List[str], | ||
flow: str = None, |
Check failure
Code scanning / Pyre
Incompatible variable type Error
flow: str = None, | ||
model_name: str = "gpt-4o", | ||
provider: str = "openai", | ||
api_key: str = None, |
Check failure
Code scanning / Pyre
Incompatible variable type Error
agents: dict = None, | ||
log_display=None, | ||
error_display=None | ||
) -> AsyncGenerator[Tuple[Any, Optional["SwarmRouter"], str], None]: # Changed the return type here |
Check failure
Code scanning / Pyre
Undefined or invalid type Error
# Initialize agents | ||
try: | ||
if not agents: | ||
agents = initialize_agents( |
Check failure
Code scanning / Pyre
Incompatible variable type Error
logger.info(f"{swarm_type} task executed successfully.") | ||
yield result, None, "" | ||
return | ||
except asyncio.TimeoutError as e: |
Check failure
Code scanning / Pyre
Undefined attribute Error
yield result, None, "" | ||
return | ||
except asyncio.TimeoutError as e: | ||
logger.error(f"Task execution timed out after {timeout} seconds", exc_info=True) |
Check failure
Code scanning / Pyre
Uninitialized local Error
return | ||
except asyncio.TimeoutError as e: | ||
logger.error(f"Task execution timed out after {timeout} seconds", exc_info=True) | ||
yield f"Task execution timed out after {timeout} seconds", gr.update(visible=True), "" |
Check failure
Code scanning / Pyre
Uninitialized local Error
log
ui-v2
ui-v3
ui-v4
ui-v5
ui-v6
ui-v7
ui-v8
ui-v9
ui-v10
ui-v11
refactor: update agent prompts and remove deprecated entries
feat: add simple_example.py file
refactor: remove deprecated example files for agents and async processing
Delete new_features_examples/new_spreadsheet_swarm_examples/workspace directory
fix: ensure .env file is created if not found when saving API key
Thank you for contributing to Swarms!
Replace this comment with:
Please make sure your PR is passing linting and testing before submitting. Run
make format
,make lint
andmake test
to check this locally.See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/kyegomez/swarms/blob/master/CONTRIBUTING.md
If you're adding a new integration, please include:
Maintainer responsibilities:
If no one reviews your PR within a few days, feel free to email Kye at [email protected]
See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/kyegomez/swarms
📚 Documentation preview 📚: https://swarms--711.org.readthedocs.build/en/711/