kyegomez / swarms

The Enterprise-Grade Production-Ready Multi-Agent Orchestration Framework Join our Community: https://discord.com/servers/agora-999382051935506503
https://docs.swarms.world
GNU Affero General Public License v3.0
1.81k stars 248 forks source link

`artifacts_main` directory missing? #521

Closed aimzieslol closed 4 weeks ago

aimzieslol commented 4 months ago

Context

git cloned the project into Google Colab. Used pip install -e . to make sure the requirements were in the environment. Added swarms to the sys.path.

Problem

There doesn't seem to be an artifact_main.py in the artifacts directory which causes the imports to fail here:

https://github.com/kyegomez/swarms/blob/9366437976a1be45d7f60c7d4af22e41a3c67276/swarms/artifacts/__init__.py#L3

Telemetry

As a side note, please document the ability to opt out of the embedded telemetry initialized here:

def activate_sentry():
    if use_telementry == "True":
        sentry_sdk.init(
            dsn="https://5d72dd59551c02f78391d2ea5872ddd4@o4504578305490944.ingest.us.sentry.io/4506951704444928",
            traces_sample_rate=1.0,
            profiles_sample_rate=1.0,
            enable_tracing=True,
            debug=True,
        )

I know it means a lot to some people the fact they can use os.environ['USE_TELEMETRY'] = False to opt out. I, personally, don't care; you've done great work and are offering this for free so more power to ya.

Upvote & Fund

Fund with Polar

evelynmitchell commented 4 months ago

I believe the Artifacts import problem has been fixed. Can you update and try again?

evelynmitchell commented 4 months ago

I'll submit a doc patch for the telemetry issue. The brief answer is to set the environment variable:

USE_TELEMETRY="False"

to turn off telemetry and

USE_TELEMETRY="True"

to turn it on.