Building AI agents, atomically
re-organize into a monorepo
KennyVaneetvelded88c71cabda7
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.ymldeleted file mode 100644index 063e567..0000000--- a/.github/workflows/python-package.yml+++ /dev/null@@ -1,42 +0,0 @@-# This workflow will install Python dependencies, run tests and lint with a variety of Python versions-# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python--name: Python package--on:- push:- branches: [ "main" ]- pull_request:- branches: [ "main" ]--jobs:- build:-- runs-on: ubuntu-latest- strategy:- fail-fast: false- matrix:- python-version: ["3.9", "3.10", "3.11"]-- steps:- - uses: actions/checkout@v4- - name: Set up Python ${{ matrix.python-version }}- uses: actions/setup-python@v3- with:- python-version: ${{ matrix.python-version }}- - name: Install dependencies- run: |- python -m pip install --upgrade pip- python -m pip install flake8 pytest black- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi- pip install -e .- - name: Check Black formatting- run: |- black --check --diff atomic_agents- - name: Lint with flake8- run: |- # stop the build if there are Python syntax errors or undefined names- flake8 atomic_agents- - name: Test with pytest- run: |- pytest --import-mode=importlib --cov atomic_agents\ No newline at end of filediff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.ymldeleted file mode 100644index 24f603b..0000000--- a/.github/workflows/python-publish.yml+++ /dev/null@@ -1,34 +0,0 @@-name: Upload Python Package--on:- release:- types: [published]--permissions:- contents: read--jobs:- deploy:- runs-on: ubuntu-latest-- steps:- - uses: actions/checkout@v4-- - 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 build-- - name: Build package- run: python -m build-- - name: Publish package- uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29- with:- user: __token__- password: ${{ secrets.PYPI_API_TOKEN }}diff --git a/.assets/architecture_highlevel_overview.png b/atomic-agents/.assets/architecture_highlevel_overview.pngsimilarity index 100%rename from .assets/architecture_highlevel_overview.pngrename to atomic-agents/.assets/architecture_highlevel_overview.pngdiff --git a/.assets/docs.png b/atomic-agents/.assets/docs.pngsimilarity index 100%rename from .assets/docs.pngrename to atomic-agents/.assets/docs.pngdiff --git a/.assets/logo.png b/atomic-agents/.assets/logo.pngsimilarity index 100%rename from .assets/logo.pngrename to atomic-agents/.assets/logo.pngdiff --git a/.assets/what_is_sent_in_prompt.png b/atomic-agents/.assets/what_is_sent_in_prompt.pngsimilarity index 100%rename from .assets/what_is_sent_in_prompt.pngrename to atomic-agents/.assets/what_is_sent_in_prompt.pngdiff --git a/.coveragerc b/atomic-agents/.coveragercsimilarity index 100%rename from .coveragercrename to atomic-agents/.coveragercdiff --git a/.flake8 b/atomic-agents/.flake8similarity index 100%rename from .flake8rename to atomic-agents/.flake8diff --git a/.gitignore b/atomic-agents/.gitignoresimilarity index 100%rename from .gitignorerename to atomic-agents/.gitignorediff --git a/LICENSE b/atomic-agents/LICENSEsimilarity index 100%rename from LICENSErename to atomic-agents/LICENSEdiff --git a/MANIFEST.in b/atomic-agents/MANIFEST.insimilarity index 100%rename from MANIFEST.inrename to atomic-agents/MANIFEST.indiff --git a/README.md b/atomic-agents/README.mdsimilarity index 100%rename from README.mdrename to atomic-agents/README.mddiff --git a/atomic_agents/__init__.py b/atomic-agents/atomic_agents/__init__.pysimilarity index 100%rename from atomic_agents/__init__.pyrename to atomic-agents/atomic_agents/__init__.pydiff --git a/atomic_agents/agents/__init__.py b/atomic-agents/atomic_agents/agents/__init__.pysimilarity index 100%rename from atomic_agents/agents/__init__.pyrename to atomic-agents/atomic_agents/agents/__init__.pydiff --git a/atomic_agents/agents/base_agent.py b/atomic-agents/atomic_agents/agents/base_agent.pysimilarity index 100%rename from atomic_agents/agents/base_agent.pyrename to atomic-agents/atomic_agents/agents/base_agent.pydiff --git a/atomic_agents/agents/tool_interface_agent.py b/atomic-agents/atomic_agents/agents/tool_interface_agent.pysimilarity index 100%rename from atomic_agents/agents/tool_interface_agent.pyrename to atomic-agents/atomic_agents/agents/tool_interface_agent.pydiff --git a/atomic_agents/lib/__init__.py b/atomic-agents/atomic_agents/lib/__init__.pysimilarity index 100%rename from atomic_agents/lib/__init__.pyrename to atomic-agents/atomic_agents/lib/__init__.pydiff --git a/atomic_agents/lib/components/__init__.py b/atomic-agents/atomic_agents/lib/components/__init__.pysimilarity index 100%rename from atomic_agents/lib/components/__init__.pyrename to atomic-agents/atomic_agents/lib/components/__init__.pydiff --git a/atomic_agents/lib/components/agent_memory.py b/atomic-agents/atomic_agents/lib/components/agent_memory.pysimilarity index 100%rename from atomic_agents/lib/components/agent_memory.pyrename to atomic-agents/atomic_agents/lib/components/agent_memory.pydiff --git a/atomic_agents/lib/components/system_prompt_generator.py b/atomic-agents/atomic_agents/lib/components/system_prompt_generator.pysimilarity index 100%rename from atomic_agents/lib/components/system_prompt_generator.pyrename to atomic-agents/atomic_agents/lib/components/system_prompt_generator.pydiff --git a/atomic_agents/lib/models/__init__.py b/atomic-agents/atomic_agents/lib/models/__init__.pysimilarity index 100%rename from atomic_agents/lib/models/__init__.pyrename to atomic-agents/atomic_agents/lib/models/__init__.pydiff --git a/atomic_agents/lib/models/web_document.py b/atomic-agents/atomic_agents/lib/models/web_document.pysimilarity index 100%rename from atomic_agents/lib/models/web_document.pyrename to atomic-agents/atomic_agents/lib/models/web_document.pydiff --git a/atomic_agents/lib/tools/__init__.py b/atomic-agents/atomic_agents/lib/tools/__init__.pysimilarity index 100%rename from atomic_agents/lib/tools/__init__.pyrename to atomic-agents/atomic_agents/lib/tools/__init__.pydiff --git a/atomic_agents/lib/tools/base_tool.py b/atomic-agents/atomic_agents/lib/tools/base_tool.pysimilarity index 100%rename from atomic_agents/lib/tools/base_tool.pyrename to atomic-agents/atomic_agents/lib/tools/base_tool.pydiff --git a/atomic_agents/lib/tools/calculator_tool.py b/atomic-agents/atomic_agents/lib/tools/calculator_tool.pysimilarity index 100%rename from atomic_agents/lib/tools/calculator_tool.pyrename to atomic-agents/atomic_agents/lib/tools/calculator_tool.pydiff --git a/atomic_agents/lib/tools/content_scraping_tool.py b/atomic-agents/atomic_agents/lib/tools/content_scraping_tool.pysimilarity index 100%rename from atomic_agents/lib/tools/content_scraping_tool.pyrename to atomic-agents/atomic_agents/lib/tools/content_scraping_tool.pydiff --git a/atomic_agents/lib/tools/search/searxng_tool.py b/atomic-agents/atomic_agents/lib/tools/search/searxng_tool.pysimilarity index 100%rename from atomic_agents/lib/tools/search/searxng_tool.pyrename to atomic-agents/atomic_agents/lib/tools/search/searxng_tool.pydiff --git a/atomic_agents/lib/tools/search/serper_tool.py b/atomic-agents/atomic_agents/lib/tools/search/serper_tool.pysimilarity index 100%rename from atomic_agents/lib/tools/search/serper_tool.pyrename to atomic-agents/atomic_agents/lib/tools/search/serper_tool.pydiff --git a/atomic_agents/lib/tools/yelp_restaurant_finder_tool.py b/atomic-agents/atomic_agents/lib/tools/yelp_restaurant_finder_tool.pysimilarity index 100%rename from atomic_agents/lib/tools/yelp_restaurant_finder_tool.pyrename to atomic-agents/atomic_agents/lib/tools/yelp_restaurant_finder_tool.pydiff --git a/atomic_agents/lib/tools/yt_transcript_scraper_tool.py b/atomic-agents/atomic_agents/lib/tools/yt_transcript_scraper_tool.pysimilarity index 100%rename from atomic_agents/lib/tools/yt_transcript_scraper_tool.pyrename to atomic-agents/atomic_agents/lib/tools/yt_transcript_scraper_tool.pydiff --git a/atomic_agents/lib/utils/__init__.py b/atomic-agents/atomic_agents/lib/utils/__init__.pysimilarity index 100%rename from atomic_agents/lib/utils/__init__.pyrename to atomic-agents/atomic_agents/lib/utils/__init__.pydiff --git a/atomic_agents/lib/utils/format_tool_message.py b/atomic-agents/atomic_agents/lib/utils/format_tool_message.pysimilarity index 100%rename from atomic_agents/lib/utils/format_tool_message.pyrename to atomic-agents/atomic_agents/lib/utils/format_tool_message.pydiff --git a/atomic_agents/lib/utils/scraping/__init__.py b/atomic-agents/atomic_agents/lib/utils/scraping/__init__.pysimilarity index 100%rename from atomic_agents/lib/utils/scraping/__init__.pyrename to atomic-agents/atomic_agents/lib/utils/scraping/__init__.pydiff --git a/atomic_agents/lib/utils/scraping/pdf_to_markdown.py b/atomic-agents/atomic_agents/lib/utils/scraping/pdf_to_markdown.pysimilarity index 100%rename from atomic_agents/lib/utils/scraping/pdf_to_markdown.pyrename to atomic-agents/atomic_agents/lib/utils/scraping/pdf_to_markdown.pydiff --git a/atomic_agents/lib/utils/scraping/url_to_markdown.py b/atomic-agents/atomic_agents/lib/utils/scraping/url_to_markdown.pysimilarity index 100%rename from atomic_agents/lib/utils/scraping/url_to_markdown.pyrename to atomic-agents/atomic_agents/lib/utils/scraping/url_to_markdown.pydiff --git a/docs/README.md b/atomic-agents/docs/README.mdsimilarity index 100%rename from docs/README.mdrename to atomic-agents/docs/README.mddiff --git a/docs/api/README.md b/atomic-agents/docs/api/README.mdsimilarity index 100%rename from docs/api/README.mdrename to atomic-agents/docs/api/README.mddiff --git a/docs/api/atomic_agents/agents/base_agent.md b/atomic-agents/docs/api/atomic_agents/agents/base_agent.mdsimilarity index 100%rename from docs/api/atomic_agents/agents/base_agent.mdrename to atomic-agents/docs/api/atomic_agents/agents/base_agent.mddiff --git a/docs/api/atomic_agents/agents/index.md b/atomic-agents/docs/api/atomic_agents/agents/index.mdsimilarity index 100%rename from docs/api/atomic_agents/agents/index.mdrename to atomic-agents/docs/api/atomic_agents/agents/index.mddiff --git a/docs/api/atomic_agents/agents/tool_interface_agent.md b/atomic-agents/docs/api/atomic_agents/agents/tool_interface_agent.mdsimilarity index 100%rename from docs/api/atomic_agents/agents/tool_interface_agent.mdrename to atomic-agents/docs/api/atomic_agents/agents/tool_interface_agent.mddiff --git a/docs/api/atomic_agents/index.md b/atomic-agents/docs/api/atomic_agents/index.mdsimilarity index 100%rename from docs/api/atomic_agents/index.mdrename to atomic-agents/docs/api/atomic_agents/index.mddiff --git a/docs/api/atomic_agents/lib/components/agent_memory.md b/atomic-agents/docs/api/atomic_agents/lib/components/agent_memory.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/components/agent_memory.mdrename to atomic-agents/docs/api/atomic_agents/lib/components/agent_memory.mddiff --git a/docs/api/atomic_agents/lib/components/index.md b/atomic-agents/docs/api/atomic_agents/lib/components/index.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/components/index.mdrename to atomic-agents/docs/api/atomic_agents/lib/components/index.mddiff --git a/docs/api/atomic_agents/lib/components/system_prompt_generator.md b/atomic-agents/docs/api/atomic_agents/lib/components/system_prompt_generator.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/components/system_prompt_generator.mdrename to atomic-agents/docs/api/atomic_agents/lib/components/system_prompt_generator.mddiff --git a/docs/api/atomic_agents/lib/index.md b/atomic-agents/docs/api/atomic_agents/lib/index.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/index.mdrename to atomic-agents/docs/api/atomic_agents/lib/index.mddiff --git a/docs/api/atomic_agents/lib/models/index.md b/atomic-agents/docs/api/atomic_agents/lib/models/index.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/models/index.mdrename to atomic-agents/docs/api/atomic_agents/lib/models/index.mddiff --git a/docs/api/atomic_agents/lib/models/web_document.md b/atomic-agents/docs/api/atomic_agents/lib/models/web_document.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/models/web_document.mdrename to atomic-agents/docs/api/atomic_agents/lib/models/web_document.mddiff --git a/docs/api/atomic_agents/lib/tools/base_tool.md b/atomic-agents/docs/api/atomic_agents/lib/tools/base_tool.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/tools/base_tool.mdrename to atomic-agents/docs/api/atomic_agents/lib/tools/base_tool.mddiff --git a/docs/api/atomic_agents/lib/tools/calculator_tool.md b/atomic-agents/docs/api/atomic_agents/lib/tools/calculator_tool.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/tools/calculator_tool.mdrename to atomic-agents/docs/api/atomic_agents/lib/tools/calculator_tool.mddiff --git a/docs/api/atomic_agents/lib/tools/content_scraping_tool.md b/atomic-agents/docs/api/atomic_agents/lib/tools/content_scraping_tool.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/tools/content_scraping_tool.mdrename to atomic-agents/docs/api/atomic_agents/lib/tools/content_scraping_tool.mddiff --git a/docs/api/atomic_agents/lib/tools/index.md b/atomic-agents/docs/api/atomic_agents/lib/tools/index.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/tools/index.mdrename to atomic-agents/docs/api/atomic_agents/lib/tools/index.mddiff --git a/docs/api/atomic_agents/lib/tools/yelp_restaurant_finder_tool.md b/atomic-agents/docs/api/atomic_agents/lib/tools/yelp_restaurant_finder_tool.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/tools/yelp_restaurant_finder_tool.mdrename to atomic-agents/docs/api/atomic_agents/lib/tools/yelp_restaurant_finder_tool.mddiff --git a/docs/api/atomic_agents/lib/tools/yt_transcript_scraper_tool.md b/atomic-agents/docs/api/atomic_agents/lib/tools/yt_transcript_scraper_tool.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/tools/yt_transcript_scraper_tool.mdrename to atomic-agents/docs/api/atomic_agents/lib/tools/yt_transcript_scraper_tool.mddiff --git a/docs/api/atomic_agents/lib/utils/format_tool_message.md b/atomic-agents/docs/api/atomic_agents/lib/utils/format_tool_message.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/utils/format_tool_message.mdrename to atomic-agents/docs/api/atomic_agents/lib/utils/format_tool_message.mddiff --git a/docs/api/atomic_agents/lib/utils/index.md b/atomic-agents/docs/api/atomic_agents/lib/utils/index.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/utils/index.mdrename to atomic-agents/docs/api/atomic_agents/lib/utils/index.mddiff --git a/docs/api/atomic_agents/lib/utils/scraping/index.md b/atomic-agents/docs/api/atomic_agents/lib/utils/scraping/index.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/utils/scraping/index.mdrename to atomic-agents/docs/api/atomic_agents/lib/utils/scraping/index.mddiff --git a/docs/api/atomic_agents/lib/utils/scraping/pdf_to_markdown.md b/atomic-agents/docs/api/atomic_agents/lib/utils/scraping/pdf_to_markdown.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/utils/scraping/pdf_to_markdown.mdrename to atomic-agents/docs/api/atomic_agents/lib/utils/scraping/pdf_to_markdown.mddiff --git a/docs/api/atomic_agents/lib/utils/scraping/url_to_markdown.md b/atomic-agents/docs/api/atomic_agents/lib/utils/scraping/url_to_markdown.mdsimilarity index 100%rename from docs/api/atomic_agents/lib/utils/scraping/url_to_markdown.mdrename to atomic-agents/docs/api/atomic_agents/lib/utils/scraping/url_to_markdown.mddiff --git a/docs/guides/agents.md b/atomic-agents/docs/guides/agents.mdsimilarity index 100%rename from docs/guides/agents.mdrename to atomic-agents/docs/guides/agents.mddiff --git a/docs/guides/creating_a_new_tool.md b/atomic-agents/docs/guides/creating_a_new_tool.mdsimilarity index 100%rename from docs/guides/creating_a_new_tool.mdrename to atomic-agents/docs/guides/creating_a_new_tool.mddiff --git a/examples/basic_custom_chatbot.py b/atomic-agents/examples/basic_custom_chatbot.pysimilarity index 100%rename from examples/basic_custom_chatbot.pyrename to atomic-agents/examples/basic_custom_chatbot.pydiff --git a/examples/conversing_agents.py b/atomic-agents/examples/conversing_agents.pysimilarity index 100%rename from examples/conversing_agents.pyrename to atomic-agents/examples/conversing_agents.pydiff --git a/examples/deep_research_multi_agent/agents/info_refiner_agent.py b/atomic-agents/examples/deep_research_multi_agent/agents/info_refiner_agent.pysimilarity index 100%rename from examples/deep_research_multi_agent/agents/info_refiner_agent.pyrename to atomic-agents/examples/deep_research_multi_agent/agents/info_refiner_agent.pydiff --git a/examples/deep_research_multi_agent/agents/query_agent.py b/atomic-agents/examples/deep_research_multi_agent/agents/query_agent.pysimilarity index 100%rename from examples/deep_research_multi_agent/agents/query_agent.pyrename to atomic-agents/examples/deep_research_multi_agent/agents/query_agent.pydiff --git a/examples/deep_research_multi_agent/agents/question_answering_agent.py b/atomic-agents/examples/deep_research_multi_agent/agents/question_answering_agent.pysimilarity index 100%rename from examples/deep_research_multi_agent/agents/question_answering_agent.pyrename to atomic-agents/examples/deep_research_multi_agent/agents/question_answering_agent.pydiff --git a/examples/deep_research_multi_agent/agents/top_urls_selector_agent.py b/atomic-agents/examples/deep_research_multi_agent/agents/top_urls_selector_agent.pysimilarity index 100%rename from examples/deep_research_multi_agent/agents/top_urls_selector_agent.pyrename to atomic-agents/examples/deep_research_multi_agent/agents/top_urls_selector_agent.pydiff --git a/examples/deep_research_multi_agent/in_memory_faiss.py b/atomic-agents/examples/deep_research_multi_agent/in_memory_faiss.pysimilarity index 100%rename from examples/deep_research_multi_agent/in_memory_faiss.pyrename to atomic-agents/examples/deep_research_multi_agent/in_memory_faiss.pydiff --git a/examples/deep_research_multi_agent/main.py b/atomic-agents/examples/deep_research_multi_agent/main.pysimilarity index 100%rename from examples/deep_research_multi_agent/main.pyrename to atomic-agents/examples/deep_research_multi_agent/main.pydiff --git a/examples/deep_research_multi_agent/providers.py b/atomic-agents/examples/deep_research_multi_agent/providers.pysimilarity index 100%rename from examples/deep_research_multi_agent/providers.pyrename to atomic-agents/examples/deep_research_multi_agent/providers.pydiff --git a/examples/dynamic_multichoice_answer_agent.py b/atomic-agents/examples/dynamic_multichoice_answer_agent.pysimilarity index 100%rename from examples/dynamic_multichoice_answer_agent.pyrename to atomic-agents/examples/dynamic_multichoice_answer_agent.pydiff --git a/examples/memory_demo.py b/atomic-agents/examples/memory_demo.pysimilarity index 100%rename from examples/memory_demo.pyrename to atomic-agents/examples/memory_demo.pydiff --git a/examples/mesop_example.py b/atomic-agents/examples/mesop_example.pysimilarity index 100%rename from examples/mesop_example.pyrename to atomic-agents/examples/mesop_example.pydiff --git a/examples/minimal_chatbot.py b/atomic-agents/examples/minimal_chatbot.pysimilarity index 100%rename from examples/minimal_chatbot.pyrename to atomic-agents/examples/minimal_chatbot.pydiff --git a/examples/minimal_chatbot_llama.py b/atomic-agents/examples/minimal_chatbot_llama.pysimilarity index 100%rename from examples/minimal_chatbot_llama.pyrename to atomic-agents/examples/minimal_chatbot_llama.pydiff --git a/examples/minimal_multi_agent_tool_use.py b/atomic-agents/examples/minimal_multi_agent_tool_use.pysimilarity index 100%rename from examples/minimal_multi_agent_tool_use.pyrename to atomic-agents/examples/minimal_multi_agent_tool_use.pydiff --git a/examples/notebooks/multi_agent_quickstart.ipynb b/atomic-agents/examples/notebooks/multi_agent_quickstart.ipynbsimilarity index 100%rename from examples/notebooks/multi_agent_quickstart.ipynbrename to atomic-agents/examples/notebooks/multi_agent_quickstart.ipynbdiff --git a/examples/notebooks/quickstart.ipynb b/atomic-agents/examples/notebooks/quickstart.ipynbsimilarity index 100%rename from examples/notebooks/quickstart.ipynbrename to atomic-agents/examples/notebooks/quickstart.ipynbdiff --git a/examples/notebooks/what_is_atomic_agents.ipynb b/atomic-agents/examples/notebooks/what_is_atomic_agents.ipynbsimilarity index 100%rename from examples/notebooks/what_is_atomic_agents.ipynbrename to atomic-agents/examples/notebooks/what_is_atomic_agents.ipynbdiff --git a/examples/notebooks/yelp_agent.ipynb b/atomic-agents/examples/notebooks/yelp_agent.ipynbsimilarity index 100%rename from examples/notebooks/yelp_agent.ipynbrename to atomic-agents/examples/notebooks/yelp_agent.ipynbdiff --git a/examples/notebooks/youtube_knowledge_extraction.ipynb b/atomic-agents/examples/notebooks/youtube_knowledge_extraction.ipynbsimilarity index 100%rename from examples/notebooks/youtube_knowledge_extraction.ipynbrename to atomic-agents/examples/notebooks/youtube_knowledge_extraction.ipynbdiff --git a/examples/product_finder.py b/atomic-agents/examples/product_finder.pysimilarity index 100%rename from examples/product_finder.pyrename to atomic-agents/examples/product_finder.pydiff --git a/examples/shared_context.py b/atomic-agents/examples/shared_context.pysimilarity index 100%rename from examples/shared_context.pyrename to atomic-agents/examples/shared_context.pydiff --git a/examples/simple_web_search_agent.py b/atomic-agents/examples/simple_web_search_agent.pysimilarity index 100%rename from examples/simple_web_search_agent.pyrename to atomic-agents/examples/simple_web_search_agent.pydiff --git a/examples/system_prompt_generator_demo.py b/atomic-agents/examples/system_prompt_generator_demo.pysimilarity index 100%rename from examples/system_prompt_generator_demo.pyrename to atomic-agents/examples/system_prompt_generator_demo.pydiff --git a/examples/wiki_creator_agent/agents/article_writer_agent.py b/atomic-agents/examples/wiki_creator_agent/agents/article_writer_agent.pysimilarity index 100%rename from examples/wiki_creator_agent/agents/article_writer_agent.pyrename to atomic-agents/examples/wiki_creator_agent/agents/article_writer_agent.pydiff --git a/examples/wiki_creator_agent/agents/outline_agent.py b/atomic-agents/examples/wiki_creator_agent/agents/outline_agent.pysimilarity index 100%rename from examples/wiki_creator_agent/agents/outline_agent.pyrename to atomic-agents/examples/wiki_creator_agent/agents/outline_agent.pydiff --git a/examples/wiki_creator_agent/agents/query_agent.py b/atomic-agents/examples/wiki_creator_agent/agents/query_agent.pysimilarity index 100%rename from examples/wiki_creator_agent/agents/query_agent.pyrename to atomic-agents/examples/wiki_creator_agent/agents/query_agent.pydiff --git a/examples/wiki_creator_agent/agents/question_answering_agent.py b/atomic-agents/examples/wiki_creator_agent/agents/question_answering_agent.pysimilarity index 100%rename from examples/wiki_creator_agent/agents/question_answering_agent.pyrename to atomic-agents/examples/wiki_creator_agent/agents/question_answering_agent.pydiff --git a/examples/wiki_creator_agent/main.py b/atomic-agents/examples/wiki_creator_agent/main.pysimilarity index 100%rename from examples/wiki_creator_agent/main.pyrename to atomic-agents/examples/wiki_creator_agent/main.pydiff --git a/examples/wiki_creator_agent/utils/scraper.py b/atomic-agents/examples/wiki_creator_agent/utils/scraper.pysimilarity index 100%rename from examples/wiki_creator_agent/utils/scraper.pyrename to atomic-agents/examples/wiki_creator_agent/utils/scraper.pydiff --git a/examples/wiki_creator_agent/utils/vector_db.py b/atomic-agents/examples/wiki_creator_agent/utils/vector_db.pysimilarity index 100%rename from examples/wiki_creator_agent/utils/vector_db.pyrename to atomic-agents/examples/wiki_creator_agent/utils/vector_db.pydiff --git a/examples/yelp_restaurant_finder.py b/atomic-agents/examples/yelp_restaurant_finder.pysimilarity index 100%rename from examples/yelp_restaurant_finder.pyrename to atomic-agents/examples/yelp_restaurant_finder.pydiff --git a/examples/youtube_knowledge_extraction/agents/youtube_knowledge_extraction_agent.py b/atomic-agents/examples/youtube_knowledge_extraction/agents/youtube_knowledge_extraction_agent.pysimilarity index 100%rename from examples/youtube_knowledge_extraction/agents/youtube_knowledge_extraction_agent.pyrename to atomic-agents/examples/youtube_knowledge_extraction/agents/youtube_knowledge_extraction_agent.pydiff --git a/examples/youtube_knowledge_extraction/pipeline.py b/atomic-agents/examples/youtube_knowledge_extraction/pipeline.pysimilarity index 100%rename from examples/youtube_knowledge_extraction/pipeline.pyrename to atomic-agents/examples/youtube_knowledge_extraction/pipeline.pydiff --git a/pyproject.toml b/atomic-agents/pyproject.tomlsimilarity index 100%rename from pyproject.tomlrename to atomic-agents/pyproject.tomldiff --git a/requirements.txt b/atomic-agents/requirements.txtsimilarity index 100%rename from requirements.txtrename to atomic-agents/requirements.txtdiff --git a/tests/agents/test_base_agent.py b/atomic-agents/tests/agents/test_base_agent.pysimilarity index 100%rename from tests/agents/test_base_agent.pyrename to atomic-agents/tests/agents/test_base_agent.pydiff --git a/tests/agents/test_tool_interface_agent.py b/atomic-agents/tests/agents/test_tool_interface_agent.pysimilarity index 100%rename from tests/agents/test_tool_interface_agent.pyrename to atomic-agents/tests/agents/test_tool_interface_agent.pydiff --git a/tests/lib/components/test_agent_memory.py b/atomic-agents/tests/lib/components/test_agent_memory.pysimilarity index 100%rename from tests/lib/components/test_agent_memory.pyrename to atomic-agents/tests/lib/components/test_agent_memory.pydiff --git a/tests/lib/components/test_system_prompt_generator.py b/atomic-agents/tests/lib/components/test_system_prompt_generator.pysimilarity index 100%rename from tests/lib/components/test_system_prompt_generator.pyrename to atomic-agents/tests/lib/components/test_system_prompt_generator.pydiff --git a/tests/lib/models/test_web_document.py b/atomic-agents/tests/lib/models/test_web_document.pysimilarity index 100%rename from tests/lib/models/test_web_document.pyrename to atomic-agents/tests/lib/models/test_web_document.pydiff --git a/tests/lib/tools/test_base_tool.py b/atomic-agents/tests/lib/tools/test_base_tool.pysimilarity index 100%rename from tests/lib/tools/test_base_tool.pyrename to atomic-agents/tests/lib/tools/test_base_tool.pydiff --git a/tests/lib/tools/test_calculator_tool.py b/atomic-agents/tests/lib/tools/test_calculator_tool.pysimilarity index 100%rename from tests/lib/tools/test_calculator_tool.pyrename to atomic-agents/tests/lib/tools/test_calculator_tool.pydiff --git a/tests/lib/tools/test_content_scraping_tool.py b/atomic-agents/tests/lib/tools/test_content_scraping_tool.pysimilarity index 100%rename from tests/lib/tools/test_content_scraping_tool.pyrename to atomic-agents/tests/lib/tools/test_content_scraping_tool.pydiff --git a/tests/lib/tools/test_yelp_restaurant_finder_tool.py b/atomic-agents/tests/lib/tools/test_yelp_restaurant_finder_tool.pysimilarity index 100%rename from tests/lib/tools/test_yelp_restaurant_finder_tool.pyrename to atomic-agents/tests/lib/tools/test_yelp_restaurant_finder_tool.pydiff --git a/tests/lib/tools/test_yt_transcript_scraper_tool.py b/atomic-agents/tests/lib/tools/test_yt_transcript_scraper_tool.pysimilarity index 100%rename from tests/lib/tools/test_yt_transcript_scraper_tool.pyrename to atomic-agents/tests/lib/tools/test_yt_transcript_scraper_tool.pydiff --git a/tests/lib/utils/scraping/test_pdf_to_markdown.py b/atomic-agents/tests/lib/utils/scraping/test_pdf_to_markdown.pysimilarity index 100%rename from tests/lib/utils/scraping/test_pdf_to_markdown.pyrename to atomic-agents/tests/lib/utils/scraping/test_pdf_to_markdown.pydiff --git a/tests/lib/utils/scraping/test_url_to_markdown.py b/atomic-agents/tests/lib/utils/scraping/test_url_to_markdown.pysimilarity index 100%rename from tests/lib/utils/scraping/test_url_to_markdown.pyrename to atomic-agents/tests/lib/utils/scraping/test_url_to_markdown.pydiff --git a/tests/lib/utils/test_format_tool_message.py b/atomic-agents/tests/lib/utils/test_format_tool_message.pysimilarity index 100%rename from tests/lib/utils/test_format_tool_message.pyrename to atomic-agents/tests/lib/utils/test_format_tool_message.pydiff --git a/atomic-assembler/.gitignore b/atomic-assembler/.gitignorenew file mode 100644index 0000000..d55d27d--- /dev/null+++ b/atomic-assembler/.gitignore@@ -0,0 +1,46 @@+# Python+__pycache__/+*.py[cod]+*$py.class+*.so+.Python+build/+develop-eggs/+dist/+downloads/+eggs/+.eggs/+lib/+lib64/+parts/+sdist/+var/+wheels/+share/python-wheels/+*.egg-info/+.installed.cfg+*.egg++# Environments+.env+.venv+env/+venv/+ENV/+env.bak/+venv.bak/++# IDEs and editors+.idea/+.vscode/+*.swp+*.swo+*~++# Operating System Files+.DS_Store+Thumbs.db++# Logs+*.log+debug.logdiff --git a/atomic-assembler/README.md b/atomic-assembler/README.mdnew file mode 100644index 0000000..e69de29diff --git a/atomic-assembler/atomic_assembler/__init__.py b/atomic-assembler/atomic_assembler/__init__.pynew file mode 100644index 0000000..e69de29diff --git a/atomic-assembler/atomic_assembler/app.py b/atomic-assembler/atomic_assembler/app.pynew file mode 100644index 0000000..9a669af--- /dev/null+++ b/atomic-assembler/atomic_assembler/app.py@@ -0,0 +1,93 @@+import logging+from textual import on+from textual.app import App+from textual.screen import Screen+from pathlib import Path+import webbrowser # Import webbrowser module++from atomic_assembler.screens.main_menu import MainMenuScreen+from atomic_assembler.screens.file_explorer import FileExplorerScreen+from atomic_assembler.screens.atomic_tool_explorer import AtomicToolExplorerScreen+from atomic_assembler.constants import MENU_OPTIONS, Mode+++class AtomicAssembler(App):+ """The main application class for Atomic Assembler."""++ CSS = """+ Screen {+ align: center middle;+ }+ """++ SCREENS = {+ "main_menu": MainMenuScreen,+ "atomic_tool_explorer": AtomicToolExplorerScreen,+ "file_explorer": FileExplorerScreen,+ }++ def __init__(self, *args, **kwargs):+ super().__init__(*args, **kwargs)+ self.selected_path = None # Renamed from selected_file to selected_path++ def on_mount(self) -> None:+ """Handler called when app is mounted."""+ self.push_screen("main_menu")++ def handle_menu_action(self, action: str, **kwargs) -> None:+ """Handle all menu actions dynamically."""+ action_map = {+ "browse_files": self.push_file_explorer,+ "browse_folders": self.push_folder_explorer,+ "download_tools": self.push_atomic_tool_explorer,+ "open_github": self.open_github, # Added this line+ "exit": self.exit_app,+ }++ if action in action_map:+ action_map[action](**kwargs)+ else:+ logging.warning(f"Action '{action}' not implemented")++ def open_github(self) -> None:+ """Open the Atomic Agents GitHub page in a web browser."""+ webbrowser.open(+ "https://github.com/BrainBlend-AI/atomic-agents"+ ) # Open the URL++ def push_file_explorer(self, **kwargs):+ """Push the file explorer screen in file mode."""+ self.push_screen(+ FileExplorerScreen(+ mode=Mode.FILE_MODE,+ callback=self.handle_selection, # Ensure this is set+ )+ )++ def push_folder_explorer(self, **kwargs):+ """Push the file explorer screen in directory mode."""+ self.push_screen(+ FileExplorerScreen(+ mode=Mode.DIRECTORY_MODE,+ callback=self.handle_selection, # Renamed callback+ )+ )++ def push_atomic_tool_explorer(self, **kwargs) -> None:+ """Push the Atomic Tool Explorer screen."""+ self.push_screen("atomic_tool_explorer")++ def exit_app(self, **kwargs):+ """Exit the application."""+ self.exit()++ def handle_selection(self, selected_path: Path) -> None: # Renamed method+ """Handle the selection of a file or folder."""+ logging.debug(f"File or folder selected in main app: {selected_path}")+ self.selected_path = selected_path # Updated to use selected_path++ @on(FileExplorerScreen.FileSelected)+ def handle_file_selected(self, message: FileExplorerScreen.FileSelected) -> None:+ """Handle the file selected event."""+ logging.debug(f"File selected in main app: {message.path}")+ self.selected_path = message.path # Updated to use selected_pathdiff --git a/atomic-assembler/atomic_assembler/color_utils.py b/atomic-assembler/atomic_assembler/color_utils.pynew file mode 100644index 0000000..ffd46c6--- /dev/null+++ b/atomic-assembler/atomic_assembler/color_utils.py@@ -0,0 +1,36 @@+from typing import Tuple+++def hex_to_rgb(hex_color: str) -> Tuple[int, int, int]:+ """+ Convert a hex color string to an RGB tuple.++ Args:+ hex_color (str): The hex color string (e.g., "#FF0000").++ Returns:+ Tuple[int, int, int]: The RGB values as a tuple.+ """+ return tuple(int(hex_color[i : i + 2], 16) for i in (1, 3, 5))+++def interpolate_color(start_color: str, end_color: str, mix_ratio: float) -> str:+ """+ Interpolate between two colors based on a mix ratio.++ Args:+ start_color (str): The starting color in hex format (e.g., "#FF0000").+ end_color (str): The ending color in hex format.+ mix_ratio (float): A value between 0 and 1 representing the mix ratio.++ Returns:+ str: The interpolated color in hex format.+ """+ r1, g1, b1 = hex_to_rgb(start_color)+ r2, g2, b2 = hex_to_rgb(end_color)++ r = int(r1 * (1 - mix_ratio) + r2 * mix_ratio)+ g = int(g1 * (1 - mix_ratio) + g2 * mix_ratio)+ b = int(b1 * (1 - mix_ratio) + b2 * mix_ratio)++ return f"#{r:02x}{g:02x}{b:02x}"diff --git a/atomic-assembler/atomic_assembler/constants.py b/atomic-assembler/atomic_assembler/constants.pynew file mode 100644index 0000000..4ec151c--- /dev/null+++ b/atomic-assembler/atomic_assembler/constants.py@@ -0,0 +1,35 @@+from typing import List, Dict, Any, Optional+from dataclasses import dataclass+from enum import Enum++# Color configuration+PRIMARY_COLOR: str = "#AAAA00"+SECONDARY_COLOR: str = "#AA00AA"+BORDER_STYLE: str = f"bold {SECONDARY_COLOR}"++# Title configuration+TITLE_FONT: str = "big"+++@dataclass+class MenuOption:+ """Dataclass representing a menu option."""++ label: str+ action: str+ params: Optional[Dict[str, Any]] = None+++# Define menu options as a list of MenuOption instances+MENU_OPTIONS: List[MenuOption] = [+ # MenuOption("Browse Files", "browse_files"),+ # MenuOption("Browse Folders", "browse_folders"),+ MenuOption("Download Tools", "download_tools"),+ MenuOption("Open Atomic Agents on GitHub", "open_github"), # Added this line+ MenuOption("Quit", "exit"),+]+++class Mode(Enum):+ FILE_MODE = "file_mode"+ DIRECTORY_MODE = "directory_mode"diff --git a/atomic-assembler/atomic_assembler/main.py b/atomic-assembler/atomic_assembler/main.pynew file mode 100644index 0000000..7451530--- /dev/null+++ b/atomic-assembler/atomic_assembler/main.py@@ -0,0 +1,53 @@+import logging+import sys+import shutil+import os+import argparse++from atomic_assembler.app import AtomicAssembler++logging.basicConfig(+ level=logging.ERROR,+ format="%(asctime)s - %(name)s - %(levelname)s - %(filename)s:%(lineno)d - %(message)s",+ handlers=[logging.FileHandler("debug.log"), logging.StreamHandler(sys.stdout)],+)+logger = logging.getLogger(__name__)+++def reset_tools_folder():+ """+ Remove the 'tools' folder if it exists, then create an empty 'tools' folder.+ """+ tools_path = os.path.join(os.getcwd(), "tools")++ if os.path.exists(tools_path):+ try:+ shutil.rmtree(tools_path)+ logger.info("Successfully removed the existing 'tools' folder.")+ except Exception as e:+ logger.error(f"Failed to remove the 'tools' folder: {str(e)}")+ return++ try:+ os.mkdir(tools_path)+ logger.info("Successfully created an empty 'tools' folder.")+ except Exception as e:+ logger.error(f"Failed to create the 'tools' folder: {str(e)}")+++def main():+ """Main function to run the CLI tool."""+ parser = argparse.ArgumentParser(description="Atomic Assembler CLI Tool")+ parser.add_argument(+ "--devmode", action="store_true", help="Enable development mode"+ )+ args = parser.parse_args()++ if args.devmode:+ reset_tools_folder()+ app = AtomicAssembler()+ app.run()+++if __name__ == "__main__":+ main()diff --git a/atomic-assembler/atomic_assembler/screens/atomic_tool_explorer.py b/atomic-assembler/atomic_assembler/screens/atomic_tool_explorer.pynew file mode 100644index 0000000..aea8b2b--- /dev/null+++ b/atomic-assembler/atomic_assembler/screens/atomic_tool_explorer.py@@ -0,0 +1,164 @@+from textual.app import ComposeResult+from textual.widgets import Static, Footer, Header+from textual.binding import Binding+from textual.screen import Screen+from textual.message import Message+from textual import on+from pathlib import Path+import logging++from atomic_assembler.constants import BORDER_STYLE, PRIMARY_COLOR, Mode+from atomic_assembler.screens.file_explorer import FileExplorerScreen+from atomic_assembler.utils import AtomicToolManager, GithubRepoCloner+from atomic_assembler.widgets.generic_list import GenericList+from atomic_assembler.screens.tool_info_screen import ToolInfoScreen+from atomic_assembler.widgets.confirmation_modal import ConfirmationModal+++class AtomicToolExplorerScreen(Screen):+ """Screen for exploring and downloading atomic tools."""++ CSS = f"""+ Screen {{+ align: center middle;+ }}++ #title {{+ dock: top;+ padding: 1 2;+ color: $text;+ text-align: center;+ text-style: bold;+ border: solid {PRIMARY_COLOR};+ }}++ #current-tool {{+ padding: 1 2;+ }}++ Footer {{+ color: $text;+ }}+ """++ BINDINGS = [+ Binding("escape", "app.pop_screen", "Exit", show=True),+ Binding("i", "show_tool_info", "Tool Info"),+ ]++ class ToolSelected(Message):+ """Message emitted when a tool is selected."""++ def __init__(self, tool_info: dict) -> None:+ self.tool_info = tool_info+ super().__init__()++ def __init__(self, *args, **kwargs):+ super().__init__(*args, **kwargs)+ self._initialize_components()+ self._setup_github_repo()++ def _initialize_components(self):+ self.title_widget = Static("Atomic Tool Explorer", id="title")+ self.current_tool_widget = Static("", id="current-tool")+ self.tool_list = GenericList(item_renderer=self._render_tool_item)+ self.footer = Footer()+ self.atomic_tool_manager = AtomicToolManager()+ self.current_tool = None+ self.highlighted_tool = None++ def _setup_github_repo(self):+ self.github_repo_cloner = GithubRepoCloner("KennyVaneetvelde", "atomic_tools")+ try:+ self.github_repo_cloner.clone()+ logging.info("Repository cloned successfully")+ except Exception as e:+ logging.error(f"Failed to clone repository: {e}")+ self.notify(f"Failed to clone repository: {e}", severity="error")++ def compose(self) -> ComposeResult:+ yield self.title_widget+ yield self.current_tool_widget+ yield self.tool_list+ yield self.footer++ def on_screen_resume(self) -> None:+ self.refresh_tool_list()+ self.border_color = BORDER_STYLE.split()[-1]++ def on_unmount(self):+ self.github_repo_cloner.cleanup()++ def refresh_tool_list(self):+ tools = self.atomic_tool_manager.get_atomic_tools(+ self.github_repo_cloner.tools_path+ )+ self.tool_list.update_list(tools)++ def _render_tool_item(self, tool: dict) -> str:+ return f"🔧 {tool['name']}"++ @on(GenericList.Highlighted)+ def handle_tool_highlighted(self, event: GenericList.Highlighted) -> None:+ self.highlighted_tool = event.item++ @on(GenericList.ItemSelected)+ def handle_tool_selected(self, event: GenericList.ItemSelected):+ self.current_tool = event.item+ logging.info(f"Tool selected: {self.current_tool['name']}")+ self.post_message(self.ToolSelected(self.current_tool))+ self._open_file_explorer_for_directory()++ def _open_file_explorer_for_directory(self):+ logging.info("Opening FileExplorerScreen in directory mode")+ self.app.push_screen(+ FileExplorerScreen(+ mode=Mode.DIRECTORY_MODE, callback=self.handle_directory_selection+ )+ )++ def handle_directory_selection(self, selected_dir: Path):+ logging.info(f"Directory selected: {selected_dir}")+ if self.current_tool and selected_dir:+ self._copy_tool_to_directory(selected_dir)+ else:+ logging.warning("No tool selected or no directory chosen")+ self.notify("No tool selected or no directory chosen")++ def _copy_tool_to_directory(self, selected_dir: Path):+ try:+ local_tool_path = self.atomic_tool_manager.copy_atomic_tool(+ self.current_tool["path"], selected_dir+ )+ logging.info(f"Tool successfully copied to {local_tool_path}")+ # Replace notification with ConfirmationModal in "continue" mode+ modal = ConfirmationModal(+ f"Tool copied to {local_tool_path}. Press any key to continue.",+ callback=lambda _: None,+ mode="continue",+ )+ self.app.push_screen(modal)+ # Tool copying is complete, no further actions+ except Exception as e:+ logging.error(f"Error copying tool: {str(e)}", exc_info=True)+ self.notify(f"Error copying tool: {str(e)}")++ def action_show_tool_info(self):+ if self.highlighted_tool:+ tool_data = self.highlighted_tool.item_data+ readme_content = self.atomic_tool_manager.read_readme(tool_data["path"])+ self.app.push_screen(ToolInfoScreen(tool_data["name"], readme_content))+ else:+ self.notify("No tool highlighted.", title="Warning")++ def update_current_tool(self, tool: dict):+ if tool:+ self.current_tool_widget.update(+ f"Current tool: [bold {PRIMARY_COLOR}]{tool['name']}[/bold {PRIMARY_COLOR}]"+ )+ else:+ self.current_tool_widget.update("")++ def on_key(self, event):+ if event.key == "escape":+ self.app.pop_screen()diff --git a/atomic-assembler/atomic_assembler/screens/file_explorer.py b/atomic-assembler/atomic_assembler/screens/file_explorer.pynew file mode 100644index 0000000..bc54fe7--- /dev/null+++ b/atomic-assembler/atomic_assembler/screens/file_explorer.py@@ -0,0 +1,349 @@+import logging+from textual.app import ComposeResult+from textual.widgets import Static, Footer, Header+from textual.binding import Binding+from textual import events, on+from textual.reactive import reactive+from textual.containers import Container+from textual.screen import Screen+from pathlib import Path+from typing import List, Optional, Dict, Callable++from atomic_assembler.constants import BORDER_STYLE, PRIMARY_COLOR, Mode+from atomic_assembler.widgets.generic_list import GenericList+from atomic_assembler.widgets.new_item_input import NewItemInput+from atomic_assembler.widgets.confirmation_modal import ConfirmationModal++from textual.message import Message+++class FileExplorerScreen(Screen):+ """Screen for exploring files and directories."""++ class FileSelected(Message):+ """Message emitted when a file is selected."""++ def __init__(self, path: Path) -> None:+ self.path = path+ super().__init__()++ CSS = f"""+ Screen {{+ align: center middle;+ }}++ #title {{+ dock: top;+ padding: 1 2;+ color: $text;+ text-align: center;+ text-style: bold;+ border: solid {PRIMARY_COLOR};+ }}++ #current-path {{+ padding: 1 2;+ }}++ Footer {{+ color: $text;+ }}++ .modal-overlay {{+ width: 100%;+ height: 100%;+ background: rgba(0, 0, 0, 0.5);+ layout: grid;+ grid-size: 1;+ align: center middle;+ }}+ """++ BINDINGS = [+ Binding("escape", "handle_escape", "Exit/Cancel", show=True),+ Binding("n", "new_folder", "New Folder"),+ Binding("f", "new_file", "New File"),+ Binding("left", "go_up_folder", "Go Up", show=True, priority=True),+ Binding("right", "enter_folder", "Enter Folder", show=True, priority=True),+ Binding("enter", "action_select", "Select Item", show=True),+ ]++ current_path: reactive[Path] = reactive(Path.cwd())+ new_item_mode: reactive[bool] = reactive(False)+ selected_file: Optional[Path] = None+ directory_selections: Dict[Path, Optional[Path]] = {}++ def __init__(+ self,+ allowed_extensions: Optional[List[str]] = None,+ enable_folder_creation: bool = True,+ enable_file_creation: bool = True,+ mode: Mode = Mode.FILE_MODE,+ callback: Optional[Callable[[Path], None]] = None,+ title: str = "File Picker", # New title parameter+ *args,+ **kwargs,+ ):+ """Initialize the FileExplorerScreen."""+ super().__init__(*args, **kwargs)+ self.mode = mode+ self.callback = callback+ self.title_widget = Static(title, id="title") # Use the title parameter+ self.current_path_widget = Static("", id="current-path")+ self.file_list = GenericList(item_renderer=self._render_file_item)+ self.new_item_input = NewItemInput(id="new-item-input")+ self.footer = Footer()+ self.allowed_extensions = allowed_extensions+ self.enable_folder_creation = enable_folder_creation+ self.enable_file_creation = enable_file_creation+ logging.info("FileExplorerScreen initialized")++ def compose(self) -> ComposeResult:+ """Compose the layout of the screen."""+ yield self.title_widget+ yield self.current_path_widget+ yield self.file_list+ yield self.new_item_input+ yield self.footer++ def on_mount(self):+ """Handler called when the screen is mounted."""+ logging.info("FileExplorerScreen mounted")+ self.refresh_file_list()+ self.border_color = BORDER_STYLE.split()[-1]++ def watch_current_path(self, path: Path):+ """React to changes in the current_path."""+ logging.info(f"Current path changed to: {path}")+ self.refresh_file_list()++ def refresh_file_list(self):+ """Refresh the file list and update the current path display."""+ logging.debug("Refreshing file list")+ self.update_current_path_display()+ items = self._get_file_items()+ self.file_list.update_list(items)++ # Set highlighted index based on stored selection for current directory+ selected_path = self.directory_selections.get(self.current_path)+ if selected_path:+ for index, item in enumerate(items):+ if item["path"] == selected_path:+ self.file_list.set_highlighted_index(index)+ break+ else:+ self.file_list.set_highlighted_index(0)+ else:+ self.file_list.set_highlighted_index(0)++ def update_current_path_display(self):+ """Update the display of the current path."""+ self.current_path_widget.update(+ f"Current directory: [bold {PRIMARY_COLOR}]{self.current_path}[/bold {PRIMARY_COLOR}]"+ )++ @on(GenericList.Highlighted)+ def on_highlighted(self, list_view):+ logging.info(f"Highlighted item: {list_view.item}")+ if list_view.item:+ # self.current_path = str(list_view.highlighted_item.item_data["path"])+ self.current_path_widget.update(+ f"Current directory: [bold {PRIMARY_COLOR}]{list_view.item.item_data["path"]}[/bold {PRIMARY_COLOR}]"+ )++ def _get_file_items(self):+ """Get the list of file items to display."""+ items = []+ for item in sorted(+ self.current_path.iterdir(), key=lambda x: (not x.is_dir(), x.name.lower())+ ):+ if self.mode == Mode.DIRECTORY_MODE and item.is_file():+ continue # Skip files in directory mode+ if self._is_allowed_file(item):+ items.append(+ {"path": item, "is_dir": item.is_dir(), "is_parent": False}+ )+ return items++ def _is_allowed_file(self, path: Path) -> bool:+ """Check if the file is allowed based on its extension or name."""+ if path.is_dir():+ return True+ if self.allowed_extensions is None:+ return True++ # Convert allowed extensions to lowercase for case-insensitive comparison+ allowed_exts = [ext.lower() for ext in self.allowed_extensions]++ # Check if the file name (without extension) is in allowed extensions+ # This handles cases like '.env'+ if path.stem.lower() in allowed_exts:+ return True++ # Check if the file extension (including the dot) is in allowed extensions+ if path.suffix.lower() in [f".{ext}" for ext in allowed_exts]:+ return True++ return False++ def _render_file_item(self, item: dict) -> str:+ """Render a file item."""+ icon = "📁 " if item["is_dir"] else "📄 "+ name = ".." if item["is_parent"] else item["path"].name+ return f"{icon}{name}"++ def on_generic_list_item_selected(self, message: GenericList.ItemSelected):+ """Handle item selection from GenericList."""+ item = message.item+ self.handle_item_selection(item)++ def handle_item_selection(self, item: dict):+ """Handle the selection of an item based on the current mode."""+ if (self.mode == Mode.DIRECTORY_MODE and item["is_dir"]) or (+ self.mode == Mode.FILE_MODE and not item["is_dir"]+ ):+ self.selected_file = item["path"]+ item_type = "folder" if item["is_dir"] else "file"+ logging.info(f"{item_type.capitalize()} selected: {self.selected_file}")+ self.app.push_screen(+ ConfirmationModal(+ f"Are you sure you want to select this {item_type}: {self.selected_file.name}?",+ self.handle_confirmation,+ )+ )+ else:+ logging.info("No valid selection made.")++ def action_enter_folder(self):+ """Action to enter the selected folder."""+ highlighted_item = self.file_list.highlighted_child+ if not highlighted_item:+ return+ selected_item = highlighted_item.item_data+ if selected_item and selected_item["is_dir"]:+ # Store the current selection before changing directory+ self.directory_selections[self.current_path] = selected_item["path"]+ self.current_path = selected_item["path"]+ logging.info(f"Entered directory: {self.current_path}")++ def action_select(self):+ """Override the select action to handle Enter key press."""+ highlighted_item = self.file_list.highlighted_child+ if highlighted_item:+ self.handle_item_selection(highlighted_item.item_data)++ def handle_confirmation(self, confirmed: bool):+ """Handle the result of the confirmation modal."""+ logging.info(f"Confirmation result: {confirmed}")+ if confirmed and self.selected_file:+ logging.info(f"Selection confirmed: {self.selected_file}")+ if self.callback:+ logging.info(+ f"Calling callback with selected file: {self.selected_file}"+ )+ self.app.pop_screen() # Pop the screen after callback++ self.callback(self.selected_file) # Ensure this is called+ else:+ logging.info("Selection cancelled")+ self.selected_file = None++ def action_new_folder(self):+ """Action to enter new folder creation mode."""+ logging.info("Entering new folder creation mode")+ self.new_item_mode = True+ self.new_item_input.display = True+ self.file_list.disabled = True+ self.new_item_input.placeholder = "Enter folder name"+ self.new_item_input.focus()++ def action_new_file(self):+ """Action to enter new file creation mode."""+ logging.info("Entering new file creation mode")+ self.new_item_mode = True+ self.new_item_input.display = True+ self.file_list.disabled = True+ self.new_item_input.placeholder = "Enter file name"+ self.new_item_input.focus()++ def create_new_item(self, item_name: str):+ """Create a new item based on the input."""+ logging.info(f"Attempting to create new item: {item_name}")+ if item_name:+ new_item_path = self.current_path / item_name+ try:+ if self.new_item_input.placeholder == "Enter folder name":+ new_item_path.mkdir(parents=True, exist_ok=False)+ logging.info(f"New directory created: {new_item_path}")+ else:+ new_item_path.touch(exist_ok=False)+ logging.info(f"New file created: {new_item_path}")+ self.refresh_file_list()+ except FileExistsError:+ logging.warning(+ f"Failed to create item, already exists: {new_item_path}"+ )+ self.bell()+ finally:+ self.new_item_input.value = ""+ self.exit_new_item_mode()++ def exit_new_item_mode(self):+ """Exit the new item creation mode."""+ logging.info("Exiting new item mode")+ self.new_item_mode = False+ self.new_item_input.display = False+ self.file_list.disabled = False+ self.file_list.focus()+ self.refresh_bindings()++ def on_new_item_input_submitted(self, message: NewItemInput.Submitted):+ """Handle the submission of the new item input."""+ item_name = message.value+ self.create_new_item(item_name)++ def on_new_item_input_cancelled(self, message: NewItemInput.Cancelled):+ """Handle the cancellation of the new item input."""+ self.exit_new_item_mode()++ def action_handle_escape(self):+ """Handle the escape key."""+ if self.new_item_mode:+ logging.info("Exiting new item mode via escape key")+ self.exit_new_item_mode()+ else:+ logging.info("Popping screen via escape key")+ self.app.pop_screen()++ def action_go_up_folder(self):+ """Action to go up one folder."""+ if self.current_path != self.current_path.root:+ # Store the current selection before going up+ highlighted_item = self.file_list.highlighted_child+ if highlighted_item:+ self.directory_selections[self.current_path] = (+ highlighted_item.item_data["path"]+ )+ self.current_path = self.current_path.parent+ logging.info(f"Moved up to directory: {self.current_path}")++ def check_action(self, action: str, parameters: tuple[object, ...]) -> bool | None:+ """+ Check if an action may run / be displayed in the footer.+ """+ can_run = None++ if action == "new_folder":+ can_run = self.enable_folder_creation and not self.new_item_mode+ elif action == "new_file":+ can_run = (+ self.enable_file_creation+ and not self.new_item_mode+ and self.mode == Mode.FILE_MODE+ ) # Check mode+ elif action == "handle_escape":+ can_run = True+ elif action in ["go_up_folder", "enter_folder"]:+ can_run = not self.new_item_mode++ return can_run # Return the final valuediff --git a/atomic-assembler/atomic_assembler/screens/main_menu.py b/atomic-assembler/atomic_assembler/screens/main_menu.pynew file mode 100644index 0000000..0962769--- /dev/null+++ b/atomic-assembler/atomic_assembler/screens/main_menu.py@@ -0,0 +1,81 @@+# In main_menu.py++from textual.app import ComposeResult+from textual.screen import Screen+from textual.containers import Container, Vertical+from textual import on++from atomic_assembler.widgets.gradient_title import GradientTitle+from atomic_assembler.widgets.menu import MenuWidget+from atomic_assembler.constants import (+ PRIMARY_COLOR,+ SECONDARY_COLOR,+ MENU_OPTIONS,+)+++class MainMenuScreen(Screen):+ """The main menu screen for the application."""++ CSS = """+ Vertical {+ width: 100%;+ height: auto;+ max-height: 20;+ align: center middle;+ }++ #title_container {+ width: 100%;+ height: auto;+ content-align: center top;+ }++ #menu_container {+ width: 100%;+ height: 1fr;+ align: center bottom;+ padding-bottom: 1;+ }++ MenuWidget {+ width: 100%;+ height: auto;+ content-align: center middle;+ }+ """++ def __init__(self):+ """Initialize the MainMenuScreen with a menu widget."""+ super().__init__()+ self.menu_widget = MenuWidget(MENU_OPTIONS)++ def compose(self) -> ComposeResult:+ """Compose the main layout of the screen."""+ yield Vertical(+ Container(+ GradientTitle(+ "Atomic Assembler",+ start_color=PRIMARY_COLOR,+ end_color=SECONDARY_COLOR,+ ),+ id="title_container",+ ),+ Container(+ self.menu_widget,+ id="menu_container",+ ),+ )++ @on(MenuWidget.ItemSelected)+ def handle_item_selected(self, event: MenuWidget.ItemSelected) -> None:+ """Handle the selection of a menu item."""+ selected_option = MENU_OPTIONS[event.index]++ self.app.handle_menu_action(+ selected_option.action, **(selected_option.params or {})+ )++ def action_quit(self) -> None:+ """Quit the application."""+ self.app.exit()diff --git a/atomic-assembler/atomic_assembler/screens/tool_info_screen.py b/atomic-assembler/atomic_assembler/screens/tool_info_screen.pynew file mode 100644index 0000000..e94e299--- /dev/null+++ b/atomic-assembler/atomic_assembler/screens/tool_info_screen.py@@ -0,0 +1,23 @@+from textual.app import ComposeResult+from textual.containers import VerticalScroll+from textual.widgets import Header, Footer, Markdown+from textual.binding import Binding+from textual.screen import Screen+++class ToolInfoScreen(Screen):+ """Screen for displaying tool information."""++ BINDINGS = [Binding("escape", "app.pop_screen", "Back")]++ def __init__(self, tool_name: str, readme_content: str):+ """Initialize the ToolInfoScreen with tool information."""+ super().__init__()+ self.tool_name = tool_name+ self.readme_content = readme_content++ def compose(self) -> ComposeResult:+ """Compose the layout of the tool info screen."""+ with VerticalScroll():+ yield Markdown(self.readme_content)+ yield Footer()diff --git a/atomic-assembler/atomic_assembler/utils.py b/atomic-assembler/atomic_assembler/utils.pynew file mode 100644index 0000000..abeebae--- /dev/null+++ b/atomic-assembler/atomic_assembler/utils.py@@ -0,0 +1,131 @@+import logging+import os+import shutil+import tempfile++import git+import yaml+from pathlib import Path+++class GithubRepoCloner:+ def __init__(self, owner, repo):+ self.owner = owner+ self.repo = repo+ self.repo_url = f"https://github.com/{self.owner}/{self.repo}.git"+ self.temp_dir = tempfile.mkdtemp()+ self.repo_path = os.path.join(self.temp_dir, self.repo)+ self.tools_path = os.path.join(self.repo_path, "atomic_tools")++ def clone(self):+ try:+ git.Repo.clone_from(self.repo_url, self.repo_path)+ logging.info(f"Repository cloned to {self.repo_path}")+ except git.GitCommandError as e:+ logging.error(f"Failed to clone repository: {e}")+ raise++ def cleanup(self):+ shutil.rmtree(self.temp_dir, ignore_errors=True)+++class AtomicToolManager:+ @staticmethod+ def read_tool_config(tool_path):+ config_path = os.path.join(tool_path, "config.yaml")+ try:+ with open(config_path, "r") as f:+ return yaml.safe_load(f)+ except FileNotFoundError:+ return None+ except Exception as e:+ return f"Error reading config file: {e}"++ @staticmethod+ def get_atomic_tools(tools_path: str) -> list[dict]:+ """+ Get a list of atomic tools from the given tools path.++ Args:+ tools_path (str): The path to the directory containing atomic tools.++ Returns:+ list[dict]: A list of dictionaries containing tool information.+ """+ tools = []+ for item in os.listdir(tools_path):+ item_path = os.path.join(tools_path, item)+ if os.path.isdir(item_path):+ # Convert snake_case to Title Case+ tool_name = " ".join(word.capitalize() for word in item.split("_"))+ tools.append(+ {+ "name": tool_name,+ "path": item_path,+ }+ )+ return tools++ @staticmethod+ def copy_atomic_tool(tool_path, destination):+ logging.info(+ f"copy_atomic_tool called with tool_path: {tool_path}, destination: {destination}"+ )+ try:+ tool_name = os.path.basename(tool_path)+ local_tool_path = os.path.join(destination, tool_name)+ logging.info(f"Copying tool from {tool_path} to {local_tool_path}")++ if not os.path.exists(tool_path):+ logging.error(f"Source path does not exist: {tool_path}")+ raise FileNotFoundError(f"Source path does not exist: {tool_path}")++ if not os.path.exists(destination):+ logging.error(f"Destination path does not exist: {destination}")+ raise FileNotFoundError(+ f"Destination path does not exist: {destination}"+ )++ shutil.copytree(+ tool_path,+ local_tool_path,+ ignore=shutil.ignore_patterns("requirements.txt"),+ )+ logging.info(f"Tool successfully copied to {local_tool_path}")+ return local_tool_path+ except Exception as e:+ logging.error(f"Error copying tool: {str(e)}", exc_info=True)+ raise Exception(f"Error copying tool: {e}")++ @staticmethod+ def load_env_file(file_path: Path) -> dict:+ """Load environment variables from a .env file."""+ env_vars = {}+ if file_path.exists():+ with open(file_path, "r") as file:+ for line in file:+ line = line.strip()+ if line and not line.startswith("#"):+ key, value = line.split("=", 1)+ env_vars[key.strip()] = value.strip()+ return env_vars++ @staticmethod+ def read_readme(tool_path: str) -> str:+ """+ Read the README.md file from the tool directory.++ Args:+ tool_path (str): The path to the tool directory.++ Returns:+ str: The contents of the README.md file, or an error message if not found.+ """+ readme_path = os.path.join(tool_path, "README.md")+ try:+ with open(readme_path, "r", encoding="utf-8") as f:+ return f.read()+ except FileNotFoundError:+ return "README.md not found for this tool."+ except Exception as e:+ return f"Error reading README.md: {str(e)}"diff --git a/atomic-assembler/atomic_assembler/widgets/confirmation_modal.py b/atomic-assembler/atomic_assembler/widgets/confirmation_modal.pynew file mode 100644index 0000000..5cab8b1--- /dev/null+++ b/atomic-assembler/atomic_assembler/widgets/confirmation_modal.py@@ -0,0 +1,99 @@+import logging+from textual.screen import ModalScreen+from textual.widgets import Static+from textual.containers import Vertical+from textual.app import ComposeResult+from atomic_assembler.constants import PRIMARY_COLOR, SECONDARY_COLOR+from typing import Callable+++class ConfirmationModal(ModalScreen):+ """A modal widget for confirming file selection."""++ def __init__(+ self, message: str, callback: Callable[[bool], None], mode: str = "yes_no"+ ):+ super().__init__()+ self.message = message+ self.callback = callback+ self.mode = mode+ logging.info(+ f"ConfirmationModal initialized with message: {message} and mode: {mode}"+ )++ BINDINGS = [+ ("y", "confirm", "Yes"),+ ("n", "dismiss", "No"),+ ]++ def compose(self) -> ComposeResult:+ logging.debug("Composing ConfirmationModal")+ if self.mode == "yes_no":+ yield Vertical(+ Static(self.message, id="modal-content"),+ Static("[Y]es / [N]o", id="options"),+ id="dialog",+ )+ elif self.mode == "continue":+ yield Vertical(+ Static(self.message, id="modal-content"),+ Static("Press any key to continue", id="options"),+ id="dialog",+ )++ def action_confirm(self) -> None:+ logging.info("Confirmation action triggered")+ self.app.pop_screen()+ self.callback(True)++ def action_dismiss(self) -> None:+ logging.info("Dismissal action triggered")+ self.app.pop_screen()+ self.callback(False)++ def on_mount(self):+ logging.debug("ConfirmationModal mounted")++ def on_key(self, event) -> None:+ if self.mode == "continue":+ logging.info(f"Key '{event.key}' pressed in continue mode")+ self.app.pop_screen()+ self.callback(True)+ # Removed the call to super().on_key(event)++ CSS = f"""+ ModalScreen {{+ align: center middle;+ }}++ #dialog {{+ width: 40%;+ height: auto;+ border: solid {PRIMARY_COLOR};+ background: $surface;+ }}++ Vertical {{+ align: center middle;+ background: $surface;+ padding: 1 2;+ }}++ #modal-content {{+ content-align: center middle;+ width: 100%;+ margin-bottom: 1;+ text-align: center;+ color: {PRIMARY_COLOR};+ text-style: bold;+ }}++ #options {{+ text-align: center;+ color: $text;+ }}++ Static {{+ width: 100%;+ }}+ """diff --git a/atomic-assembler/atomic_assembler/widgets/generic_list.py b/atomic-assembler/atomic_assembler/widgets/generic_list.pynew file mode 100644index 0000000..0b53514--- /dev/null+++ b/atomic-assembler/atomic_assembler/widgets/generic_list.py@@ -0,0 +1,95 @@+from textual.widgets import ListView, ListItem+from textual.binding import Binding+from textual.message import Message+from rich.text import Text+from typing import Any, Callable, Optional+++class GenericList(ListView):+ """A generic ListView for displaying a list of items."""++ class ItemSelected(Message):+ """Message emitted when an item is selected."""++ def __init__(self, selected_item: Any) -> None: # Improved parameter name+ self.item = selected_item # Updated to match parameter name+ super().__init__()++ DEFAULT_CSS = """+ GenericList {+ height: 1fr;+ border: solid #AAAA00;+ }++ GenericList > ListItem {+ background: transparent;+ }++ GenericList > ListItem.--highlight {+ color: #000000;+ text-style: bold;+ background: #AAAA00 !important;+ }+ """++ BINDINGS = [+ Binding("enter", "select", "Select Item", priority=True),+ ]++ def __init__(self, item_renderer: Callable[[Any], str]):+ """Initialize the GenericList with a custom item renderer.++ Args:+ item_renderer (Callable[[Any], str]): A function that takes an item and returns its string representation.+ """+ super().__init__()+ self.item_list = [] # Renamed for clarity+ self.item_renderer = item_renderer+ self.highlighted_index = 0++ def update_list(+ self, new_items: list, highlighted_item: Optional[Any] = None+ ): # Improved parameter name+ """Update the list with new items and optionally highlight one.++ Args:+ new_items (list): The list of items to display.+ highlighted_item (Optional[Any]): An item to highlight, if any.+ """+ self.item_list = new_items # Renamed for clarity+ self.clear()+ for item in new_items: # Updated to match parameter name+ self.append(self._create_item(item))++ def _create_item(self, item: Any) -> ListItem:+ """Create a ListItem representing a given item.++ Args:+ item (Any): The item to represent in the list.++ Returns:+ ListItem: The ListItem created for the item.+ """+ list_item = ListItem()+ list_item.item_data = item++ def render() -> Text:+ """Render the item using the provided item renderer."""+ return Text(self.item_renderer(item))++ list_item.render = render+ return list_item++ def action_select(self):+ """Handle the selection action for the highlighted item."""+ selected_item = self.highlighted_child # Renamed for clarity+ if selected_item:+ self.post_message(self.ItemSelected(selected_item.item_data))++ def on_focus(self) -> None:+ self.index = self.highlighted_index++ def set_highlighted_index(self, index: int) -> None:+ self.highlighted_index = index+ self.blur()+ self.focus()diff --git a/atomic-assembler/atomic_assembler/widgets/gradient_title.py b/atomic-assembler/atomic_assembler/widgets/gradient_title.pynew file mode 100644index 0000000..8342a81--- /dev/null+++ b/atomic-assembler/atomic_assembler/widgets/gradient_title.py@@ -0,0 +1,82 @@+import math+from typing import List+from logging import Logger++from pyfiglet import Figlet+from rich.align import Align+from rich.console import RenderResult+from rich.style import Style+from rich.text import Text+from rich.console import Group+from textual.widgets import Static++from atomic_assembler.color_utils import interpolate_color+++class GradientTitle(Static):+ """A widget that displays a static gradient title."""++ def __init__(+ self,+ title_text: str,+ font: str = "big",+ start_color: str = "#CCCC00",+ end_color: str = "#CC00CC",+ ):+ """+ Initialize the GradientTitle widget.++ Args:+ title_text (str): The text to display as the title.+ font (str, optional): The font to use for the ASCII art. Defaults to "big".+ start_color (str, optional): The starting color of the gradient. Defaults to "#CCCC00".+ end_color (str, optional): The ending color of the gradient. Defaults to "#CC00CC".+ """+ super().__init__()+ self.title_text = title_text+ self.font = font+ self.start_color = start_color+ self.end_color = end_color+ self.gradient_offset = 2 # Renamed from animation_offset++ self.ascii_art = Figlet(font=self.font).renderText(self.title_text)+ self.max_width = max(len(line) for line in self.ascii_art.splitlines())++ def create_gradient_text_lines(self) -> List[Text]:+ """+ Create text lines with a gradient effect and bold styling.++ Returns:+ List[Text]: A list of rich.text.Text objects with gradient coloring and bold styling.+ """+ lines = self.ascii_art.splitlines()+ gradient_lines = []++ for line_index, line in enumerate(lines):+ if not line.strip() and line_index not in (0, len(lines) - 1):+ continue++ mix_ratio = (math.sin(self.gradient_offset + line_index * 0.33) + 1) / 2+ interpolated_color = interpolate_color(+ self.start_color, self.end_color, mix_ratio+ )++ styled_line = Text(line, Style(color=interpolated_color, bold=True))+ gradient_lines.append(styled_line)++ return gradient_lines++ def render(self) -> RenderResult:+ """+ Render the gradient title.++ Returns:+ RenderResult: The rendered gradient title.+ """+ gradient_lines = self.create_gradient_text_lines()++ centered_lines = [+ Align.center(line, width=self.max_width) for line in gradient_lines+ ]++ return Align.center(Group(*centered_lines), vertical="middle")diff --git a/atomic-assembler/atomic_assembler/widgets/icon_selection_list.py b/atomic-assembler/atomic_assembler/widgets/icon_selection_list.pynew file mode 100644index 0000000..759143b--- /dev/null+++ b/atomic-assembler/atomic_assembler/widgets/icon_selection_list.py@@ -0,0 +1,68 @@+from textual.widgets import SelectionList+from textual.widgets.selection_list import Selection+from textual.binding import Binding+from textual.message import Message+from rich.text import Text+++class IconSelectionList(SelectionList):+ """A custom SelectionList that supports icons."""++ class ItemSelected(Message):+ """Message emitted when an item is selected."""++ def __init__(self, item_info: dict) -> None:+ self.item_info = item_info+ super().__init__()++ DEFAULT_CSS = """+ IconSelectionList {+ height: 1fr;+ border: solid $accent;+ }++ IconSelectionList > .selection-list--option {+ background: transparent;+ }++ IconSelectionList > .selection-list--option.-highlight {+ color: $text;+ background: $accent;+ }+ """++ BINDINGS = [+ Binding("enter", "select", "Select", priority=True),+ ]++ def __init__(self):+ super().__init__()+ self.items = []++ def update_list(self, items: list):+ """Update the selection list."""+ self.items = items+ self.clear_options()+ for index, item in enumerate(items):+ self.add_option(self._create_item(item, index))++ def _create_item(self, item: dict, index: int) -> Selection:+ """Create a Selection representing an item."""+ icon = item.get("icon", "📄")+ label = Text(f"{icon} {item['name']}")+ return Selection(label, str(index)) # Use index as a string for the value++ def action_select(self):+ """Handle the selection action."""+ highlighted = self.highlighted+ if highlighted is not None:+ index = int(self.get_option_at_index(highlighted).value)+ self.post_message(self.ItemSelected(self.items[index]))++ def get_selected_item(self) -> dict:+ """Get the currently selected item."""+ highlighted = self.highlighted+ if highlighted is not None:+ index = int(self.get_option_at_index(highlighted).value)+ return self.items[index]+ return Nonediff --git a/atomic-assembler/atomic_assembler/widgets/menu.py b/atomic-assembler/atomic_assembler/widgets/menu.pynew file mode 100644index 0000000..606d76a--- /dev/null+++ b/atomic-assembler/atomic_assembler/widgets/menu.py@@ -0,0 +1,77 @@+from typing import List+from textual.reactive import reactive+from textual.widget import Widget+from textual.message import Message+from textual.binding import Binding+from atomic_assembler.constants import PRIMARY_COLOR, MenuOption+++class MenuWidget(Widget):+ """A widget that displays a selectable menu."""++ class ItemSelected(Message):+ """Emitted when an item is selected."""++ def __init__(self, index: int):+ self.index = index+ super().__init__()++ _selected_index = reactive(0)++ BINDINGS = [+ Binding("enter", "select", "Select item", priority=True),+ Binding("up", "move_up", "Move up"),+ Binding("down", "move_down", "Move down"),+ ]++ def __init__(self, menu_items: List[MenuOption]):+ """+ Initialize the MenuWidget.++ Args:+ menu_items (List[MenuOption]): A list of MenuOption instances representing menu options.+ """+ super().__init__()+ self._menu_items = menu_items+ self.can_focus = True++ def on_mount(self) -> None:+ """Set focus to this widget when mounted."""+ self.focus()++ def render(self) -> str:+ """+ Render the menu items with the current selection highlighted.++ Returns:+ str: The rendered menu items as a string.+ """+ rendered_menu_items = []+ for index, item in enumerate(self._menu_items):+ is_selected = index == self._selected_index+ menu_text = (+ f"[{PRIMARY_COLOR} bold][ {item.label} ][/{PRIMARY_COLOR} bold]"+ if is_selected+ else f" {item.label} "+ )+ rendered_menu_items.append(f"[center]{menu_text}[/center]")++ return "\n".join(rendered_menu_items)++ def action_move_up(self) -> None:+ """Move the selection up."""+ self._move_selection(-1)++ def action_move_down(self) -> None:+ """Move the selection down."""+ self._move_selection(1)++ def action_select(self) -> None:+ """Handle the selection of a menu item."""+ self.post_message(self.ItemSelected(self._selected_index))++ def _move_selection(self, direction: int) -> None:+ """Move the selection up or down, wrapping around if necessary."""+ self._selected_index = (self._selected_index + direction) % len(+ self._menu_items+ )diff --git a/atomic-assembler/atomic_assembler/widgets/new_item_input.py b/atomic-assembler/atomic_assembler/widgets/new_item_input.pynew file mode 100644index 0000000..2014203--- /dev/null+++ b/atomic-assembler/atomic_assembler/widgets/new_item_input.py@@ -0,0 +1,42 @@+from textual.widgets import Input+from textual.binding import Binding+from textual.message import Message+from pathlib import Path+++class NewItemInput(Input):+ """Configurable input field for creating new files or folders."""++ class Cancelled(Message):+ """Emitted when the user cancels the item creation."""++ class Submitted(Message):+ """Emitted when the user submits the item creation."""++ def __init__(self, value: str):+ self.value = value+ super().__init__()++ DEFAULT_CSS = """+ NewItemInput {+ dock: bottom;+ margin-bottom: 1;+ color: $text;+ display: none;+ border: solid #AAAA00 !important;+ }+ """++ BINDINGS = [+ Binding("enter", "submit", "Submit", show=True, priority=True),+ Binding("escape", "cancel", "Cancel", show=True, priority=True),+ ]++ async def action_submit(self) -> None:+ """Handle a submit action."""++ self.post_message(self.Submitted(self.value))++ async def action_cancel(self) -> None:+ """Handle a cancel action."""+ self.post_message(self.Cancelled())diff --git a/atomic-assembler/atomic_assembler/widgets/tool_info_display.py b/atomic-assembler/atomic_assembler/widgets/tool_info_display.pynew file mode 100644index 0000000..a05b5bc--- /dev/null+++ b/atomic-assembler/atomic_assembler/widgets/tool_info_display.py@@ -0,0 +1,106 @@+from textual.widget import Widget+from textual.reactive import reactive+from textual.containers import ScrollableContainer+from textual.widgets import Static+from textual.app import ComposeResult+from atomic_assembler.constants import (+ BORDER_STYLE,+ PRIMARY_COLOR,+ SECONDARY_COLOR,+)+++class ToolInfoDisplay(Widget):+ """Widget for displaying tool information."""++ tool_info = reactive({})++ DEFAULT_CSS = f"""+ ToolInfoDisplay {{+ width: 100%;+ height: 100%;+ layout: grid;+ grid-size: 1;+ grid-rows: auto 1fr;+ }}++ #title {{+ width: 100%;+ padding: 1 2;+ color: $text;+ text-align: center;+ text-style: bold;+ border: solid {PRIMARY_COLOR};+ }}++ #content {{+ width: 100%;+ height: 100%;+ }}++ .tool-details, .env-vars {{+ border: solid {PRIMARY_COLOR};+ padding: 1 2;+ margin: 1 0;+ }}++ #tool-header, .env-vars-header {{+ text-align: left;+ text-style: bold;+ margin-bottom: 1;+ }}++ .env-var-name {{+ color: {PRIMARY_COLOR};+ text-style: bold;+ }}++ .env-var-description, .env-var-default {{+ padding-left: 1;+ }}+ """++ def __init__(self, tool_info: dict):+ super().__init__()+ self.tool_info = tool_info++ def compose(self) -> ComposeResult:+ """Compose the layout of the tool info display."""+ yield Static("Tool Information", id="title")++ with ScrollableContainer(id="content"):+ # Tool Details Section+ with Static(classes="tool-details"):+ yield Static("🔧 Tool Details", id="tool-header")+ yield Static(+ f"Name: {self.tool_info.get('tool_name', 'N/A')}", id="tool-name"+ )+ yield Static(+ f"Description: {self.tool_info.get('tool_description', 'No description available.')}",+ id="tool-description",+ )++ # Environment Variables Section+ env_vars = self.tool_info.get("env_vars", {})+ if env_vars:+ with Static(classes="env-vars"):+ yield Static("📌 Environment Variables", classes="env-vars-header")+ for var, var_info in env_vars.items():+ with Static(classes="env-var"):+ yield Static(f"{var}", classes="env-var-name")+ yield Static(+ f"Description: {var_info.get('description', 'No description available.')}",+ classes="env-var-description",+ )+ yield Static(+ f"Default Value: {var_info.get('default', 'No default value')}",+ classes="env-var-default",+ )+ else:+ yield Static(+ "No environment variables available.", classes="env-var-description"+ )++ def watch_tool_info(self, new_info: dict) -> None:+ """React to changes in the tool_info."""+ self.refresh()diff --git a/atomic-assembler/pyproject.toml b/atomic-assembler/pyproject.tomlnew file mode 100644index 0000000..f837607--- /dev/null+++ b/atomic-assembler/pyproject.toml@@ -0,0 +1,20 @@+[project]+name = "atomic-assembler"+version = "0.1.0"+description = "Add your description here"+readme = "README.md"+requires-python = ">=3.12"+dependencies = [+ "pyfiglet>=1.0.2,<2.0.0",+ "rich>=13.7.1,<14.0.0",+ "textual>=0.77.0,<0.78.0",+ "gitpython>=3.1.43,<3.2.0",+ "pyyaml>=6.0.2,<7.0.0",+]++[project.scripts]+atomic = "atomic_assembler.main:main"++[build-system]+requires = ["hatchling"]+build-backend = "hatchling.build"diff --git a/atomic-assembler/uv.lock b/atomic-assembler/uv.locknew file mode 100644index 0000000..424855a--- /dev/null+++ b/atomic-assembler/uv.lock@@ -0,0 +1,198 @@+version = 1+requires-python = ">=3.12"++[[package]]+name = "atomic-assembler"+version = "0.1.0"+source = { editable = "." }+dependencies = [+ { name = "gitpython" },+ { name = "pyfiglet" },+ { name = "pyyaml" },+ { name = "rich" },+ { name = "textual" },+]++[package.metadata]+requires-dist = [+ { name = "gitpython", specifier = ">=3.1.43,<3.2.0" },+ { name = "pyfiglet", specifier = ">=1.0.2,<2.0.0" },+ { name = "pyyaml", specifier = ">=6.0.2,<7.0.0" },+ { name = "rich", specifier = ">=13.7.1,<14.0.0" },+ { name = "textual", specifier = ">=0.77.0,<0.78.0" },+]++[[package]]+name = "gitdb"+version = "4.0.11"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "smmap" },+]+sdist = { url = "https://files.pythonhosted.org/packages/19/0d/bbb5b5ee188dec84647a4664f3e11b06ade2bde568dbd489d9d64adef8ed/gitdb-4.0.11.tar.gz", hash = "sha256:bf5421126136d6d0af55bc1e7c1af1c397a34f5b7bd79e776cd3e89785c2b04b", size = 394469 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fd/5b/8f0c4a5bb9fd491c277c21eff7ccae71b47d43c4446c9d0c6cff2fe8c2c4/gitdb-4.0.11-py3-none-any.whl", hash = "sha256:81a3407ddd2ee8df444cbacea00e2d038e40150acfa3001696fe0dcf1d3adfa4", size = 62721 },+]++[[package]]+name = "gitpython"+version = "3.1.43"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "gitdb" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b6/a1/106fd9fa2dd989b6fb36e5893961f82992cf676381707253e0bf93eb1662/GitPython-3.1.43.tar.gz", hash = "sha256:35f314a9f878467f5453cc1fee295c3e18e52f1b99f10f6cf5b1682e968a9e7c", size = 214149 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e9/bd/cc3a402a6439c15c3d4294333e13042b915bbeab54edc457c723931fed3f/GitPython-3.1.43-py3-none-any.whl", hash = "sha256:eec7ec56b92aad751f9912a73404bc02ba212a23adb2c7098ee668417051a1ff", size = 207337 },+]++[[package]]+name = "linkify-it-py"+version = "2.0.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "uc-micro-py" },+]+sdist = { url = "https://files.pythonhosted.org/packages/2a/ae/bb56c6828e4797ba5a4821eec7c43b8bf40f69cda4d4f5f8c8a2810ec96a/linkify-it-py-2.0.3.tar.gz", hash = "sha256:68cda27e162e9215c17d786649d1da0021a451bdc436ef9e0fa0ba5234b9b048", size = 27946 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/04/1e/b832de447dee8b582cac175871d2f6c3d5077cc56d5575cadba1fd1cccfa/linkify_it_py-2.0.3-py3-none-any.whl", hash = "sha256:6bcbc417b0ac14323382aef5c5192c0075bf8a9d6b41820a2b66371eac6b6d79", size = 19820 },+]++[[package]]+name = "markdown-it-py"+version = "3.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "mdurl" },+]+sdist = { url = "https://files.pythonhosted.org/packages/38/71/3b932df36c1a044d397a1f92d1cf91ee0a503d91e470cbd670aa66b07ed0/markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb", size = 74596 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1", size = 87528 },+]++[package.optional-dependencies]+linkify = [+ { name = "linkify-it-py" },+]+plugins = [+ { name = "mdit-py-plugins" },+]++[[package]]+name = "mdit-py-plugins"+version = "0.4.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "markdown-it-py" },+]+sdist = { url = "https://files.pythonhosted.org/packages/00/6c/79c52651b22b64dba5c7bbabd7a294cc410bfb2353250dc8ade44d7d8ad8/mdit_py_plugins-0.4.1.tar.gz", hash = "sha256:834b8ac23d1cd60cec703646ffd22ae97b7955a6d596eb1d304be1e251ae499c", size = 42713 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ef/f7/8a4dcea720a581e69ac8c5a38524baf0e3e2bb5f3819a9ff661464fe7d10/mdit_py_plugins-0.4.1-py3-none-any.whl", hash = "sha256:1020dfe4e6bfc2c79fb49ae4e3f5b297f5ccd20f010187acc52af2921e27dc6a", size = 54794 },+]++[[package]]+name = "mdurl"+version = "0.1.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979 },+]++[[package]]+name = "pyfiglet"+version = "1.0.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/a0/f2/2649b2acace54f861eccd4ab163bfd914236fc93ddb1df02dad2a2552b14/pyfiglet-1.0.2.tar.gz", hash = "sha256:758788018ab8faaddc0984e1ea05ff330d3c64be663c513cc1f105f6a3066dab", size = 832345 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1a/03/bef6fff907e212d67a0003f8ea4819307bba91b2856074a0763dd483ccc4/pyfiglet-1.0.2-py3-none-any.whl", hash = "sha256:889b351d79c99e50a3f619c8f8e6ffdb27fd8c939fc43ecbd7559bd57d5f93ea", size = 1085824 },+]++[[package]]+name = "pygments"+version = "2.18.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/8e/62/8336eff65bcbc8e4cb5d05b55faf041285951b6e80f33e2bff2024788f31/pygments-2.18.0.tar.gz", hash = "sha256:786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199", size = 4891905 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f7/3f/01c8b82017c199075f8f788d0d906b9ffbbc5a47dc9918a945e13d5a2bda/pygments-2.18.0-py3-none-any.whl", hash = "sha256:b8e6aca0523f3ab76fee51799c488e38782ac06eafcf95e7ba832985c8e7b13a", size = 1205513 },+]++[[package]]+name = "pyyaml"+version = "6.0.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e", size = 130631 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/86/0c/c581167fc46d6d6d7ddcfb8c843a4de25bdd27e4466938109ca68492292c/PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c70c95198c015b85feafc136515252a261a84561b7b1d51e3384e0655ddf25ab", size = 183873 },+ { url = "https://files.pythonhosted.org/packages/a8/0c/38374f5bb272c051e2a69281d71cba6fdb983413e6758b84482905e29a5d/PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ce826d6ef20b1bc864f0a68340c8b3287705cae2f8b4b1d932177dcc76721725", size = 173302 },+ { url = "https://files.pythonhosted.org/packages/c3/93/9916574aa8c00aa06bbac729972eb1071d002b8e158bd0e83a3b9a20a1f7/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5", size = 739154 },+ { url = "https://files.pythonhosted.org/packages/95/0f/b8938f1cbd09739c6da569d172531567dbcc9789e0029aa070856f123984/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9b22676e8097e9e22e36d6b7bda33190d0d400f345f23d4065d48f4ca7ae0425", size = 766223 },+ { url = "https://files.pythonhosted.org/packages/b9/2b/614b4752f2e127db5cc206abc23a8c19678e92b23c3db30fc86ab731d3bd/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476", size = 767542 },+ { url = "https://files.pythonhosted.org/packages/d4/00/dd137d5bcc7efea1836d6264f049359861cf548469d18da90cd8216cf05f/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48", size = 731164 },+ { url = "https://files.pythonhosted.org/packages/c9/1f/4f998c900485e5c0ef43838363ba4a9723ac0ad73a9dc42068b12aaba4e4/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8b9c7197f7cb2738065c481a0461e50ad02f18c78cd75775628afb4d7137fb3b", size = 756611 },+ { url = "https://files.pythonhosted.org/packages/df/d1/f5a275fdb252768b7a11ec63585bc38d0e87c9e05668a139fea92b80634c/PyYAML-6.0.2-cp312-cp312-win32.whl", hash = "sha256:ef6107725bd54b262d6dedcc2af448a266975032bc85ef0172c5f059da6325b4", size = 140591 },+ { url = "https://files.pythonhosted.org/packages/0c/e8/4f648c598b17c3d06e8753d7d13d57542b30d56e6c2dedf9c331ae56312e/PyYAML-6.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:7e7401d0de89a9a855c839bc697c079a4af81cf878373abd7dc625847d25cbd8", size = 156338 },+ { url = "https://files.pythonhosted.org/packages/ef/e3/3af305b830494fa85d95f6d95ef7fa73f2ee1cc8ef5b495c7c3269fb835f/PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba", size = 181309 },+ { url = "https://files.pythonhosted.org/packages/45/9f/3b1c20a0b7a3200524eb0076cc027a970d320bd3a6592873c85c92a08731/PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:50187695423ffe49e2deacb8cd10510bc361faac997de9efef88badc3bb9e2d1", size = 171679 },+ { url = "https://files.pythonhosted.org/packages/7c/9a/337322f27005c33bcb656c655fa78325b730324c78620e8328ae28b64d0c/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0ffe8360bab4910ef1b9e87fb812d8bc0a308b0d0eef8c8f44e0254ab3b07133", size = 733428 },+ { url = "https://files.pythonhosted.org/packages/a3/69/864fbe19e6c18ea3cc196cbe5d392175b4cf3d5d0ac1403ec3f2d237ebb5/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:17e311b6c678207928d649faa7cb0d7b4c26a0ba73d41e99c4fff6b6c3276484", size = 763361 },+ { url = "https://files.pythonhosted.org/packages/04/24/b7721e4845c2f162d26f50521b825fb061bc0a5afcf9a386840f23ea19fa/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5", size = 759523 },+ { url = "https://files.pythonhosted.org/packages/2b/b2/e3234f59ba06559c6ff63c4e10baea10e5e7df868092bf9ab40e5b9c56b6/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc", size = 726660 },+ { url = "https://files.pythonhosted.org/packages/fe/0f/25911a9f080464c59fab9027482f822b86bf0608957a5fcc6eaac85aa515/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652", size = 751597 },+ { url = "https://files.pythonhosted.org/packages/14/0d/e2c3b43bbce3cf6bd97c840b46088a3031085179e596d4929729d8d68270/PyYAML-6.0.2-cp313-cp313-win32.whl", hash = "sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183", size = 140527 },+ { url = "https://files.pythonhosted.org/packages/fa/de/02b54f42487e3d3c6efb3f89428677074ca7bf43aae402517bc7cca949f3/PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563", size = 156446 },+]++[[package]]+name = "rich"+version = "13.7.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "markdown-it-py" },+ { name = "pygments" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b3/01/c954e134dc440ab5f96952fe52b4fdc64225530320a910473c1fe270d9aa/rich-13.7.1.tar.gz", hash = "sha256:9be308cb1fe2f1f57d67ce99e95af38a1e2bc71ad9813b0e247cf7ffbcc3a432", size = 221248 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/87/67/a37f6214d0e9fe57f6ae54b2956d550ca8365857f42a1ce0392bb21d9410/rich-13.7.1-py3-none-any.whl", hash = "sha256:4edbae314f59eb482f54e9e30bf00d33350aaa94f4bfcd4e9e3110e64d0d7222", size = 240681 },+]++[[package]]+name = "smmap"+version = "5.0.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/88/04/b5bf6d21dc4041000ccba7eb17dd3055feb237e7ffc2c20d3fae3af62baa/smmap-5.0.1.tar.gz", hash = "sha256:dceeb6c0028fdb6734471eb07c0cd2aae706ccaecab45965ee83f11c8d3b1f62", size = 22291 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a7/a5/10f97f73544edcdef54409f1d839f6049a0d79df68adbc1ceb24d1aaca42/smmap-5.0.1-py3-none-any.whl", hash = "sha256:e6d8668fa5f93e706934a62d7b4db19c8d9eb8cf2adbb75ef1b675aa332b69da", size = 24282 },+]++[[package]]+name = "textual"+version = "0.77.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "markdown-it-py", extra = ["linkify", "plugins"] },+ { name = "rich" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f7/1f/90af350202a1f5d24f32184551ae7c41a7719255aaae4fe3d122be429bdf/textual-0.77.0.tar.gz", hash = "sha256:866c1e18e87b2817ce08e09259224b771caaf8824988c4c717094c6bf106b20f", size = 1347925 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a2/ec/c5c0aa3ed96729b2c7fc8c20790c76bb2a2a1e8155f583cbf6ebe0a5d88c/textual-0.77.0-py3-none-any.whl", hash = "sha256:f117d29ddf9764c8969d1ac23724a7bd8cfe9111e158f2355d8a0e5ad10f5bd7", size = 573404 },+]++[[package]]+name = "typing-extensions"+version = "4.12.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/df/db/f35a00659bc03fec321ba8bce9420de607a1d37f8342eee1863174c69557/typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8", size = 85321 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d", size = 37438 },+]++[[package]]+name = "uc-micro-py"+version = "1.0.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/91/7a/146a99696aee0609e3712f2b44c6274566bc368dfe8375191278045186b8/uc-micro-py-1.0.3.tar.gz", hash = "sha256:d321b92cff673ec58027c04015fcaa8bb1e005478643ff4a500882eaab88c48a", size = 6043 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/37/87/1f677586e8ac487e29672e4b17455758fce261de06a0d086167bb760361a/uc_micro_py-1.0.3-py3-none-any.whl", hash = "sha256:db1dffff340817673d7b466ec86114a9dc0e9d4d9b5ba229d9d60e5c12600cd5", size = 6229 },+]diff --git a/atomic-forge/.coveragerc b/atomic-forge/.coveragercnew file mode 100644index 0000000..49cf33b--- /dev/null+++ b/atomic-forge/.coveragerc@@ -0,0 +1,8 @@+[run]+# this is the same as --omit=tests/*+omit = */tests/*++[report]+exclude_lines =+ if __name__ == "__main__":+show_missing = Truediff --git a/atomic-forge/.gitignore b/atomic-forge/.gitignorenew file mode 100644index 0000000..2f7e0c0--- /dev/null+++ b/atomic-forge/.gitignore@@ -0,0 +1,20 @@+# Python virtual environments+.venv+.python-version++# Python cache files+__pycache__/+.pytest_cache/+.pytest-cache/+.cache/++# Build and distribution+build/+*.egg-info++# Coverage reports+.coverage+.coverage.*++# IDE configurations+.vscode/diff --git a/atomic-forge/README.md b/atomic-forge/README.mdnew file mode 100644index 0000000..e69de29diff --git a/atomic-forge/atomic_tools/calculator/README.md b/atomic-forge/atomic_tools/calculator/README.mdnew file mode 100644index 0000000..4359eb6--- /dev/null+++ b/atomic-forge/atomic_tools/calculator/README.md@@ -0,0 +1,20 @@+# Calculator Tool++## Overview+The Calculator Tool is a Python-based utility designed for performing a variety of mathematical calculations. It supports basic arithmetic operations such as addition, subtraction, multiplication, and division, as well as more complex operations including exponentiation and trigonometric functions. This tool is built using the Pydantic library for input validation and the SymPy library for expression evaluation.++## Features+- Evaluate mathematical expressions.+- Support for basic and complex arithmetic operations.+- Input validation using Pydantic.+- User-friendly output formatting with Rich.++## Example Usage++```python+from calculator_tool import CalculatorTool++calculator = CalculatorTool()+result = calculator.run(expression="sin(pi/2) + cos(pi/4)")+print(result) # Output: 1.853981633974483+```diff --git a/atomic-forge/atomic_tools/calculator/pyproject.toml b/atomic-forge/atomic_tools/calculator/pyproject.tomlnew file mode 100644index 0000000..8d1ff9d--- /dev/null+++ b/atomic-forge/atomic_tools/calculator/pyproject.toml@@ -0,0 +1,21 @@+[project]+name = "calculator"+version = "0.1.0"+description = "Add your description here"+readme = "README.md"+requires-python = ">=3.12"+dependencies = [+ "atomic-agents",+ "pydantic>=2.8.2,<3",+ "sympy>=1.12,<2",+]++[tool.uv]+dev-dependencies = [+ "coverage>=7.6.1",+ "pytest-cov>=5.0.0",+ "pytest>=8.3.3",+]++[tool.uv.sources]+atomic-agents = { path = "../../../atomic-agents" }diff --git a/atomic-forge/atomic_tools/calculator/requirements.txt b/atomic-forge/atomic_tools/calculator/requirements.txtnew file mode 100644index 0000000..b97856d--- /dev/null+++ b/atomic-forge/atomic_tools/calculator/requirements.txt@@ -0,0 +1,4 @@+atomic_agents>=0.3.3,<0.4+pydantic>=2.8.2,<3+sympy>=1.12,<2+diff --git a/atomic-forge/atomic_tools/calculator/tests/test_calculator.py b/atomic-forge/atomic_tools/calculator/tests/test_calculator.pynew file mode 100644index 0000000..f30662d--- /dev/null+++ b/atomic-forge/atomic_tools/calculator/tests/test_calculator.py@@ -0,0 +1,23 @@+import os+import sys+import io+from unittest.mock import patch++sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))++from tool.calculator import (+ CalculatorTool,+ CalculatorToolInputSchema,+ CalculatorToolOutputSchema,+)+++def test_calculator_tool():+ calculator_tool = CalculatorTool()+ input_schema = CalculatorToolInputSchema(expression="2 + 2")+ result = calculator_tool.run(input_schema)+ assert result == CalculatorToolOutputSchema(result="4.00000000000000")+++if __name__ == "__main__":+ test_calculator_tool()diff --git a/atomic-forge/atomic_tools/calculator/tool/calculator.py b/atomic-forge/atomic_tools/calculator/tool/calculator.pynew file mode 100644index 0000000..d7ab8c1--- /dev/null+++ b/atomic-forge/atomic_tools/calculator/tool/calculator.py@@ -0,0 +1,87 @@+from pydantic import Field+from sympy import sympify++from atomic_agents.agents.base_agent import BaseIOSchema+from atomic_agents.lib.tools.base_tool import BaseTool, BaseToolConfig+++################+# INPUT SCHEMA #+################+class CalculatorToolInputSchema(BaseIOSchema):+ """+ Tool for performing calculations. Supports basic arithmetic operations+ like addition, subtraction, multiplication, and division, as well as more+ complex operations like exponentiation and trigonometric functions.+ Use this tool to evaluate mathematical expressions.+ """++ expression: str = Field(+ ..., description="Mathematical expression to evaluate. For example, '2 + 2'."+ )+++####################+# OUTPUT SCHEMA(S) #+####################+class CalculatorToolOutputSchema(BaseIOSchema):+ """This schema defines the output of the CalculatorTool."""++ result: str = Field(..., description="Result of the calculation.")+++##############+# TOOL LOGIC #+##############+class CalculatorToolConfig(BaseToolConfig):+ pass+++class CalculatorTool(BaseTool):+ """+ Tool for performing calculations based on the provided mathematical expression.++ Attributes:+ input_schema (CalculatorToolInputSchema): The schema for the input data.+ output_schema (CalculatorToolOutputSchema): The schema for the output data.+ """++ input_schema = CalculatorToolInputSchema+ output_schema = CalculatorToolOutputSchema++ def __init__(self, config: CalculatorToolConfig = CalculatorToolConfig()):+ """+ Initializes the CalculatorTool.++ Args:+ config (CalculatorToolConfig): Configuration for the tool.+ """+ super().__init__(config)++ def run(self, params: CalculatorToolInputSchema) -> CalculatorToolOutputSchema:+ """+ Executes the CalculatorTool with the given parameters.++ Args:+ params (CalculatorToolInputSchema): The input parameters for the tool.++ Returns:+ CalculatorToolOutputSchema: The result of the calculation.+ """+ # Convert the expression string to a symbolic expression+ parsed_expr = sympify(str(params.expression))++ # Evaluate the expression numerically+ result = parsed_expr.evalf()+ return CalculatorToolOutputSchema(result=str(result))+++#################+# EXAMPLE USAGE #+#################+if __name__ == "__main__":+ calculator = CalculatorTool()+ result = calculator.run(+ CalculatorToolInputSchema(expression="sin(pi/2) + cos(pi/4)")+ )+ print(result) # Expected output: {"result":"1.70710678118655"}diff --git a/atomic-forge/atomic_tools/calculator/uv.lock b/atomic-forge/atomic_tools/calculator/uv.locknew file mode 100644index 0000000..f336e3a--- /dev/null+++ b/atomic-forge/atomic_tools/calculator/uv.lock@@ -0,0 +1,962 @@+version = 1+requires-python = ">=3.12"+resolution-markers = [+ "python_full_version < '3.13'",+ "python_full_version >= '3.13'",+]++[[package]]+name = "aiohappyeyeballs"+version = "2.4.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/2d/f7/22bba300a16fd1cad99da1a23793fe43963ee326d012fdf852d0b4035955/aiohappyeyeballs-2.4.0.tar.gz", hash = "sha256:55a1714f084e63d49639800f95716da97a1f173d46a16dfcfda0016abb93b6b2", size = 16786 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/18/b6/58ea188899950d759a837f9a58b2aee1d1a380ea4d6211ce9b1823748851/aiohappyeyeballs-2.4.0-py3-none-any.whl", hash = "sha256:7ce92076e249169a13c2f49320d1967425eaf1f407522d707d59cac7628d62bd", size = 12155 },+]++[[package]]+name = "aiohttp"+version = "3.10.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiohappyeyeballs" },+ { name = "aiosignal" },+ { name = "attrs" },+ { name = "frozenlist" },+ { name = "multidict" },+ { name = "yarl" },+]+sdist = { url = "https://files.pythonhosted.org/packages/ca/28/ca549838018140b92a19001a8628578b0f2a3b38c16826212cc6f706e6d4/aiohttp-3.10.5.tar.gz", hash = "sha256:f071854b47d39591ce9a17981c46790acb30518e2f83dfca8db2dfa091178691", size = 7524360 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d9/1c/74f9dad4a2fc4107e73456896283d915937f48177b99867b63381fadac6e/aiohttp-3.10.5-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:305be5ff2081fa1d283a76113b8df7a14c10d75602a38d9f012935df20731487", size = 583468 },+ { url = "https://files.pythonhosted.org/packages/12/29/68d090551f2b58ce76c2b436ced8dd2dfd32115d41299bf0b0c308a5483c/aiohttp-3.10.5-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:3a1c32a19ee6bbde02f1cb189e13a71b321256cc1d431196a9f824050b160d5a", size = 394066 },+ { url = "https://files.pythonhosted.org/packages/8f/f7/971f88b4cdcaaa4622925ba7d86de47b48ec02a9040a143514b382f78da4/aiohttp-3.10.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:61645818edd40cc6f455b851277a21bf420ce347baa0b86eaa41d51ef58ba23d", size = 389098 },+ { url = "https://files.pythonhosted.org/packages/f1/5a/fe3742efdce551667b2ddf1158b27c5b8eb1edc13d5e14e996e52e301025/aiohttp-3.10.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6c225286f2b13bab5987425558baa5cbdb2bc925b2998038fa028245ef421e75", size = 1332742 },+ { url = "https://files.pythonhosted.org/packages/1a/52/a25c0334a1845eb4967dff279151b67ca32a948145a5812ed660ed900868/aiohttp-3.10.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8ba01ebc6175e1e6b7275c907a3a36be48a2d487549b656aa90c8a910d9f3178", size = 1372134 },+ { url = "https://files.pythonhosted.org/packages/96/3d/33c1d8efc2d8ec36bff9a8eca2df9fdf8a45269c6e24a88e74f2aa4f16bd/aiohttp-3.10.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8eaf44ccbc4e35762683078b72bf293f476561d8b68ec8a64f98cf32811c323e", size = 1414413 },+ { url = "https://files.pythonhosted.org/packages/64/74/0f1ddaa5f0caba1d946f0dd0c31f5744116e4a029beec454ec3726d3311f/aiohttp-3.10.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b1c43eb1ab7cbf411b8e387dc169acb31f0ca0d8c09ba63f9eac67829585b44f", size = 1328107 },+ { url = "https://files.pythonhosted.org/packages/0a/32/c10118f0ad50e4093227234f71fd0abec6982c29367f65f32ee74ed652c4/aiohttp-3.10.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:de7a5299827253023c55ea549444e058c0eb496931fa05d693b95140a947cb73", size = 1280126 },+ { url = "https://files.pythonhosted.org/packages/c6/c9/77e3d648d97c03a42acfe843d03e97be3c5ef1b4d9de52e5bd2d28eed8e7/aiohttp-3.10.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4790f0e15f00058f7599dab2b206d3049d7ac464dc2e5eae0e93fa18aee9e7bf", size = 1292660 },+ { url = "https://files.pythonhosted.org/packages/7e/5d/99c71f8e5c8b64295be421b4c42d472766b263a1fe32e91b64bf77005bf2/aiohttp-3.10.5-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:44b324a6b8376a23e6ba25d368726ee3bc281e6ab306db80b5819999c737d820", size = 1300988 },+ { url = "https://files.pythonhosted.org/packages/8f/2c/76d2377dd947f52fbe8afb19b18a3b816d66c7966755c04030f93b1f7b2d/aiohttp-3.10.5-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:0d277cfb304118079e7044aad0b76685d30ecb86f83a0711fc5fb257ffe832ca", size = 1339268 },+ { url = "https://files.pythonhosted.org/packages/fd/e6/3d9d935cc705d57ed524d82ec5d6b678a53ac1552720ae41282caa273584/aiohttp-3.10.5-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:54d9ddea424cd19d3ff6128601a4a4d23d54a421f9b4c0fff740505813739a91", size = 1366993 },+ { url = "https://files.pythonhosted.org/packages/fe/c2/f7eed4d602f3f224600d03ab2e1a7734999b0901b1c49b94dc5891340433/aiohttp-3.10.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:4f1c9866ccf48a6df2b06823e6ae80573529f2af3a0992ec4fe75b1a510df8a6", size = 1329459 },+ { url = "https://files.pythonhosted.org/packages/ce/8f/27f205b76531fc592abe29e1ad265a16bf934a9f609509c02d765e6a8055/aiohttp-3.10.5-cp312-cp312-win32.whl", hash = "sha256:dc4826823121783dccc0871e3f405417ac116055bf184ac04c36f98b75aacd12", size = 356968 },+ { url = "https://files.pythonhosted.org/packages/39/8c/4f6c0b2b3629f6be6c81ab84d9d577590f74f01d4412bfc4067958eaa1e1/aiohttp-3.10.5-cp312-cp312-win_amd64.whl", hash = "sha256:22c0a23a3b3138a6bf76fc553789cb1a703836da86b0f306b6f0dc1617398abc", size = 377650 },+ { url = "https://files.pythonhosted.org/packages/7b/b9/03b4327897a5b5d29338fa9b514f1c2f66a3e4fc88a4e40fad478739314d/aiohttp-3.10.5-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:7f6b639c36734eaa80a6c152a238242bedcee9b953f23bb887e9102976343092", size = 576994 },+ { url = "https://files.pythonhosted.org/packages/67/1b/20c2e159cd07b8ed6dde71c2258233902fdf415b2fe6174bd2364ba63107/aiohttp-3.10.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f29930bc2921cef955ba39a3ff87d2c4398a0394ae217f41cb02d5c26c8b1b77", size = 390684 },+ { url = "https://files.pythonhosted.org/packages/4d/6b/ff83b34f157e370431d8081c5d1741963f4fb12f9aaddb2cacbf50305225/aiohttp-3.10.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f489a2c9e6455d87eabf907ac0b7d230a9786be43fbe884ad184ddf9e9c1e385", size = 386176 },+ { url = "https://files.pythonhosted.org/packages/4d/a1/6e92817eb657de287560962df4959b7ddd22859c4b23a0309e2d3de12538/aiohttp-3.10.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:123dd5b16b75b2962d0fff566effb7a065e33cd4538c1692fb31c3bda2bfb972", size = 1303310 },+ { url = "https://files.pythonhosted.org/packages/04/29/200518dc7a39c30ae6d5bc232d7207446536e93d3d9299b8e95db6e79c54/aiohttp-3.10.5-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b98e698dc34966e5976e10bbca6d26d6724e6bdea853c7c10162a3235aba6e16", size = 1340445 },+ { url = "https://files.pythonhosted.org/packages/8e/20/53f7bba841ba7b5bb5dea580fea01c65524879ba39cb917d08c845524717/aiohttp-3.10.5-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c3b9162bab7e42f21243effc822652dc5bb5e8ff42a4eb62fe7782bcbcdfacf6", size = 1385121 },+ { url = "https://files.pythonhosted.org/packages/f1/b4/d99354ad614c48dd38fb1ee880a1a54bd9ab2c3bcad3013048d4a1797d3a/aiohttp-3.10.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1923a5c44061bffd5eebeef58cecf68096e35003907d8201a4d0d6f6e387ccaa", size = 1299669 },+ { url = "https://files.pythonhosted.org/packages/51/39/ca1de675f2a5729c71c327e52ac6344e63f036bd37281686ae5c3fb13bfb/aiohttp-3.10.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d55f011da0a843c3d3df2c2cf4e537b8070a419f891c930245f05d329c4b0689", size = 1252638 },+ { url = "https://files.pythonhosted.org/packages/54/cf/a3ae7ff43138422d477348e309ef8275779701bf305ff6054831ef98b782/aiohttp-3.10.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:afe16a84498441d05e9189a15900640a2d2b5e76cf4efe8cbb088ab4f112ee57", size = 1266889 },+ { url = "https://files.pythonhosted.org/packages/6e/7a/c6027ad70d9fb23cf254a26144de2723821dade1a624446aa22cd0b6d012/aiohttp-3.10.5-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:f8112fb501b1e0567a1251a2fd0747baae60a4ab325a871e975b7bb67e59221f", size = 1266249 },+ { url = "https://files.pythonhosted.org/packages/64/fd/ed136d46bc2c7e3342fed24662b4827771d55ceb5a7687847aae977bfc17/aiohttp-3.10.5-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:1e72589da4c90337837fdfe2026ae1952c0f4a6e793adbbfbdd40efed7c63599", size = 1311036 },+ { url = "https://files.pythonhosted.org/packages/76/9a/43eeb0166f1119256d6f43468f900db1aed7fbe32069d2a71c82f987db4d/aiohttp-3.10.5-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:4d46c7b4173415d8e583045fbc4daa48b40e31b19ce595b8d92cf639396c15d5", size = 1338756 },+ { url = "https://files.pythonhosted.org/packages/d5/bc/d01ff0810b3f5e26896f76d44225ed78b088ddd33079b85cd1a23514318b/aiohttp-3.10.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:33e6bc4bab477c772a541f76cd91e11ccb6d2efa2b8d7d7883591dfb523e5987", size = 1299976 },+ { url = "https://files.pythonhosted.org/packages/3e/c9/50a297c4f7ab57a949f4add2d3eafe5f3e68bb42f739e933f8b32a092bda/aiohttp-3.10.5-cp313-cp313-win32.whl", hash = "sha256:c58c6837a2c2a7cf3133983e64173aec11f9c2cd8e87ec2fdc16ce727bcf1a04", size = 355609 },+ { url = "https://files.pythonhosted.org/packages/65/28/aee9d04fb0b3b1f90622c338a08e54af5198e704a910e20947c473298fd0/aiohttp-3.10.5-cp313-cp313-win_amd64.whl", hash = "sha256:38172a70005252b6893088c0f5e8a47d173df7cc2b2bd88650957eb84fcf5022", size = 375697 },+]++[[package]]+name = "aiosignal"+version = "1.3.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "frozenlist" },+]+sdist = { url = "https://files.pythonhosted.org/packages/ae/67/0952ed97a9793b4958e5736f6d2b346b414a2cd63e82d05940032f45b32f/aiosignal-1.3.1.tar.gz", hash = "sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc", size = 19422 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/76/ac/a7305707cb852b7e16ff80eaf5692309bde30e2b1100a1fcacdc8f731d97/aiosignal-1.3.1-py3-none-any.whl", hash = "sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17", size = 7617 },+]++[[package]]+name = "annotated-types"+version = "0.7.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643 },+]++[[package]]+name = "anyio"+version = "4.5.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "idna" },+ { name = "sniffio" },+]+sdist = { url = "https://files.pythonhosted.org/packages/a0/44/66874c5256e9fbc30103b31927fd9341c8da6ccafd4721b2b3e81e6ef176/anyio-4.5.0.tar.gz", hash = "sha256:c5a275fe5ca0afd788001f58fca1e69e29ce706d746e317d660e21f70c530ef9", size = 169376 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3b/68/f9e9bf6324c46e6b8396610aef90ad423ec3e18c9079547ceafea3dce0ec/anyio-4.5.0-py3-none-any.whl", hash = "sha256:fdeb095b7cc5a5563175eedd926ec4ae55413bb4be5770c424af0ba46ccb4a78", size = 89250 },+]++[[package]]+name = "atomic-agents"+version = "0.3.7"+source = { directory = "../../../atomic-agents" }+dependencies = [+ { name = "beautifulsoup4" },+ { name = "google-api-python-client" },+ { name = "instructor" },+ { name = "markdownify" },+ { name = "openai" },+ { name = "pydantic" },+ { name = "pypdf2" },+ { name = "requests" },+ { name = "rich" },+]++[package.metadata]+requires-dist = [+ { name = "beautifulsoup4", specifier = ">=4.12.3,<5.0.0" },+ { name = "google-api-python-client", specifier = ">=2.114.0,<3.0.0" },+ { name = "instructor", specifier = ">=1.3.4,<2.0.0" },+ { name = "markdownify", specifier = ">=0.12.1,<0.13.0" },+ { name = "openai", specifier = ">=1.35.12,<2.0.0" },+ { name = "pydantic", specifier = ">=2.8.0,<3.0.0" },+ { name = "pypdf2", specifier = ">=3.0.1,<4.0.0" },+ { name = "requests", specifier = ">=2.32.3,<3.0.0" },+ { name = "rich", specifier = ">=13.7.1,<14.0.0" },+]++[[package]]+name = "attrs"+version = "24.2.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/fc/0f/aafca9af9315aee06a89ffde799a10a582fe8de76c563ee80bbcdc08b3fb/attrs-24.2.0.tar.gz", hash = "sha256:5cfb1b9148b5b086569baec03f20d7b6bf3bcacc9a42bebf87ffaaca362f6346", size = 792678 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6a/21/5b6702a7f963e95456c0de2d495f67bf5fd62840ac655dc451586d23d39a/attrs-24.2.0-py3-none-any.whl", hash = "sha256:81921eb96de3191c8258c199618104dd27ac608d9366f5e35d011eae1867ede2", size = 63001 },+]++[[package]]+name = "beautifulsoup4"+version = "4.12.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "soupsieve" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b3/ca/824b1195773ce6166d388573fc106ce56d4a805bd7427b624e063596ec58/beautifulsoup4-4.12.3.tar.gz", hash = "sha256:74e3d1928edc070d21748185c46e3fb33490f22f52a3addee9aee0f4f7781051", size = 581181 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b1/fe/e8c672695b37eecc5cbf43e1d0638d88d66ba3a44c4d321c796f4e59167f/beautifulsoup4-4.12.3-py3-none-any.whl", hash = "sha256:b80878c9f40111313e55da8ba20bdba06d8fa3969fc68304167741bbf9e082ed", size = 147925 },+]++[[package]]+name = "cachetools"+version = "5.5.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/c3/38/a0f315319737ecf45b4319a8cd1f3a908e29d9277b46942263292115eee7/cachetools-5.5.0.tar.gz", hash = "sha256:2cc24fb4cbe39633fb7badd9db9ca6295d766d9c2995f245725a46715d050f2a", size = 27661 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a4/07/14f8ad37f2d12a5ce41206c21820d8cb6561b728e51fad4530dff0552a67/cachetools-5.5.0-py3-none-any.whl", hash = "sha256:02134e8439cdc2ffb62023ce1debca2944c3f289d66bb17ead3ab3dede74b292", size = 9524 },+]++[[package]]+name = "calculator"+version = "0.1.0"+source = { virtual = "." }+dependencies = [+ { name = "atomic-agents" },+ { name = "pydantic" },+ { name = "sympy" },+]++[package.dev-dependencies]+dev = [+ { name = "coverage" },+ { name = "pytest" },+ { name = "pytest-cov" },+]++[package.metadata]+requires-dist = [+ { name = "atomic-agents", directory = "../../../atomic-agents" },+ { name = "pydantic", specifier = ">=2.8.2,<3" },+ { name = "sympy", specifier = ">=1.12,<2" },+]++[package.metadata.requires-dev]+dev = [+ { name = "coverage", specifier = ">=7.6.1" },+ { name = "pytest", specifier = ">=8.3.3" },+ { name = "pytest-cov", specifier = ">=5.0.0" },+]++[[package]]+name = "certifi"+version = "2024.8.30"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b0/ee/9b19140fe824b367c04c5e1b369942dd754c4c5462d5674002f75c4dedc1/certifi-2024.8.30.tar.gz", hash = "sha256:bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9", size = 168507 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/12/90/3c9ff0512038035f59d279fddeb79f5f1eccd8859f06d6163c58798b9487/certifi-2024.8.30-py3-none-any.whl", hash = "sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8", size = 167321 },+]++[[package]]+name = "charset-normalizer"+version = "3.3.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/63/09/c1bc53dab74b1816a00d8d030de5bf98f724c52c1635e07681d312f20be8/charset-normalizer-3.3.2.tar.gz", hash = "sha256:f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5", size = 104809 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d1/b2/fcedc8255ec42afee97f9e6f0145c734bbe104aac28300214593eb326f1d/charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:0b2b64d2bb6d3fb9112bafa732def486049e63de9618b5843bcdd081d8144cd8", size = 192892 },+ { url = "https://files.pythonhosted.org/packages/2e/7d/2259318c202f3d17f3fe6438149b3b9e706d1070fe3fcbb28049730bb25c/charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:ddbb2551d7e0102e7252db79ba445cdab71b26640817ab1e3e3648dad515003b", size = 122213 },+ { url = "https://files.pythonhosted.org/packages/3a/52/9f9d17c3b54dc238de384c4cb5a2ef0e27985b42a0e5cc8e8a31d918d48d/charset_normalizer-3.3.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:55086ee1064215781fff39a1af09518bc9255b50d6333f2e4c74ca09fac6a8f6", size = 119404 },+ { url = "https://files.pythonhosted.org/packages/99/b0/9c365f6d79a9f0f3c379ddb40a256a67aa69c59609608fe7feb6235896e1/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f4a014bc36d3c57402e2977dada34f9c12300af536839dc38c0beab8878f38a", size = 137275 },+ { url = "https://files.pythonhosted.org/packages/91/33/749df346e93d7a30cdcb90cbfdd41a06026317bfbfb62cd68307c1a3c543/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a10af20b82360ab00827f916a6058451b723b4e65030c5a18577c8b2de5b3389", size = 147518 },+ { url = "https://files.pythonhosted.org/packages/72/1a/641d5c9f59e6af4c7b53da463d07600a695b9824e20849cb6eea8a627761/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8d756e44e94489e49571086ef83b2bb8ce311e730092d2c34ca8f7d925cb20aa", size = 140182 },+ { url = "https://files.pythonhosted.org/packages/ee/fb/14d30eb4956408ee3ae09ad34299131fb383c47df355ddb428a7331cfa1e/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90d558489962fd4918143277a773316e56c72da56ec7aa3dc3dbbe20fdfed15b", size = 141869 },+ { url = "https://files.pythonhosted.org/packages/df/3e/a06b18788ca2eb6695c9b22325b6fde7dde0f1d1838b1792a0076f58fe9d/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6ac7ffc7ad6d040517be39eb591cac5ff87416c2537df6ba3cba3bae290c0fed", size = 144042 },+ { url = "https://files.pythonhosted.org/packages/45/59/3d27019d3b447a88fe7e7d004a1e04be220227760264cc41b405e863891b/charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7ed9e526742851e8d5cc9e6cf41427dfc6068d4f5a3bb03659444b4cabf6bc26", size = 138275 },+ { url = "https://files.pythonhosted.org/packages/7b/ef/5eb105530b4da8ae37d506ccfa25057961b7b63d581def6f99165ea89c7e/charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:8bdb58ff7ba23002a4c5808d608e4e6c687175724f54a5dade5fa8c67b604e4d", size = 144819 },+ { url = "https://files.pythonhosted.org/packages/a2/51/e5023f937d7f307c948ed3e5c29c4b7a3e42ed2ee0b8cdf8f3a706089bf0/charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:6b3251890fff30ee142c44144871185dbe13b11bab478a88887a639655be1068", size = 149415 },+ { url = "https://files.pythonhosted.org/packages/24/9d/2e3ef673dfd5be0154b20363c5cdcc5606f35666544381bee15af3778239/charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:b4a23f61ce87adf89be746c8a8974fe1c823c891d8f86eb218bb957c924bb143", size = 141212 },+ { url = "https://files.pythonhosted.org/packages/5b/ae/ce2c12fcac59cb3860b2e2d76dc405253a4475436b1861d95fe75bdea520/charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:efcb3f6676480691518c177e3b465bcddf57cea040302f9f4e6e191af91174d4", size = 142167 },+ { url = "https://files.pythonhosted.org/packages/ed/3a/a448bf035dce5da359daf9ae8a16b8a39623cc395a2ffb1620aa1bce62b0/charset_normalizer-3.3.2-cp312-cp312-win32.whl", hash = "sha256:d965bba47ddeec8cd560687584e88cf699fd28f192ceb452d1d7ee807c5597b7", size = 93041 },+ { url = "https://files.pythonhosted.org/packages/b6/7c/8debebb4f90174074b827c63242c23851bdf00a532489fba57fef3416e40/charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl", hash = "sha256:96b02a3dc4381e5494fad39be677abcb5e6634bf7b4fa83a6dd3112607547001", size = 100397 },+ { url = "https://files.pythonhosted.org/packages/28/76/e6222113b83e3622caa4bb41032d0b1bf785250607392e1b778aca0b8a7d/charset_normalizer-3.3.2-py3-none-any.whl", hash = "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc", size = 48543 },+]++[[package]]+name = "click"+version = "8.1.7"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "platform_system == 'Windows'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/96/d3/f04c7bfcf5c1862a2a5b845c6b2b360488cf47af55dfa79c98f6a6bf98b5/click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de", size = 336121 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28", size = 97941 },+]++[[package]]+name = "colorama"+version = "0.4.6"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 },+]++[[package]]+name = "coverage"+version = "7.6.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f7/08/7e37f82e4d1aead42a7443ff06a1e406aabf7302c4f00a546e4b320b994c/coverage-7.6.1.tar.gz", hash = "sha256:953510dfb7b12ab69d20135a0662397f077c59b1e6379a768e97c59d852ee51d", size = 798791 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7e/d4/300fc921dff243cd518c7db3a4c614b7e4b2431b0d1145c1e274fd99bd70/coverage-7.6.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:95cae0efeb032af8458fc27d191f85d1717b1d4e49f7cb226cf526ff28179778", size = 206983 },+ { url = "https://files.pythonhosted.org/packages/e1/ab/6bf00de5327ecb8db205f9ae596885417a31535eeda6e7b99463108782e1/coverage-7.6.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:5621a9175cf9d0b0c84c2ef2b12e9f5f5071357c4d2ea6ca1cf01814f45d2391", size = 207221 },+ { url = "https://files.pythonhosted.org/packages/92/8f/2ead05e735022d1a7f3a0a683ac7f737de14850395a826192f0288703472/coverage-7.6.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:260933720fdcd75340e7dbe9060655aff3af1f0c5d20f46b57f262ab6c86a5e8", size = 240342 },+ { url = "https://files.pythonhosted.org/packages/0f/ef/94043e478201ffa85b8ae2d2c79b4081e5a1b73438aafafccf3e9bafb6b5/coverage-7.6.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:07e2ca0ad381b91350c0ed49d52699b625aab2b44b65e1b4e02fa9df0e92ad2d", size = 237371 },+ { url = "https://files.pythonhosted.org/packages/1f/0f/c890339dd605f3ebc269543247bdd43b703cce6825b5ed42ff5f2d6122c7/coverage-7.6.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c44fee9975f04b33331cb8eb272827111efc8930cfd582e0320613263ca849ca", size = 239455 },+ { url = "https://files.pythonhosted.org/packages/d1/04/7fd7b39ec7372a04efb0f70c70e35857a99b6a9188b5205efb4c77d6a57a/coverage-7.6.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:877abb17e6339d96bf08e7a622d05095e72b71f8afd8a9fefc82cf30ed944163", size = 238924 },+ { url = "https://files.pythonhosted.org/packages/ed/bf/73ce346a9d32a09cf369f14d2a06651329c984e106f5992c89579d25b27e/coverage-7.6.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:3e0cadcf6733c09154b461f1ca72d5416635e5e4ec4e536192180d34ec160f8a", size = 237252 },+ { url = "https://files.pythonhosted.org/packages/86/74/1dc7a20969725e917b1e07fe71a955eb34bc606b938316bcc799f228374b/coverage-7.6.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c3c02d12f837d9683e5ab2f3d9844dc57655b92c74e286c262e0fc54213c216d", size = 238897 },+ { url = "https://files.pythonhosted.org/packages/b6/e9/d9cc3deceb361c491b81005c668578b0dfa51eed02cd081620e9a62f24ec/coverage-7.6.1-cp312-cp312-win32.whl", hash = "sha256:e05882b70b87a18d937ca6768ff33cc3f72847cbc4de4491c8e73880766718e5", size = 209606 },+ { url = "https://files.pythonhosted.org/packages/47/c8/5a2e41922ea6740f77d555c4d47544acd7dc3f251fe14199c09c0f5958d3/coverage-7.6.1-cp312-cp312-win_amd64.whl", hash = "sha256:b5d7b556859dd85f3a541db6a4e0167b86e7273e1cdc973e5b175166bb634fdb", size = 210373 },+ { url = "https://files.pythonhosted.org/packages/8c/f9/9aa4dfb751cb01c949c990d136a0f92027fbcc5781c6e921df1cb1563f20/coverage-7.6.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a4acd025ecc06185ba2b801f2de85546e0b8ac787cf9d3b06e7e2a69f925b106", size = 207007 },+ { url = "https://files.pythonhosted.org/packages/b9/67/e1413d5a8591622a46dd04ff80873b04c849268831ed5c304c16433e7e30/coverage-7.6.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a6d3adcf24b624a7b778533480e32434a39ad8fa30c315208f6d3e5542aeb6e9", size = 207269 },+ { url = "https://files.pythonhosted.org/packages/14/5b/9dec847b305e44a5634d0fb8498d135ab1d88330482b74065fcec0622224/coverage-7.6.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d0c212c49b6c10e6951362f7c6df3329f04c2b1c28499563d4035d964ab8e08c", size = 239886 },+ { url = "https://files.pythonhosted.org/packages/7b/b7/35760a67c168e29f454928f51f970342d23cf75a2bb0323e0f07334c85f3/coverage-7.6.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6e81d7a3e58882450ec4186ca59a3f20a5d4440f25b1cff6f0902ad890e6748a", size = 237037 },+ { url = "https://files.pythonhosted.org/packages/f7/95/d2fd31f1d638df806cae59d7daea5abf2b15b5234016a5ebb502c2f3f7ee/coverage-7.6.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78b260de9790fd81e69401c2dc8b17da47c8038176a79092a89cb2b7d945d060", size = 239038 },+ { url = "https://files.pythonhosted.org/packages/6e/bd/110689ff5752b67924efd5e2aedf5190cbbe245fc81b8dec1abaffba619d/coverage-7.6.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a78d169acd38300060b28d600344a803628c3fd585c912cacc9ea8790fe96862", size = 238690 },+ { url = "https://files.pythonhosted.org/packages/d3/a8/08d7b38e6ff8df52331c83130d0ab92d9c9a8b5462f9e99c9f051a4ae206/coverage-7.6.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2c09f4ce52cb99dd7505cd0fc8e0e37c77b87f46bc9c1eb03fe3bc9991085388", size = 236765 },+ { url = "https://files.pythonhosted.org/packages/d6/6a/9cf96839d3147d55ae713eb2d877f4d777e7dc5ba2bce227167d0118dfe8/coverage-7.6.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6878ef48d4227aace338d88c48738a4258213cd7b74fd9a3d4d7582bb1d8a155", size = 238611 },+ { url = "https://files.pythonhosted.org/packages/74/e4/7ff20d6a0b59eeaab40b3140a71e38cf52547ba21dbcf1d79c5a32bba61b/coverage-7.6.1-cp313-cp313-win32.whl", hash = "sha256:44df346d5215a8c0e360307d46ffaabe0f5d3502c8a1cefd700b34baf31d411a", size = 209671 },+ { url = "https://files.pythonhosted.org/packages/35/59/1812f08a85b57c9fdb6d0b383d779e47b6f643bc278ed682859512517e83/coverage-7.6.1-cp313-cp313-win_amd64.whl", hash = "sha256:8284cf8c0dd272a247bc154eb6c95548722dce90d098c17a883ed36e67cdb129", size = 210368 },+ { url = "https://files.pythonhosted.org/packages/9c/15/08913be1c59d7562a3e39fce20661a98c0a3f59d5754312899acc6cb8a2d/coverage-7.6.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:d3296782ca4eab572a1a4eca686d8bfb00226300dcefdf43faa25b5242ab8a3e", size = 207758 },+ { url = "https://files.pythonhosted.org/packages/c4/ae/b5d58dff26cade02ada6ca612a76447acd69dccdbb3a478e9e088eb3d4b9/coverage-7.6.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:502753043567491d3ff6d08629270127e0c31d4184c4c8d98f92c26f65019962", size = 208035 },+ { url = "https://files.pythonhosted.org/packages/b8/d7/62095e355ec0613b08dfb19206ce3033a0eedb6f4a67af5ed267a8800642/coverage-7.6.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6a89ecca80709d4076b95f89f308544ec8f7b4727e8a547913a35f16717856cb", size = 250839 },+ { url = "https://files.pythonhosted.org/packages/7c/1e/c2967cb7991b112ba3766df0d9c21de46b476d103e32bb401b1b2adf3380/coverage-7.6.1-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a318d68e92e80af8b00fa99609796fdbcdfef3629c77c6283566c6f02c6d6704", size = 246569 },+ { url = "https://files.pythonhosted.org/packages/8b/61/a7a6a55dd266007ed3b1df7a3386a0d760d014542d72f7c2c6938483b7bd/coverage-7.6.1-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:13b0a73a0896988f053e4fbb7de6d93388e6dd292b0d87ee51d106f2c11b465b", size = 248927 },+ { url = "https://files.pythonhosted.org/packages/c8/fa/13a6f56d72b429f56ef612eb3bc5ce1b75b7ee12864b3bd12526ab794847/coverage-7.6.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:4421712dbfc5562150f7554f13dde997a2e932a6b5f352edcce948a815efee6f", size = 248401 },+ { url = "https://files.pythonhosted.org/packages/75/06/0429c652aa0fb761fc60e8c6b291338c9173c6aa0f4e40e1902345b42830/coverage-7.6.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:166811d20dfea725e2e4baa71fffd6c968a958577848d2131f39b60043400223", size = 246301 },+ { url = "https://files.pythonhosted.org/packages/52/76/1766bb8b803a88f93c3a2d07e30ffa359467810e5cbc68e375ebe6906efb/coverage-7.6.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:225667980479a17db1048cb2bf8bfb39b8e5be8f164b8f6628b64f78a72cf9d3", size = 247598 },+ { url = "https://files.pythonhosted.org/packages/66/8b/f54f8db2ae17188be9566e8166ac6df105c1c611e25da755738025708d54/coverage-7.6.1-cp313-cp313t-win32.whl", hash = "sha256:170d444ab405852903b7d04ea9ae9b98f98ab6d7e63e1115e82620807519797f", size = 210307 },+ { url = "https://files.pythonhosted.org/packages/9f/b0/e0dca6da9170aefc07515cce067b97178cefafb512d00a87a1c717d2efd5/coverage-7.6.1-cp313-cp313t-win_amd64.whl", hash = "sha256:b9f222de8cded79c49bf184bdbc06630d4c58eec9459b939b4a690c82ed05657", size = 211453 },+]++[[package]]+name = "distro"+version = "1.9.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/fc/f8/98eea607f65de6527f8a2e8885fc8015d3e6f5775df186e443e0964a11c3/distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed", size = 60722 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2", size = 20277 },+]++[[package]]+name = "docstring-parser"+version = "0.16"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/08/12/9c22a58c0b1e29271051222d8906257616da84135af9ed167c9e28f85cb3/docstring_parser-0.16.tar.gz", hash = "sha256:538beabd0af1e2db0146b6bd3caa526c35a34d61af9fd2887f3a8a27a739aa6e", size = 26565 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d5/7c/e9fcff7623954d86bdc17782036cbf715ecab1bec4847c008557affe1ca8/docstring_parser-0.16-py3-none-any.whl", hash = "sha256:bf0a1387354d3691d102edef7ec124f219ef639982d096e26e3b60aeffa90637", size = 36533 },+]++[[package]]+name = "frozenlist"+version = "1.4.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/cf/3d/2102257e7acad73efc4a0c306ad3953f68c504c16982bbdfee3ad75d8085/frozenlist-1.4.1.tar.gz", hash = "sha256:c037a86e8513059a2613aaba4d817bb90b9d9b6b69aace3ce9c877e8c8ed402b", size = 37820 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b4/db/4cf37556a735bcdb2582f2c3fa286aefde2322f92d3141e087b8aeb27177/frozenlist-1.4.1-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:1979bc0aeb89b33b588c51c54ab0161791149f2461ea7c7c946d95d5f93b56ae", size = 93937 },+ { url = "https://files.pythonhosted.org/packages/46/03/69eb64642ca8c05f30aa5931d6c55e50b43d0cd13256fdd01510a1f85221/frozenlist-1.4.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:cc7b01b3754ea68a62bd77ce6020afaffb44a590c2289089289363472d13aedb", size = 53656 },+ { url = "https://files.pythonhosted.org/packages/3f/ab/c543c13824a615955f57e082c8a5ee122d2d5368e80084f2834e6f4feced/frozenlist-1.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c9c92be9fd329ac801cc420e08452b70e7aeab94ea4233a4804f0915c14eba9b", size = 51868 },+ { url = "https://files.pythonhosted.org/packages/a9/b8/438cfd92be2a124da8259b13409224d9b19ef8f5a5b2507174fc7e7ea18f/frozenlist-1.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c3894db91f5a489fc8fa6a9991820f368f0b3cbdb9cd8849547ccfab3392d86", size = 280652 },+ { url = "https://files.pythonhosted.org/packages/54/72/716a955521b97a25d48315c6c3653f981041ce7a17ff79f701298195bca3/frozenlist-1.4.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ba60bb19387e13597fb059f32cd4d59445d7b18b69a745b8f8e5db0346f33480", size = 286739 },+ { url = "https://files.pythonhosted.org/packages/65/d8/934c08103637567084568e4d5b4219c1016c60b4d29353b1a5b3587827d6/frozenlist-1.4.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8aefbba5f69d42246543407ed2461db31006b0f76c4e32dfd6f42215a2c41d09", size = 289447 },+ { url = "https://files.pythonhosted.org/packages/70/bb/d3b98d83ec6ef88f9bd63d77104a305d68a146fd63a683569ea44c3085f6/frozenlist-1.4.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:780d3a35680ced9ce682fbcf4cb9c2bad3136eeff760ab33707b71db84664e3a", size = 265466 },+ { url = "https://files.pythonhosted.org/packages/0b/f2/b8158a0f06faefec33f4dff6345a575c18095a44e52d4f10c678c137d0e0/frozenlist-1.4.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9acbb16f06fe7f52f441bb6f413ebae6c37baa6ef9edd49cdd567216da8600cd", size = 281530 },+ { url = "https://files.pythonhosted.org/packages/ea/a2/20882c251e61be653764038ece62029bfb34bd5b842724fff32a5b7a2894/frozenlist-1.4.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:23b701e65c7b36e4bf15546a89279bd4d8675faabc287d06bbcfac7d3c33e1e6", size = 281295 },+ { url = "https://files.pythonhosted.org/packages/4c/f9/8894c05dc927af2a09663bdf31914d4fb5501653f240a5bbaf1e88cab1d3/frozenlist-1.4.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:3e0153a805a98f5ada7e09826255ba99fb4f7524bb81bf6b47fb702666484ae1", size = 268054 },+ { url = "https://files.pythonhosted.org/packages/37/ff/a613e58452b60166507d731812f3be253eb1229808e59980f0405d1eafbf/frozenlist-1.4.1-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:dd9b1baec094d91bf36ec729445f7769d0d0cf6b64d04d86e45baf89e2b9059b", size = 286904 },+ { url = "https://files.pythonhosted.org/packages/cc/6e/0091d785187f4c2020d5245796d04213f2261ad097e0c1cf35c44317d517/frozenlist-1.4.1-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:1a4471094e146b6790f61b98616ab8e44f72661879cc63fa1049d13ef711e71e", size = 290754 },+ { url = "https://files.pythonhosted.org/packages/a5/c2/e42ad54bae8bcffee22d1e12a8ee6c7717f7d5b5019261a8c861854f4776/frozenlist-1.4.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:5667ed53d68d91920defdf4035d1cdaa3c3121dc0b113255124bcfada1cfa1b8", size = 282602 },+ { url = "https://files.pythonhosted.org/packages/b6/61/56bad8cb94f0357c4bc134acc30822e90e203b5cb8ff82179947de90c17f/frozenlist-1.4.1-cp312-cp312-win32.whl", hash = "sha256:beee944ae828747fd7cb216a70f120767fc9f4f00bacae8543c14a6831673f89", size = 44063 },+ { url = "https://files.pythonhosted.org/packages/3e/dc/96647994a013bc72f3d453abab18340b7f5e222b7b7291e3697ca1fcfbd5/frozenlist-1.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:64536573d0a2cb6e625cf309984e2d873979709f2cf22839bf2d61790b448ad5", size = 50452 },+ { url = "https://files.pythonhosted.org/packages/83/10/466fe96dae1bff622021ee687f68e5524d6392b0a2f80d05001cd3a451ba/frozenlist-1.4.1-py3-none-any.whl", hash = "sha256:04ced3e6a46b4cfffe20f9ae482818e34eba9b5fb0ce4056e4cc9b6e212d09b7", size = 11552 },+]++[[package]]+name = "google-api-core"+version = "2.20.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "google-auth" },+ { name = "googleapis-common-protos" },+ { name = "proto-plus" },+ { name = "protobuf" },+ { name = "requests" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c8/5c/31c1742a53b79c8a0c4757b5fae2e8ab9c519cbd7b98c587d4294e1d2d16/google_api_core-2.20.0.tar.gz", hash = "sha256:f74dff1889ba291a4b76c5079df0711810e2d9da81abfdc99957bc961c1eb28f", size = 152583 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c8/dc/6143f67acf5f30717c9e1b1c48fc04c0f59b869be046e6639d3f171640ae/google_api_core-2.20.0-py3-none-any.whl", hash = "sha256:ef0591ef03c30bb83f79b3d0575c3f31219001fc9c5cf37024d08310aeffed8a", size = 142162 },+]++[[package]]+name = "google-api-python-client"+version = "2.146.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "google-api-core" },+ { name = "google-auth" },+ { name = "google-auth-httplib2" },+ { name = "httplib2" },+ { name = "uritemplate" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f3/68/29fae04dbe58befbc2313fa03c43448c17d237047e83701272f54d83ac4a/google_api_python_client-2.146.0.tar.gz", hash = "sha256:41f671be10fa077ee5143ee9f0903c14006d39dc644564f4e044ae96b380bf68", size = 11690645 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/29/03/e9d5a2befd19a68091e0a49bc9fa58b3d42a463a7ef621ae5816337ac2ee/google_api_python_client-2.146.0-py2.py3-none-any.whl", hash = "sha256:b1e62c9889c5ef6022f11d30d7ef23dc55100300f0e8aaf8aa09e8e92540acad", size = 12196320 },+]++[[package]]+name = "google-auth"+version = "2.35.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cachetools" },+ { name = "pyasn1-modules" },+ { name = "rsa" },+]+sdist = { url = "https://files.pythonhosted.org/packages/a1/37/c854a8b1b1020cf042db3d67577c6f84cd1e8ff6515e4f5498ae9e444ea5/google_auth-2.35.0.tar.gz", hash = "sha256:f4c64ed4e01e8e8b646ef34c018f8bf3338df0c8e37d8b3bba40e7f574a3278a", size = 267223 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/27/1f/3a72917afcb0d5cd842cbccb81bf7a8a7b45b4c66d8dc4556ccb3b016bfc/google_auth-2.35.0-py2.py3-none-any.whl", hash = "sha256:25df55f327ef021de8be50bad0dfd4a916ad0de96da86cd05661c9297723ad3f", size = 208968 },+]++[[package]]+name = "google-auth-httplib2"+version = "0.2.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "google-auth" },+ { name = "httplib2" },+]+sdist = { url = "https://files.pythonhosted.org/packages/56/be/217a598a818567b28e859ff087f347475c807a5649296fb5a817c58dacef/google-auth-httplib2-0.2.0.tar.gz", hash = "sha256:38aa7badf48f974f1eb9861794e9c0cb2a0511a4ec0679b1f886d108f5640e05", size = 10842 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/be/8a/fe34d2f3f9470a27b01c9e76226965863f153d5fbe276f83608562e49c04/google_auth_httplib2-0.2.0-py2.py3-none-any.whl", hash = "sha256:b65a0a2123300dd71281a7bf6e64d65a0759287df52729bdd1ae2e47dc311a3d", size = 9253 },+]++[[package]]+name = "googleapis-common-protos"+version = "1.65.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "protobuf" },+]+sdist = { url = "https://files.pythonhosted.org/packages/53/3b/1599ceafa875ffb951480c8c74f4b77646a6b80e80970698f2aa93c216ce/googleapis_common_protos-1.65.0.tar.gz", hash = "sha256:334a29d07cddc3aa01dee4988f9afd9b2916ee2ff49d6b757155dc0d197852c0", size = 113657 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ec/08/49bfe7cf737952cc1a9c43e80cc258ed45dad7f183c5b8276fc94cb3862d/googleapis_common_protos-1.65.0-py2.py3-none-any.whl", hash = "sha256:2972e6c496f435b92590fd54045060867f3fe9be2c82ab148fc8885035479a63", size = 220890 },+]++[[package]]+name = "h11"+version = "0.14.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f5/38/3af3d3633a34a3316095b39c8e8fb4853a28a536e55d347bd8d8e9a14b03/h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d", size = 100418 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/95/04/ff642e65ad6b90db43e668d70ffb6736436c7ce41fcc549f4e9472234127/h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761", size = 58259 },+]++[[package]]+name = "httpcore"+version = "1.0.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "certifi" },+ { name = "h11" },+]+sdist = { url = "https://files.pythonhosted.org/packages/17/b0/5e8b8674f8d203335a62fdfcfa0d11ebe09e23613c3391033cbba35f7926/httpcore-1.0.5.tar.gz", hash = "sha256:34a38e2f9291467ee3b44e89dd52615370e152954ba21721378a87b2960f7a61", size = 83234 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/78/d4/e5d7e4f2174f8a4d63c8897d79eb8fe2503f7ecc03282fee1fa2719c2704/httpcore-1.0.5-py3-none-any.whl", hash = "sha256:421f18bac248b25d310f3cacd198d55b8e6125c107797b609ff9b7a6ba7991b5", size = 77926 },+]++[[package]]+name = "httplib2"+version = "0.22.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pyparsing" },+]+sdist = { url = "https://files.pythonhosted.org/packages/3d/ad/2371116b22d616c194aa25ec410c9c6c37f23599dcd590502b74db197584/httplib2-0.22.0.tar.gz", hash = "sha256:d7a10bc5ef5ab08322488bde8c726eeee5c8618723fdb399597ec58f3d82df81", size = 351116 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a8/6c/d2fbdaaa5959339d53ba38e94c123e4e84b8fbc4b84beb0e70d7c1608486/httplib2-0.22.0-py3-none-any.whl", hash = "sha256:14ae0a53c1ba8f3d37e9e27cf37eabb0fb9980f435ba405d546948b009dd64dc", size = 96854 },+]++[[package]]+name = "httpx"+version = "0.27.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "certifi" },+ { name = "httpcore" },+ { name = "idna" },+ { name = "sniffio" },+]+sdist = { url = "https://files.pythonhosted.org/packages/78/82/08f8c936781f67d9e6b9eeb8a0c8b4e406136ea4c3d1f89a5db71d42e0e6/httpx-0.27.2.tar.gz", hash = "sha256:f7c2be1d2f3c3c3160d441802406b206c2b76f5947b11115e6df10c6c65e66c2", size = 144189 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/56/95/9377bcb415797e44274b51d46e3249eba641711cf3348050f76ee7b15ffc/httpx-0.27.2-py3-none-any.whl", hash = "sha256:7bb2708e112d8fdd7829cd4243970f0c223274051cb35ee80c03301ee29a3df0", size = 76395 },+]++[[package]]+name = "idna"+version = "3.10"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9", size = 190490 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442 },+]++[[package]]+name = "iniconfig"+version = "2.0.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d7/4b/cbd8e699e64a6f16ca3a8220661b5f83792b3017d0f79807cb8708d33913/iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3", size = 4646 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374", size = 5892 },+]++[[package]]+name = "instructor"+version = "1.4.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiohttp" },+ { name = "docstring-parser" },+ { name = "jiter" },+ { name = "openai" },+ { name = "pydantic" },+ { name = "pydantic-core" },+ { name = "rich" },+ { name = "tenacity" },+ { name = "typer" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c3/ca/5d97a1657e68c3f16ddcaa30565c91081fe6998bf4dd3bd8c83a7e56a136/instructor-1.4.3.tar.gz", hash = "sha256:56b36d6426fc30d9590e8115726ab09c0635df925f193fb89c5fb2e25a807333", size = 45912 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/97/17/21b89ecdd12f9688185f511892d251d659675b0b61a479f38e5b413bc2e3/instructor-1.4.3-py3-none-any.whl", hash = "sha256:3bc088cf960ca144a5e2a8ce5edba449ca6b2bd69a8c279701fb03da4c5ab198", size = 57025 },+]++[[package]]+name = "jiter"+version = "0.5.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d7/1a/aa64be757afc614484b370a4d9fc1747dc9237b37ce464f7f9d9ca2a3d38/jiter-0.5.0.tar.gz", hash = "sha256:1d916ba875bcab5c5f7d927df998c4cb694d27dceddf3392e58beaf10563368a", size = 158300 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/aa/bd/c3950e2c478161e131bed8cb67c36aed418190e2a961a1c981e69954e54b/jiter-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:9f664e7351604f91dcdd557603c57fc0d551bc65cc0a732fdacbf73ad335049a", size = 283511 },+ { url = "https://files.pythonhosted.org/packages/80/1c/8ce58d8c37a589eeaaa5d07d131fd31043886f5e77ab50c00a66d869a361/jiter-0.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:044f2f1148b5248ad2c8c3afb43430dccf676c5a5834d2f5089a4e6c5bbd64df", size = 296974 },+ { url = "https://files.pythonhosted.org/packages/4d/b8/6faeff9eed8952bed93a77ea1cffae7b946795b88eafd1a60e87a67b09e0/jiter-0.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:702e3520384c88b6e270c55c772d4bd6d7b150608dcc94dea87ceba1b6391248", size = 331897 },+ { url = "https://files.pythonhosted.org/packages/4f/54/1d9a2209b46d39ce6f0cef3ad87c462f9c50312ab84585e6bd5541292b35/jiter-0.5.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:528d742dcde73fad9d63e8242c036ab4a84389a56e04efd854062b660f559544", size = 342962 },+ { url = "https://files.pythonhosted.org/packages/2a/de/90360be7fc54b2b4c2dfe79eb4ed1f659fce9c96682e6a0be4bbe71371f7/jiter-0.5.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8cf80e5fe6ab582c82f0c3331df27a7e1565e2dcf06265afd5173d809cdbf9ba", size = 363844 },+ { url = "https://files.pythonhosted.org/packages/ba/ad/ef32b173191b7a53ea8a6757b80723cba321f8469834825e8c71c96bde17/jiter-0.5.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:44dfc9ddfb9b51a5626568ef4e55ada462b7328996294fe4d36de02fce42721f", size = 378709 },+ { url = "https://files.pythonhosted.org/packages/07/de/353ce53743c0defbbbd652e89c106a97dbbac4eb42c95920b74b5056b93a/jiter-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c451f7922992751a936b96c5f5b9bb9312243d9b754c34b33d0cb72c84669f4e", size = 319038 },+ { url = "https://files.pythonhosted.org/packages/3f/92/42d47310bf9530b9dece9e2d7c6d51cf419af5586ededaf5e66622d160e2/jiter-0.5.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:308fce789a2f093dca1ff91ac391f11a9f99c35369117ad5a5c6c4903e1b3e3a", size = 357763 },+ { url = "https://files.pythonhosted.org/packages/bd/8c/2bb76a9a84474d48fdd133d3445db8a4413da4e87c23879d917e000a9d87/jiter-0.5.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7f5ad4a7c6b0d90776fdefa294f662e8a86871e601309643de30bf94bb93a64e", size = 511031 },+ { url = "https://files.pythonhosted.org/packages/33/4f/9f23d79c0795e0a8e56e7988e8785c2dcda27e0ed37977256d50c77c6a19/jiter-0.5.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:ea189db75f8eca08807d02ae27929e890c7d47599ce3d0a6a5d41f2419ecf338", size = 493042 },+ { url = "https://files.pythonhosted.org/packages/df/67/8a4f975aa834b8aecdb6b131422390173928fd47f42f269dcc32034ab432/jiter-0.5.0-cp312-none-win32.whl", hash = "sha256:e3bbe3910c724b877846186c25fe3c802e105a2c1fc2b57d6688b9f8772026e4", size = 195405 },+ { url = "https://files.pythonhosted.org/packages/15/81/296b1e25c43db67848728cdab34ac3eb5c5cbb4955ceb3f51ae60d4a5e3d/jiter-0.5.0-cp312-none-win_amd64.whl", hash = "sha256:a586832f70c3f1481732919215f36d41c59ca080fa27a65cf23d9490e75b2ef5", size = 189720 },+]++[[package]]+name = "markdown-it-py"+version = "3.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "mdurl" },+]+sdist = { url = "https://files.pythonhosted.org/packages/38/71/3b932df36c1a044d397a1f92d1cf91ee0a503d91e470cbd670aa66b07ed0/markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb", size = 74596 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1", size = 87528 },+]++[[package]]+name = "markdownify"+version = "0.12.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "beautifulsoup4" },+ { name = "six" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c8/2d/e9ff77df5a796adac8a5a2b8f08f0264343091b2f317b8825d1fb267b1be/markdownify-0.12.1.tar.gz", hash = "sha256:1fb08c618b30e0ee7a31a39b998f44a18fb28ab254f55f4af06b6d35a2179e27", size = 17034 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/30/51/e13d9198eae9e141f51764842ba2d9186281961486442bfe903316ee5353/markdownify-0.12.1-py3-none-any.whl", hash = "sha256:a3805abd8166dbb7b27783c5599d91f54f10d79894b2621404d85b333c7ce561", size = 16854 },+]++[[package]]+name = "mdurl"+version = "0.1.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979 },+]++[[package]]+name = "mpmath"+version = "1.3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e0/47/dd32fa426cc72114383ac549964eecb20ecfd886d1e5ccf5340b55b02f57/mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f", size = 508106 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c", size = 536198 },+]++[[package]]+name = "multidict"+version = "6.1.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d6/be/504b89a5e9ca731cd47487e91c469064f8ae5af93b7259758dcfc2b9c848/multidict-6.1.0.tar.gz", hash = "sha256:22ae2ebf9b0c69d206c003e2f6a914ea33f0a932d4aa16f236afc049d9958f4a", size = 64002 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fd/16/92057c74ba3b96d5e211b553895cd6dc7cc4d1e43d9ab8fafc727681ef71/multidict-6.1.0-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:b04772ed465fa3cc947db808fa306d79b43e896beb677a56fb2347ca1a49c1fa", size = 48713 },+ { url = "https://files.pythonhosted.org/packages/94/3d/37d1b8893ae79716179540b89fc6a0ee56b4a65fcc0d63535c6f5d96f217/multidict-6.1.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:6180c0ae073bddeb5a97a38c03f30c233e0a4d39cd86166251617d1bbd0af436", size = 29516 },+ { url = "https://files.pythonhosted.org/packages/a2/12/adb6b3200c363062f805275b4c1e656be2b3681aada66c80129932ff0bae/multidict-6.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:071120490b47aa997cca00666923a83f02c7fbb44f71cf7f136df753f7fa8761", size = 29557 },+ { url = "https://files.pythonhosted.org/packages/47/e9/604bb05e6e5bce1e6a5cf80a474e0f072e80d8ac105f1b994a53e0b28c42/multidict-6.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:50b3a2710631848991d0bf7de077502e8994c804bb805aeb2925a981de58ec2e", size = 130170 },+ { url = "https://files.pythonhosted.org/packages/7e/13/9efa50801785eccbf7086b3c83b71a4fb501a4d43549c2f2f80b8787d69f/multidict-6.1.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b58c621844d55e71c1b7f7c498ce5aa6985d743a1a59034c57a905b3f153c1ef", size = 134836 },+ { url = "https://files.pythonhosted.org/packages/bf/0f/93808b765192780d117814a6dfcc2e75de6dcc610009ad408b8814dca3ba/multidict-6.1.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:55b6d90641869892caa9ca42ff913f7ff1c5ece06474fbd32fb2cf6834726c95", size = 133475 },+ { url = "https://files.pythonhosted.org/packages/d3/c8/529101d7176fe7dfe1d99604e48d69c5dfdcadb4f06561f465c8ef12b4df/multidict-6.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4b820514bfc0b98a30e3d85462084779900347e4d49267f747ff54060cc33925", size = 131049 },+ { url = "https://files.pythonhosted.org/packages/ca/0c/fc85b439014d5a58063e19c3a158a889deec399d47b5269a0f3b6a2e28bc/multidict-6.1.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:10a9b09aba0c5b48c53761b7c720aaaf7cf236d5fe394cd399c7ba662d5f9966", size = 120370 },+ { url = "https://files.pythonhosted.org/packages/db/46/d4416eb20176492d2258fbd47b4abe729ff3b6e9c829ea4236f93c865089/multidict-6.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1e16bf3e5fc9f44632affb159d30a437bfe286ce9e02754759be5536b169b305", size = 125178 },+ { url = "https://files.pythonhosted.org/packages/5b/46/73697ad7ec521df7de5531a32780bbfd908ded0643cbe457f981a701457c/multidict-6.1.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:76f364861c3bfc98cbbcbd402d83454ed9e01a5224bb3a28bf70002a230f73e2", size = 119567 },+ { url = "https://files.pythonhosted.org/packages/cd/ed/51f060e2cb0e7635329fa6ff930aa5cffa17f4c7f5c6c3ddc3500708e2f2/multidict-6.1.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:820c661588bd01a0aa62a1283f20d2be4281b086f80dad9e955e690c75fb54a2", size = 129822 },+ { url = "https://files.pythonhosted.org/packages/df/9e/ee7d1954b1331da3eddea0c4e08d9142da5f14b1321c7301f5014f49d492/multidict-6.1.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:0e5f362e895bc5b9e67fe6e4ded2492d8124bdf817827f33c5b46c2fe3ffaca6", size = 128656 },+ { url = "https://files.pythonhosted.org/packages/77/00/8538f11e3356b5d95fa4b024aa566cde7a38aa7a5f08f4912b32a037c5dc/multidict-6.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:3ec660d19bbc671e3a6443325f07263be452c453ac9e512f5eb935e7d4ac28b3", size = 125360 },+ { url = "https://files.pythonhosted.org/packages/be/05/5d334c1f2462d43fec2363cd00b1c44c93a78c3925d952e9a71caf662e96/multidict-6.1.0-cp312-cp312-win32.whl", hash = "sha256:58130ecf8f7b8112cdb841486404f1282b9c86ccb30d3519faf301b2e5659133", size = 26382 },+ { url = "https://files.pythonhosted.org/packages/a3/bf/f332a13486b1ed0496d624bcc7e8357bb8053823e8cd4b9a18edc1d97e73/multidict-6.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:188215fc0aafb8e03341995e7c4797860181562380f81ed0a87ff455b70bf1f1", size = 28529 },+ { url = "https://files.pythonhosted.org/packages/22/67/1c7c0f39fe069aa4e5d794f323be24bf4d33d62d2a348acdb7991f8f30db/multidict-6.1.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:d569388c381b24671589335a3be6e1d45546c2988c2ebe30fdcada8457a31008", size = 48771 },+ { url = "https://files.pythonhosted.org/packages/3c/25/c186ee7b212bdf0df2519eacfb1981a017bda34392c67542c274651daf23/multidict-6.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:052e10d2d37810b99cc170b785945421141bf7bb7d2f8799d431e7db229c385f", size = 29533 },+ { url = "https://files.pythonhosted.org/packages/67/5e/04575fd837e0958e324ca035b339cea174554f6f641d3fb2b4f2e7ff44a2/multidict-6.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f90c822a402cb865e396a504f9fc8173ef34212a342d92e362ca498cad308e28", size = 29595 },+ { url = "https://files.pythonhosted.org/packages/d3/b2/e56388f86663810c07cfe4a3c3d87227f3811eeb2d08450b9e5d19d78876/multidict-6.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b225d95519a5bf73860323e633a664b0d85ad3d5bede6d30d95b35d4dfe8805b", size = 130094 },+ { url = "https://files.pythonhosted.org/packages/6c/ee/30ae9b4186a644d284543d55d491fbd4239b015d36b23fea43b4c94f7052/multidict-6.1.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:23bfd518810af7de1116313ebd9092cb9aa629beb12f6ed631ad53356ed6b86c", size = 134876 },+ { url = "https://files.pythonhosted.org/packages/84/c7/70461c13ba8ce3c779503c70ec9d0345ae84de04521c1f45a04d5f48943d/multidict-6.1.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5c09fcfdccdd0b57867577b719c69e347a436b86cd83747f179dbf0cc0d4c1f3", size = 133500 },+ { url = "https://files.pythonhosted.org/packages/4a/9f/002af221253f10f99959561123fae676148dd730e2daa2cd053846a58507/multidict-6.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf6bea52ec97e95560af5ae576bdac3aa3aae0b6758c6efa115236d9e07dae44", size = 131099 },+ { url = "https://files.pythonhosted.org/packages/82/42/d1c7a7301d52af79d88548a97e297f9d99c961ad76bbe6f67442bb77f097/multidict-6.1.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:57feec87371dbb3520da6192213c7d6fc892d5589a93db548331954de8248fd2", size = 120403 },+ { url = "https://files.pythonhosted.org/packages/68/f3/471985c2c7ac707547553e8f37cff5158030d36bdec4414cb825fbaa5327/multidict-6.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0c3f390dc53279cbc8ba976e5f8035eab997829066756d811616b652b00a23a3", size = 125348 },+ { url = "https://files.pythonhosted.org/packages/67/2c/e6df05c77e0e433c214ec1d21ddd203d9a4770a1f2866a8ca40a545869a0/multidict-6.1.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:59bfeae4b25ec05b34f1956eaa1cb38032282cd4dfabc5056d0a1ec4d696d3aa", size = 119673 },+ { url = "https://files.pythonhosted.org/packages/c5/cd/bc8608fff06239c9fb333f9db7743a1b2eafe98c2666c9a196e867a3a0a4/multidict-6.1.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:b2f59caeaf7632cc633b5cf6fc449372b83bbdf0da4ae04d5be36118e46cc0aa", size = 129927 },+ { url = "https://files.pythonhosted.org/packages/44/8e/281b69b7bc84fc963a44dc6e0bbcc7150e517b91df368a27834299a526ac/multidict-6.1.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:37bb93b2178e02b7b618893990941900fd25b6b9ac0fa49931a40aecdf083fe4", size = 128711 },+ { url = "https://files.pythonhosted.org/packages/12/a4/63e7cd38ed29dd9f1881d5119f272c898ca92536cdb53ffe0843197f6c85/multidict-6.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4e9f48f58c2c523d5a06faea47866cd35b32655c46b443f163d08c6d0ddb17d6", size = 125519 },+ { url = "https://files.pythonhosted.org/packages/38/e0/4f5855037a72cd8a7a2f60a3952d9aa45feedb37ae7831642102604e8a37/multidict-6.1.0-cp313-cp313-win32.whl", hash = "sha256:3a37ffb35399029b45c6cc33640a92bef403c9fd388acce75cdc88f58bd19a81", size = 26426 },+ { url = "https://files.pythonhosted.org/packages/7e/a5/17ee3a4db1e310b7405f5d25834460073a8ccd86198ce044dfaf69eac073/multidict-6.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:e9aa71e15d9d9beaad2c6b9319edcdc0a49a43ef5c0a4c8265ca9ee7d6c67774", size = 28531 },+ { url = "https://files.pythonhosted.org/packages/99/b7/b9e70fde2c0f0c9af4cc5277782a89b66d35948ea3369ec9f598358c3ac5/multidict-6.1.0-py3-none-any.whl", hash = "sha256:48e171e52d1c4d33888e529b999e5900356b9ae588c2f09a52dcefb158b27506", size = 10051 },+]++[[package]]+name = "openai"+version = "1.46.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "distro" },+ { name = "httpx" },+ { name = "jiter" },+ { name = "pydantic" },+ { name = "sniffio" },+ { name = "tqdm" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/fc/6b/470673304605c4aa4ee899dbab6ea12f6a0844e3ee7970ce7ecae0c89aea/openai-1.46.1.tar.gz", hash = "sha256:e5cf7f268bf516de23686d496c9dae7f0dcdcd0e87af4d288deeab8329fcbbaf", size = 297547 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/da/14/aabc614d8c446cb32043ed397dd8536a8f4c43a92c6609c05a958be9b960/openai-1.46.1-py3-none-any.whl", hash = "sha256:7517f07117cf66012bbc55c49fd6b983eaac0f3d2a09c90cba1140d4455e4290", size = 375150 },+]++[[package]]+name = "packaging"+version = "24.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/51/65/50db4dda066951078f0a96cf12f4b9ada6e4b811516bf0262c0f4f7064d4/packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002", size = 148788 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124", size = 53985 },+]++[[package]]+name = "pluggy"+version = "1.5.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/96/2d/02d4312c973c6050a18b314a5ad0b3210edb65a906f868e31c111dede4a6/pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1", size = 67955 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669", size = 20556 },+]++[[package]]+name = "proto-plus"+version = "1.24.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "protobuf" },+]+sdist = { url = "https://files.pythonhosted.org/packages/3e/fc/e9a65cd52c1330d8d23af6013651a0bc50b6d76bcbdf91fae7cd19c68f29/proto-plus-1.24.0.tar.gz", hash = "sha256:30b72a5ecafe4406b0d339db35b56c4059064e69227b8c3bda7462397f966445", size = 55942 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7c/6f/db31f0711c0402aa477257205ce7d29e86a75cb52cd19f7afb585f75cda0/proto_plus-1.24.0-py3-none-any.whl", hash = "sha256:402576830425e5f6ce4c2a6702400ac79897dab0b4343821aa5188b0fab81a12", size = 50080 },+]++[[package]]+name = "protobuf"+version = "5.28.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b1/a4/4579a61de526e19005ceeb93e478b61d77aa38c8a85ad958ff16a9906549/protobuf-5.28.2.tar.gz", hash = "sha256:59379674ff119717404f7454647913787034f03fe7049cbef1d74a97bb4593f0", size = 422494 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e9/30/231764750e0987755b7b8d66771f161e5f002e165d27b72154c776dbabf7/protobuf-5.28.2-cp310-abi3-win32.whl", hash = "sha256:eeea10f3dc0ac7e6b4933d32db20662902b4ab81bf28df12218aa389e9c2102d", size = 419662 },+ { url = "https://files.pythonhosted.org/packages/7d/46/3fdf7462160135aee6a530f1ec66665b5b4132fa2e1002ab971bc6ec2589/protobuf-5.28.2-cp310-abi3-win_amd64.whl", hash = "sha256:2c69461a7fcc8e24be697624c09a839976d82ae75062b11a0972e41fd2cd9132", size = 431479 },+ { url = "https://files.pythonhosted.org/packages/37/45/d2a760580f8f2ed2825ba44cb370e0a4011ddef85e728f46ea3dd565a8a5/protobuf-5.28.2-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:a8b9403fc70764b08d2f593ce44f1d2920c5077bf7d311fefec999f8c40f78b7", size = 414736 },+ { url = "https://files.pythonhosted.org/packages/e6/23/ed718dc18e6a561445ece1e7a17d2dda0c634ad9cf663102b47f10005d8f/protobuf-5.28.2-cp38-abi3-manylinux2014_aarch64.whl", hash = "sha256:35cfcb15f213449af7ff6198d6eb5f739c37d7e4f1c09b5d0641babf2cc0c68f", size = 316518 },+ { url = "https://files.pythonhosted.org/packages/23/08/a1ce0415a115c2b703bfa798f06f0e43ca91dbe29d6180bf86a9287b15e2/protobuf-5.28.2-cp38-abi3-manylinux2014_x86_64.whl", hash = "sha256:5e8a95246d581eef20471b5d5ba010d55f66740942b95ba9b872d918c459452f", size = 316605 },+ { url = "https://files.pythonhosted.org/packages/9b/55/f24e3b801d2e108c48aa2b1b59bb791b5cffba89465cbbf66fc98de89270/protobuf-5.28.2-py3-none-any.whl", hash = "sha256:52235802093bd8a2811abbe8bf0ab9c5f54cca0a751fdd3f6ac2a21438bffece", size = 169566 },+]++[[package]]+name = "pyasn1"+version = "0.6.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ba/e9/01f1a64245b89f039897cb0130016d79f77d52669aae6ee7b159a6c4c018/pyasn1-0.6.1.tar.gz", hash = "sha256:6f580d2bdd84365380830acf45550f2511469f673cb4a5ae3857a3170128b034", size = 145322 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c8/f1/d6a797abb14f6283c0ddff96bbdd46937f64122b8c925cab503dd37f8214/pyasn1-0.6.1-py3-none-any.whl", hash = "sha256:0d632f46f2ba09143da3a8afe9e33fb6f92fa2320ab7e886e2d0f7672af84629", size = 83135 },+]++[[package]]+name = "pyasn1-modules"+version = "0.4.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pyasn1" },+]+sdist = { url = "https://files.pythonhosted.org/packages/1d/67/6afbf0d507f73c32d21084a79946bfcfca5fbc62a72057e9c23797a737c9/pyasn1_modules-0.4.1.tar.gz", hash = "sha256:c28e2dbf9c06ad61c71a075c7e0f9fd0f1b0bb2d2ad4377f240d33ac2ab60a7c", size = 310028 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/77/89/bc88a6711935ba795a679ea6ebee07e128050d6382eaa35a0a47c8032bdc/pyasn1_modules-0.4.1-py3-none-any.whl", hash = "sha256:49bfa96b45a292b711e986f222502c1c9a5e1f4e568fc30e2574a6c7d07838fd", size = 181537 },+]++[[package]]+name = "pydantic"+version = "2.9.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "annotated-types" },+ { name = "pydantic-core" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/a9/b7/d9e3f12af310e1120c21603644a1cd86f59060e040ec5c3a80b8f05fae30/pydantic-2.9.2.tar.gz", hash = "sha256:d155cef71265d1e9807ed1c32b4c8deec042a44a50a4188b25ac67ecd81a9c0f", size = 769917 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/df/e4/ba44652d562cbf0bf320e0f3810206149c8a4e99cdbf66da82e97ab53a15/pydantic-2.9.2-py3-none-any.whl", hash = "sha256:f048cec7b26778210e28a0459867920654d48e5e62db0958433636cde4254f12", size = 434928 },+]++[[package]]+name = "pydantic-core"+version = "2.23.4"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/e2/aa/6b6a9b9f8537b872f552ddd46dd3da230367754b6f707b8e1e963f515ea3/pydantic_core-2.23.4.tar.gz", hash = "sha256:2584f7cf844ac4d970fba483a717dbe10c1c1c96a969bf65d61ffe94df1b2863", size = 402156 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/74/7b/8e315f80666194b354966ec84b7d567da77ad927ed6323db4006cf915f3f/pydantic_core-2.23.4-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:f3e0da4ebaef65158d4dfd7d3678aad692f7666877df0002b8a522cdf088f231", size = 1856459 },+ { url = "https://files.pythonhosted.org/packages/14/de/866bdce10ed808323d437612aca1ec9971b981e1c52e5e42ad9b8e17a6f6/pydantic_core-2.23.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f69a8e0b033b747bb3e36a44e7732f0c99f7edd5cea723d45bc0d6e95377ffee", size = 1770007 },+ { url = "https://files.pythonhosted.org/packages/dc/69/8edd5c3cd48bb833a3f7ef9b81d7666ccddd3c9a635225214e044b6e8281/pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:723314c1d51722ab28bfcd5240d858512ffd3116449c557a1336cbe3919beb87", size = 1790245 },+ { url = "https://files.pythonhosted.org/packages/80/33/9c24334e3af796ce80d2274940aae38dd4e5676298b4398eff103a79e02d/pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bb2802e667b7051a1bebbfe93684841cc9351004e2badbd6411bf357ab8d5ac8", size = 1801260 },+ { url = "https://files.pythonhosted.org/packages/a5/6f/e9567fd90104b79b101ca9d120219644d3314962caa7948dd8b965e9f83e/pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d18ca8148bebe1b0a382a27a8ee60350091a6ddaf475fa05ef50dc35b5df6327", size = 1996872 },+ { url = "https://files.pythonhosted.org/packages/2d/ad/b5f0fe9e6cfee915dd144edbd10b6e9c9c9c9d7a56b69256d124b8ac682e/pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:33e3d65a85a2a4a0dc3b092b938a4062b1a05f3a9abde65ea93b233bca0e03f2", size = 2661617 },+ { url = "https://files.pythonhosted.org/packages/06/c8/7d4b708f8d05a5cbfda3243aad468052c6e99de7d0937c9146c24d9f12e9/pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:128585782e5bfa515c590ccee4b727fb76925dd04a98864182b22e89a4e6ed36", size = 2071831 },+ { url = "https://files.pythonhosted.org/packages/89/4d/3079d00c47f22c9a9a8220db088b309ad6e600a73d7a69473e3a8e5e3ea3/pydantic_core-2.23.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:68665f4c17edcceecc112dfed5dbe6f92261fb9d6054b47d01bf6371a6196126", size = 1917453 },+ { url = "https://files.pythonhosted.org/packages/e9/88/9df5b7ce880a4703fcc2d76c8c2d8eb9f861f79d0c56f4b8f5f2607ccec8/pydantic_core-2.23.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:20152074317d9bed6b7a95ade3b7d6054845d70584216160860425f4fbd5ee9e", size = 1968793 },+ { url = "https://files.pythonhosted.org/packages/e3/b9/41f7efe80f6ce2ed3ee3c2dcfe10ab7adc1172f778cc9659509a79518c43/pydantic_core-2.23.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:9261d3ce84fa1d38ed649c3638feefeae23d32ba9182963e465d58d62203bd24", size = 2116872 },+ { url = "https://files.pythonhosted.org/packages/63/08/b59b7a92e03dd25554b0436554bf23e7c29abae7cce4b1c459cd92746811/pydantic_core-2.23.4-cp312-none-win32.whl", hash = "sha256:4ba762ed58e8d68657fc1281e9bb72e1c3e79cc5d464be146e260c541ec12d84", size = 1738535 },+ { url = "https://files.pythonhosted.org/packages/88/8d/479293e4d39ab409747926eec4329de5b7129beaedc3786eca070605d07f/pydantic_core-2.23.4-cp312-none-win_amd64.whl", hash = "sha256:97df63000f4fea395b2824da80e169731088656d1818a11b95f3b173747b6cd9", size = 1917992 },+ { url = "https://files.pythonhosted.org/packages/ad/ef/16ee2df472bf0e419b6bc68c05bf0145c49247a1095e85cee1463c6a44a1/pydantic_core-2.23.4-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:7530e201d10d7d14abce4fb54cfe5b94a0aefc87da539d0346a484ead376c3cc", size = 1856143 },+ { url = "https://files.pythonhosted.org/packages/da/fa/bc3dbb83605669a34a93308e297ab22be82dfb9dcf88c6cf4b4f264e0a42/pydantic_core-2.23.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:df933278128ea1cd77772673c73954e53a1c95a4fdf41eef97c2b779271bd0bd", size = 1770063 },+ { url = "https://files.pythonhosted.org/packages/4e/48/e813f3bbd257a712303ebdf55c8dc46f9589ec74b384c9f652597df3288d/pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cb3da3fd1b6a5d0279a01877713dbda118a2a4fc6f0d821a57da2e464793f05", size = 1790013 },+ { url = "https://files.pythonhosted.org/packages/b4/e0/56eda3a37929a1d297fcab1966db8c339023bcca0b64c5a84896db3fcc5c/pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:42c6dcb030aefb668a2b7009c85b27f90e51e6a3b4d5c9bc4c57631292015b0d", size = 1801077 },+ { url = "https://files.pythonhosted.org/packages/04/be/5e49376769bfbf82486da6c5c1683b891809365c20d7c7e52792ce4c71f3/pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:696dd8d674d6ce621ab9d45b205df149399e4bb9aa34102c970b721554828510", size = 1996782 },+ { url = "https://files.pythonhosted.org/packages/bc/24/e3ee6c04f1d58cc15f37bcc62f32c7478ff55142b7b3e6d42ea374ea427c/pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2971bb5ffe72cc0f555c13e19b23c85b654dd2a8f7ab493c262071377bfce9f6", size = 2661375 },+ { url = "https://files.pythonhosted.org/packages/c1/f8/11a9006de4e89d016b8de74ebb1db727dc100608bb1e6bbe9d56a3cbbcce/pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8394d940e5d400d04cad4f75c0598665cbb81aecefaca82ca85bd28264af7f9b", size = 2071635 },+ { url = "https://files.pythonhosted.org/packages/7c/45/bdce5779b59f468bdf262a5bc9eecbae87f271c51aef628d8c073b4b4b4c/pydantic_core-2.23.4-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0dff76e0602ca7d4cdaacc1ac4c005e0ce0dcfe095d5b5259163a80d3a10d327", size = 1916994 },+ { url = "https://files.pythonhosted.org/packages/d8/fa/c648308fe711ee1f88192cad6026ab4f925396d1293e8356de7e55be89b5/pydantic_core-2.23.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:7d32706badfe136888bdea71c0def994644e09fff0bfe47441deaed8e96fdbc6", size = 1968877 },+ { url = "https://files.pythonhosted.org/packages/16/16/b805c74b35607d24d37103007f899abc4880923b04929547ae68d478b7f4/pydantic_core-2.23.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ed541d70698978a20eb63d8c5d72f2cc6d7079d9d90f6b50bad07826f1320f5f", size = 2116814 },+ { url = "https://files.pythonhosted.org/packages/d1/58/5305e723d9fcdf1c5a655e6a4cc2a07128bf644ff4b1d98daf7a9dbf57da/pydantic_core-2.23.4-cp313-none-win32.whl", hash = "sha256:3d5639516376dce1940ea36edf408c554475369f5da2abd45d44621cb616f769", size = 1738360 },+ { url = "https://files.pythonhosted.org/packages/a5/ae/e14b0ff8b3f48e02394d8acd911376b7b66e164535687ef7dc24ea03072f/pydantic_core-2.23.4-cp313-none-win_amd64.whl", hash = "sha256:5a1504ad17ba4210df3a045132a7baeeba5a200e930f57512ee02909fc5c4cb5", size = 1919411 },+]++[[package]]+name = "pygments"+version = "2.18.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/8e/62/8336eff65bcbc8e4cb5d05b55faf041285951b6e80f33e2bff2024788f31/pygments-2.18.0.tar.gz", hash = "sha256:786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199", size = 4891905 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f7/3f/01c8b82017c199075f8f788d0d906b9ffbbc5a47dc9918a945e13d5a2bda/pygments-2.18.0-py3-none-any.whl", hash = "sha256:b8e6aca0523f3ab76fee51799c488e38782ac06eafcf95e7ba832985c8e7b13a", size = 1205513 },+]++[[package]]+name = "pyparsing"+version = "3.1.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/83/08/13f3bce01b2061f2bbd582c9df82723de943784cf719a35ac886c652043a/pyparsing-3.1.4.tar.gz", hash = "sha256:f86ec8d1a83f11977c9a6ea7598e8c27fc5cddfa5b07ea2241edbbde1d7bc032", size = 900231 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e5/0c/0e3c05b1c87bb6a1c76d281b0f35e78d2d80ac91b5f8f524cebf77f51049/pyparsing-3.1.4-py3-none-any.whl", hash = "sha256:a6a7ee4235a3f944aa1fa2249307708f893fe5717dc603503c6c7969c070fb7c", size = 104100 },+]++[[package]]+name = "pypdf2"+version = "3.0.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/9f/bb/18dc3062d37db6c491392007dfd1a7f524bb95886eb956569ac38a23a784/PyPDF2-3.0.1.tar.gz", hash = "sha256:a74408f69ba6271f71b9352ef4ed03dc53a31aa404d29b5d31f53bfecfee1440", size = 227419 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/8e/5e/c86a5643653825d3c913719e788e41386bee415c2b87b4f955432f2de6b2/pypdf2-3.0.1-py3-none-any.whl", hash = "sha256:d16e4205cfee272fbdc0568b68d82be796540b1537508cef59388f839c191928", size = 232572 },+]++[[package]]+name = "pytest"+version = "8.3.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+ { name = "iniconfig" },+ { name = "packaging" },+ { name = "pluggy" },+]+sdist = { url = "https://files.pythonhosted.org/packages/8b/6c/62bbd536103af674e227c41a8f3dcd022d591f6eed5facb5a0f31ee33bbc/pytest-8.3.3.tar.gz", hash = "sha256:70b98107bd648308a7952b06e6ca9a50bc660be218d53c257cc1fc94fda10181", size = 1442487 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6b/77/7440a06a8ead44c7757a64362dd22df5760f9b12dc5f11b6188cd2fc27a0/pytest-8.3.3-py3-none-any.whl", hash = "sha256:a6853c7375b2663155079443d2e45de913a911a11d669df02a50814944db57b2", size = 342341 },+]++[[package]]+name = "pytest-cov"+version = "5.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "coverage" },+ { name = "pytest" },+]+sdist = { url = "https://files.pythonhosted.org/packages/74/67/00efc8d11b630c56f15f4ad9c7f9223f1e5ec275aaae3fa9118c6a223ad2/pytest-cov-5.0.0.tar.gz", hash = "sha256:5837b58e9f6ebd335b0f8060eecce69b662415b16dc503883a02f45dfeb14857", size = 63042 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/78/3a/af5b4fa5961d9a1e6237b530eb87dd04aea6eb83da09d2a4073d81b54ccf/pytest_cov-5.0.0-py3-none-any.whl", hash = "sha256:4f0764a1219df53214206bf1feea4633c3b558a2925c8b59f144f682861ce652", size = 21990 },+]++[[package]]+name = "requests"+version = "2.32.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "certifi" },+ { name = "charset-normalizer" },+ { name = "idna" },+ { name = "urllib3" },+]+sdist = { url = "https://files.pythonhosted.org/packages/63/70/2bf7780ad2d390a8d301ad0b550f1581eadbd9a20f896afe06353c2a2913/requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760", size = 131218 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6", size = 64928 },+]++[[package]]+name = "rich"+version = "13.8.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "markdown-it-py" },+ { name = "pygments" },+]+sdist = { url = "https://files.pythonhosted.org/packages/92/76/40f084cb7db51c9d1fa29a7120717892aeda9a7711f6225692c957a93535/rich-13.8.1.tar.gz", hash = "sha256:8260cda28e3db6bf04d2d1ef4dbc03ba80a824c88b0e7668a0f23126a424844a", size = 222080 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b0/11/dadb85e2bd6b1f1ae56669c3e1f0410797f9605d752d68fb47b77f525b31/rich-13.8.1-py3-none-any.whl", hash = "sha256:1760a3c0848469b97b558fc61c85233e3dafb69c7a071b4d60c38099d3cd4c06", size = 241608 },+]++[[package]]+name = "rsa"+version = "4.9"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pyasn1" },+]+sdist = { url = "https://files.pythonhosted.org/packages/aa/65/7d973b89c4d2351d7fb232c2e452547ddfa243e93131e7cfa766da627b52/rsa-4.9.tar.gz", hash = "sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21", size = 29711 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/49/97/fa78e3d2f65c02c8e1268b9aba606569fe97f6c8f7c2d74394553347c145/rsa-4.9-py3-none-any.whl", hash = "sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7", size = 34315 },+]++[[package]]+name = "shellingham"+version = "1.5.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/58/15/8b3609fd3830ef7b27b655beb4b4e9c62313a4e8da8c676e142cc210d58e/shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de", size = 10310 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755 },+]++[[package]]+name = "six"+version = "1.16.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", size = 34041 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254", size = 11053 },+]++[[package]]+name = "sniffio"+version = "1.3.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/a2/87/a6771e1546d97e7e041b6ae58d80074f81b7d5121207425c964ddf5cfdbd/sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc", size = 20372 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e9/44/75a9c9421471a6c4805dbf2356f7c181a29c1879239abab1ea2cc8f38b40/sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2", size = 10235 },+]++[[package]]+name = "soupsieve"+version = "2.6"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d7/ce/fbaeed4f9fb8b2daa961f90591662df6a86c1abf25c548329a86920aedfb/soupsieve-2.6.tar.gz", hash = "sha256:e2e68417777af359ec65daac1057404a3c8a5455bb8abc36f1a9866ab1a51abb", size = 101569 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d1/c2/fe97d779f3ef3b15f05c94a2f1e3d21732574ed441687474db9d342a7315/soupsieve-2.6-py3-none-any.whl", hash = "sha256:e72c4ff06e4fb6e4b5a9f0f55fe6e81514581fca1515028625d0f299c602ccc9", size = 36186 },+]++[[package]]+name = "sympy"+version = "1.13.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "mpmath" },+]+sdist = { url = "https://files.pythonhosted.org/packages/11/8a/5a7fd6284fa8caac23a26c9ddf9c30485a48169344b4bd3b0f02fef1890f/sympy-1.13.3.tar.gz", hash = "sha256:b27fd2c6530e0ab39e275fc9b683895367e51d5da91baa8d3d64db2565fec4d9", size = 7533196 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/99/ff/c87e0622b1dadea79d2fb0b25ade9ed98954c9033722eb707053d310d4f3/sympy-1.13.3-py3-none-any.whl", hash = "sha256:54612cf55a62755ee71824ce692986f23c88ffa77207b30c1368eda4a7060f73", size = 6189483 },+]++[[package]]+name = "tenacity"+version = "8.5.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/a3/4d/6a19536c50b849338fcbe9290d562b52cbdcf30d8963d3588a68a4107df1/tenacity-8.5.0.tar.gz", hash = "sha256:8bc6c0c8a09b31e6cad13c47afbed1a567518250a9a171418582ed8d9c20ca78", size = 47309 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d2/3f/8ba87d9e287b9d385a02a7114ddcef61b26f86411e121c9003eb509a1773/tenacity-8.5.0-py3-none-any.whl", hash = "sha256:b594c2a5945830c267ce6b79a166228323ed52718f30302c1359836112346687", size = 28165 },+]++[[package]]+name = "tqdm"+version = "4.66.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "platform_system == 'Windows'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/58/83/6ba9844a41128c62e810fddddd72473201f3eacde02046066142a2d96cc5/tqdm-4.66.5.tar.gz", hash = "sha256:e1020aef2e5096702d8a025ac7d16b1577279c9d63f8375b63083e9a5f0fcbad", size = 169504 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/48/5d/acf5905c36149bbaec41ccf7f2b68814647347b72075ac0b1fe3022fdc73/tqdm-4.66.5-py3-none-any.whl", hash = "sha256:90279a3770753eafc9194a0364852159802111925aa30eb3f9d85b0e805ac7cd", size = 78351 },+]++[[package]]+name = "typer"+version = "0.12.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "click" },+ { name = "rich" },+ { name = "shellingham" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c5/58/a79003b91ac2c6890fc5d90145c662fd5771c6f11447f116b63300436bc9/typer-0.12.5.tar.gz", hash = "sha256:f592f089bedcc8ec1b974125d64851029c3b1af145f04aca64d69410f0c9b722", size = 98953 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a8/2b/886d13e742e514f704c33c4caa7df0f3b89e5a25ef8db02aa9ca3d9535d5/typer-0.12.5-py3-none-any.whl", hash = "sha256:62fe4e471711b147e3365034133904df3e235698399bc4de2b36c8579298d52b", size = 47288 },+]++[[package]]+name = "typing-extensions"+version = "4.12.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/df/db/f35a00659bc03fec321ba8bce9420de607a1d37f8342eee1863174c69557/typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8", size = 85321 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d", size = 37438 },+]++[[package]]+name = "uritemplate"+version = "4.1.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d2/5a/4742fdba39cd02a56226815abfa72fe0aa81c33bed16ed045647d6000eba/uritemplate-4.1.1.tar.gz", hash = "sha256:4346edfc5c3b79f694bccd6d6099a322bbeb628dbf2cd86eea55a456ce5124f0", size = 273898 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/81/c0/7461b49cd25aeece13766f02ee576d1db528f1c37ce69aee300e075b485b/uritemplate-4.1.1-py2.py3-none-any.whl", hash = "sha256:830c08b8d99bdd312ea4ead05994a38e8936266f84b9a7878232db50b044e02e", size = 10356 },+]++[[package]]+name = "urllib3"+version = "2.2.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ed/63/22ba4ebfe7430b76388e7cd448d5478814d3032121827c12a2cc287e2260/urllib3-2.2.3.tar.gz", hash = "sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9", size = 300677 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ce/d9/5f4c13cecde62396b0d3fe530a50ccea91e7dfc1ccf0e09c228841bb5ba8/urllib3-2.2.3-py3-none-any.whl", hash = "sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac", size = 126338 },+]++[[package]]+name = "yarl"+version = "1.11.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "idna" },+ { name = "multidict" },+]+sdist = { url = "https://files.pythonhosted.org/packages/e4/3d/4924f9ed49698bac5f112bc9b40aa007bbdcd702462c1df3d2e1383fb158/yarl-1.11.1.tar.gz", hash = "sha256:1bb2d9e212fb7449b8fb73bc461b51eaa17cc8430b4a87d87be7b25052d92f53", size = 162095 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3b/05/379002019a0c9d5dc0c4cc6f71e324ea43461ae6f58e94ee87e07b8ffa90/yarl-1.11.1-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:a4264515f9117be204935cd230fb2a052dd3792789cc94c101c535d349b3dab0", size = 189044 },+ { url = "https://files.pythonhosted.org/packages/23/d5/e62cfba5ceaaf92ee4f9af6f9c9ab2f2b47d8ad48687fa69570a93b0872c/yarl-1.11.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:f41fa79114a1d2eddb5eea7b912d6160508f57440bd302ce96eaa384914cd265", size = 114867 },+ { url = "https://files.pythonhosted.org/packages/b1/10/6abc0bd7e7fe7c6b9b9e9ce0ff558912c9ecae65a798f5442020ef9e4177/yarl-1.11.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:02da8759b47d964f9173c8675710720b468aa1c1693be0c9c64abb9d8d9a4867", size = 112737 },+ { url = "https://files.pythonhosted.org/packages/37/a5/ad026afde5efe1849f4f55bd9f9a2cb5b006511b324db430ae5336104fb3/yarl-1.11.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9361628f28f48dcf8b2f528420d4d68102f593f9c2e592bfc842f5fb337e44fd", size = 482887 },+ { url = "https://files.pythonhosted.org/packages/f8/82/b8bee972617b800319b4364cfcd69bfaf7326db052e91a56e63986cc3e05/yarl-1.11.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b91044952da03b6f95fdba398d7993dd983b64d3c31c358a4c89e3c19b6f7aef", size = 498635 },+ { url = "https://files.pythonhosted.org/packages/af/ad/ac688503b134e02e8505415f0b8e94dc8e92a97e82abdd9736658389b5ae/yarl-1.11.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:74db2ef03b442276d25951749a803ddb6e270d02dda1d1c556f6ae595a0d76a8", size = 496198 },+ { url = "https://files.pythonhosted.org/packages/ce/f2/b6cae0ad1afed6e95f82ab2cb9eb5b63e41f1463ece2a80c39d80cf6167a/yarl-1.11.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e975a2211952a8a083d1b9d9ba26472981ae338e720b419eb50535de3c02870", size = 489068 },+ { url = "https://files.pythonhosted.org/packages/c8/f4/355e69b5563154b40550233ffba8f6099eac0c99788600191967763046cf/yarl-1.11.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8aef97ba1dd2138112890ef848e17d8526fe80b21f743b4ee65947ea184f07a2", size = 468286 },+ { url = "https://files.pythonhosted.org/packages/26/3d/3c37f3f150faf87b086f7915724f2fcb9ff2f7c9d3f6c0f42b7722bd9b77/yarl-1.11.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a7915ea49b0c113641dc4d9338efa9bd66b6a9a485ffe75b9907e8573ca94b84", size = 484568 },+ { url = "https://files.pythonhosted.org/packages/94/ee/d591abbaea3b14e0f68bdec5cbcb75f27107190c51889d518bafe5d8f120/yarl-1.11.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:504cf0d4c5e4579a51261d6091267f9fd997ef58558c4ffa7a3e1460bd2336fa", size = 484947 },+ { url = "https://files.pythonhosted.org/packages/57/70/ad1c65a13315f03ff0c63fd6359dd40d8198e2a42e61bf86507602a0364f/yarl-1.11.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:3de5292f9f0ee285e6bd168b2a77b2a00d74cbcfa420ed078456d3023d2f6dff", size = 505610 },+ { url = "https://files.pythonhosted.org/packages/4c/8c/6086dec0f8d7df16d136b38f373c49cf3d2fb94464e5a10bf788b36f3f54/yarl-1.11.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:a34e1e30f1774fa35d37202bbeae62423e9a79d78d0874e5556a593479fdf239", size = 515951 },+ { url = "https://files.pythonhosted.org/packages/49/79/e0479e9a3bbb7bdcb82779d89711b97cea30902a4bfe28d681463b7071ce/yarl-1.11.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:66b63c504d2ca43bf7221a1f72fbe981ff56ecb39004c70a94485d13e37ebf45", size = 501273 },+ { url = "https://files.pythonhosted.org/packages/8e/85/eab962453e81073276b22f3d1503dffe6bfc3eb9cd0f31899970de05d490/yarl-1.11.1-cp312-cp312-win32.whl", hash = "sha256:a28b70c9e2213de425d9cba5ab2e7f7a1c8ca23a99c4b5159bf77b9c31251447", size = 101139 },+ { url = "https://files.pythonhosted.org/packages/5d/de/618b3e5cab10af8a2ed3eb625dac61c1d16eb155d1f56f9fdb3500786c12/yarl-1.11.1-cp312-cp312-win_amd64.whl", hash = "sha256:17b5a386d0d36fb828e2fb3ef08c8829c1ebf977eef88e5367d1c8c94b454639", size = 110504 },+ { url = "https://files.pythonhosted.org/packages/07/b7/948e4f427817e0178f3737adf6712fea83f76921e11e2092f403a8a9dc4a/yarl-1.11.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:1fa2e7a406fbd45b61b4433e3aa254a2c3e14c4b3186f6e952d08a730807fa0c", size = 185061 },+ { url = "https://files.pythonhosted.org/packages/f3/67/8d91ad79a3b907b4fef27fafa912350554443ba53364fff3c347b41105cb/yarl-1.11.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:750f656832d7d3cb0c76be137ee79405cc17e792f31e0a01eee390e383b2936e", size = 113056 },+ { url = "https://files.pythonhosted.org/packages/a1/77/6b2348a753702fa87f435cc33dcec21981aaca8ef98a46566a7b29940b4a/yarl-1.11.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0b8486f322d8f6a38539136a22c55f94d269addb24db5cb6f61adc61eabc9d93", size = 110958 },+ { url = "https://files.pythonhosted.org/packages/8e/3e/6eadf32656741549041f549a392f3b15245d3a0a0b12a9bc22bd6b69621f/yarl-1.11.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3fce4da3703ee6048ad4138fe74619c50874afe98b1ad87b2698ef95bf92c96d", size = 470326 },+ { url = "https://files.pythonhosted.org/packages/3d/a4/1b641a8c7899eeaceec45ff105a2e7206ec0eb0fb9d86403963cc8521c5e/yarl-1.11.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8ed653638ef669e0efc6fe2acb792275cb419bf9cb5c5049399f3556995f23c7", size = 484778 },+ { url = "https://files.pythonhosted.org/packages/8a/f5/80c142f34779a5c26002b2bf1f73b9a9229aa9e019ee6f9fd9d3e9704e78/yarl-1.11.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:18ac56c9dd70941ecad42b5a906820824ca72ff84ad6fa18db33c2537ae2e089", size = 485568 },+ { url = "https://files.pythonhosted.org/packages/f8/f2/6b40ffea2d5d3a11f514ab23c30d14f52600c36a3210786f5974b6701bb8/yarl-1.11.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:688654f8507464745ab563b041d1fb7dab5d9912ca6b06e61d1c4708366832f5", size = 477801 },+ { url = "https://files.pythonhosted.org/packages/4c/1a/e60c116f3241e4842ed43c104eb2751abe02f6bac0301cdae69e4fda9c3a/yarl-1.11.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4973eac1e2ff63cf187073cd4e1f1148dcd119314ab79b88e1b3fad74a18c9d5", size = 455361 },+ { url = "https://files.pythonhosted.org/packages/b9/98/fe0aeee425a4bc5cd3ed86e867661d2bfa782544fa07a8e3dcd97d51ae3d/yarl-1.11.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:964a428132227edff96d6f3cf261573cb0f1a60c9a764ce28cda9525f18f7786", size = 473893 },+ { url = "https://files.pythonhosted.org/packages/6b/9b/677455d146bd3cecd350673f0e4bb28854af66726493ace3b640e9c5552b/yarl-1.11.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:6d23754b9939cbab02c63434776df1170e43b09c6a517585c7ce2b3d449b7318", size = 476407 },+ { url = "https://files.pythonhosted.org/packages/33/ca/ce85766247a9a9b56654428fb78a3e14ea6947a580a9c4e891b3aa7da322/yarl-1.11.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c2dc4250fe94d8cd864d66018f8344d4af50e3758e9d725e94fecfa27588ff82", size = 490848 },+ { url = "https://files.pythonhosted.org/packages/6d/d6/717f0f19bcf2c4705ad95550b4b6319a0d8d1d4f137ea5e223207f00df50/yarl-1.11.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:09696438cb43ea6f9492ef237761b043f9179f455f405279e609f2bc9100212a", size = 501084 },+ { url = "https://files.pythonhosted.org/packages/14/b5/b93c70d9a462b802c8df65c64b85f49d86b4ba70c393fbad95cf7ec053cb/yarl-1.11.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:999bfee0a5b7385a0af5ffb606393509cfde70ecca4f01c36985be6d33e336da", size = 491776 },+ { url = "https://files.pythonhosted.org/packages/03/0f/5a52eaa402a6a93265ba82f42c6f6085ccbe483e1b058ad34207e75812b1/yarl-1.11.1-cp313-cp313-win32.whl", hash = "sha256:ce928c9c6409c79e10f39604a7e214b3cb69552952fbda8d836c052832e6a979", size = 485250 },+ { url = "https://files.pythonhosted.org/packages/dd/97/946d26a5d82706a6769399cabd472c59f9a3227ce1432afb4739b9c29572/yarl-1.11.1-cp313-cp313-win_amd64.whl", hash = "sha256:501c503eed2bb306638ccb60c174f856cc3246c861829ff40eaa80e2f0330367", size = 492590 },+ { url = "https://files.pythonhosted.org/packages/5b/b3/841f7d706137bdc8b741c6826106b6f703155076d58f1830f244da857451/yarl-1.11.1-py3-none-any.whl", hash = "sha256:72bf26f66456baa0584eff63e44545c9f0eaed9b73cb6601b647c91f14c11f38", size = 38648 },+]diff --git a/atomic-forge/atomic_tools/youtube_transcript_scraper/README.md b/atomic-forge/atomic_tools/youtube_transcript_scraper/README.mdnew file mode 100644index 0000000..ba5e226--- /dev/null+++ b/atomic-forge/atomic_tools/youtube_transcript_scraper/README.md@@ -0,0 +1,28 @@+# YouTube Transcript Scraper Tool++## Overview+The YouTube Transcript Scraper Tool is a Python-based utility designed for fetching and processing transcripts from YouTube videos. It uses the YouTube Transcript API to retrieve transcripts and the Google API to fetch video metadata. This tool is built using the Pydantic library for input validation and leverages the `atomic_agents` framework for consistent tool structure.++## Features+- Fetch transcripts from YouTube videos.+- Support for language-specific transcript retrieval.+- Retrieve video metadata (title, channel, publication date).+- Input validation using Pydantic.+- Error handling for common transcript fetching issues.++## Example Usage++```python+from tool.youtube_transcript_scraper import YouTubeTranscriptTool, YouTubeTranscriptToolConfig++api_key = "your_youtube_api_key"+transcript_tool = YouTubeTranscriptTool(config=YouTubeTranscriptToolConfig(api_key=api_key))++input_data = YouTubeTranscriptTool.input_schema(+ video_url="https://www.youtube.com/watch?v=t1e8gqXLbsU",+ language="en"+)++result = transcript_tool.run(input_data)+print(result) # Output: YouTubeTranscriptToolOutputSchema with transcript, duration, and metadata+```diff --git a/atomic-forge/atomic_tools/youtube_transcript_scraper/requirements.txt b/atomic-forge/atomic_tools/youtube_transcript_scraper/requirements.txtnew file mode 100644index 0000000..36bb4a4--- /dev/null+++ b/atomic-forge/atomic_tools/youtube_transcript_scraper/requirements.txt@@ -0,0 +1,4 @@+atomic_agents>=0.3.6,<0.4+google_api_python_client>=2.114.0,<3+pydantic>=2.9.1,<3+youtube_transcript_api>=0.6.2,<1diff --git a/atomic-forge/atomic_tools/youtube_transcript_scraper/tests/test_youtube_transcript_scraper.py b/atomic-forge/atomic_tools/youtube_transcript_scraper/tests/test_youtube_transcript_scraper.pynew file mode 100644index 0000000..316ec96--- /dev/null+++ b/atomic-forge/atomic_tools/youtube_transcript_scraper/tests/test_youtube_transcript_scraper.py@@ -0,0 +1,167 @@+import os+import sys+import pytest+from unittest.mock import patch, MagicMock++from youtube_transcript_api import NoTranscriptFound, TranscriptsDisabled++# Add the parent directory of 'tests' to the Python path+sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))++from tool.youtube_transcript_scraper import (+ YouTubeTranscriptTool,+ YouTubeTranscriptToolInputSchema,+ YouTubeTranscriptToolOutputSchema,+ YouTubeTranscriptToolConfig,+)+++def test_youtube_transcript_tool():+ mock_api_key = "mock_api_key"+ mock_video_url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"+ mock_video_id = "dQw4w9WgXcQ"+ mock_transcript = [+ {"text": "Never gonna give you up", "duration": 5.0},+ {"text": "Never gonna let you down", "duration": 5.0},+ ]+ mock_metadata = {+ "title": "Rick Astley - Never Gonna Give You Up",+ "channelTitle": "Rick Astley",+ "publishedAt": "2009-10-25T06:57:33Z",+ }++ with patch(+ "tool.youtube_transcript_scraper.YouTubeTranscriptApi.get_transcript",+ return_value=mock_transcript,+ ), patch("tool.youtube_transcript_scraper.build") as mock_build:+ mock_youtube = MagicMock()+ mock_build.return_value = mock_youtube+ mock_youtube.videos().list().execute.return_value = {+ "items": [{"snippet": mock_metadata}]+ }++ youtube_transcript_tool = YouTubeTranscriptTool(+ YouTubeTranscriptToolConfig(api_key=mock_api_key)+ )+ input_schema = YouTubeTranscriptToolInputSchema(video_url=mock_video_url)+ result = youtube_transcript_tool.run(input_schema)++ assert isinstance(result, YouTubeTranscriptToolOutputSchema)+ assert result.transcript == "Never gonna give you up Never gonna let you down"+ assert result.duration == 10.0+ assert result.comments == []+ assert result.metadata == {+ "id": mock_video_id,+ "title": mock_metadata["title"],+ "channel": mock_metadata["channelTitle"],+ "published_at": mock_metadata["publishedAt"],+ }+++def test_youtube_transcript_tool_with_language():+ mock_api_key = "mock_api_key"+ mock_video_url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"+ mock_transcript = [+ {"text": "Never gonna give you up", "duration": 5.0},+ {"text": "Never gonna let you down", "duration": 5.0},+ ]+ mock_metadata = {+ "title": "Rick Astley - Never Gonna Give You Up",+ "channelTitle": "Rick Astley",+ "publishedAt": "2009-10-25T06:57:33Z",+ }++ with patch(+ "tool.youtube_transcript_scraper.YouTubeTranscriptApi.get_transcript",+ return_value=mock_transcript,+ ), patch("tool.youtube_transcript_scraper.build") as mock_build:+ mock_youtube = MagicMock()+ mock_build.return_value = mock_youtube+ mock_youtube.videos().list().execute.return_value = {+ "items": [{"snippet": mock_metadata}]+ }++ youtube_transcript_tool = YouTubeTranscriptTool(+ YouTubeTranscriptToolConfig(api_key=mock_api_key)+ )+ input_schema = YouTubeTranscriptToolInputSchema(+ video_url=mock_video_url, language="en"+ )+ result = youtube_transcript_tool.run(input_schema)++ assert isinstance(result, YouTubeTranscriptToolOutputSchema)+ assert result.transcript == "Never gonna give you up Never gonna let you down"+++def test_youtube_transcript_tool_no_transcript():+ mock_api_key = "mock_api_key"+ mock_video_url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"++ with patch(+ "tool.youtube_transcript_scraper.YouTubeTranscriptApi.get_transcript",+ side_effect=NoTranscriptFound(+ video_id="dQw4w9WgXcQ",+ requested_language_codes=["en"],+ transcript_data=None,+ ),+ ):+ youtube_transcript_tool = YouTubeTranscriptTool(+ YouTubeTranscriptToolConfig(api_key=mock_api_key)+ )+ input_schema = YouTubeTranscriptToolInputSchema(video_url=mock_video_url)++ with pytest.raises(Exception) as excinfo:+ youtube_transcript_tool.run(input_schema)++ assert "Failed to fetch transcript" in str(excinfo.value)+++def test_youtube_transcript_tool_transcripts_disabled():+ mock_api_key = "mock_api_key"+ mock_video_url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"++ with patch(+ "tool.youtube_transcript_scraper.YouTubeTranscriptApi.get_transcript",+ side_effect=TranscriptsDisabled("Transcripts are disabled"),+ ):+ youtube_transcript_tool = YouTubeTranscriptTool(+ YouTubeTranscriptToolConfig(api_key=mock_api_key)+ )+ input_schema = YouTubeTranscriptToolInputSchema(video_url=mock_video_url)++ with pytest.raises(Exception) as excinfo:+ youtube_transcript_tool.run(input_schema)++ assert "Failed to fetch transcript" in str(excinfo.value)+++def test_fetch_video_metadata_no_items():+ mock_api_key = "mock_api_key"+ mock_video_url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"++ with patch("tool.youtube_transcript_scraper.build") as mock_build:+ mock_youtube = MagicMock()+ mock_build.return_value = mock_youtube+ mock_youtube.videos().list().execute.return_value = {"items": []}++ youtube_transcript_tool = YouTubeTranscriptTool(+ YouTubeTranscriptToolConfig(api_key=mock_api_key)+ )++ with pytest.raises(Exception) as excinfo:+ youtube_transcript_tool.fetch_video_metadata("dQw4w9WgXcQ")++ assert "No metadata found for video" in str(excinfo.value)+++def test_extract_video_id():+ youtube_transcript_tool = YouTubeTranscriptTool(+ YouTubeTranscriptToolConfig(api_key="mock_api_key")+ )+ video_url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"+ video_id = youtube_transcript_tool.extract_video_id(video_url)+ assert video_id == "dQw4w9WgXcQ"+++if __name__ == "__main__":+ pytest.main([__file__])diff --git a/atomic-forge/atomic_tools/youtube_transcript_scraper/tool/youtube_transcript_scraper.py b/atomic-forge/atomic_tools/youtube_transcript_scraper/tool/youtube_transcript_scraper.pynew file mode 100644index 0000000..a37998a--- /dev/null+++ b/atomic-forge/atomic_tools/youtube_transcript_scraper/tool/youtube_transcript_scraper.py@@ -0,0 +1,174 @@+import os+from typing import List, Optional++from googleapiclient.discovery import build+from pydantic import Field+from youtube_transcript_api import (+ NoTranscriptFound,+ TranscriptsDisabled,+ YouTubeTranscriptApi,+)++from atomic_agents.agents.base_agent import BaseIOSchema+from atomic_agents.lib.tools.base_tool import BaseTool, BaseToolConfig+++################+# INPUT SCHEMA #+################+class YouTubeTranscriptToolInputSchema(BaseIOSchema):+ """+ Tool for fetching the transcript of a YouTube video using the YouTube Transcript API.+ Returns the transcript with text, start time, and duration.+ """++ video_url: str = Field(+ ..., description="URL of the YouTube video to fetch the transcript for."+ )+ language: Optional[str] = Field(+ None, description="Language code for the transcript (e.g., 'en' for English)."+ )+++####################+# OUTPUT SCHEMA(S) #+####################+class YouTubeTranscriptToolOutputSchema(BaseIOSchema):+ """Output schema for the YouTubeTranscriptTool. Contains the transcript text, duration, comments, and metadata."""++ transcript: str+ duration: float+ comments: List[str]+ metadata: dict+++##############+# TOOL LOGIC #+##############+class YouTubeTranscriptToolConfig(BaseToolConfig):+ api_key: str = Field(+ description="YouTube API key for fetching video metadata.",+ default=os.getenv("YOUTUBE_API_KEY"),+ )+++class YouTubeTranscriptTool(BaseTool):+ """+ Tool for fetching the transcript of a YouTube video using the YouTube Transcript API.++ Attributes:+ input_schema (YouTubeTranscriptToolInputSchema): The schema for the input data.+ output_schema (YouTubeTranscriptToolOutputSchema): The schema for the output data.+ """++ input_schema = YouTubeTranscriptToolInputSchema+ output_schema = YouTubeTranscriptToolOutputSchema++ def __init__(self, config: YouTubeTranscriptToolConfig):+ """+ Initializes the YouTubeTranscriptTool.++ Args:+ config (YouTubeTranscriptToolConfig): Configuration for the tool.+ """+ super().__init__(config)+ self.api_key = config.api_key++ def run(+ self, params: YouTubeTranscriptToolInputSchema+ ) -> YouTubeTranscriptToolOutputSchema:+ """+ Runs the YouTubeTranscriptTool with the given parameters.++ Args:+ params (YouTubeTranscriptToolInputSchema): The input parameters for the tool, adhering to the input schema.++ Returns:+ YouTubeTranscriptToolOutputSchema: The output of the tool, adhering to the output schema.++ Raises:+ Exception: If fetching the transcript fails.+ """+ video_id = self.extract_video_id(params.video_url)+ try:+ if params.language:+ transcripts = YouTubeTranscriptApi.get_transcript(+ video_id, languages=[params.language]+ )+ else:+ transcripts = YouTubeTranscriptApi.get_transcript(video_id)+ except (NoTranscriptFound, TranscriptsDisabled) as e:+ raise Exception(+ f"Failed to fetch transcript for video '{video_id}': {str(e)}"+ )++ transcript_text = " ".join([transcript["text"] for transcript in transcripts])+ total_duration = sum([transcript["duration"] for transcript in transcripts])++ metadata = self.fetch_video_metadata(video_id)++ return YouTubeTranscriptToolOutputSchema(+ transcript=transcript_text,+ duration=total_duration,+ comments=[],+ metadata=metadata,+ )++ @staticmethod+ def extract_video_id(url: str) -> str:+ """+ Extracts the video ID from a YouTube URL.++ Args:+ url (str): The YouTube video URL.++ Returns:+ str: The extracted video ID.+ """+ return url.split("v=")[-1].split("&")[0]++ def fetch_video_metadata(self, video_id: str) -> dict:+ """+ Fetches metadata for a YouTube video.++ Args:+ video_id (str): The YouTube video ID.++ Returns:+ dict: The metadata of the video.+ """+ youtube = build("youtube", "v3", developerKey=self.api_key)+ request = youtube.videos().list(part="snippet", id=video_id)+ response = request.execute()++ if not response["items"]:+ raise Exception(f"No metadata found for video '{video_id}'")++ video_info = response["items"][0]["snippet"]+ metadata = {+ "id": video_id,+ "title": video_info["title"],+ "channel": video_info["channelTitle"],+ "published_at": video_info["publishedAt"],+ }+ return metadata+++#################+# EXAMPLE USAGE #+#################+if __name__ == "__main__":+ from rich.console import Console++ rich_console = Console()+ api_key = os.getenv("YOUTUBE_API_KEY")+ search_tool_instance = YouTubeTranscriptTool(+ config=YouTubeTranscriptToolConfig(api_key=api_key)+ )++ search_input = YouTubeTranscriptTool.input_schema(+ video_url="https://www.youtube.com/watch?v=t1e8gqXLbsU", language="en"+ )++ output = search_tool_instance.run(search_input)+ rich_console.print(output)diff --git a/atomic-forge/docs/tool_structure.md b/atomic-forge/docs/tool_structure.mdnew file mode 100644index 0000000..9d83b89--- /dev/null+++ b/atomic-forge/docs/tool_structure.md@@ -0,0 +1,254 @@+# Anatomy of a Tool in Atomic Agents++## Introduction++The **Atomic Agents** framework enables developers to create modular, extensible, and efficient AI tools. This guide outlines the core anatomy of a tool within the Atomic Agents ecosystem, providing a structured approach to building new tools that seamlessly integrate into the framework.++## Components of a Tool++Each tool in Atomic Agents is constructed using a standardized architecture to ensure consistency and ease of integration. The primary components include:++1. **Input Schema**+2. **Output Schema**+3. **Tool Logic**+4. **Configuration**+5. **Example Usage**++### 1. Input Schema++The Input Schema defines the structure and validation rules for the data the tool expects. Utilizing Pydantic's `BaseModel`, it ensures that all inputs meet the required criteria before processing.++**Example: `CalculatorToolInputSchema`**++```python:atomic_tools/calculator/tool/calculator.py+class CalculatorToolInputSchema(BaseIOSchema):+ """+ Tool for performing calculations. Supports basic arithmetic operations+ like addition, subtraction, multiplication, and division, as well as more+ complex operations like exponentiation and trigonometric functions.+ Use this tool to evaluate mathematical expressions.+ """++ expression: str = Field(+ ..., description="Mathematical expression to evaluate. For example, '2 + 2'."+ )+```++### 2. Output Schema++The Output Schema defines the structure and validation rules for the data the tool returns after execution. It ensures that the output adheres to a consistent format, facilitating seamless integration with other components.++**Example: `CalculatorToolOutputSchema`**++```python:atomic_tools/calculator/tool/calculator.py+class CalculatorToolOutputSchema(BaseIOSchema):+ """This schema defines the output of the CalculatorTool."""++ result: str = Field(..., description="Result of the calculation.")+```++### 3. Tool Logic++The Tool Logic encapsulates the core functionality of the tool, detailing how inputs are processed to produce outputs. It inherits from a base tool class and implements the `run` method, which orchestrates the tool's operations.++**Example: `CalculatorTool`**++```python:atomic_tools/calculator/tool/calculator.py+class CalculatorTool(BaseTool):+ """+ Tool for performing calculations based on the provided mathematical expression.++ Attributes:+ input_schema (CalculatorToolInputSchema): The schema for the input data.+ output_schema (CalculatorToolOutputSchema): The schema for the output data.+ """++ input_schema = CalculatorToolInputSchema+ output_schema = CalculatorToolOutputSchema++ def __init__(self, config: CalculatorToolConfig = CalculatorToolConfig()):+ """+ Initializes the CalculatorTool.++ Args:+ config (CalculatorToolConfig): Configuration for the tool.+ """+ super().__init__(config)++ def run(self, params: CalculatorToolInputSchema) -> CalculatorToolOutputSchema:+ """+ Executes the CalculatorTool with the given parameters.++ Args:+ params (CalculatorToolInputSchema): The input parameters for the tool.++ Returns:+ CalculatorToolOutputSchema: The result of the calculation.+ """+ # Convert the expression string to a symbolic expression+ parsed_expr = sympify(params.expression)++ # Evaluate the expression numerically+ result = parsed_expr.evalf()+ return CalculatorToolOutputSchema(result=str(result))+```++### 4. Configuration++Configuration handles the settings required by the tool, such as API keys or environment variables. It ensures that sensitive information is managed securely and can be easily modified without altering the tool's core logic.++**Example: `YouTubeTranscriptToolConfig`**++```python:atomic_tools/youtube_transcript_scraper/tool/youtube_transcript_scraper.py+class YouTubeTranscriptToolConfig(BaseToolConfig):+ api_key: str = Field(+ description="YouTube API key for fetching video metadata.",+ default=os.getenv("YOUTUBE_API_KEY"),+ )+```++### 5. Example Usage++Example Usage demonstrates how to instantiate and utilize the tool within an application. It provides a practical reference for developers to integrate the tool into their workflows effectively.++**Example Usage: `CalculatorTool`**++```python:atomic_tools/calculator/tool/calculator.py+if __name__ == "__main__":+ calculator = CalculatorTool()+ result = calculator.run(+ CalculatorToolInputSchema(expression="sin(pi/2) + cos(pi/4)")+ )+ print(result) # Expected output: {"result":"1.70710678118655"}+```++## Creating a New Tool++To create a new tool within the Atomic Agents framework, follow these steps:++1. **Define the Input Schema:**+ Specify the input parameters the tool will accept using a Pydantic `BaseModel`.++ **Example:**+ ```python:your_tool/tool/your_tool.py+ class YourToolInputSchema(BaseIOSchema):+ """+ Description of your tool's input parameters.+ """+ param1: str = Field(..., description="Description of param1.")+ param2: int = Field(..., description="Description of param2.")+ ```++2. **Define the Output Schema:**+ Specify the structure of the data the tool will return after execution.++ **Example:**+ ```python:your_tool/tool/your_tool.py+ class YourToolOutputSchema(BaseIOSchema):+ """+ Description of the tool's output.+ """+ result: str = Field(..., description="Description of the result.")+ ```++3. **Implement the Tool Logic:**+ Create a class that inherits from `BaseTool`, set the `input_schema` and `output_schema`, and implement the `run` method with the tool's functionality.++ **Example:**+ ```python:your_tool/tool/your_tool.py+ class YourTool(BaseTool):+ """+ Tool for [brief description of what your tool does].++ Attributes:+ input_schema (YourToolInputSchema): The schema for the input data.+ output_schema (YourToolOutputSchema): The schema for the output data.+ """++ input_schema = YourToolInputSchema+ output_schema = YourToolOutputSchema++ def __init__(self, config: YourToolConfig = YourToolConfig()):+ """+ Initializes the YourTool.++ Args:+ config (YourToolConfig): Configuration for the tool.+ """+ super().__init__(config)++ def run(self, params: YourToolInputSchema) -> YourToolOutputSchema:+ """+ Executes the YourTool with the given parameters.++ Args:+ params (YourToolInputSchema): The input parameters for the tool.++ Returns:+ YourToolOutputSchema: The result of the tool's execution.+ """+ # Implement your tool's logic here+ result = "your_result_based_on_params"+ return YourToolOutputSchema(result=result)+ ```++4. **Configure the Tool:**+ Create a configuration class inheriting from `BaseToolConfig` to manage any necessary settings or environment variables.++ **Example:**+ ```python:your_tool/tool/your_tool.py+ class YourToolConfig(BaseToolConfig):+ """+ Configuration for YourTool.++ Attributes:+ setting1 (str): Description of setting1.+ setting2 (int): Description of setting2.+ """+ setting1: str = Field(..., description="Description of setting1.")+ setting2: int = Field(..., description="Description of setting2.")+ ```++5. **Provide Example Usage:**+ Add examples demonstrating how to use the tool, aiding developers in integration.++ **Example Usage:**+ ```python:your_tool/tool/your_tool.py+ if __name__ == "__main__":+ tool = YourTool()+ input_data = YourToolInputSchema(param1="value1", param2=42)+ output = tool.run(input_data)+ print(output) # Expected output: {"result":"expected_result"}+ ```++6. **Write Tests:**+ Develop test cases to validate the tool's functionality, ensuring it behaves as expected.++ **Example Test:**+ ```python:your_tool/tests/test_your_tool.py+ import pytest+ from your_tool.tool.your_tool import YourTool, YourToolInputSchema, YourToolOutputSchema, YourToolConfig++ def test_your_tool():+ config = YourToolConfig(setting1="value1", setting2=2)+ tool = YourTool(config=config)+ input_data = YourToolInputSchema(param1="test", param2=10)+ result = tool.run(input_data)+ assert isinstance(result, YourToolOutputSchema)+ assert result.result == "expected_result_based_on_input"+ ```++## Best Practices++- **Modularity:** Design tools to perform single, well-defined tasks to enhance reusability and maintainability.+- **Validation:** Utilize Pydantic schemas for rigorous input and output validation, ensuring data integrity.+- **Error Handling:** Implement comprehensive error checks to manage unexpected scenarios gracefully.+- **Configuration Management:** Securely handle sensitive information like API keys using environment variables and configuration classes.+- **Documentation:** Provide clear docstrings and usage examples to aid developers in understanding and utilizing the tools effectively.+- **Testing:** Develop thorough test cases to validate the tool's functionality and reliability across different scenarios.++## Conclusion++Mastering the anatomy of a tool within the Atomic Agents framework enables the creation of robust and efficient AI-driven applications. By adhering to the structured approach outlined in this guide, developers can ensure consistency, reliability, and scalability in their tool development endeavors.++For more detailed information and advanced configurations, refer to the [Atomic Agents Documentation](https://github.com/BrainBlend-AI/atomic-agents).