From f90bec8ce6e85a394de5125467c571b90fa66d36 Mon Sep 17 00:00:00 2001 From: Howard Gil Date: Wed, 14 Aug 2024 12:59:44 -0700 Subject: [PATCH] Clearing notebook outputs (#344) --- examples/crew/job_posting.ipynb | 373 +-------------- examples/crew/markdown_validator.ipynb | 606 ++++++++++++------------- 2 files changed, 305 insertions(+), 674 deletions(-) diff --git a/examples/crew/job_posting.ipynb b/examples/crew/job_posting.ipynb index 0e9a857d..f10c43fb 100644 --- a/examples/crew/job_posting.ipynb +++ b/examples/crew/job_posting.ipynb @@ -9,378 +9,9 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Collecting crewai[tools]\n", - " Using cached crewai-0.41.1-py3-none-any.whl.metadata (13 kB)\n", - "Collecting appdirs<2.0.0,>=1.4.4 (from crewai[tools])\n", - " Using cached appdirs-1.4.4-py2.py3-none-any.whl.metadata (9.0 kB)\n", - "Requirement already satisfied: click<9.0.0,>=8.1.7 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai[tools]) (8.1.7)\n", - "Collecting crewai-tools<0.5.0,>=0.4.26 (from crewai[tools])\n", - " Using cached crewai_tools-0.4.26-py3-none-any.whl.metadata (4.6 kB)\n", - "Collecting embedchain<0.2.0,>=0.1.114 (from crewai[tools])\n", - " Downloading embedchain-0.1.120-py3-none-any.whl.metadata (9.3 kB)\n", - "Collecting instructor==1.3.3 (from crewai[tools])\n", - " Using cached instructor-1.3.3-py3-none-any.whl.metadata (13 kB)\n", - "Collecting json-repair<0.26.0,>=0.25.2 (from crewai[tools])\n", - " Using cached json_repair-0.25.3-py3-none-any.whl.metadata (7.9 kB)\n", - "Collecting jsonref<2.0.0,>=1.1.0 (from crewai[tools])\n", - " Using cached jsonref-1.1.0-py3-none-any.whl.metadata (2.7 kB)\n", - "Requirement already satisfied: langchain<=0.3,>0.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai[tools]) (0.2.12)\n", - "Requirement already satisfied: openai<2.0.0,>=1.13.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai[tools]) (1.40.2)\n", - "Collecting opentelemetry-api<2.0.0,>=1.22.0 (from crewai[tools])\n", - " Downloading opentelemetry_api-1.26.0-py3-none-any.whl.metadata (1.4 kB)\n", - "Collecting opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.22.0 (from crewai[tools])\n", - " Downloading opentelemetry_exporter_otlp_proto_http-1.26.0-py3-none-any.whl.metadata (2.3 kB)\n", - "Collecting opentelemetry-sdk<2.0.0,>=1.22.0 (from crewai[tools])\n", - " Downloading opentelemetry_sdk-1.26.0-py3-none-any.whl.metadata (1.5 kB)\n", - "Requirement already satisfied: pydantic<3.0.0,>=2.4.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai[tools]) (2.8.2)\n", - "Requirement already satisfied: python-dotenv<2.0.0,>=1.0.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai[tools]) (1.0.1)\n", - "Collecting regex<2024.0.0,>=2023.12.25 (from crewai[tools])\n", - " Using cached regex-2023.12.25-cp312-cp312-macosx_11_0_arm64.whl.metadata (40 kB)\n", - "Requirement already satisfied: aiohttp<4.0.0,>=3.9.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from instructor==1.3.3->crewai[tools]) (3.10.2)\n", - "Collecting docstring-parser<0.17,>=0.16 (from instructor==1.3.3->crewai[tools])\n", - " Using cached docstring_parser-0.16-py3-none-any.whl.metadata (3.0 kB)\n", - "Collecting jiter<0.5.0,>=0.4.1 (from instructor==1.3.3->crewai[tools])\n", - " Using cached jiter-0.4.2-cp312-cp312-macosx_11_0_arm64.whl.metadata (3.6 kB)\n", - "Requirement already satisfied: pydantic-core<3.0.0,>=2.18.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from instructor==1.3.3->crewai[tools]) (2.20.1)\n", - "Collecting rich<14.0.0,>=13.7.0 (from instructor==1.3.3->crewai[tools])\n", - " Using cached rich-13.7.1-py3-none-any.whl.metadata (18 kB)\n", - "Requirement already satisfied: tenacity<9.0.0,>=8.2.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from instructor==1.3.3->crewai[tools]) (8.5.0)\n", - "Collecting typer<1.0.0,>=0.9.0 (from instructor==1.3.3->crewai[tools])\n", - " Using cached typer-0.12.3-py3-none-any.whl.metadata (15 kB)\n", - "Collecting beautifulsoup4<5.0.0,>=4.12.3 (from crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached beautifulsoup4-4.12.3-py3-none-any.whl.metadata (3.8 kB)\n", - "Collecting chromadb<0.5.0,>=0.4.22 (from crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached chromadb-0.4.24-py3-none-any.whl.metadata (7.3 kB)\n", - "Requirement already satisfied: docker<8.0.0,>=7.1.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai-tools<0.5.0,>=0.4.26->crewai[tools]) (7.1.0)\n", - "Collecting docx2txt<0.9,>=0.8 (from crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached docx2txt-0.8-py3-none-any.whl\n", - "Collecting lancedb<0.6.0,>=0.5.4 (from crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached lancedb-0.5.7-py3-none-any.whl.metadata (17 kB)\n", - "Collecting pyright<2.0.0,>=1.1.350 (from crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading pyright-1.1.375-py3-none-any.whl.metadata (6.2 kB)\n", - "Collecting pytest<9.0.0,>=8.0.0 (from crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading pytest-8.3.2-py3-none-any.whl.metadata (7.5 kB)\n", - "Collecting pytube<16.0.0,>=15.0.0 (from crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached pytube-15.0.0-py3-none-any.whl.metadata (5.0 kB)\n", - "Requirement already satisfied: requests<3.0.0,>=2.31.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai-tools<0.5.0,>=0.4.26->crewai[tools]) (2.31.0)\n", - "Collecting selenium<5.0.0,>=4.18.1 (from crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading selenium-4.23.1-py3-none-any.whl.metadata (7.1 kB)\n", - "Collecting alembic<2.0.0,>=1.13.1 (from embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached alembic-1.13.2-py3-none-any.whl.metadata (7.4 kB)\n", - "Requirement already satisfied: cohere<6.0,>=5.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai[tools]) (5.6.2)\n", - "Collecting google-cloud-aiplatform<2.0.0,>=1.26.1 (from embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading google_cloud_aiplatform-1.61.0-py2.py3-none-any.whl.metadata (31 kB)\n", - "Collecting gptcache<0.2.0,>=0.1.43 (from embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading gptcache-0.1.44-py3-none-any.whl.metadata (24 kB)\n", - "Collecting langchain-cohere<0.2.0,>=0.1.4 (from embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached langchain_cohere-0.1.9-py3-none-any.whl.metadata (6.6 kB)\n", - "Collecting langchain-community<0.3.0,>=0.2.6 (from embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading langchain_community-0.2.11-py3-none-any.whl.metadata (2.7 kB)\n", - "Collecting langchain-openai<0.2.0,>=0.1.7 (from embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading langchain_openai-0.1.20-py3-none-any.whl.metadata (2.6 kB)\n", - "Collecting mem0ai<0.0.10,>=0.0.9 (from embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading mem0ai-0.0.9-py3-none-any.whl.metadata (3.8 kB)\n", - "Collecting posthog<4.0.0,>=3.0.2 (from embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached posthog-3.5.0-py2.py3-none-any.whl.metadata (2.0 kB)\n", - "Collecting pypdf<5.0.0,>=4.0.1 (from embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading pypdf-4.3.1-py3-none-any.whl.metadata (7.4 kB)\n", - "Collecting pysbd<0.4.0,>=0.3.4 (from embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached pysbd-0.3.4-py3-none-any.whl.metadata (6.1 kB)\n", - "Collecting schema<0.8.0,>=0.7.5 (from embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached schema-0.7.7-py2.py3-none-any.whl.metadata (34 kB)\n", - "Requirement already satisfied: sqlalchemy<3.0.0,>=2.0.27 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai[tools]) (2.0.32)\n", - "Requirement already satisfied: tiktoken<0.8.0,>=0.7.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai[tools]) (0.7.0)\n", - "Requirement already satisfied: PyYAML>=5.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain<=0.3,>0.2->crewai[tools]) (6.0.2)\n", - "Requirement already satisfied: langchain-core<0.3.0,>=0.2.27 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain<=0.3,>0.2->crewai[tools]) (0.2.29)\n", - "Requirement already satisfied: langchain-text-splitters<0.3.0,>=0.2.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain<=0.3,>0.2->crewai[tools]) (0.2.2)\n", - "Requirement already satisfied: langsmith<0.2.0,>=0.1.17 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain<=0.3,>0.2->crewai[tools]) (0.1.98)\n", - "Requirement already satisfied: numpy<2.0.0,>=1.26.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain<=0.3,>0.2->crewai[tools]) (1.26.4)\n", - "Requirement already satisfied: anyio<5,>=3.5.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from openai<2.0.0,>=1.13.3->crewai[tools]) (4.4.0)\n", - "Requirement already satisfied: distro<2,>=1.7.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from openai<2.0.0,>=1.13.3->crewai[tools]) (1.9.0)\n", - "Requirement already satisfied: httpx<1,>=0.23.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from openai<2.0.0,>=1.13.3->crewai[tools]) (0.27.0)\n", - "Requirement already satisfied: sniffio in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from openai<2.0.0,>=1.13.3->crewai[tools]) (1.3.1)\n", - "Requirement already satisfied: tqdm>4 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from openai<2.0.0,>=1.13.3->crewai[tools]) (4.66.5)\n", - "Requirement already satisfied: typing-extensions<5,>=4.11 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from openai<2.0.0,>=1.13.3->crewai[tools]) (4.12.2)\n", - "Collecting deprecated>=1.2.6 (from opentelemetry-api<2.0.0,>=1.22.0->crewai[tools])\n", - " Using cached Deprecated-1.2.14-py2.py3-none-any.whl.metadata (5.4 kB)\n", - "Collecting importlib-metadata<=8.0.0,>=6.0 (from opentelemetry-api<2.0.0,>=1.22.0->crewai[tools])\n", - " Using cached importlib_metadata-8.0.0-py3-none-any.whl.metadata (4.6 kB)\n", - "Collecting googleapis-common-protos~=1.52 (from opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.22.0->crewai[tools])\n", - " Using cached googleapis_common_protos-1.63.2-py2.py3-none-any.whl.metadata (1.5 kB)\n", - "Collecting opentelemetry-exporter-otlp-proto-common==1.26.0 (from opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.22.0->crewai[tools])\n", - " Downloading opentelemetry_exporter_otlp_proto_common-1.26.0-py3-none-any.whl.metadata (1.8 kB)\n", - "Collecting opentelemetry-proto==1.26.0 (from opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.22.0->crewai[tools])\n", - " Downloading opentelemetry_proto-1.26.0-py3-none-any.whl.metadata (2.3 kB)\n", - "Collecting protobuf<5.0,>=3.19 (from opentelemetry-proto==1.26.0->opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.22.0->crewai[tools])\n", - " Downloading protobuf-4.25.4-cp37-abi3-macosx_10_9_universal2.whl.metadata (541 bytes)\n", - "Collecting opentelemetry-semantic-conventions==0.47b0 (from opentelemetry-sdk<2.0.0,>=1.22.0->crewai[tools])\n", - " Downloading opentelemetry_semantic_conventions-0.47b0-py3-none-any.whl.metadata (2.4 kB)\n", - "Requirement already satisfied: annotated-types>=0.4.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from pydantic<3.0.0,>=2.4.2->crewai[tools]) (0.7.0)\n", - "Requirement already satisfied: aiohappyeyeballs>=2.3.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from aiohttp<4.0.0,>=3.9.1->instructor==1.3.3->crewai[tools]) (2.3.5)\n", - "Requirement already satisfied: aiosignal>=1.1.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from aiohttp<4.0.0,>=3.9.1->instructor==1.3.3->crewai[tools]) (1.3.1)\n", - "Requirement already satisfied: attrs>=17.3.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from aiohttp<4.0.0,>=3.9.1->instructor==1.3.3->crewai[tools]) (24.2.0)\n", - "Requirement already satisfied: frozenlist>=1.1.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from aiohttp<4.0.0,>=3.9.1->instructor==1.3.3->crewai[tools]) (1.4.1)\n", - "Requirement already satisfied: multidict<7.0,>=4.5 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from aiohttp<4.0.0,>=3.9.1->instructor==1.3.3->crewai[tools]) (6.0.5)\n", - "Requirement already satisfied: yarl<2.0,>=1.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from aiohttp<4.0.0,>=3.9.1->instructor==1.3.3->crewai[tools]) (1.9.4)\n", - "Collecting Mako (from alembic<2.0.0,>=1.13.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached Mako-1.3.5-py3-none-any.whl.metadata (2.9 kB)\n", - "Requirement already satisfied: idna>=2.8 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from anyio<5,>=3.5.0->openai<2.0.0,>=1.13.3->crewai[tools]) (3.7)\n", - "Collecting soupsieve>1.2 (from beautifulsoup4<5.0.0,>=4.12.3->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached soupsieve-2.5-py3-none-any.whl.metadata (4.7 kB)\n", - "Collecting build>=1.0.3 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached build-1.2.1-py3-none-any.whl.metadata (4.3 kB)\n", - "Collecting chroma-hnswlib==0.7.3 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached chroma_hnswlib-0.7.3-cp312-cp312-macosx_13_0_arm64.whl\n", - "Collecting fastapi>=0.95.2 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading fastapi-0.112.0-py3-none-any.whl.metadata (27 kB)\n", - "Collecting uvicorn>=0.18.3 (from uvicorn[standard]>=0.18.3->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading uvicorn-0.30.5-py3-none-any.whl.metadata (6.6 kB)\n", - "Collecting pulsar-client>=3.1.0 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached pulsar_client-3.5.0-cp312-cp312-macosx_10_15_universal2.whl.metadata (1.0 kB)\n", - "Collecting onnxruntime>=1.14.1 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached onnxruntime-1.18.1-cp312-cp312-macosx_11_0_universal2.whl.metadata (4.3 kB)\n", - "Collecting opentelemetry-exporter-otlp-proto-grpc>=1.2.0 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading opentelemetry_exporter_otlp_proto_grpc-1.26.0-py3-none-any.whl.metadata (2.3 kB)\n", - "Collecting opentelemetry-instrumentation-fastapi>=0.41b0 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading opentelemetry_instrumentation_fastapi-0.47b0-py3-none-any.whl.metadata (2.1 kB)\n", - "Requirement already satisfied: tokenizers>=0.13.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools]) (0.20.0)\n", - "Collecting pypika>=0.48.9 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached PyPika-0.48.9-py2.py3-none-any.whl\n", - "Collecting overrides>=7.3.1 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached overrides-7.7.0-py3-none-any.whl.metadata (5.8 kB)\n", - "Collecting importlib-resources (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached importlib_resources-6.4.0-py3-none-any.whl.metadata (3.9 kB)\n", - "Collecting grpcio>=1.58.0 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading grpcio-1.65.4-cp312-cp312-macosx_10_9_universal2.whl.metadata (3.3 kB)\n", - "Collecting bcrypt>=4.0.1 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading bcrypt-4.2.0-cp39-abi3-macosx_10_12_universal2.whl.metadata (9.6 kB)\n", - "Collecting kubernetes>=28.1.0 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached kubernetes-30.1.0-py2.py3-none-any.whl.metadata (1.5 kB)\n", - "Collecting mmh3>=4.0.1 (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached mmh3-4.1.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (13 kB)\n", - "Requirement already satisfied: orjson>=3.9.12 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools]) (3.10.7)\n", - "Requirement already satisfied: boto3<2.0.0,>=1.34.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from cohere<6.0,>=5.3->embedchain<0.2.0,>=0.1.114->crewai[tools]) (1.34.157)\n", - "Requirement already satisfied: fastavro<2.0.0,>=1.9.4 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from cohere<6.0,>=5.3->embedchain<0.2.0,>=0.1.114->crewai[tools]) (1.9.5)\n", - "Requirement already satisfied: httpx-sse<0.5.0,>=0.4.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from cohere<6.0,>=5.3->embedchain<0.2.0,>=0.1.114->crewai[tools]) (0.4.0)\n", - "Requirement already satisfied: parameterized<0.10.0,>=0.9.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from cohere<6.0,>=5.3->embedchain<0.2.0,>=0.1.114->crewai[tools]) (0.9.0)\n", - "Requirement already satisfied: types-requests<3.0.0,>=2.0.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from cohere<6.0,>=5.3->embedchain<0.2.0,>=0.1.114->crewai[tools]) (2.32.0.20240712)\n", - "Collecting wrapt<2,>=1.10 (from deprecated>=1.2.6->opentelemetry-api<2.0.0,>=1.22.0->crewai[tools])\n", - " Using cached wrapt-1.16.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (6.6 kB)\n", - "Requirement already satisfied: urllib3>=1.26.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from docker<8.0.0,>=7.1.0->crewai-tools<0.5.0,>=0.4.26->crewai[tools]) (2.2.2)\n", - "Collecting google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,<3.0.0dev,>=1.34.1 (from google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,<3.0.0dev,>=1.34.1->google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached google_api_core-2.19.1-py3-none-any.whl.metadata (2.7 kB)\n", - "Collecting google-auth<3.0.0dev,>=2.14.1 (from google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading google_auth-2.33.0-py2.py3-none-any.whl.metadata (4.7 kB)\n", - "Collecting proto-plus<2.0.0dev,>=1.22.3 (from google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached proto_plus-1.24.0-py3-none-any.whl.metadata (2.2 kB)\n", - "Requirement already satisfied: packaging>=14.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools]) (23.2)\n", - "Collecting google-cloud-storage<3.0.0dev,>=1.32.0 (from google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading google_cloud_storage-2.18.2-py2.py3-none-any.whl.metadata (9.1 kB)\n", - "Collecting google-cloud-bigquery!=3.20.0,<4.0.0dev,>=1.15.0 (from google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached google_cloud_bigquery-3.25.0-py2.py3-none-any.whl.metadata (8.9 kB)\n", - "Collecting google-cloud-resource-manager<3.0.0dev,>=1.3.3 (from google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading google_cloud_resource_manager-1.12.5-py2.py3-none-any.whl.metadata (5.3 kB)\n", - "Collecting shapely<3.0.0dev (from google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached shapely-2.0.5-cp312-cp312-macosx_11_0_arm64.whl.metadata (7.0 kB)\n", - "Collecting cachetools (from gptcache<0.2.0,>=0.1.43->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached cachetools-5.4.0-py3-none-any.whl.metadata (5.3 kB)\n", - "Requirement already satisfied: certifi in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from httpx<1,>=0.23.0->openai<2.0.0,>=1.13.3->crewai[tools]) (2024.7.4)\n", - "Requirement already satisfied: httpcore==1.* in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from httpx<1,>=0.23.0->openai<2.0.0,>=1.13.3->crewai[tools]) (1.0.5)\n", - "Requirement already satisfied: h11<0.15,>=0.13 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from httpcore==1.*->httpx<1,>=0.23.0->openai<2.0.0,>=1.13.3->crewai[tools]) (0.14.0)\n", - "Requirement already satisfied: zipp>=0.5 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from importlib-metadata<=8.0.0,>=6.0->opentelemetry-api<2.0.0,>=1.22.0->crewai[tools]) (3.19.2)\n", - "Collecting deprecation (from lancedb<0.6.0,>=0.5.4->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached deprecation-2.1.0-py2.py3-none-any.whl.metadata (4.6 kB)\n", - "Collecting pylance==0.9.18 (from lancedb<0.6.0,>=0.5.4->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached pylance-0.9.18-cp38-abi3-macosx_11_0_arm64.whl.metadata (7.2 kB)\n", - "Collecting ratelimiter~=1.0 (from lancedb<0.6.0,>=0.5.4->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached ratelimiter-1.2.0.post0-py3-none-any.whl.metadata (4.0 kB)\n", - "Collecting retry>=0.9.2 (from lancedb<0.6.0,>=0.5.4->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached retry-0.9.2-py2.py3-none-any.whl.metadata (5.8 kB)\n", - "Collecting semver>=3.0 (from lancedb<0.6.0,>=0.5.4->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached semver-3.0.2-py3-none-any.whl.metadata (5.0 kB)\n", - "Collecting pyarrow>=12 (from pylance==0.9.18->lancedb<0.6.0,>=0.5.4->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached pyarrow-17.0.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (3.3 kB)\n", - "Collecting langchain-experimental>=0.0.6 (from langchain-cohere<0.2.0,>=0.1.4->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading langchain_experimental-0.0.64-py3-none-any.whl.metadata (1.7 kB)\n", - "Collecting pandas>=1.4.3 (from langchain-cohere<0.2.0,>=0.1.4->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached pandas-2.2.2-cp312-cp312-macosx_11_0_arm64.whl.metadata (19 kB)\n", - "Collecting tabulate<0.10.0,>=0.9.0 (from langchain-cohere<0.2.0,>=0.1.4->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached tabulate-0.9.0-py3-none-any.whl.metadata (34 kB)\n", - "Collecting dataclasses-json<0.7,>=0.5.7 (from langchain-community<0.3.0,>=0.2.6->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached dataclasses_json-0.6.7-py3-none-any.whl.metadata (25 kB)\n", - "Requirement already satisfied: jsonpatch<2.0,>=1.33 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.27->langchain<=0.3,>0.2->crewai[tools]) (1.33)\n", - "Collecting qdrant-client<2.0.0,>=1.9.1 (from mem0ai<0.0.10,>=0.0.9->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached qdrant_client-1.10.1-py3-none-any.whl.metadata (10 kB)\n", - "Requirement already satisfied: six>=1.5 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from posthog<4.0.0,>=3.0.2->embedchain<0.2.0,>=0.1.114->crewai[tools]) (1.16.0)\n", - "Collecting monotonic>=1.5 (from posthog<4.0.0,>=3.0.2->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached monotonic-1.6-py2.py3-none-any.whl.metadata (1.5 kB)\n", - "Collecting backoff>=1.10.0 (from posthog<4.0.0,>=3.0.2->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached backoff-2.2.1-py3-none-any.whl.metadata (14 kB)\n", - "Requirement already satisfied: python-dateutil>2.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from posthog<4.0.0,>=3.0.2->embedchain<0.2.0,>=0.1.114->crewai[tools]) (2.9.0.post0)\n", - "Collecting nodeenv>=1.6.0 (from pyright<2.0.0,>=1.1.350->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached nodeenv-1.9.1-py2.py3-none-any.whl.metadata (21 kB)\n", - "Collecting iniconfig (from pytest<9.0.0,>=8.0.0->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached iniconfig-2.0.0-py3-none-any.whl.metadata (2.6 kB)\n", - "Collecting pluggy<2,>=1.5 (from pytest<9.0.0,>=8.0.0->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached pluggy-1.5.0-py3-none-any.whl.metadata (4.8 kB)\n", - "Requirement already satisfied: charset-normalizer<4,>=2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests<3.0.0,>=2.31.0->crewai-tools<0.5.0,>=0.4.26->crewai[tools]) (3.3.2)\n", - "Collecting markdown-it-py>=2.2.0 (from rich<14.0.0,>=13.7.0->instructor==1.3.3->crewai[tools])\n", - " Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)\n", - "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from rich<14.0.0,>=13.7.0->instructor==1.3.3->crewai[tools]) (2.18.0)\n", - "Collecting trio~=0.17 (from selenium<5.0.0,>=4.18.1->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading trio-0.26.2-py3-none-any.whl.metadata (8.6 kB)\n", - "Collecting trio-websocket~=0.9 (from selenium<5.0.0,>=4.18.1->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached trio_websocket-0.11.1-py3-none-any.whl.metadata (4.7 kB)\n", - "Collecting websocket-client~=1.8 (from selenium<5.0.0,>=4.18.1->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached websocket_client-1.8.0-py3-none-any.whl.metadata (8.0 kB)\n", - "Collecting shellingham>=1.3.0 (from typer<1.0.0,>=0.9.0->instructor==1.3.3->crewai[tools])\n", - " Using cached shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)\n", - "Requirement already satisfied: botocore<1.35.0,>=1.34.157 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from boto3<2.0.0,>=1.34.0->cohere<6.0,>=5.3->embedchain<0.2.0,>=0.1.114->crewai[tools]) (1.34.157)\n", - "Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from boto3<2.0.0,>=1.34.0->cohere<6.0,>=5.3->embedchain<0.2.0,>=0.1.114->crewai[tools]) (1.0.1)\n", - "Requirement already satisfied: s3transfer<0.11.0,>=0.10.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from boto3<2.0.0,>=1.34.0->cohere<6.0,>=5.3->embedchain<0.2.0,>=0.1.114->crewai[tools]) (0.10.2)\n", - "Collecting pyproject_hooks (from build>=1.0.3->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached pyproject_hooks-1.1.0-py3-none-any.whl.metadata (1.3 kB)\n", - "Collecting marshmallow<4.0.0,>=3.18.0 (from dataclasses-json<0.7,>=0.5.7->langchain-community<0.3.0,>=0.2.6->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached marshmallow-3.21.3-py3-none-any.whl.metadata (7.1 kB)\n", - "Collecting typing-inspect<1,>=0.4.0 (from dataclasses-json<0.7,>=0.5.7->langchain-community<0.3.0,>=0.2.6->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached typing_inspect-0.9.0-py3-none-any.whl.metadata (1.5 kB)\n", - "Collecting starlette<0.38.0,>=0.37.2 (from fastapi>=0.95.2->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached starlette-0.37.2-py3-none-any.whl.metadata (5.9 kB)\n", - "Collecting grpcio-status<2.0.dev0,>=1.33.2 (from google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,<3.0.0dev,>=1.34.1->google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading grpcio_status-1.65.4-py3-none-any.whl.metadata (1.1 kB)\n", - "Collecting pyasn1-modules>=0.2.1 (from google-auth<3.0.0dev,>=2.14.1->google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached pyasn1_modules-0.4.0-py3-none-any.whl.metadata (3.4 kB)\n", - "Collecting rsa<5,>=3.1.4 (from google-auth<3.0.0dev,>=2.14.1->google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached rsa-4.9-py3-none-any.whl.metadata (4.2 kB)\n", - "Collecting google-cloud-core<3.0.0dev,>=1.6.0 (from google-cloud-bigquery!=3.20.0,<4.0.0dev,>=1.15.0->google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached google_cloud_core-2.4.1-py2.py3-none-any.whl.metadata (2.7 kB)\n", - "Collecting google-resumable-media<3.0dev,>=0.6.0 (from google-cloud-bigquery!=3.20.0,<4.0.0dev,>=1.15.0->google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading google_resumable_media-2.7.2-py2.py3-none-any.whl.metadata (2.2 kB)\n", - "Collecting grpc-google-iam-v1<1.0.0dev,>=0.12.4 (from google-cloud-resource-manager<3.0.0dev,>=1.3.3->google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached grpc_google_iam_v1-0.13.1-py2.py3-none-any.whl.metadata (3.3 kB)\n", - "Collecting google-crc32c<2.0dev,>=1.0 (from google-cloud-storage<3.0.0dev,>=1.32.0->google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached google_crc32c-1.5.0-py3-none-any.whl\n", - "Requirement already satisfied: jsonpointer>=1.9 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from jsonpatch<2.0,>=1.33->langchain-core<0.3.0,>=0.2.27->langchain<=0.3,>0.2->crewai[tools]) (3.0.0)\n", - "Collecting requests-oauthlib (from kubernetes>=28.1.0->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached requests_oauthlib-2.0.0-py2.py3-none-any.whl.metadata (11 kB)\n", - "Collecting oauthlib>=3.2.2 (from kubernetes>=28.1.0->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached oauthlib-3.2.2-py3-none-any.whl.metadata (7.5 kB)\n", - "Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich<14.0.0,>=13.7.0->instructor==1.3.3->crewai[tools])\n", - " Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)\n", - "Collecting coloredlogs (from onnxruntime>=1.14.1->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached coloredlogs-15.0.1-py2.py3-none-any.whl.metadata (12 kB)\n", - "Collecting flatbuffers (from onnxruntime>=1.14.1->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached flatbuffers-24.3.25-py2.py3-none-any.whl.metadata (850 bytes)\n", - "Collecting sympy (from onnxruntime>=1.14.1->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached sympy-1.13.1-py3-none-any.whl.metadata (12 kB)\n", - "Collecting opentelemetry-instrumentation-asgi==0.47b0 (from opentelemetry-instrumentation-fastapi>=0.41b0->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading opentelemetry_instrumentation_asgi-0.47b0-py3-none-any.whl.metadata (2.0 kB)\n", - "Collecting opentelemetry-instrumentation==0.47b0 (from opentelemetry-instrumentation-fastapi>=0.41b0->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading opentelemetry_instrumentation-0.47b0-py3-none-any.whl.metadata (6.1 kB)\n", - "Collecting opentelemetry-util-http==0.47b0 (from opentelemetry-instrumentation-fastapi>=0.41b0->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading opentelemetry_util_http-0.47b0-py3-none-any.whl.metadata (2.5 kB)\n", - "Collecting setuptools>=16.0 (from opentelemetry-instrumentation==0.47b0->opentelemetry-instrumentation-fastapi>=0.41b0->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading setuptools-72.1.0-py3-none-any.whl.metadata (6.6 kB)\n", - "Collecting asgiref~=3.0 (from opentelemetry-instrumentation-asgi==0.47b0->opentelemetry-instrumentation-fastapi>=0.41b0->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached asgiref-3.8.1-py3-none-any.whl.metadata (9.3 kB)\n", - "Collecting pytz>=2020.1 (from pandas>=1.4.3->langchain-cohere<0.2.0,>=0.1.4->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached pytz-2024.1-py2.py3-none-any.whl.metadata (22 kB)\n", - "Collecting tzdata>=2022.7 (from pandas>=1.4.3->langchain-cohere<0.2.0,>=0.1.4->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB)\n", - "Collecting grpcio-tools>=1.41.0 (from qdrant-client<2.0.0,>=1.9.1->mem0ai<0.0.10,>=0.0.9->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading grpcio_tools-1.65.4-cp312-cp312-macosx_10_9_universal2.whl.metadata (5.3 kB)\n", - "Collecting portalocker<3.0.0,>=2.7.0 (from qdrant-client<2.0.0,>=1.9.1->mem0ai<0.0.10,>=0.0.9->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached portalocker-2.10.1-py3-none-any.whl.metadata (8.5 kB)\n", - "Requirement already satisfied: decorator>=3.4.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from retry>=0.9.2->lancedb<0.6.0,>=0.5.4->crewai-tools<0.5.0,>=0.4.26->crewai[tools]) (5.1.1)\n", - "Collecting py<2.0.0,>=1.4.26 (from retry>=0.9.2->lancedb<0.6.0,>=0.5.4->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached py-1.11.0-py2.py3-none-any.whl.metadata (2.8 kB)\n", - "Requirement already satisfied: huggingface-hub<1.0,>=0.16.4 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from tokenizers>=0.13.2->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools]) (0.24.5)\n", - "Collecting sortedcontainers (from trio~=0.17->selenium<5.0.0,>=4.18.1->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl.metadata (10 kB)\n", - "Collecting outcome (from trio~=0.17->selenium<5.0.0,>=4.18.1->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached outcome-1.3.0.post0-py2.py3-none-any.whl.metadata (2.6 kB)\n", - "Collecting wsproto>=0.14 (from trio-websocket~=0.9->selenium<5.0.0,>=4.18.1->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached wsproto-1.2.0-py3-none-any.whl.metadata (5.6 kB)\n", - "Collecting pysocks!=1.5.7,<2.0,>=1.5.6 (from urllib3[socks]<3,>=1.26->selenium<5.0.0,>=4.18.1->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached PySocks-1.7.1-py3-none-any.whl.metadata (13 kB)\n", - "Collecting httptools>=0.5.0 (from uvicorn[standard]>=0.18.3->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached httptools-0.6.1-cp312-cp312-macosx_10_9_universal2.whl.metadata (3.6 kB)\n", - "Collecting uvloop!=0.15.0,!=0.15.1,>=0.14.0 (from uvicorn[standard]>=0.18.3->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached uvloop-0.19.0-cp312-cp312-macosx_10_9_universal2.whl.metadata (4.9 kB)\n", - "Collecting watchfiles>=0.13 (from uvicorn[standard]>=0.18.3->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Downloading watchfiles-0.23.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (4.9 kB)\n", - "Collecting websockets>=10.4 (from uvicorn[standard]>=0.18.3->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached websockets-12.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (6.6 kB)\n", - "Requirement already satisfied: MarkupSafe>=0.9.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from Mako->alembic<2.0.0,>=1.13.1->embedchain<0.2.0,>=0.1.114->crewai[tools]) (2.1.5)\n", - "INFO: pip is looking at multiple versions of grpcio-status to determine which version is compatible with other requirements. This could take a while.\n", - "Collecting grpcio-status<2.0.dev0,>=1.33.2 (from google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,<3.0.0dev,>=1.34.1->google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading grpcio_status-1.65.2-py3-none-any.whl.metadata (1.1 kB)\n", - " Using cached grpcio_status-1.65.1-py3-none-any.whl.metadata (1.1 kB)\n", - " Downloading grpcio_status-1.64.3-py3-none-any.whl.metadata (1.1 kB)\n", - " Using cached grpcio_status-1.64.1-py3-none-any.whl.metadata (1.1 kB)\n", - " Using cached grpcio_status-1.64.0-py3-none-any.whl.metadata (1.1 kB)\n", - " Downloading grpcio_status-1.63.2-py3-none-any.whl.metadata (1.1 kB)\n", - " Using cached grpcio_status-1.63.0-py3-none-any.whl.metadata (1.1 kB)\n", - "INFO: pip is still looking at multiple versions of grpcio-status to determine which version is compatible with other requirements. This could take a while.\n", - " Downloading grpcio_status-1.62.3-py3-none-any.whl.metadata (1.3 kB)\n", - "INFO: pip is looking at multiple versions of grpcio-tools to determine which version is compatible with other requirements. This could take a while.\n", - "Collecting grpcio-tools>=1.41.0 (from qdrant-client<2.0.0,>=1.9.1->mem0ai<0.0.10,>=0.0.9->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Downloading grpcio_tools-1.65.2-cp312-cp312-macosx_10_9_universal2.whl.metadata (5.3 kB)\n", - " Using cached grpcio_tools-1.65.1-cp312-cp312-macosx_10_9_universal2.whl.metadata (5.3 kB)\n", - " Downloading grpcio_tools-1.64.3-cp312-cp312-macosx_10_9_universal2.whl.metadata (5.3 kB)\n", - " Using cached grpcio_tools-1.64.1-cp312-cp312-macosx_10_9_universal2.whl.metadata (5.3 kB)\n", - " Using cached grpcio_tools-1.64.0-cp312-cp312-macosx_10_9_universal2.whl.metadata (5.3 kB)\n", - " Downloading grpcio_tools-1.63.2-cp312-cp312-macosx_10_9_universal2.whl.metadata (5.3 kB)\n", - " Using cached grpcio_tools-1.63.0-cp312-cp312-macosx_10_9_universal2.whl.metadata (5.3 kB)\n", - "INFO: pip is still looking at multiple versions of grpcio-tools to determine which version is compatible with other requirements. This could take a while.\n", - " Downloading grpcio_tools-1.62.3-cp312-cp312-macosx_10_10_universal2.whl.metadata (6.2 kB)\n", - "Collecting h2<5,>=3 (from httpx[http2]>=0.20.0->qdrant-client<2.0.0,>=1.9.1->mem0ai<0.0.10,>=0.0.9->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached h2-4.1.0-py3-none-any.whl.metadata (3.6 kB)\n", - "Requirement already satisfied: filelock in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from huggingface-hub<1.0,>=0.16.4->tokenizers>=0.13.2->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools]) (3.15.4)\n", - "Requirement already satisfied: fsspec>=2023.5.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from huggingface-hub<1.0,>=0.16.4->tokenizers>=0.13.2->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools]) (2024.6.1)\n", - "Collecting pyasn1<0.7.0,>=0.4.6 (from pyasn1-modules>=0.2.1->google-auth<3.0.0dev,>=2.14.1->google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached pyasn1-0.6.0-py2.py3-none-any.whl.metadata (8.3 kB)\n", - "Collecting mypy-extensions>=0.3.0 (from typing-inspect<1,>=0.4.0->dataclasses-json<0.7,>=0.5.7->langchain-community<0.3.0,>=0.2.6->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached mypy_extensions-1.0.0-py3-none-any.whl.metadata (1.1 kB)\n", - "Collecting humanfriendly>=9.1 (from coloredlogs->onnxruntime>=1.14.1->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached humanfriendly-10.0-py2.py3-none-any.whl.metadata (9.2 kB)\n", - "Collecting mpmath<1.4,>=1.1.0 (from sympy->onnxruntime>=1.14.1->chromadb<0.5.0,>=0.4.22->crewai-tools<0.5.0,>=0.4.26->crewai[tools])\n", - " Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)\n", - "Collecting hyperframe<7,>=6.0 (from h2<5,>=3->httpx[http2]>=0.20.0->qdrant-client<2.0.0,>=1.9.1->mem0ai<0.0.10,>=0.0.9->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached hyperframe-6.0.1-py3-none-any.whl.metadata (2.7 kB)\n", - "Collecting hpack<5,>=4.0 (from h2<5,>=3->httpx[http2]>=0.20.0->qdrant-client<2.0.0,>=1.9.1->mem0ai<0.0.10,>=0.0.9->embedchain<0.2.0,>=0.1.114->crewai[tools])\n", - " Using cached hpack-4.0.0-py3-none-any.whl.metadata (2.5 kB)\n", - "Using cached instructor-1.3.3-py3-none-any.whl (50 kB)\n", - "Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)\n", - "Using cached crewai_tools-0.4.26-py3-none-any.whl (84 kB)\n", - "Downloading embedchain-0.1.120-py3-none-any.whl (210 kB)\n", - "Using cached json_repair-0.25.3-py3-none-any.whl (12 kB)\n", - "Using cached jsonref-1.1.0-py3-none-any.whl (9.4 kB)\n", - "Downloading opentelemetry_api-1.26.0-py3-none-any.whl (61 kB)\n", - "Downloading opentelemetry_exporter_otlp_proto_http-1.26.0-py3-none-any.whl (16 kB)\n", - "Downloading opentelemetry_exporter_otlp_proto_common-1.26.0-py3-none-any.whl (17 kB)\n", - "Downloading opentelemetry_proto-1.26.0-py3-none-any.whl (52 kB)\n", - "Downloading opentelemetry_sdk-1.26.0-py3-none-any.whl (109 kB)\n", - "Downloading opentelemetry_semantic_conventions-0.47b0-py3-none-any.whl (138 kB)\n", - "Using cached regex-2023.12.25-cp312-cp312-macosx_11_0_arm64.whl (292 kB)\n", - "Using cached crewai-0.41.1-py3-none-any.whl (91 kB)\n", - "Using cached alembic-1.13.2-py3-none-any.whl (232 kB)\n", - "Using cached beautifulsoup4-4.12.3-py3-none-any.whl (147 kB)\n", - "Using cached chromadb-0.4.24-py3-none-any.whl (525 kB)\n", - "Using cached Deprecated-1.2.14-py2.py3-none-any.whl (9.6 kB)\n", - "Using cached docstring_parser-0.16-py3-none-any.whl (36 kB)\n", - "Downloading google_cloud_aiplatform-1.61.0-py2.py3-none-any.whl (5.1 MB)\n", - "\u001b[2K \u001b[38;2;249;38;114m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[38;5;237m╺\u001b[0m\u001b[38;5;237m━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.6/5.1 MB\u001b[0m \u001b[31m483.2 kB/s\u001b[0m eta \u001b[36m0:00:06\u001b[0m" - ] - } - ], + "outputs": [], "source": [ "%pip install -U 'crewai[tools]'\n", "%pip install -U 'crewai[agentops]'" diff --git a/examples/crew/markdown_validator.ipynb b/examples/crew/markdown_validator.ipynb index a0cc32ef..6723e5f6 100644 --- a/examples/crew/markdown_validator.ipynb +++ b/examples/crew/markdown_validator.ipynb @@ -1,306 +1,306 @@ { - "cells": [ - { - "cell_type": "markdown", - "id": "9b2dac908ce82802", - "metadata": {}, - "source": [ - "# CrewAI Markdown Validator\n" - ] + "cells": [ + { + "cell_type": "markdown", + "id": "9b2dac908ce82802", + "metadata": {}, + "source": [ + "# CrewAI Markdown Validator\n" + ] + }, + { + "cell_type": "markdown", + "id": "925e51b6", + "metadata": {}, + "source": [ + "First let's install the required packages" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "8c6c9f08b3228dcb", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install -U crewai\n", + "%pip install -U agentops\n", + "%pip install -U python-dotenv\n", + "%pip install -U langchain_openai\n", + "%pip install -U langchain_groq\n", + "%pip install -U langchain\n", + "%pip install -U StringIO\n", + "%pip install -U pymarkdownlnt" + ] + }, + { + "cell_type": "markdown", + "id": "844b50cb", + "metadata": {}, + "source": [ + "Then import them" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "3930dc4c82f117b6", + "metadata": {}, + "outputs": [], + "source": [ + "import sys\n", + "from crewai import Agent, Task\n", + "from langchain_groq import ChatGroq\n", + "from langchain.tools import tool\n", + "from langchain_openai import ChatOpenAI\n", + "import agentops\n", + "import os\n", + "from dotenv import load_dotenv\n", + "from pymarkdown.api import PyMarkdownApi, PyMarkdownApiException\n", + "from io import StringIO" + ] + }, + { + "cell_type": "markdown", + "id": "0e307923", + "metadata": {}, + "source": [ + "Next, we'll grab our API keys. You can use dotenv like below or however else you like to load environment variables" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e0e9166a", + "metadata": {}, + "outputs": [], + "source": [ + "load_dotenv()\n", + "OPENAI_API_KEY = os.getenv(\"OPENAI_API_KEY\") or \"\"\n", + "GROQ_API_KEY = os.getenv(\"GROQ_API_KEY\") or \"\"\n", + "AGENTOPS_API_KEY = os.getenv(\"AGENTOPS_API_KEY\") or \"\"" + ] + }, + { + "cell_type": "markdown", + "id": "6a9283d4735b1226", + "metadata": {}, + "source": [ + "The first step in any AgentOps integration is to call `agentops.init()`" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "701a00a193b93118", + "metadata": {}, + "outputs": [], + "source": [ + "agentops.init(AGENTOPS_API_KEY, default_tags=[\"markdown_validator\"])" + ] + }, + { + "cell_type": "markdown", + "id": "dba56fc45784bfa", + "metadata": {}, + "source": [ + "Lets start by creating our markdown validator tool" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "cb2152baa314da66", + "metadata": {}, + "outputs": [], + "source": [ + "@tool(\"markdown_validation_tool\")\n", + "def markdown_validation_tool(file_path: str) -> str:\n", + " \"\"\"\n", + " A tool to review files for markdown syntax errors.\n", + "\n", + " Returns:\n", + " - validation_results: A list of validation results\n", + " and suggestions on how to fix them.\n", + " \"\"\"\n", + "\n", + " print(\"\\n\\nValidating Markdown syntax...\\n\\n\" + file_path)\n", + "\n", + " try:\n", + " if not (os.path.exists(file_path)):\n", + " return \"Could not validate file. The provided file path does not exist.\"\n", + "\n", + " scan_result = PyMarkdownApi().scan_path(file_path.rstrip().lstrip())\n", + " results = str(scan_result)\n", + " return results # Return the reviewed document\n", + " except PyMarkdownApiException as this_exception:\n", + " print(f\"API Exception: {this_exception}\", file=sys.stderr)\n", + " return f\"API Exception: {str(this_exception)}\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "4bbeec0eb7d000ca", + "metadata": {}, + "outputs": [], + "source": [ + "groq_llm = ChatGroq(\n", + " temperature=0,\n", + " groq_api_key=GROQ_API_KEY,\n", + " model_name=\"llama3-70b-8192\",\n", + ")\n", + "\n", + "default_llm = ChatOpenAI(\n", + " openai_api_base=os.environ.get(\"OPENAI_API_BASE_URL\", \"https://api.openai.com/v1\"),\n", + " openai_api_key=OPENAI_API_KEY,\n", + " temperature=0.1,\n", + " model_name=os.environ.get(\"MODEL_NAME\", \"gpt-3.5-turbo\"),\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "805ded98160f35ca", + "metadata": {}, + "outputs": [], + "source": [ + "filename = \"README.md\"" + ] + }, + { + "cell_type": "markdown", + "id": "bae481e07b5fadc2", + "metadata": {}, + "source": [ + "Lets create our Agent with CrewAI" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "3c9ca4fa0540a142", + "metadata": {}, + "outputs": [], + "source": [ + "general_agent = Agent(\n", + " role=\"Requirements Manager\",\n", + " goal=\"\"\"Provide a detailed list of the markdown \n", + " linting results. Give a summary with actionable \n", + " tasks to address the validation results. Write your \n", + " response as if you were handing it to a developer \n", + " to fix the issues.\n", + " DO NOT provide examples of how to fix the issues or\n", + " recommend other tools to use.\"\"\",\n", + " backstory=\"\"\"You are an expert business analyst \n", + "\t\t\t\t\tand software QA specialist. You provide high quality, \n", + " thorough, insightful and actionable feedback via \n", + " detailed list of changes and actionable tasks.\"\"\",\n", + " allow_delegation=False,\n", + " verbose=True,\n", + " tools=[markdown_validation_tool],\n", + " llm=default_llm,\n", + ") # groq_llm)" + ] + }, + { + "cell_type": "markdown", + "id": "7940a03ceb4a55de", + "metadata": {}, + "source": [ + "Now lets create the task for our agent to complete" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "28b4abd52ff9bf86", + "metadata": {}, + "outputs": [], + "source": [ + "syntax_review_task = Task(\n", + " description=f\"\"\"\n", + " Use the markdown_validation_tool to review \n", + " the file(s) at this path: {filename}\n", + " \n", + " Be sure to pass only the file path to the markdown_validation_tool.\n", + " Use the following format to call the markdown_validation_tool:\n", + " Do I need to use a tool? Yes\n", + " Action: markdown_validation_tool\n", + " Action Input: {filename}\n", + "\n", + " Get the validation results from the tool \n", + " and then summarize it into a list of changes\n", + " the developer should make to the document.\n", + " DO NOT recommend ways to update the document.\n", + " DO NOT change any of the content of the document or\n", + " add content to it. It is critical to your task to\n", + " only respond with a list of changes.\n", + " \n", + " If you already know the answer or if you do not need \n", + " to use a tool, return it as your Final Answer.\"\"\",\n", + " agent=general_agent,\n", + " expected_output=\"\",\n", + ")" + ] + }, + { + "cell_type": "markdown", + "id": "7283562a262056d5", + "metadata": {}, + "source": [ + "Now lets run our task!" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "d5c5f01bee50b92a", + "metadata": {}, + "outputs": [], + "source": [ + "syntax_review_task.execute_sync()" + ] + }, + { + "cell_type": "markdown", + "id": "660cc410a9e847b7", + "metadata": {}, + "source": [ + "Finally, don't forget to end your AgentOps session!" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "6eeee1a76a26bd14", + "metadata": {}, + "outputs": [], + "source": [ + "agentops.end_session(\"Success\")" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.12.3" + } }, - { - "cell_type": "markdown", - "id": "925e51b6", - "metadata": {}, - "source": [ - "First let's install the required packages" - ] - }, - { - "cell_type": "code", - "id": "8c6c9f08b3228dcb", - "metadata": {}, - "source": [ - "%pip install -U crewai\n", - "%pip install -U agentops\n", - "%pip install -U python-dotenv\n", - "%pip install -U langchain_openai\n", - "%pip install -U langchain_groq\n", - "%pip install -U langchain\n", - "%pip install -U StringIO\n", - "%pip install pymarkdownlnt" - ], - "outputs": [], - "execution_count": null - }, - { - "cell_type": "markdown", - "id": "844b50cb", - "metadata": {}, - "source": [ - "Then import them" - ] - }, - { - "cell_type": "code", - "id": "3930dc4c82f117b6", - "metadata": {}, - "source": [ - "import sys\n", - "from crewai import Agent, Task\n", - "from langchain_groq import ChatGroq\n", - "from langchain.tools import tool\n", - "from langchain_openai import ChatOpenAI\n", - "import agentops\n", - "import os\n", - "from dotenv import load_dotenv\n", - "from pymarkdown.api import PyMarkdownApi, PyMarkdownApiException\n", - "from io import StringIO" - ], - "outputs": [], - "execution_count": null - }, - { - "cell_type": "markdown", - "id": "0e307923", - "metadata": {}, - "source": [ - "Next, we'll grab our API keys. You can use dotenv like below or however else you like to load environment variables" - ] - }, - { - "cell_type": "code", - "id": "e0e9166a", - "metadata": {}, - "source": [ - "load_dotenv()\n", - "OPENAI_API_KEY = os.getenv(\"OPENAI_API_KEY\") or \"\"\n", - "GROQ_API_KEY = os.getenv(\"GROQ_API_KEY\") or \"\"\n", - "AGENTOPS_API_KEY = os.getenv(\"AGENTOPS_API_KEY\") or \"\"" - ], - "outputs": [], - "execution_count": null - }, - { - "cell_type": "markdown", - "id": "6a9283d4735b1226", - "metadata": {}, - "source": [ - "The first step in any AgentOps integration is to call `agentops.init()`" - ] - }, - { - "cell_type": "code", - "id": "701a00a193b93118", - "metadata": {}, - "source": [ - "agentops.init(AGENTOPS_API_KEY, default_tags=[\"markdown_validator\"])" - ], - "outputs": [], - "execution_count": null - }, - { - "cell_type": "markdown", - "id": "dba56fc45784bfa", - "metadata": {}, - "source": [ - "Lets start by creating our markdown validator tool" - ] - }, - { - "cell_type": "code", - "id": "cb2152baa314da66", - "metadata": {}, - "source": [ - "@tool(\"markdown_validation_tool\")\n", - "def markdown_validation_tool(file_path: str) -> str:\n", - " \"\"\"\n", - " A tool to review files for markdown syntax errors.\n", - "\n", - " Returns:\n", - " - validation_results: A list of validation results\n", - " and suggestions on how to fix them.\n", - " \"\"\"\n", - "\n", - " print(\"\\n\\nValidating Markdown syntax...\\n\\n\" + file_path)\n", - "\n", - " try:\n", - " if not (os.path.exists(file_path)):\n", - " return \"Could not validate file. The provided file path does not exist.\"\n", - "\n", - " scan_result = PyMarkdownApi().scan_path(file_path.rstrip().lstrip())\n", - " results = str(scan_result)\n", - " return results # Return the reviewed document\n", - " except PyMarkdownApiException as this_exception:\n", - " print(f\"API Exception: {this_exception}\", file=sys.stderr)\n", - " return f\"API Exception: {str(this_exception)}\"" - ], - "outputs": [], - "execution_count": null - }, - { - "cell_type": "code", - "id": "4bbeec0eb7d000ca", - "metadata": {}, - "source": [ - "groq_llm = ChatGroq(\n", - " temperature=0,\n", - " groq_api_key=GROQ_API_KEY,\n", - " model_name=\"llama3-70b-8192\",\n", - ")\n", - "\n", - "default_llm = ChatOpenAI(\n", - " openai_api_base=os.environ.get(\"OPENAI_API_BASE_URL\", \"https://api.openai.com/v1\"),\n", - " openai_api_key=OPENAI_API_KEY,\n", - " temperature=0.1,\n", - " model_name=os.environ.get(\"MODEL_NAME\", \"gpt-3.5-turbo\"),\n", - ")" - ], - "outputs": [], - "execution_count": null - }, - { - "cell_type": "code", - "id": "805ded98160f35ca", - "metadata": {}, - "source": [ - "filename = \"README.md\"" - ], - "outputs": [], - "execution_count": null - }, - { - "cell_type": "markdown", - "id": "bae481e07b5fadc2", - "metadata": {}, - "source": [ - "Lets create our Agent with CrewAI" - ] - }, - { - "cell_type": "code", - "id": "3c9ca4fa0540a142", - "metadata": {}, - "source": [ - "general_agent = Agent(\n", - " role=\"Requirements Manager\",\n", - " goal=\"\"\"Provide a detailed list of the markdown \n", - " linting results. Give a summary with actionable \n", - " tasks to address the validation results. Write your \n", - " response as if you were handing it to a developer \n", - " to fix the issues.\n", - " DO NOT provide examples of how to fix the issues or\n", - " recommend other tools to use.\"\"\",\n", - " backstory=\"\"\"You are an expert business analyst \n", - "\t\t\t\t\tand software QA specialist. You provide high quality, \n", - " thorough, insightful and actionable feedback via \n", - " detailed list of changes and actionable tasks.\"\"\",\n", - " allow_delegation=False,\n", - " verbose=True,\n", - " tools=[markdown_validation_tool],\n", - " llm=default_llm,\n", - ") # groq_llm)" - ], - "outputs": [], - "execution_count": null - }, - { - "cell_type": "markdown", - "id": "7940a03ceb4a55de", - "metadata": {}, - "source": [ - "Now lets create the task for our agent to complete" - ] - }, - { - "cell_type": "code", - "id": "28b4abd52ff9bf86", - "metadata": {}, - "source": [ - "syntax_review_task = Task(\n", - " description=f\"\"\"\n", - " Use the markdown_validation_tool to review \n", - " the file(s) at this path: {filename}\n", - " \n", - " Be sure to pass only the file path to the markdown_validation_tool.\n", - " Use the following format to call the markdown_validation_tool:\n", - " Do I need to use a tool? Yes\n", - " Action: markdown_validation_tool\n", - " Action Input: {filename}\n", - "\n", - " Get the validation results from the tool \n", - " and then summarize it into a list of changes\n", - " the developer should make to the document.\n", - " DO NOT recommend ways to update the document.\n", - " DO NOT change any of the content of the document or\n", - " add content to it. It is critical to your task to\n", - " only respond with a list of changes.\n", - " \n", - " If you already know the answer or if you do not need \n", - " to use a tool, return it as your Final Answer.\"\"\",\n", - " agent=general_agent,\n", - " expected_output=\"\",\n", - ")" - ], - "outputs": [], - "execution_count": null - }, - { - "cell_type": "markdown", - "id": "7283562a262056d5", - "metadata": {}, - "source": [ - "Now lets run our task!" - ] - }, - { - "cell_type": "code", - "id": "d5c5f01bee50b92a", - "metadata": {}, - "source": [ - "syntax_review_task.execute_sync()" - ], - "outputs": [], - "execution_count": null - }, - { - "cell_type": "markdown", - "id": "660cc410a9e847b7", - "metadata": {}, - "source": [ - "Finally, don't forget to end your AgentOps session!" - ] - }, - { - "cell_type": "code", - "id": "6eeee1a76a26bd14", - "metadata": {}, - "source": [ - "agentops.end_session(\"Success\")" - ], - "outputs": [], - "execution_count": null - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.3" - } - }, - "nbformat": 4, - "nbformat_minor": 5 + "nbformat": 4, + "nbformat_minor": 5 }