From a12b59a9a187be886c976af578b90779d575dc5a Mon Sep 17 00:00:00 2001 From: Braelyn Boynton Date: Fri, 9 Aug 2024 14:24:17 -0700 Subject: [PATCH 01/11] Langchain upgrade (#339) * WIP: langchain upgrade * debugging WIP * WIP notebook * langchain handler and example upgrade * code cleanup * black formatting * remove logger setup * cleanup * use logger * import change * code cleanup * add code back * langchain notebook merge * black formatting --- README.md | 2 +- agentops/client.py | 3 + .../partners/langchain_callback_handler.py | 50 +- examples/crew/job_posting.ipynb | 1 + examples/crew/job_posting.py | 10 +- examples/crew/markdown_validator.ipynb | 44 +- examples/langchain/langchain_examples.ipynb | 665 ++++++++++++++---- examples/litellm/litellm_example.ipynb | 4 +- .../multion/Autonomous_web_browsing.ipynb | 4 +- examples/multion/Sample_browsing_agent.ipynb | 4 +- examples/recording-events.ipynb | 2 + .../_test_langchain_handler.py | 2 +- 12 files changed, 592 insertions(+), 199 deletions(-) diff --git a/README.md b/README.md index f4a4a4091..55028a03b 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ To use the handler, import and set import os from langchain.chat_models import ChatOpenAI from langchain.agents import initialize_agent, AgentType -from agentops.langchain_callback_handler import LangchainCallbackHandler +from agentops.partners.langchain_callback_handler import LangchainCallbackHandler AGENTOPS_API_KEY = os.environ['AGENTOPS_API_KEY'] handler = LangchainCallbackHandler(api_key=AGENTOPS_API_KEY, tags=['Langchain Example']) diff --git a/agentops/client.py b/agentops/client.py index 4007e4102..a024d9c7b 100644 --- a/agentops/client.py +++ b/agentops/client.py @@ -82,6 +82,9 @@ def configure( ) def initialize(self) -> Union[Session, None]: + if self.is_initialized: + return + self.unsuppress_logs() if self._config.api_key is None: diff --git a/agentops/partners/langchain_callback_handler.py b/agentops/partners/langchain_callback_handler.py index 4c95fd745..847abe661 100644 --- a/agentops/partners/langchain_callback_handler.py +++ b/agentops/partners/langchain_callback_handler.py @@ -46,9 +46,8 @@ def __init__( endpoint: Optional[str] = None, max_wait_time: Optional[int] = None, max_queue_size: Optional[int] = None, - tags: Optional[List[str]] = None, + default_tags: Optional[List[str]] = None, ): - logging_level = os.getenv("AGENTOPS_LOGGING_LEVEL") log_levels = { "CRITICAL": logging.CRITICAL, @@ -64,12 +63,19 @@ def __init__( "endpoint": endpoint, "max_wait_time": max_wait_time, "max_queue_size": max_queue_size, - "tags": tags, + "default_tags": default_tags, } - self.ao_client = AOClient( - **{k: v for k, v in client_params.items() if v is not None}, override=False - ) + self.ao_client = AOClient() + if self.ao_client.session_count == 0: + self.ao_client.configure( + **{k: v for k, v in client_params.items() if v is not None}, + instrument_llm_calls=False, + ) + + if not self.ao_client.is_initialized: + self.ao_client.initialize() + self.agent_actions: Dict[UUID, List[ActionEvent]] = defaultdict(list) self.events = Events() @@ -93,7 +99,6 @@ def on_llm_start( }, # TODO: params is inconsistent, in ToolEvent we put it in logs model=get_model_from_kwargs(kwargs), prompt=prompts[0], - # tags=tags # TODO ) @debug_print_function_params @@ -156,15 +161,18 @@ def on_chain_start( metadata: Optional[Dict[str, Any]] = None, **kwargs: Any, ) -> Any: - self.events.chain[str(run_id)] = ActionEvent( - params={ - **serialized, - **inputs, - **({} if metadata is None else metadata), - **kwargs, - }, - action_type="chain", - ) + try: + self.events.chain[str(run_id)] = ActionEvent( + params={ + **serialized, + **inputs, + **({} if metadata is None else metadata), + **kwargs, + }, + action_type="chain", + ) + except Exception as e: + logger.warning(e) @debug_print_function_params def on_chain_end( @@ -240,6 +248,8 @@ def on_tool_end( details=output, ) self.ao_client.record(error_event) + else: + self.ao_client.record(tool_event) @debug_print_function_params def on_tool_error( @@ -357,7 +367,13 @@ def on_retry( @property def session_id(self): - return self.ao_client.current_session_id + raise DeprecationWarning( + "session_id is deprecated in favor of current_session_ids" + ) + + @property + def current_session_ids(self): + return self.ao_client.current_session_ids class AsyncLangchainCallbackHandler(AsyncCallbackHandler): diff --git a/examples/crew/job_posting.ipynb b/examples/crew/job_posting.ipynb index 5e41e61cd..0e9a857d1 100644 --- a/examples/crew/job_posting.ipynb +++ b/examples/crew/job_posting.ipynb @@ -476,6 +476,7 @@ "source": [ "from textwrap import dedent\n", "\n", + "\n", "class Tasks:\n", " def research_company_culture_task(self, agent, company_description, company_domain):\n", " return Task(\n", diff --git a/examples/crew/job_posting.py b/examples/crew/job_posting.py index e4d7d9c42..a96d692ef 100644 --- a/examples/crew/job_posting.py +++ b/examples/crew/job_posting.py @@ -3,8 +3,12 @@ import os -os.environ["SERPER_API_KEY"] = "..." -os.environ["OPENAI_API_KEY"] = "..." +# os.environ["SERPER_API_KEY"] = "..." +# os.environ["OPENAI_API_KEY"] = "..." + +from dotenv import load_dotenv + +load_dotenv() from crewai import Agent from crewai_tools.tools import WebsiteSearchTool, SerperDevTool, FileReadTool @@ -126,7 +130,7 @@ def industry_analysis_task(self, agent, company_domain, company_description): from crewai import Crew import agentops -agentops.init(tags=["crew-job-posting-example"]) +agentops.init(default_tags=["crew-job-posting-example"]) tasks = Tasks() agents = Agents() diff --git a/examples/crew/markdown_validator.ipynb b/examples/crew/markdown_validator.ipynb index 2adc853f6..acb013a3d 100644 --- a/examples/crew/markdown_validator.ipynb +++ b/examples/crew/markdown_validator.ipynb @@ -303,7 +303,7 @@ } ], "source": [ - "%pip install -U crewai \n", + "%pip install -U crewai\n", "%pip install -U agentops\n", "%pip install -U python-dotenv\n", "%pip install -U langchain_openai\n", @@ -400,7 +400,7 @@ }, "outputs": [], "source": [ - "agentops.init(AGENTOPS_API_KEY, default_tags=['markdown_validator'])" + "agentops.init(AGENTOPS_API_KEY, default_tags=[\"markdown_validator\"])" ] }, { @@ -424,7 +424,7 @@ " A tool to review files for markdown syntax errors.\n", "\n", " Returns:\n", - " - validation_results: A list of validation results \n", + " - validation_results: A list of validation results\n", " and suggestions on how to fix them.\n", " \"\"\"\n", "\n", @@ -439,7 +439,7 @@ " 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)}\"\n" + " return f\"API Exception: {str(this_exception)}\"" ] }, { @@ -455,10 +455,12 @@ " model_name=\"llama3-70b-8192\",\n", ")\n", "\n", - "default_llm = ChatOpenAI(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\"))" + "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", + ")" ] }, { @@ -486,22 +488,24 @@ "metadata": {}, "outputs": [], "source": [ - "general_agent = Agent(role='Requirements Manager',\n", - " goal=\"\"\"Provide a detailed list of the markdown \n", + "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", + " 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) #groq_llm) " + " allow_delegation=False,\n", + " verbose=True,\n", + " tools=[markdown_validation_tool],\n", + " llm=default_llm,\n", + ") # groq_llm)" ] }, { @@ -519,7 +523,8 @@ "metadata": {}, "outputs": [], "source": [ - "syntax_review_task = Task(description=f\"\"\"\n", + "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", @@ -539,8 +544,9 @@ " \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=\"\")" + " agent=general_agent,\n", + " expected_output=\"\",\n", + ")" ] }, { @@ -576,7 +582,7 @@ "metadata": {}, "outputs": [], "source": [ - "agentops.end_session('Success')" + "agentops.end_session(\"Success\")" ] } ], diff --git a/examples/langchain/langchain_examples.ipynb b/examples/langchain/langchain_examples.ipynb index 0069add46..5e198cd7e 100644 --- a/examples/langchain/langchain_examples.ipynb +++ b/examples/langchain/langchain_examples.ipynb @@ -7,163 +7,508 @@ "source": [ "# AgentOps Langchain Agent Implementation\n", "\n", - "Using AgentOps monitoring with Langchain is simple. We've created a LangchainCallbackHandler that will do all of the heavy lifting!" - ] - }, - { - "cell_type": "markdown", - "id": "1516a90d", - "metadata": {}, - "source": [ + "Using AgentOps monitoring with Langchain is simple. We've created a LangchainCallbackHandler that will do all of the heavy lifting!\n", + "\n", "First let's install the required packages" ] }, { + "metadata": { + "ExecuteTime": { + "end_time": "2024-08-08T00:29:29.288644Z", + "start_time": "2024-08-08T00:29:29.026314Z" + } + }, "cell_type": "code", - "execution_count": null, - "id": "e5fc8497", - "metadata": {}, - "outputs": [], "source": [ - "%pip install -U langchain\n", + "%pip install langchain==0.2.9\n", "%pip install -U agentops\n", "%pip install -U python-dotenv" - ] + ], + "id": "8e3d38adc7861277", + "outputs": [], + "execution_count": 1 }, { - "cell_type": "markdown", - "id": "9480596a", "metadata": {}, - "source": [ - "Then import them" - ] + "cell_type": "markdown", + "source": "Then import them", + "id": "effc8ee7453a6c3" }, { "cell_type": "code", - "execution_count": null, - "id": "initial_id", - "metadata": {}, - "outputs": [], "source": [ - "from langchain.chat_models import ChatOpenAI\n", - "from langchain.agents import initialize_agent, AgentType\n", - "from langchain.agents import tool\n", "import os\n", + "from langchain_openai import ChatOpenAI\n", + "from langchain.agents import tool, AgentExecutor, create_openai_tools_agent\n", "from dotenv import load_dotenv" - ] + ], + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2024-08-08T00:29:30.052348Z", + "start_time": "2024-08-08T00:29:29.289841Z" + } + }, + "id": "d344305baa26d651", + "outputs": [], + "execution_count": 2 }, { "cell_type": "markdown", - "id": "57ddb8eca4e8a3cb", - "metadata": {}, "source": [ "The only difference with using AgentOps is that we'll also import this special Callback Handler" - ] + ], + "metadata": { + "collapsed": false + }, + "id": "3584d84a441169b0" }, { "cell_type": "code", - "execution_count": null, - "id": "7e8f8cd098ad5b57", + "source": [ + "from agentops.partners.langchain_callback_handler import (\n", + " LangchainCallbackHandler as AgentOpsLangchainCallbackHandler,\n", + ")" + ], "metadata": { - "collapsed": false + "collapsed": false, + "ExecuteTime": { + "end_time": "2024-08-08T00:29:30.058535Z", + "start_time": "2024-08-08T00:29:30.054497Z" + } }, + "id": "256f01cac66d7d90", "outputs": [], + "execution_count": 3 + }, + { + "cell_type": "markdown", "source": [ - "from agentops.partners.langchain_callback_handler import (\n", - " LangchainCallbackHandler as AgentOpsLangchainCallbackHandler,\n", + "Next, we'll grab our two API keys. You can use dotenv like below or however else you like to load environment variables" + ], + "metadata": { + "collapsed": false + }, + "id": "afab0f7bbd847916" + }, + { + "cell_type": "code", + "source": "load_dotenv()", + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2024-08-08T00:29:30.072366Z", + "start_time": "2024-08-08T00:29:30.063997Z" + } + }, + "id": "3f9189f4d13ebd07", + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "execution_count": 4 + }, + { + "cell_type": "markdown", + "source": [ + "This is where AgentOps comes into play. Before creating our LLM instance via Langchain, first we'll create an instance of the AO LangchainCallbackHandler. After the handler is initialized, a session will be recorded automatically.\n", + "\n", + "Pass in your API key, and optionally any tags to describe this session for easier lookup in the AO dashboard." + ], + "metadata": { + "collapsed": false + }, + "id": "6f5a9ab030c636c6" + }, + { + "cell_type": "code", + "source": [ + "from langchain_core.prompts import ChatPromptTemplate\n", + "\n", + "AGENTOPS_API_KEY = os.environ.get(\"AGENTOPS_API_KEY\")\n", + "OPENAI_API_KEY = os.environ.get(\"OPENAI_API_KEY\")\n", + "\n", + "agentops_handler = AgentOpsLangchainCallbackHandler(\n", + " api_key=AGENTOPS_API_KEY, default_tags=[\"Langchain Example\"]\n", + ")\n", + "\n", + "llm = ChatOpenAI(\n", + " openai_api_key=OPENAI_API_KEY, callbacks=[agentops_handler], model=\"gpt-3.5-turbo\"\n", + ")\n", + "\n", + "# You must pass in a callback handler to record your agent\n", + "llm.callbacks = [agentops_handler]\n", + "\n", + "prompt = ChatPromptTemplate.from_messages(\n", + " [\n", + " (\"system\", \"You are a helpful assistant. Respond only in Spanish.\"),\n", + " (\"human\", \"{input}\"),\n", + " # Placeholders fill up a **list** of messages\n", + " (\"placeholder\", \"{agent_scratchpad}\"),\n", + " # (\"tool_names\", \"find_movie\")\n", + " ]\n", ")" - ] + ], + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2024-08-08T00:29:31.018329Z", + "start_time": "2024-08-08T00:29:30.074528Z" + } + }, + "id": "7d4accd2f68404fb", + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "πŸ–‡ AgentOps: \u001B[34m\u001B[34mSession Replay: https://app.agentops.ai/drilldown?session_id=418f60fc-a709-4a61-952c-6b9670406198\u001B[0m\u001B[0m\n" + ] + } + ], + "execution_count": 5 }, { "cell_type": "markdown", - "id": "25f189b0", - "metadata": {}, "source": [ - "Next, we'll grab our API keys. You can use dotenv like below or however else you like to load environment variables" - ] + "You can also retrieve the `session_id` of the newly created session." + ], + "metadata": { + "collapsed": false + }, + "id": "821b2367b1082673" }, { "cell_type": "code", - "execution_count": null, - "id": "974514a8", - "metadata": {}, - "outputs": [], "source": [ - "load_dotenv()\n", - "OPENAI_API_KEY = os.getenv(\"OPENAI_API_KEY\") or \"\"\n", - "AGENTOPS_API_KEY = os.getenv(\"AGENTOPS_API_KEY\") or \"\"" - ] + "print(\"Agent Ops session ID: \" + str(agentops_handler.current_session_ids))" + ], + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2024-08-08T00:29:31.021351Z", + "start_time": "2024-08-08T00:29:31.019165Z" + } + }, + "id": "6bb30c31eaa5ba02", + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Agent Ops session ID: ['418f60fc-a709-4a61-952c-6b9670406198']\n" + ] + } + ], + "execution_count": 6 }, { "cell_type": "markdown", - "id": "51f083697b783fa4", + "source": [ + "Agents generally use tools. Let's define a simple tool here. Tool usage is also recorded." + ], "metadata": { "collapsed": false }, + "id": "f7362d89b6a7af4c" + }, + { + "cell_type": "code", "source": [ - "This is where AgentOps comes into play. Before creating our LLM instance via Langchain, first we'll create an instance of the AO LangchainCallbackHandler. After the handler is initialized, a session will be recorded automatically.\n", + "@tool\n", + "def find_movie(genre: str) -> str:\n", + " \"\"\"Find available movies\"\"\"\n", + " if genre == \"drama\":\n", + " return \"Dune 2\"\n", + " else:\n", + " return \"Pineapple Express\"\n", "\n", - "Optionally pass in any tags to describe this session for easier lookup in the AO dashboard." - ] + "\n", + "tools = [find_movie]" + ], + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2024-08-08T00:29:31.071133Z", + "start_time": "2024-08-08T00:29:31.022304Z" + } + }, + "id": "4a28f85842129016", + "outputs": [], + "execution_count": 7 + }, + { + "cell_type": "markdown", + "source": [ + "For each tool, you need to also add the callback handler" + ], + "metadata": { + "collapsed": false + }, + "id": "186984add993f839" }, { "cell_type": "code", - "execution_count": null, - "id": "d432fe915edb6365", + "source": [ + "for t in tools:\n", + " t.callbacks = [agentops_handler]" + ], + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2024-08-08T00:29:31.073655Z", + "start_time": "2024-08-08T00:29:31.071945Z" + } + }, + "id": "afe9113b61c67e80", + "outputs": [], + "execution_count": 8 + }, + { + "metadata": {}, + "cell_type": "markdown", + "source": "Add the tools to our LLM", + "id": "6dd5f322d26f692" + }, + { + "metadata": {}, + "cell_type": "code", + "outputs": [], + "execution_count": 9, + "source": "llm_with_tools = llm.bind_tools([find_movie])", + "id": "e469ab337023053e" + }, + { + "cell_type": "markdown", + "source": "Finally, let's create our agent! Pass in the callback handler to the agent, and all the actions will be recorded in the AO Dashboard", "metadata": { "collapsed": false }, + "id": "88b96e62db542900" + }, + { + "metadata": { + "ExecuteTime": { + "end_time": "2024-08-08T00:29:31.127744Z", + "start_time": "2024-08-08T00:29:31.124945Z" + } + }, + "cell_type": "code", + "source": [ + "agent = create_openai_tools_agent(llm, tools, prompt)\n", + "agent_executor = AgentExecutor(agent=agent, tools=tools)" + ], + "id": "d45ff1b7a3843191", "outputs": [], + "execution_count": 10 + }, + { + "metadata": { + "ExecuteTime": { + "end_time": "2024-08-08T00:29:32.666768Z", + "start_time": "2024-08-08T00:29:31.128749Z" + } + }, + "cell_type": "code", "source": [ - "agentops_handler = AgentOpsLangchainCallbackHandler(\n", - " api_key=AGENTOPS_API_KEY, tags=[\"Langchain Example\"]\n", - ")\n", - "\n", - "llm = ChatOpenAI(\n", - " openai_api_key=OPENAI_API_KEY, callbacks=[agentops_handler], model=\"gpt-3.5-turbo\"\n", + "agent_executor.invoke(\n", + " {\"input\": \"What comedies are playing?\"}, config={\"callback\": [agentops_handler]}\n", ")" - ] + ], + "id": "bb90bf54b5a42a63", + "outputs": [ + { + "data": { + "text/plain": [ + "{'input': 'What comedies are playing?',\n", + " 'output': '\"Pineapple Express\" estΓ‘ disponible para ver. ΒΏTe gustarΓ­a saber mΓ‘s sobre esta pelΓ­cula?'}" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "execution_count": 11 + }, + { + "metadata": {}, + "cell_type": "markdown", + "source": "Now if we look in the AgentOps dashboard, you will see a session recorded with the LLM calls and tool usage.", + "id": "c466cb71c9dc68db" + }, + { + "metadata": {}, + "cell_type": "code", + "outputs": [], + "execution_count": null, + "source": "assert False", + "id": "8571b7ae931b3cb2" }, { "cell_type": "markdown", - "id": "38d309f07363b58e", + "source": [ + "## Langchain V0.1 Example\n", + "This example is out of date." + ], "metadata": { "collapsed": false }, + "id": "97a1a264a71876" + }, + { + "metadata": { + "ExecuteTime": { + "end_time": "2024-08-08T00:29:32.741186Z", + "start_time": "2024-08-08T00:29:32.741133Z" + } + }, + "cell_type": "code", + "source": "%pip install langchain==0.1.6", + "id": "decac159bb492462", + "outputs": [], + "execution_count": null + }, + { + "cell_type": "code", + "id": "initial_id", + "metadata": { + "ExecuteTime": { + "end_time": "2024-08-08T00:29:32.741653Z", + "start_time": "2024-08-08T00:29:32.741599Z" + } + }, "source": [ - "You can also retrieve the `session_id` of the newly created session." + "import os\n", + "from langchain_openai import ChatOpenAI\n", + "from langchain.agents import initialize_agent, AgentType\n", + "from langchain.agents import tool" + ], + "outputs": [], + "execution_count": null + }, + { + "cell_type": "markdown", + "id": "57ddb8eca4e8a3cb", + "metadata": {}, + "source": [ + "The only difference with using AgentOps is that we'll also import this special Callback Handler" ] }, { "cell_type": "code", - "execution_count": null, - "id": "f7e3a37cde3f9c22", + "source": [ + "from agentops.partners.langchain_callback_handler import (\n", + " LangchainCallbackHandler as AgentOpsLangchainCallbackHandler,\n", + ")" + ], "metadata": { "collapsed": false }, + "id": "7e8f8cd098ad5b57", "outputs": [], + "execution_count": null + }, + { + "cell_type": "markdown", "source": [ - "print(\"Agent Ops session ID: \" + str(agentops_handler.session_id))" - ] + "Next, we'll grab our two API keys. You can use dotenv like below or however else you like to load environment variables" + ], + "metadata": { + "collapsed": false + }, + "id": "14a1b8e08a2e9eb3" + }, + { + "cell_type": "code", + "source": [ + "from dotenv import load_dotenv\n", + "\n", + "load_dotenv()" + ], + "metadata": { + "collapsed": false + }, + "id": "ff6cfc570599871f", + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", - "id": "42f226ace56ef6f5", + "source": [ + "This is where AgentOps comes into play. Before creating our LLM instance via Langchain, first we'll create an instance of the AO LangchainCallbackHandler. After the handler is initialized, a session will be recorded automatically.\n", + "\n", + "Pass in your API key, and optionally any tags to describe this session for easier lookup in the AO dashboard." + ], "metadata": { "collapsed": false }, + "id": "51f083697b783fa4" + }, + { + "cell_type": "code", "source": [ - "Agents generally use tools. Let's define a simple tool here. Tool usage is also recorded." - ] + "AGENTOPS_API_KEY = os.environ.get(\"AGENTOPS_API_KEY\")\n", + "OPENAI_API_KEY = os.environ.get(\"OPENAI_API_KEY\")\n", + "\n", + "agentops_handler = AgentOpsLangchainCallbackHandler(\n", + " api_key=AGENTOPS_API_KEY, default_tags=[\"Langchain Example\"]\n", + ")\n", + "\n", + "llm = ChatOpenAI(\n", + " openai_api_key=OPENAI_API_KEY, callbacks=[agentops_handler], model=\"gpt-3.5-turbo\"\n", + ")" + ], + "metadata": { + "collapsed": false + }, + "id": "d432fe915edb6365", + "outputs": [], + "execution_count": null + }, + { + "cell_type": "markdown", + "source": [ + "You can also retrieve the `session_id` of the newly created session." + ], + "metadata": { + "collapsed": false + }, + "id": "38d309f07363b58e" }, { "cell_type": "code", - "execution_count": null, - "id": "c103a2edbe837abd", + "source": [ + "print(\"Agent Ops session ID: \" + str(agentops_handler.current_session_ids))" + ], "metadata": { "collapsed": false }, + "id": "f7e3a37cde3f9c22", "outputs": [], + "execution_count": null + }, + { + "cell_type": "markdown", + "source": [ + "Agents generally use tools. Let's define a simple tool here. Tool usage is also recorded." + ], + "metadata": { + "collapsed": false + }, + "id": "42f226ace56ef6f5" + }, + { + "cell_type": "code", "source": [ "@tool\n", "def find_movie(genre) -> str:\n", @@ -175,49 +520,49 @@ "\n", "\n", "tools = [find_movie]" - ] + ], + "metadata": { + "collapsed": false + }, + "id": "c103a2edbe837abd", + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", - "id": "4fb7633857b19bf0", + "source": [ + "For each tool, you need to also add the callback handler" + ], "metadata": { "collapsed": false }, - "source": [ - "For each tool, you need to also add the callback handler" - ] + "id": "4fb7633857b19bf0" }, { "cell_type": "code", - "execution_count": null, - "id": "a0345f08bf1c5ecd", + "source": [ + "for t in tools:\n", + " t.callbacks = [agentops_handler]" + ], "metadata": { "collapsed": false }, + "id": "a0345f08bf1c5ecd", "outputs": [], - "source": [ - "for t in tools:\n", - " t.callbacks = [agentops_handler]" - ] + "execution_count": null }, { "cell_type": "markdown", - "id": "12a02b833716676b", + "source": [ + "Finally, let's use our agent! Pass in the callback handler to the agent, and all the actions will be recorded in the AO Dashboard" + ], "metadata": { "collapsed": false }, - "source": [ - "Finally, let's use our agent! Pass in the callback handler to the agent, and all the actions will be recorded in the AO Dashboard" - ] + "id": "12a02b833716676b" }, { "cell_type": "code", - "execution_count": null, - "id": "2d2e83fa69b30add", - "metadata": { - "collapsed": false - }, - "outputs": [], "source": [ "agent = initialize_agent(\n", " tools,\n", @@ -229,94 +574,98 @@ " ], # You must pass in a callback handler to record your agent\n", " handle_parsing_errors=True,\n", ")" - ] + ], + "metadata": { + "collapsed": false + }, + "id": "2d2e83fa69b30add", + "outputs": [], + "execution_count": null }, { "cell_type": "code", - "execution_count": null, - "id": "df2bc3a384493e1e", + "source": [ + "agent.invoke(\"What comedies are playing?\", callbacks=[agentops_handler])" + ], "metadata": { "collapsed": false }, + "id": "df2bc3a384493e1e", "outputs": [], - "source": [ - "agent.run(\"What comedies are playing?\", callbacks=[agentops_handler])" - ] + "execution_count": null }, { "cell_type": "markdown", - "id": "2230edd919182a55", - "metadata": { - "collapsed": false - }, "source": [ "## Check your session\n", "Finally, check your run on [AgentOps](https://app.agentops.ai)\n", "![image.png](attachment:3d9393fa-3d6a-4193-b6c9-43413dc19d15.png)" - ] - }, - { - "cell_type": "markdown", - "id": "fbf4a3ec5fa60d74", + ], "metadata": { "collapsed": false }, + "id": "2230edd919182a55" + }, + { + "cell_type": "markdown", "source": [ "# Async Agents\n", "\n", "Several langchain agents require async callback handlers. AgentOps also supports this." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "ed63a166b343e1a2", + ], "metadata": { "collapsed": false }, - "outputs": [], - "source": [ - "from langchain.chat_models import ChatOpenAI\n", - "from langchain.agents import initialize_agent, AgentType\n", - "from langchain.agents import tool\n", - "import os\n", - "from dotenv import load_dotenv" - ] + "id": "fbf4a3ec5fa60d74" }, { "cell_type": "code", - "execution_count": null, - "id": "aa15223969f97b3d", + "source": [ + "import os\n", + "from langchain.chat_models import ChatOpenAI\n", + "from langchain.agents import initialize_agent, AgentType\n", + "from langchain.agents import tool" + ], "metadata": { "collapsed": false }, + "id": "ed63a166b343e1a2", "outputs": [], + "execution_count": null + }, + { + "cell_type": "code", "source": [ "from agentops.partners.langchain_callback_handler import (\n", " AsyncLangchainCallbackHandler as AgentOpsAsyncLangchainCallbackHandler,\n", ")" - ] + ], + "metadata": { + "collapsed": false + }, + "id": "aa15223969f97b3d", + "outputs": [], + "execution_count": null }, { "cell_type": "code", - "execution_count": null, - "id": "824e1d44", - "metadata": {}, - "outputs": [], "source": [ + "from dotenv import load_dotenv\n", + "\n", "load_dotenv()\n", - "OPENAI_API_KEY = os.getenv(\"OPENAI_API_KEY\") or \"\"\n", - "AGENTOPS_API_KEY = os.getenv(\"AGENTOPS_API_KEY\") or \"\"" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "ae76cfe058f5e4e4", + "\n", + "AGENTOPS_API_KEY = os.environ.get(\"AGENTOPS_API_KEY\")\n", + "OPENAI_API_KEY = os.environ.get(\"OPENAI_API_KEY\")" + ], "metadata": { "collapsed": false }, + "id": "818357483f039b60", "outputs": [], + "execution_count": null + }, + { + "cell_type": "code", "source": [ "agentops_handler = AgentOpsAsyncLangchainCallbackHandler(\n", " api_key=AGENTOPS_API_KEY, tags=[\"Async Example\"]\n", @@ -327,16 +676,16 @@ ")\n", "\n", "print(\"Agent Ops session ID: \" + str(await agentops_handler.session_id))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "1201049766be84a7", + ], "metadata": { "collapsed": false }, + "id": "ae76cfe058f5e4e4", "outputs": [], + "execution_count": null + }, + { + "cell_type": "code", "source": [ "@tool\n", "def find_movie(genre) -> str:\n", @@ -351,16 +700,16 @@ "\n", "for t in tools:\n", " t.callbacks = [agentops_handler]" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "8d4f9dd39b79d542", + ], "metadata": { "collapsed": false }, + "id": "1201049766be84a7", "outputs": [], + "execution_count": null + }, + { + "cell_type": "code", "source": [ "agent = initialize_agent(\n", " tools,\n", @@ -372,20 +721,26 @@ ")\n", "\n", "await agent.arun(\"What comedies are playing?\")" - ] - }, - { - "cell_type": "markdown", - "id": "fb276a2e-f1c3-4f0f-8818-b7730e9d3ff7", + ], "metadata": { "collapsed": false }, + "id": "8d4f9dd39b79d542", + "outputs": [], + "execution_count": null + }, + { + "cell_type": "markdown", "source": [ "## Check your session\n", "Finally, check your run on [AgentOps](https://app.agentops.ai)\n", "\n", "![image.png](attachment:69f2121a-d437-4c09-bbbe-c76c9243ee19.png)" - ] + ], + "metadata": { + "collapsed": false + }, + "id": "fb276a2e-f1c3-4f0f-8818-b7730e9d3ff7" } ], "metadata": { diff --git a/examples/litellm/litellm_example.ipynb b/examples/litellm/litellm_example.ipynb index 78cccf3a0..9cde2d32d 100644 --- a/examples/litellm/litellm_example.ipynb +++ b/examples/litellm/litellm_example.ipynb @@ -102,7 +102,9 @@ "outputs": [], "source": [ "messages = [{\"role\": \"user\", \"content\": \"Write a 12 word poem about secret agents.\"}]\n", - "response = litellm.completion(model=\"gpt-4\", messages=messages) # or the model of your choosing\n", + "response = litellm.completion(\n", + " model=\"gpt-4\", messages=messages\n", + ") # or the model of your choosing\n", "print(response.choices[0].message.content)" ] }, diff --git a/examples/multion/Autonomous_web_browsing.ipynb b/examples/multion/Autonomous_web_browsing.ipynb index f5b6a269a..407a5bd27 100644 --- a/examples/multion/Autonomous_web_browsing.ipynb +++ b/examples/multion/Autonomous_web_browsing.ipynb @@ -126,7 +126,9 @@ "metadata": {}, "outputs": [], "source": [ - "agentops.init(AGENTOPS_API_KEY, auto_start_session=False, default_tags=[\"MultiOn browse example\"])" + "agentops.init(\n", + " AGENTOPS_API_KEY, auto_start_session=False, default_tags=[\"MultiOn browse example\"]\n", + ")" ] }, { diff --git a/examples/multion/Sample_browsing_agent.ipynb b/examples/multion/Sample_browsing_agent.ipynb index a0b890fc5..9a75ff10b 100644 --- a/examples/multion/Sample_browsing_agent.ipynb +++ b/examples/multion/Sample_browsing_agent.ipynb @@ -98,7 +98,9 @@ "metadata": {}, "outputs": [], "source": [ - "agentops.init(AGENTOPS_API_KEY, auto_start_session=False, default_tags=[\"MultiOn browse example\"])" + "agentops.init(\n", + " AGENTOPS_API_KEY, auto_start_session=False, default_tags=[\"MultiOn browse example\"]\n", + ")" ] }, { diff --git a/examples/recording-events.ipynb b/examples/recording-events.ipynb index 7c744a3c5..b1ec915a2 100644 --- a/examples/recording-events.ipynb +++ b/examples/recording-events.ipynb @@ -128,10 +128,12 @@ "source": [ "from agentops import record_action\n", "\n", + "\n", "@record_action(\"add numbers\")\n", "def add(x, y):\n", " return x + y\n", "\n", + "\n", "add(2, 4)" ] }, diff --git a/tests/langchain_handlers/_test_langchain_handler.py b/tests/langchain_handlers/_test_langchain_handler.py index 0cde5c5d4..97cc22055 100644 --- a/tests/langchain_handlers/_test_langchain_handler.py +++ b/tests/langchain_handlers/_test_langchain_handler.py @@ -4,7 +4,7 @@ from langchain.agents import initialize_agent, AgentType from dotenv import load_dotenv from langchain.agents import tool -from agentops.langchain_callback_handler import ( +from agentops.partners.langchain_callback_handler import ( LangchainCallbackHandler as AgentOpsLangchainCallbackHandler, AsyncLangchainCallbackHandler as AgentOpsAsyncLangchainCallbackHandler, ) From 71433207d7311db8f252dba542bd9931642d04ba Mon Sep 17 00:00:00 2001 From: Braelyn Boynton Date: Fri, 9 Aug 2024 14:56:08 -0700 Subject: [PATCH 02/11] fixed notebook (#345) --- examples/crew/markdown_validator.ipynb | 378 +++---------------------- 1 file changed, 37 insertions(+), 341 deletions(-) diff --git a/examples/crew/markdown_validator.ipynb b/examples/crew/markdown_validator.ipynb index acb013a3d..a0cc32efc 100644 --- a/examples/crew/markdown_validator.ipynb +++ b/examples/crew/markdown_validator.ipynb @@ -18,290 +18,8 @@ }, { "cell_type": "code", - "execution_count": 3, "id": "8c6c9f08b3228dcb", - "metadata": { - "ExecuteTime": { - "end_time": "2024-08-09T20:15:44.174710Z", - "start_time": "2024-08-09T20:15:33.328104Z" - } - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Requirement already satisfied: crewai in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (0.41.1)\n", - "Requirement already satisfied: appdirs<2.0.0,>=1.4.4 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai) (1.4.4)\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) (8.1.7)\n", - "Requirement already satisfied: embedchain<0.2.0,>=0.1.114 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai) (0.1.120)\n", - "Requirement already satisfied: instructor==1.3.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai) (1.3.3)\n", - "Requirement already satisfied: json-repair<0.26.0,>=0.25.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai) (0.25.3)\n", - "Requirement already satisfied: jsonref<2.0.0,>=1.1.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai) (1.1.0)\n", - "Requirement already satisfied: langchain<=0.3,>0.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai) (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) (1.40.2)\n", - "Requirement already satisfied: opentelemetry-api<2.0.0,>=1.22.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai) (1.26.0)\n", - "Requirement already satisfied: opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.22.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai) (1.26.0)\n", - "Requirement already satisfied: opentelemetry-sdk<2.0.0,>=1.22.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai) (1.26.0)\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) (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) (1.0.1)\n", - "Requirement already satisfied: regex<2024.0.0,>=2023.12.25 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from crewai) (2023.12.25)\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) (3.10.2)\n", - "Requirement already satisfied: docstring-parser<0.17,>=0.16 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from instructor==1.3.3->crewai) (0.16)\n", - "Requirement already satisfied: jiter<0.5.0,>=0.4.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from instructor==1.3.3->crewai) (0.4.2)\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) (2.20.1)\n", - "Requirement already satisfied: rich<14.0.0,>=13.7.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from instructor==1.3.3->crewai) (13.7.1)\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) (8.5.0)\n", - "Requirement already satisfied: typer<1.0.0,>=0.9.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from instructor==1.3.3->crewai) (0.12.3)\n", - "Requirement already satisfied: alembic<2.0.0,>=1.13.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (1.13.2)\n", - "Requirement already satisfied: beautifulsoup4<5.0.0,>=4.12.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (4.12.3)\n", - "Requirement already satisfied: chromadb<0.5.0,>=0.4.24 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (0.4.24)\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) (5.6.2)\n", - "Requirement already satisfied: google-cloud-aiplatform<2.0.0,>=1.26.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (1.61.0)\n", - "Requirement already satisfied: gptcache<0.2.0,>=0.1.43 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (0.1.44)\n", - "Requirement already satisfied: langchain-cohere<0.2.0,>=0.1.4 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (0.1.9)\n", - "Requirement already satisfied: langchain-community<0.3.0,>=0.2.6 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (0.2.11)\n", - "Requirement already satisfied: langchain-openai<0.2.0,>=0.1.7 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (0.1.20)\n", - "Requirement already satisfied: mem0ai<0.0.10,>=0.0.9 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (0.0.9)\n", - "Requirement already satisfied: posthog<4.0.0,>=3.0.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (3.5.0)\n", - "Requirement already satisfied: pypdf<5.0.0,>=4.0.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (4.3.1)\n", - "Requirement already satisfied: pysbd<0.4.0,>=0.3.4 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (0.3.4)\n", - "Requirement already satisfied: schema<0.8.0,>=0.7.5 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from embedchain<0.2.0,>=0.1.114->crewai) (0.7.7)\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) (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) (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) (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) (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) (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) (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) (1.26.4)\n", - "Requirement already satisfied: requests<3,>=2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain<=0.3,>0.2->crewai) (2.31.0)\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) (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) (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) (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) (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) (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) (4.12.2)\n", - "Requirement already satisfied: deprecated>=1.2.6 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from opentelemetry-api<2.0.0,>=1.22.0->crewai) (1.2.14)\n", - "Requirement already satisfied: importlib-metadata<=8.0.0,>=6.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from opentelemetry-api<2.0.0,>=1.22.0->crewai) (8.0.0)\n", - "Requirement already satisfied: googleapis-common-protos~=1.52 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.22.0->crewai) (1.63.2)\n", - "Requirement already satisfied: opentelemetry-exporter-otlp-proto-common==1.26.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.22.0->crewai) (1.26.0)\n", - "Requirement already satisfied: opentelemetry-proto==1.26.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.22.0->crewai) (1.26.0)\n", - "Requirement already satisfied: protobuf<5.0,>=3.19 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from opentelemetry-proto==1.26.0->opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.22.0->crewai) (4.25.4)\n", - "Requirement already satisfied: opentelemetry-semantic-conventions==0.47b0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from opentelemetry-sdk<2.0.0,>=1.22.0->crewai) (0.47b0)\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) (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) (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) (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) (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) (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) (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) (1.9.4)\n", - "Requirement already satisfied: Mako in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from alembic<2.0.0,>=1.13.1->embedchain<0.2.0,>=0.1.114->crewai) (1.3.5)\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) (3.7)\n", - "Requirement already satisfied: soupsieve>1.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from beautifulsoup4<5.0.0,>=4.12.2->embedchain<0.2.0,>=0.1.114->crewai) (2.5)\n", - "Requirement already satisfied: build>=1.0.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (1.2.1)\n", - "Requirement already satisfied: chroma-hnswlib==0.7.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (0.7.3)\n", - "Requirement already satisfied: fastapi>=0.95.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (0.112.0)\n", - "Requirement already satisfied: uvicorn>=0.18.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from uvicorn[standard]>=0.18.3->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (0.30.5)\n", - "Requirement already satisfied: pulsar-client>=3.1.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (3.5.0)\n", - "Requirement already satisfied: onnxruntime>=1.14.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (1.18.1)\n", - "Requirement already satisfied: opentelemetry-exporter-otlp-proto-grpc>=1.2.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (1.26.0)\n", - "Requirement already satisfied: opentelemetry-instrumentation-fastapi>=0.41b0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (0.47b0)\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.24->embedchain<0.2.0,>=0.1.114->crewai) (0.20.0)\n", - "Requirement already satisfied: pypika>=0.48.9 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (0.48.9)\n", - "Requirement already satisfied: overrides>=7.3.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (7.7.0)\n", - "Requirement already satisfied: importlib-resources in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (6.4.0)\n", - "Requirement already satisfied: grpcio>=1.58.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (1.65.4)\n", - "Requirement already satisfied: bcrypt>=4.0.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (4.2.0)\n", - "Requirement already satisfied: kubernetes>=28.1.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (30.1.0)\n", - "Requirement already satisfied: mmh3>=4.0.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (4.1.0)\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.24->embedchain<0.2.0,>=0.1.114->crewai) (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) (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) (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) (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) (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) (2.32.0.20240712)\n", - "Requirement already satisfied: wrapt<2,>=1.10 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from deprecated>=1.2.6->opentelemetry-api<2.0.0,>=1.22.0->crewai) (1.16.0)\n", - "Requirement already satisfied: 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 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (2.19.1)\n", - "Requirement already satisfied: google-auth<3.0.0dev,>=2.14.1 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) (2.33.0)\n", - "Requirement already satisfied: proto-plus<2.0.0dev,>=1.22.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) (1.24.0)\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) (23.2)\n", - "Requirement already satisfied: google-cloud-storage<3.0.0dev,>=1.32.0 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) (2.18.2)\n", - "Requirement already satisfied: google-cloud-bigquery!=3.20.0,<4.0.0dev,>=1.15.0 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) (3.25.0)\n", - "Requirement already satisfied: google-cloud-resource-manager<3.0.0dev,>=1.3.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) (1.12.5)\n", - "Requirement already satisfied: shapely<3.0.0dev 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) (2.0.5)\n", - "Requirement already satisfied: cachetools in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from gptcache<0.2.0,>=0.1.43->embedchain<0.2.0,>=0.1.114->crewai) (5.4.0)\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) (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) (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) (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) (3.19.2)\n", - "Requirement already satisfied: langchain-experimental>=0.0.6 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-cohere<0.2.0,>=0.1.4->embedchain<0.2.0,>=0.1.114->crewai) (0.0.64)\n", - "Requirement already satisfied: pandas>=1.4.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-cohere<0.2.0,>=0.1.4->embedchain<0.2.0,>=0.1.114->crewai) (2.2.2)\n", - "Requirement already satisfied: tabulate<0.10.0,>=0.9.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-cohere<0.2.0,>=0.1.4->embedchain<0.2.0,>=0.1.114->crewai) (0.9.0)\n", - "Requirement already satisfied: dataclasses-json<0.7,>=0.5.7 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-community<0.3.0,>=0.2.6->embedchain<0.2.0,>=0.1.114->crewai) (0.6.7)\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) (1.33)\n", - "Requirement already satisfied: qdrant-client<2.0.0,>=1.9.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from mem0ai<0.0.10,>=0.0.9->embedchain<0.2.0,>=0.1.114->crewai) (1.10.1)\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) (1.16.0)\n", - "Requirement already satisfied: monotonic>=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) (1.6)\n", - "Requirement already satisfied: backoff>=1.10.0 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) (2.2.1)\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) (2.9.0.post0)\n", - "Requirement already satisfied: charset-normalizer<4,>=2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests<3,>=2->langchain<=0.3,>0.2->crewai) (3.3.2)\n", - "Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests<3,>=2->langchain<=0.3,>0.2->crewai) (2.2.2)\n", - "Requirement already satisfied: markdown-it-py>=2.2.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) (3.0.0)\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) (2.18.0)\n", - "Requirement already satisfied: shellingham>=1.3.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from typer<1.0.0,>=0.9.0->instructor==1.3.3->crewai) (1.5.4)\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) (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) (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) (0.10.2)\n", - "Requirement already satisfied: pyproject_hooks in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from build>=1.0.3->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (1.1.0)\n", - "Requirement already satisfied: marshmallow<4.0.0,>=3.18.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from dataclasses-json<0.7,>=0.5.7->langchain-community<0.3.0,>=0.2.6->embedchain<0.2.0,>=0.1.114->crewai) (3.21.3)\n", - "Requirement already satisfied: typing-inspect<1,>=0.4.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from dataclasses-json<0.7,>=0.5.7->langchain-community<0.3.0,>=0.2.6->embedchain<0.2.0,>=0.1.114->crewai) (0.9.0)\n", - "Requirement already satisfied: starlette<0.38.0,>=0.37.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from fastapi>=0.95.2->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (0.37.2)\n", - "Requirement already satisfied: grpcio-status<2.0.dev0,>=1.33.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (1.62.3)\n", - "Requirement already satisfied: pyasn1-modules>=0.2.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (0.4.0)\n", - "Requirement already satisfied: rsa<5,>=3.1.4 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (4.9)\n", - "Requirement already satisfied: google-cloud-core<3.0.0dev,>=1.6.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (2.4.1)\n", - "Requirement already satisfied: google-resumable-media<3.0dev,>=0.6.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (2.7.2)\n", - "Requirement already satisfied: grpc-google-iam-v1<1.0.0dev,>=0.12.4 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (0.13.1)\n", - "Requirement already satisfied: google-crc32c<2.0dev,>=1.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (1.5.0)\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) (3.0.0)\n", - "Requirement already satisfied: websocket-client!=0.40.0,!=0.41.*,!=0.42.*,>=0.32.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from kubernetes>=28.1.0->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (1.8.0)\n", - "Requirement already satisfied: requests-oauthlib in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from kubernetes>=28.1.0->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (2.0.0)\n", - "Requirement already satisfied: oauthlib>=3.2.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from kubernetes>=28.1.0->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (3.2.2)\n", - "Requirement already satisfied: mdurl~=0.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from markdown-it-py>=2.2.0->rich<14.0.0,>=13.7.0->instructor==1.3.3->crewai) (0.1.2)\n", - "Requirement already satisfied: coloredlogs in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from onnxruntime>=1.14.1->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (15.0.1)\n", - "Requirement already satisfied: flatbuffers in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from onnxruntime>=1.14.1->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (24.3.25)\n", - "Requirement already satisfied: sympy in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from onnxruntime>=1.14.1->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (1.13.1)\n", - "Requirement already satisfied: opentelemetry-instrumentation-asgi==0.47b0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from opentelemetry-instrumentation-fastapi>=0.41b0->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (0.47b0)\n", - "Requirement already satisfied: opentelemetry-instrumentation==0.47b0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from opentelemetry-instrumentation-fastapi>=0.41b0->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (0.47b0)\n", - "Requirement already satisfied: opentelemetry-util-http==0.47b0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from opentelemetry-instrumentation-fastapi>=0.41b0->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (0.47b0)\n", - "Requirement already satisfied: setuptools>=16.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from opentelemetry-instrumentation==0.47b0->opentelemetry-instrumentation-fastapi>=0.41b0->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (72.1.0)\n", - "Requirement already satisfied: asgiref~=3.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from opentelemetry-instrumentation-asgi==0.47b0->opentelemetry-instrumentation-fastapi>=0.41b0->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (3.8.1)\n", - "Requirement already satisfied: pytz>=2020.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from pandas>=1.4.3->langchain-cohere<0.2.0,>=0.1.4->embedchain<0.2.0,>=0.1.114->crewai) (2024.1)\n", - "Requirement already satisfied: tzdata>=2022.7 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from pandas>=1.4.3->langchain-cohere<0.2.0,>=0.1.4->embedchain<0.2.0,>=0.1.114->crewai) (2024.1)\n", - "Requirement already satisfied: grpcio-tools>=1.41.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from qdrant-client<2.0.0,>=1.9.1->mem0ai<0.0.10,>=0.0.9->embedchain<0.2.0,>=0.1.114->crewai) (1.62.3)\n", - "Requirement already satisfied: portalocker<3.0.0,>=2.7.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from qdrant-client<2.0.0,>=1.9.1->mem0ai<0.0.10,>=0.0.9->embedchain<0.2.0,>=0.1.114->crewai) (2.10.1)\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.24->embedchain<0.2.0,>=0.1.114->crewai) (0.24.5)\n", - "Requirement already satisfied: httptools>=0.5.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from uvicorn[standard]>=0.18.3->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (0.6.1)\n", - "Requirement already satisfied: uvloop!=0.15.0,!=0.15.1,>=0.14.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from uvicorn[standard]>=0.18.3->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (0.19.0)\n", - "Requirement already satisfied: watchfiles>=0.13 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from uvicorn[standard]>=0.18.3->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (0.23.0)\n", - "Requirement already satisfied: websockets>=10.4 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from uvicorn[standard]>=0.18.3->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (12.0)\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) (2.1.5)\n", - "Requirement already satisfied: h2<5,>=3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (4.1.0)\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.24->embedchain<0.2.0,>=0.1.114->crewai) (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.24->embedchain<0.2.0,>=0.1.114->crewai) (2024.6.1)\n", - "Requirement already satisfied: pyasn1<0.7.0,>=0.4.6 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (0.6.0)\n", - "Requirement already satisfied: mypy-extensions>=0.3.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (1.0.0)\n", - "Requirement already satisfied: humanfriendly>=9.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from coloredlogs->onnxruntime>=1.14.1->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (10.0)\n", - "Requirement already satisfied: mpmath<1.4,>=1.1.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from sympy->onnxruntime>=1.14.1->chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai) (1.3.0)\n", - "Requirement already satisfied: hyperframe<7,>=6.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (6.0.1)\n", - "Requirement already satisfied: hpack<5,>=4.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (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) (4.0.0)\n", - "Note: you may need to restart the kernel to use updated packages.\n", - "Requirement already satisfied: agentops in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (0.3.7)\n", - "Requirement already satisfied: requests==2.31.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from agentops) (2.31.0)\n", - "Requirement already satisfied: psutil==5.9.8 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from agentops) (5.9.8)\n", - "Requirement already satisfied: packaging==23.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from agentops) (23.2)\n", - "Requirement already satisfied: termcolor==2.4.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from agentops) (2.4.0)\n", - "Requirement already satisfied: charset-normalizer<4,>=2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests==2.31.0->agentops) (3.3.2)\n", - "Requirement already satisfied: idna<4,>=2.5 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests==2.31.0->agentops) (3.7)\n", - "Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests==2.31.0->agentops) (2.2.2)\n", - "Requirement already satisfied: certifi>=2017.4.17 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests==2.31.0->agentops) (2024.7.4)\n", - "Note: you may need to restart the kernel to use updated packages.\n", - "Requirement already satisfied: python-dotenv in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (1.0.1)\n", - "Note: you may need to restart the kernel to use updated packages.\n", - "Requirement already satisfied: langchain_openai in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (0.1.20)\n", - "Requirement already satisfied: langchain-core<0.3.0,>=0.2.26 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain_openai) (0.2.29)\n", - "Requirement already satisfied: openai<2.0.0,>=1.32.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain_openai) (1.40.2)\n", - "Requirement already satisfied: tiktoken<1,>=0.7 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain_openai) (0.7.0)\n", - "Requirement already satisfied: PyYAML>=5.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.26->langchain_openai) (6.0.2)\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.26->langchain_openai) (1.33)\n", - "Requirement already satisfied: langsmith<0.2.0,>=0.1.75 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.26->langchain_openai) (0.1.98)\n", - "Requirement already satisfied: packaging<25,>=23.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.26->langchain_openai) (23.2)\n", - "Requirement already satisfied: pydantic<3,>=1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.26->langchain_openai) (2.8.2)\n", - "Requirement already satisfied: tenacity!=8.4.0,<9.0.0,>=8.1.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.26->langchain_openai) (8.5.0)\n", - "Requirement already satisfied: typing-extensions>=4.7 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.26->langchain_openai) (4.12.2)\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.32.0->langchain_openai) (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.32.0->langchain_openai) (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.32.0->langchain_openai) (0.27.0)\n", - "Requirement already satisfied: jiter<1,>=0.4.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from openai<2.0.0,>=1.32.0->langchain_openai) (0.4.2)\n", - "Requirement already satisfied: sniffio in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from openai<2.0.0,>=1.32.0->langchain_openai) (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.32.0->langchain_openai) (4.66.5)\n", - "Requirement already satisfied: regex>=2022.1.18 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from tiktoken<1,>=0.7->langchain_openai) (2023.12.25)\n", - "Requirement already satisfied: requests>=2.26.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from tiktoken<1,>=0.7->langchain_openai) (2.31.0)\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.32.0->langchain_openai) (3.7)\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.32.0->langchain_openai) (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.32.0->langchain_openai) (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.32.0->langchain_openai) (0.14.0)\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.26->langchain_openai) (3.0.0)\n", - "Requirement already satisfied: orjson<4.0.0,>=3.9.14 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langsmith<0.2.0,>=0.1.75->langchain-core<0.3.0,>=0.2.26->langchain_openai) (3.10.7)\n", - "Requirement already satisfied: annotated-types>=0.4.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from pydantic<3,>=1->langchain-core<0.3.0,>=0.2.26->langchain_openai) (0.7.0)\n", - "Requirement already satisfied: pydantic-core==2.20.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from pydantic<3,>=1->langchain-core<0.3.0,>=0.2.26->langchain_openai) (2.20.1)\n", - "Requirement already satisfied: charset-normalizer<4,>=2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests>=2.26.0->tiktoken<1,>=0.7->langchain_openai) (3.3.2)\n", - "Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests>=2.26.0->tiktoken<1,>=0.7->langchain_openai) (2.2.2)\n", - "Note: you may need to restart the kernel to use updated packages.\n", - "Requirement already satisfied: langchain_groq in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (0.1.9)\n", - "Requirement already satisfied: groq<1,>=0.4.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain_groq) (0.9.0)\n", - "Requirement already satisfied: langchain-core<0.3.0,>=0.2.26 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain_groq) (0.2.29)\n", - "Requirement already satisfied: anyio<5,>=3.5.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from groq<1,>=0.4.1->langchain_groq) (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 groq<1,>=0.4.1->langchain_groq) (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 groq<1,>=0.4.1->langchain_groq) (0.27.0)\n", - "Requirement already satisfied: pydantic<3,>=1.9.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from groq<1,>=0.4.1->langchain_groq) (2.8.2)\n", - "Requirement already satisfied: sniffio in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from groq<1,>=0.4.1->langchain_groq) (1.3.1)\n", - "Requirement already satisfied: typing-extensions<5,>=4.7 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from groq<1,>=0.4.1->langchain_groq) (4.12.2)\n", - "Requirement already satisfied: PyYAML>=5.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.26->langchain_groq) (6.0.2)\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.26->langchain_groq) (1.33)\n", - "Requirement already satisfied: langsmith<0.2.0,>=0.1.75 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.26->langchain_groq) (0.1.98)\n", - "Requirement already satisfied: packaging<25,>=23.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.26->langchain_groq) (23.2)\n", - "Requirement already satisfied: tenacity!=8.4.0,<9.0.0,>=8.1.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.26->langchain_groq) (8.5.0)\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->groq<1,>=0.4.1->langchain_groq) (3.7)\n", - "Requirement already satisfied: certifi in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from httpx<1,>=0.23.0->groq<1,>=0.4.1->langchain_groq) (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->groq<1,>=0.4.1->langchain_groq) (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->groq<1,>=0.4.1->langchain_groq) (0.14.0)\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.26->langchain_groq) (3.0.0)\n", - "Requirement already satisfied: orjson<4.0.0,>=3.9.14 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langsmith<0.2.0,>=0.1.75->langchain-core<0.3.0,>=0.2.26->langchain_groq) (3.10.7)\n", - "Requirement already satisfied: requests<3,>=2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langsmith<0.2.0,>=0.1.75->langchain-core<0.3.0,>=0.2.26->langchain_groq) (2.31.0)\n", - "Requirement already satisfied: annotated-types>=0.4.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from pydantic<3,>=1.9.0->groq<1,>=0.4.1->langchain_groq) (0.7.0)\n", - "Requirement already satisfied: pydantic-core==2.20.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from pydantic<3,>=1.9.0->groq<1,>=0.4.1->langchain_groq) (2.20.1)\n", - "Requirement already satisfied: charset-normalizer<4,>=2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests<3,>=2->langsmith<0.2.0,>=0.1.75->langchain-core<0.3.0,>=0.2.26->langchain_groq) (3.3.2)\n", - "Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests<3,>=2->langsmith<0.2.0,>=0.1.75->langchain-core<0.3.0,>=0.2.26->langchain_groq) (2.2.2)\n", - "Note: you may need to restart the kernel to use updated packages.\n", - "Requirement already satisfied: langchain in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (0.2.12)\n", - "Requirement already satisfied: PyYAML>=5.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain) (6.0.2)\n", - "Requirement already satisfied: SQLAlchemy<3,>=1.4 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain) (2.0.32)\n", - "Requirement already satisfied: aiohttp<4.0.0,>=3.8.3 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain) (3.10.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.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.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.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) (1.26.4)\n", - "Requirement already satisfied: pydantic<3,>=1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain) (2.8.2)\n", - "Requirement already satisfied: requests<3,>=2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain) (2.31.0)\n", - "Requirement already satisfied: tenacity!=8.4.0,<9.0.0,>=8.1.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain) (8.5.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.8.3->langchain) (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.8.3->langchain) (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.8.3->langchain) (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.8.3->langchain) (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.8.3->langchain) (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.8.3->langchain) (1.9.4)\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) (1.33)\n", - "Requirement already satisfied: packaging<25,>=23.2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.27->langchain) (23.2)\n", - "Requirement already satisfied: typing-extensions>=4.7 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langchain-core<0.3.0,>=0.2.27->langchain) (4.12.2)\n", - "Requirement already satisfied: orjson<4.0.0,>=3.9.14 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from langsmith<0.2.0,>=0.1.17->langchain) (3.10.7)\n", - "Requirement already satisfied: annotated-types>=0.4.0 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from pydantic<3,>=1->langchain) (0.7.0)\n", - "Requirement already satisfied: pydantic-core==2.20.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from pydantic<3,>=1->langchain) (2.20.1)\n", - "Requirement already satisfied: charset-normalizer<4,>=2 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests<3,>=2->langchain) (3.3.2)\n", - "Requirement already satisfied: idna<4,>=2.5 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests<3,>=2->langchain) (3.7)\n", - "Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests<3,>=2->langchain) (2.2.2)\n", - "Requirement already satisfied: certifi>=2017.4.17 in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from requests<3,>=2->langchain) (2024.7.4)\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) (3.0.0)\n", - "Note: you may need to restart the kernel to use updated packages.\n", - "\u001b[31mERROR: Could not find a version that satisfies the requirement StringIO (from versions: none)\u001b[0m\u001b[31m\n", - "\u001b[0m\u001b[31mERROR: No matching distribution found for StringIO\u001b[0m\u001b[31m\n", - "\u001b[0mNote: you may need to restart the kernel to use updated packages.\n", - "Requirement already satisfied: pymarkdown in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (0.1.4)\n", - "Requirement already satisfied: toolz in /Users/howardgil/Desktop/agentops/HowieG/env/lib/python3.12/site-packages (from pymarkdown) (0.12.1)\n", - "Note: you may need to restart the kernel to use updated packages.\n" - ] - } - ], + "metadata": {}, "source": [ "%pip install -U crewai\n", "%pip install -U agentops\n", @@ -310,8 +28,10 @@ "%pip install -U langchain_groq\n", "%pip install -U langchain\n", "%pip install -U StringIO\n", - "%pip install -U pymarkdown" - ] + "%pip install pymarkdownlnt" + ], + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -323,29 +43,8 @@ }, { "cell_type": "code", - "execution_count": 4, "id": "3930dc4c82f117b6", - "metadata": { - "ExecuteTime": { - "end_time": "2024-08-09T20:15:44.216372Z", - "start_time": "2024-08-09T20:15:44.176432Z" - } - }, - "outputs": [ - { - "ename": "ModuleNotFoundError", - "evalue": "No module named 'StringIO'", - "output_type": "error", - "traceback": [ - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", - "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)", - "Cell \u001b[0;32mIn[4], line 9\u001b[0m\n\u001b[1;32m 7\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mos\u001b[39;00m\n\u001b[1;32m 8\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mdotenv\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m load_dotenv\n\u001b[0;32m----> 9\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mpymarkdown\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mapi\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m PyMarkdownApi, PyMarkdownApiException\n", - "File \u001b[0;32m~/Desktop/agentops/HowieG/env/lib/python3.12/site-packages/pymarkdown/__init__.py:1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mcore\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m process\n", - "File \u001b[0;32m~/Desktop/agentops/HowieG/env/lib/python3.12/site-packages/pymarkdown/core.py:4\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mre\u001b[39;00m\n\u001b[1;32m 3\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mcontextlib\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m contextmanager\n\u001b[0;32m----> 4\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mStringIO\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m StringIO\n\u001b[1;32m 5\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mitertools\u001b[39;00m\n\u001b[1;32m 6\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01msys\u001b[39;00m\n", - "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'StringIO'" - ] - } - ], + "metadata": {}, "source": [ "import sys\n", "from crewai import Agent, Task\n", @@ -357,7 +56,9 @@ "from dotenv import load_dotenv\n", "from pymarkdown.api import PyMarkdownApi, PyMarkdownApiException\n", "from io import StringIO" - ] + ], + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -369,16 +70,16 @@ }, { "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 \"\"" - ] + ], + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -390,18 +91,13 @@ }, { "cell_type": "code", - "execution_count": null, "id": "701a00a193b93118", - "metadata": { - "ExecuteTime": { - "end_time": "2024-08-09T20:15:44.217370Z", - "start_time": "2024-08-09T20:15:44.217328Z" - } - }, - "outputs": [], + "metadata": {}, "source": [ "agentops.init(AGENTOPS_API_KEY, default_tags=[\"markdown_validator\"])" - ] + ], + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -413,10 +109,8 @@ }, { "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", @@ -440,14 +134,14 @@ " 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", - "execution_count": null, "id": "4bbeec0eb7d000ca", "metadata": {}, - "outputs": [], "source": [ "groq_llm = ChatGroq(\n", " temperature=0,\n", @@ -461,17 +155,19 @@ " temperature=0.1,\n", " model_name=os.environ.get(\"MODEL_NAME\", \"gpt-3.5-turbo\"),\n", ")" - ] + ], + "outputs": [], + "execution_count": null }, { "cell_type": "code", - "execution_count": null, "id": "805ded98160f35ca", "metadata": {}, - "outputs": [], "source": [ "filename = \"README.md\"" - ] + ], + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -483,10 +179,8 @@ }, { "cell_type": "code", - "execution_count": null, "id": "3c9ca4fa0540a142", "metadata": {}, - "outputs": [], "source": [ "general_agent = Agent(\n", " role=\"Requirements Manager\",\n", @@ -506,7 +200,9 @@ " tools=[markdown_validation_tool],\n", " llm=default_llm,\n", ") # groq_llm)" - ] + ], + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -518,10 +214,8 @@ }, { "cell_type": "code", - "execution_count": null, "id": "28b4abd52ff9bf86", "metadata": {}, - "outputs": [], "source": [ "syntax_review_task = Task(\n", " description=f\"\"\"\n", @@ -547,7 +241,9 @@ " agent=general_agent,\n", " expected_output=\"\",\n", ")" - ] + ], + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -559,13 +255,13 @@ }, { "cell_type": "code", - "execution_count": null, "id": "d5c5f01bee50b92a", "metadata": {}, - "outputs": [], "source": [ "syntax_review_task.execute_sync()" - ] + ], + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -577,13 +273,13 @@ }, { "cell_type": "code", - "execution_count": null, "id": "6eeee1a76a26bd14", "metadata": {}, - "outputs": [], "source": [ "agentops.end_session(\"Success\")" - ] + ], + "outputs": [], + "execution_count": null } ], "metadata": { From aa790561bdc0a9a8d1103e463a34dcf95701cccc Mon Sep 17 00:00:00 2001 From: Howard Gil Date: Tue, 13 Aug 2024 23:10:38 -0700 Subject: [PATCH 03/11] Workflow now running manually on button press (#354) --- .github/workflows/test-notebooks.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/test-notebooks.yml b/.github/workflows/test-notebooks.yml index 1d548d1cf..1a32e81f0 100644 --- a/.github/workflows/test-notebooks.yml +++ b/.github/workflows/test-notebooks.yml @@ -1,9 +1,6 @@ name: Test Notebooks on: - push: - branches: [ main ] - pull_request: - branches: [ main ] + workflow_dispatch: # Allows manual triggering jobs: test-notebooks: runs-on: ubuntu-latest From f142093782f443354f909f05366447f5a348580c Mon Sep 17 00:00:00 2001 From: Shawn Qiu Date: Tue, 13 Aug 2024 23:38:02 -0700 Subject: [PATCH 04/11] activate time travel (#351) * activate time travel * fix output * update openai-gpt notebook * organization * undo organization * reformatting to please the CI/CD gods * clear outputs * imports --- agentops/cli.py | 8 ++------ agentops/time_travel.py | 10 +++------- examples/openai-gpt.ipynb | 9 +++++---- pyproject.toml | 3 +++ 4 files changed, 13 insertions(+), 17 deletions(-) diff --git a/agentops/cli.py b/agentops/cli.py index 29b9e90b1..562c8053d 100644 --- a/agentops/cli.py +++ b/agentops/cli.py @@ -32,10 +32,6 @@ def main(): if args.branch_name: fetch_time_travel_id(args.branch_name) if args.on: - set_time_travel_active_state("on") + set_time_travel_active_state(True) if args.off: - set_time_travel_active_state("off") - - -if __name__ == "__main__": - main() + set_time_travel_active_state(False) diff --git a/agentops/time_travel.py b/agentops/time_travel.py index a6de34b36..5b3b9a6f8 100644 --- a/agentops/time_travel.py +++ b/agentops/time_travel.py @@ -1,10 +1,9 @@ import json import yaml +import os from .http_client import HttpClient from .exceptions import ApiServerException -import os from .helpers import singleton -from os import environ @singleton @@ -32,13 +31,10 @@ def __init__(self): def fetch_time_travel_id(ttd_id): try: - endpoint = environ.get("AGENTOPS_API_ENDPOINT", "https://api.agentops.ai") - payload = json.dumps({"ttd_id": ttd_id}).encode("utf-8") + endpoint = os.environ.get("AGENTOPS_API_ENDPOINT", "https://api.agentops.ai") ttd_res = HttpClient.get(f"{endpoint}/v2/ttd/{ttd_id}") if ttd_res.code != 200: - raise Exception( - f"Failed to fetch TTD with status code {ttd_res.status_code}" - ) + raise Exception(f"Failed to fetch TTD with status code {ttd_res.code}") prompt_to_returns_map = { "completion_overrides": { diff --git a/examples/openai-gpt.ipynb b/examples/openai-gpt.ipynb index 613880ab1..09cf5ac37 100644 --- a/examples/openai-gpt.ipynb +++ b/examples/openai-gpt.ipynb @@ -130,10 +130,11 @@ }, "outputs": [], "source": [ - "message = ({\"role\": \"user\", \"content\": \"Write a 12 word poem about secret agents.\"},)\n", + "message = [{\"role\": \"user\", \"content\": \"Write a 12 word poem about secret agents.\"}]\n", "res = openai.chat.completions.create(\n", - " model=\"gpt-3.5-turbo\", messages=message, temperature=0.5, stream=True\n", - ")" + " model=\"gpt-3.5-turbo\", messages=message, temperature=0.5, stream=False\n", + ")\n", + "print(res.choices[0].message[\"content\"])" ] }, { @@ -282,7 +283,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.3" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/pyproject.toml b/pyproject.toml index 2680e070c..dc3b88d5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,3 +41,6 @@ Issues = "https://github.com/AgentOps-AI/agentops/issues" [tool.autopep8] max_line_length = 120 + +[project.scripts] +agentops = "agentops.cli:main" From 4d2534bcfedfdde48447d585a5de380ca020e82c Mon Sep 17 00:00:00 2001 From: Shawn Qiu Date: Tue, 13 Aug 2024 23:42:08 -0700 Subject: [PATCH 05/11] fix rlock issue (#352) --- agentops/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agentops/session.py b/agentops/session.py index 5abb96293..cec18c3f4 100644 --- a/agentops/session.py +++ b/agentops/session.py @@ -268,7 +268,7 @@ def _flush_queue(self) -> None: if not self.is_running: return with self.lock: - queue_copy = copy.deepcopy(self.queue) # Copy the current items + queue_copy = self.queue[:] # Copy the current items self.queue = [] if len(queue_copy) > 0: From 2136034839877b3670a62bf302dbb63aa4f96485 Mon Sep 17 00:00:00 2001 From: Alex Reibman Date: Tue, 13 Aug 2024 23:42:27 -0700 Subject: [PATCH 06/11] fixed typos (#348) --- docs/v0/logger.mdx | 2 +- docs/v0/recording-events.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/v0/logger.mdx b/docs/v0/logger.mdx index 209e4687e..dd9514025 100644 --- a/docs/v0/logger.mdx +++ b/docs/v0/logger.mdx @@ -7,7 +7,7 @@ description: 'This document explains the use of the AgentOpsLogger ## AgentOps logger -The AgentsOps logger is quick and simple way of integrating your existing +The AgentOps logger is quick and simple way of integrating your existing agent codebase with AgentOps. It allows you to use your current logs as events by extending the built-in Python logging system to emit events to AgentOps. diff --git a/docs/v0/recording-events.mdx b/docs/v0/recording-events.mdx index ff4181f97..c831a5a2a 100644 --- a/docs/v0/recording-events.mdx +++ b/docs/v0/recording-events.mdx @@ -35,7 +35,7 @@ From this point, simply call the .record() method in the AgentOps client: ao_client.record(Event("event_type1")) ``` -In AgentsOps, each session is associated with a number of "Events". Events have +In AgentOps, each session is associated with a number of "Events". Events have must have an "event_type" which is any abitrary string of your choice. It might be something like "OpenAI Call". Events can also have other information such as the parameters of the operation, the returned data, alongside tags, etc. From 024063d9303c1ad91da8c5327b8aa1226a2c3cc7 Mon Sep 17 00:00:00 2001 From: Howard Gil Date: Wed, 14 Aug 2024 12:20:31 -0700 Subject: [PATCH 07/11] Modify test-notebooks.yml to run manually and on push to main (#355) * Workflow now running manually on button press * ignoring changes to docs --- .github/workflows/test-notebooks.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test-notebooks.yml b/.github/workflows/test-notebooks.yml index 1a32e81f0..ea194f832 100644 --- a/.github/workflows/test-notebooks.yml +++ b/.github/workflows/test-notebooks.yml @@ -1,6 +1,11 @@ name: Test Notebooks on: workflow_dispatch: # Allows manual triggering + push: + branches: + - main + paths-ignore: + - 'docs/**' jobs: test-notebooks: runs-on: ubuntu-latest From f90bec8ce6e85a394de5125467c571b90fa66d36 Mon Sep 17 00:00:00 2001 From: Howard Gil Date: Wed, 14 Aug 2024 12:59:44 -0700 Subject: [PATCH 08/11] 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 0e9a857d1..f10c43fb7 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 a0cc32efc..6723e5f6c 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 } From 501487cb4deb5f5b9c523ed3a1a5c99ed6907485 Mon Sep 17 00:00:00 2001 From: Howard Gil Date: Wed, 14 Aug 2024 13:07:33 -0700 Subject: [PATCH 09/11] moved button from Actions UI to PR UI (#356) --- .github/workflows/test-notebooks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-notebooks.yml b/.github/workflows/test-notebooks.yml index ea194f832..985be0e3e 100644 --- a/.github/workflows/test-notebooks.yml +++ b/.github/workflows/test-notebooks.yml @@ -1,6 +1,6 @@ name: Test Notebooks on: - workflow_dispatch: # Allows manual triggering + pull_request_target: # Allows manual triggering from PR UI push: branches: - main From 58d9a47c00b80c7305d26d634ad14080ea98600f Mon Sep 17 00:00:00 2001 From: Howard Gil Date: Wed, 14 Aug 2024 13:46:43 -0700 Subject: [PATCH 10/11] Clarified default end_state_reason (#353) --- agentops/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agentops/client.py b/agentops/client.py index a024d9c7b..8878e8067 100644 --- a/agentops/client.py +++ b/agentops/client.py @@ -351,7 +351,7 @@ def handle_exception(exc_type, exc_value, exc_traceback): atexit.register( lambda: cleanup( end_state="Indeterminate", - end_state_reason="Process exited without calling end_session()", + end_state_reason="N/A (process exited without calling agentops.end_session(...))", ) ) signal.signal(signal.SIGINT, signal_handler) From 9a50c752783f72df3ea5d93630b3259c0d08775f Mon Sep 17 00:00:00 2001 From: Howard Gil Date: Wed, 14 Aug 2024 16:57:09 -0700 Subject: [PATCH 11/11] Release 0.3.8 (#357) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index dc3b88d5b..1ff572e77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "agentops" -version = "0.3.7" +version = "0.3.8" authors = [ { name="Alex Reibman", email="areibman@gmail.com" }, { name="Shawn Qiu", email="siyangqiu@gmail.com" },