Skip to content

Commit 5270d1f

Browse files
authored
Initial commit
0 parents  commit 5270d1f

26 files changed

+1172
-0
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Set your task in the .env file or pass it in the yaml file on the bottom `task:`
2+
WORKSPACE_DIR="agent_workspace"
3+
GROQ_API_KEY=""

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
# These are supported funding model platforms
3+
github: [kyegomez]
4+
# patreon: # Replace with a single Patreon username
5+
# open_collective: # Replace with a single Open Collective username
6+
# ko_fi: # Replace with a single Ko-fi username
7+
# tidelift: # Replace with a single Tidelift platform-name/package-name
8+
# community_bridge: # Replace with a single Community Bridge project-name
9+
# liberapay: # Replace with a single Liberapay username
10+
# issuehunt: # Replace with a single IssueHunt username
11+
# otechie: # Replace with a single Otechie username
12+
# lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name
13+
# custom: #Nothing
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG] "
5+
labels: bug
6+
assignees: kyegomez
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Additional context**
27+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: 'kyegomez'
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Thank you for contributing to Swarms!
2+
3+
Replace this comment with:
4+
- Description: a description of the change,
5+
- Issue: the issue # it fixes (if applicable),
6+
- Dependencies: any dependencies required for this change,
7+
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
8+
- 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!
9+
10+
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
11+
12+
See contribution guidelines for more information on how to write/run tests, lint, etc:
13+
https://github.com/kyegomez/swarms/blob/master/CONTRIBUTING.md
14+
15+
If you're adding a new integration, please include:
16+
1. a test for the integration, preferably unit tests that do not rely on network access,
17+
2. an example notebook showing its use.
18+
19+
20+
Maintainer responsibilities:
21+
- General / Misc / if you don't know who to tag: kye@apac.ai
22+
- DataLoaders / VectorStores / Retrievers: kye@apac.ai
23+
- swarms.models: kye@apac.ai
24+
- swarms.memory: kye@apac.ai
25+
- swarms.structures: kye@apac.ai
26+
27+
If no one reviews your PR within a few days, feel free to email Kye at kye@apac.ai
28+
29+
See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/kyegomez/swarms

.github/action.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: "Init Environment"
3+
description: "Initialize environment for tests"
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Checkout actions
8+
uses: actions/checkout@v3
9+
- name: Set up Python ${{ matrix.python-version }}
10+
uses: actions/setup-python@v4
11+
with:
12+
python-version: ${{ matrix.python-version }}
13+
- name: Install and configure Poetry
14+
uses: snok/install-poetry@v1
15+
with:
16+
virtualenvs-create: true
17+
virtualenvs-in-project: true
18+
installer-parallel: true
19+
- name: Load cached venv
20+
id: cached-poetry-dependencies
21+
uses: actions/cache@v3
22+
with:
23+
path: .venv
24+
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{hashFiles('**/poetry.lock') }}
25+
- name: Install dependencies
26+
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
27+
run: poetry install --no-interaction --no-root --with test --with dev --all-extras
28+
shell: bash
29+
- name: Activate venv
30+
run: |
31+
source .venv/bin/activate
32+
echo PATH=$PATH >> $GITHUB_ENV
33+
shell: bash

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
3+
version: 2
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"
9+
- package-ecosystem: "pip"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"

.github/labeler.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
documentation:
3+
- changed-files:
4+
- any-glob-to-any-file: ["docs/**", "*.md"]
5+
tests:
6+
- changed-files:
7+
- any-glob-to-any-file: "tests/**"
8+
agents:
9+
- changed-files:
10+
- any-glob-to-any-file: "swarms/agents/**"
11+
artifacts:
12+
- changed-files:
13+
- any-glob-to-any-file: "swarms/artifacts/**"
14+
memory:
15+
- changed-files:
16+
- any-glob-to-any-file: "swarms/memory/**"
17+
models:
18+
- changed-files:
19+
- any-glob-to-any-file: "swarms/models/**"
20+
prompts:
21+
- changed-files:
22+
- any-glob-to-any-file: "swarms/prompts/**"
23+
structs:
24+
- changed-files:
25+
- any-glob-to-any-file: "swarms/structs/**"
26+
telemetry:
27+
- changed-files:
28+
- any-glob-to-any-file: "swarms/telemetry/**"
29+
tools:
30+
- changed-files:
31+
- any-glob-to-any-file: "swarms/tools/**"
32+
utils:
33+
- changed-files:
34+
- any-glob-to-any-file: "swarms/utils/**"

.github/workflows/RELEASE.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: release
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
branches:
8+
- master
9+
paths:
10+
- "pyproject.toml"
11+
env:
12+
POETRY_VERSION: "1.4.2"
13+
jobs:
14+
if_release:
15+
if: |
16+
${{ github.event.pull_request.merged == true }}
17+
&& ${{ contains(github.event.pull_request.labels.*.name, 'release') }}
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Install poetry
22+
run: pipx install poetry==$POETRY_VERSION
23+
- name: Set up Python 3.9
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: "3.9"
27+
cache: "poetry"
28+
- name: Build project for distribution
29+
run: poetry build
30+
- name: Check Version
31+
id: check-version
32+
run: |
33+
echo version=$(poetry version --short) >> $GITHUB_OUTPUT
34+
- name: Create Release
35+
uses: ncipollo/release-action@v1
36+
with:
37+
artifacts: "dist/*"
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+
draft: false
40+
generateReleaseNotes: true
41+
tag: v${{ steps.check-version.outputs.version }}
42+
commit: master
43+
- name: Publish to PyPI
44+
env:
45+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
46+
run: |-
47+
poetry publish

.github/workflows/autofix.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: autofix.ci
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: ["main"]
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
autofix:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: actions/setup-go@v5
17+
- run: go install github.com/google/yamlfmt/cmd/yamlfmt@latest
18+
- run: yamlfmt .
19+
20+
- uses: actions/setup-python@v5
21+
- run: pip install ruff
22+
- run: ruff format .
23+
- run: ruff check --fix .
24+
25+
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a

0 commit comments

Comments
 (0)