Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jmikedupont2
Copy link

@jmikedupont2 jmikedupont2 commented Dec 31, 2024

git remote add name url
git fetch --all

git checkout -b harshalmore31_master harshalmore31/master
git rebase upstream/master

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:

  • Description: a description of the change,
  • Issue: the issue # it fixes (if applicable),
  • Dependencies: any dependencies required for this change,
  • Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
  • Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!

Please make sure your PR is passing linting and testing before submitting. Run make format, make lint and make 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:

  1. a test for the integration, preferably unit tests that do not rely on network access,
  2. an example notebook showing its use.

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/

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
print(f"Parsing spreadsheet output from: {file_path}")

try:
with open(file_path, 'r', encoding='utf-8') as file:

Check failure

Code scanning / Bearer

Unsanitized dynamic input in file path Error

Unsanitized dynamic input in file path
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

This path depends on a
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

This path depends on a
user-provided value
.
@@ -0,0 +1,1811 @@
import os
from dotenv import load_dotenv

Check failure

Code scanning / Pyre

Undefined import Error

Undefined import [21]: Could not find a module corresponding to import dotenv.
import json
import time
import asyncio
import gradio as gr

Check failure

Code scanning / Pyre

Undefined import Error

Undefined import [21]: Could not find a module corresponding to import gradio.
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

Undefined import [21]: Could not find a module corresponding to import litellm.
dynamic_temp: float,
swarm_type: str,
agent_keys: List[str],
flow: str = None,

Check failure

Code scanning / Pyre

Incompatible variable type Error

Incompatible variable type [9]: flow is declared to have type str but is used as type None.
flow: str = None,
model_name: str = "gpt-4o",
provider: str = "openai",
api_key: str = None,

Check failure

Code scanning / Pyre

Incompatible variable type Error

Incompatible variable type [9]: api_key is declared to have type str but is used as type None.
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

Undefined or invalid type [11]: Annotation SwarmRouter is not defined as a type.
# Initialize agents
try:
if not agents:
agents = initialize_agents(

Check failure

Code scanning / Pyre

Incompatible variable type Error

Incompatible variable type [9]: agents is declared to have type Dict[typing.Any, typing.Any] but is used as type List[Agent].
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

Undefined attribute [16]: Module builtins has no attribute TimeoutError.
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

Uninitialized local [61]: Local variable timeout is undefined, or not always defined.
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

Uninitialized local [61]: Local variable timeout is undefined, or not always defined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants