Skip to content

Commit

Permalink
Merge branch 'improve-ai-do' of https://github.com/ToolUse/tool-use-ai
Browse files Browse the repository at this point in the history
…into improve-ai-do
  • Loading branch information
MikeBirdTech committed Nov 14, 2024
2 parents ef8992d + a053328 commit 9fae4b0
Show file tree
Hide file tree
Showing 6 changed files with 409 additions and 2 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
pull_request:
types: [closed]
branches:
- main

permissions:
contents: write # Changed to write to allow version update commit

jobs:
deploy:
if: github.event.pull_request.merged == true # Only run if PR was merged
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for version calculation

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry python-semantic-release
poetry install
- name: Update version
id: version
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
semantic-release version
echo "new_version=$(semantic-release print-version)" >> $GITHUB_OUTPUT
- name: Build package
run: poetry build

- name: Publish package
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
run: poetry publish
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ Voice-based task organization tool that:
ai prioritize
```

### 7. Marketing Plan Generator (`ai marketing-plan`)

Use a swarm of AI agents to generate a marketing plan for your business.

```bash
ai marketing-plan
```

## Tool Use Tools (`tooluse` command)

### 1. Podcast RSS Reader (`tooluse`)
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,10 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
ai = "tool_use.cli:main"
tooluse = "tool_use.tooluse.cli:main"
tooluse = "tool_use.tooluse.cli:main"

[tool.semantic_release]
version_variable = ["pyproject.toml:tool.poetry.version"]
branch = "main"
commit_message = "chore: bump version to {version}"
build_command = "poetry build"
4 changes: 3 additions & 1 deletion src/tool_use/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import subprocess
import pkg_resources
from .scripts._script_dependencies import SCRIPT_DEPENDENCIES
from .scripts import ai_cli, cal, obsidian_plugin, convert, transcribe, prioritize, activity_tracker
from .scripts import ai_cli, cal, obsidian_plugin, convert, transcribe, prioritize, activity_tracker, marketing_agency
from .utils.config_wizard import setup_wizard, SCRIPT_INFO


Expand Down Expand Up @@ -43,6 +43,7 @@ def main():
"transcribe": "Transcribe and analyze audio",
"prioritize": "Brain dump and prioritize tasks",
"log": "Track your activities",
"marketing-plan": "Use a marketing agency of AI agents to create a marketing plan",
}

for name, help_text in all_scripts.items():
Expand Down Expand Up @@ -77,6 +78,7 @@ def main():
"transcribe": transcribe,
"prioritize": prioritize,
"log": activity_tracker,
"marketing-plan": marketing_agency,
}

# Run the appropriate script
Expand Down
1 change: 1 addition & 0 deletions src/tool_use/scripts/_script_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@
"openai>=1.12.0",
],
"log": [],
"marketing-plan": ["rich", "openai", "swarm"],
}
Loading

0 comments on commit 9fae4b0

Please sign in to comment.