Skip to content

Commit

Permalink
Actually deleting multion_test.py lol
Browse files Browse the repository at this point in the history
  • Loading branch information
HowieG committed Jun 5, 2024
1 parent 898d2dd commit 4e0e9c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 93 deletions.
77 changes: 6 additions & 71 deletions examples/multion_example_browse.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,84 +2,19 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Processing /Users/howardgil/Desktop/agentops/HowieG/multion-python\n",
"\u001b[33m DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.\n",
" pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.\u001b[0m\n",
" Installing build dependencies ... \u001b[?25ldone\n",
"\u001b[?25h Getting requirements to build wheel ... \u001b[?25ldone\n",
"\u001b[?25h Preparing wheel metadata ... \u001b[?25ldone\n",
"\u001b[?25hRequirement already satisfied: pydantic>=1.9.2 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from multion==1.2.0) (2.7.3)\n",
"Requirement already satisfied: httpx>=0.21.2 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from multion==1.2.0) (0.27.0)\n",
"Requirement already satisfied: typing_extensions>=4.0.0 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from multion==1.2.0) (4.12.1)\n",
"Requirement already satisfied: httpx-sse==0.4.0 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from multion==1.2.0) (0.4.0)\n",
"Requirement already satisfied: agentops<0.3.0,>=0.2.0 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from multion==1.2.0) (0.2.1)\n",
"Requirement already satisfied: termcolor==2.4.0 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from agentops<0.3.0,>=0.2.0->multion==1.2.0) (2.4.0)\n",
"Requirement already satisfied: packaging==23.2 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from agentops<0.3.0,>=0.2.0->multion==1.2.0) (23.2)\n",
"Requirement already satisfied: requests==2.31.0 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from agentops<0.3.0,>=0.2.0->multion==1.2.0) (2.31.0)\n",
"Requirement already satisfied: psutil==5.9.8 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from agentops<0.3.0,>=0.2.0->multion==1.2.0) (5.9.8)\n",
"Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from requests==2.31.0->agentops<0.3.0,>=0.2.0->multion==1.2.0) (2.2.1)\n",
"Requirement already satisfied: charset-normalizer<4,>=2 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from requests==2.31.0->agentops<0.3.0,>=0.2.0->multion==1.2.0) (3.3.2)\n",
"Requirement already satisfied: idna<4,>=2.5 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from requests==2.31.0->agentops<0.3.0,>=0.2.0->multion==1.2.0) (3.7)\n",
"Requirement already satisfied: certifi>=2017.4.17 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from requests==2.31.0->agentops<0.3.0,>=0.2.0->multion==1.2.0) (2024.6.2)\n",
"Requirement already satisfied: anyio in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from httpx>=0.21.2->multion==1.2.0) (4.4.0)\n",
"Requirement already satisfied: sniffio in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from httpx>=0.21.2->multion==1.2.0) (1.3.1)\n",
"Requirement already satisfied: httpcore==1.* in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from httpx>=0.21.2->multion==1.2.0) (1.0.5)\n",
"Requirement already satisfied: h11<0.15,>=0.13 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from httpcore==1.*->httpx>=0.21.2->multion==1.2.0) (0.14.0)\n",
"Requirement already satisfied: annotated-types>=0.4.0 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from pydantic>=1.9.2->multion==1.2.0) (0.7.0)\n",
"Requirement already satisfied: pydantic-core==2.18.4 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from pydantic>=1.9.2->multion==1.2.0) (2.18.4)\n",
"Requirement already satisfied: exceptiongroup>=1.0.2 in /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages (from anyio->httpx>=0.21.2->multion==1.2.0) (1.2.1)\n",
"Building wheels for collected packages: multion\n",
" Building wheel for multion (PEP 517) ... \u001b[?25ldone\n",
"\u001b[?25h Created wheel for multion: filename=multion-1.2.0-py3-none-any.whl size=45261 sha256=f71b61d98548112f898eb97d58e5f306cc1aeeca03dcdfb9507169455ba84351\n",
" Stored in directory: /Users/howardgil/Library/Caches/pip/wheels/53/70/32/68964fff16c84e43ca0850207695d984497592330b259f96b7\n",
"Successfully built multion\n",
"Installing collected packages: multion\n",
" Attempting uninstall: multion\n",
" Found existing installation: multion 1.2.0\n",
" Uninstalling multion-1.2.0:\n",
" Successfully uninstalled multion-1.2.0\n",
"Successfully installed multion-1.2.0\n",
"Note: you may need to restart the kernel to use updated packages.\n",
"\u001b[31mERROR: File \"setup.py\" or \"setup.cfg\" not found. Directory cannot be installed in editable mode: /Users/howardgil/Desktop/agentops/AgentOps-AI/agentops\n",
"(A \"pyproject.toml\" file was found, but editable mode currently requires a setuptools-based build.)\u001b[0m\n",
"Note: you may need to restart the kernel to use updated packages.\n"
]
}
],
"outputs": [],
"source": [
"%pip install ../../../HowieG/multion-python\n",
"%pip install .."
"%pip install multion\n",
"%pip install agentops"
]
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [
{
"ename": "TypeError",
"evalue": "'type' object is not subscriptable",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[2], line 2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mmultion\u001b[39;00m\n\u001b[0;32m----> 2\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mmultion\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mclient\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m MultiOn\n\u001b[1;32m 3\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mmultion\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mcore\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mrequest_options\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m RequestOptions\n\u001b[1;32m 4\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mos\u001b[39;00m\n",
"File \u001b[0;32m~/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages/multion/client.py:4\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mtyping\u001b[39;00m\n\u001b[1;32m 3\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mmultion\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mbase_client\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m AsyncBaseMultiOn, BaseMultiOn\n\u001b[0;32m----> 4\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mmultion\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01msessions\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mwrapped_client\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m (\n\u001b[1;32m 5\u001b[0m WrappedAsyncSessionsClient,\n\u001b[1;32m 6\u001b[0m WrappedSessionsClient,\n\u001b[1;32m 7\u001b[0m )\n\u001b[1;32m 8\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01magentops\u001b[39;00m\n\u001b[1;32m 9\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mos\u001b[39;00m\n",
"File \u001b[0;32m~/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages/multion/sessions/wrapped_client.py:2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mmultion\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01msessions\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mclient\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m AsyncSessionsClient, SessionsClient\n\u001b[0;32m----> 2\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01magentops\u001b[39;00m\n\u001b[1;32m 3\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01magentops\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m ActionEvent, LLMEvent, ErrorEvent\n\u001b[1;32m 5\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mtyping\u001b[39;00m\n",
"File \u001b[0;32m~/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages/agentops/__init__.py:5\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mlogging\u001b[39;00m\n\u001b[1;32m 4\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mtyping\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m Optional, List, Union\n\u001b[0;32m----> 5\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mclient\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m Client\n\u001b[1;32m 6\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mconfig\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m Configuration\n\u001b[1;32m 7\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mevent\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m Event, ActionEvent, LLMEvent, ToolEvent, ErrorEvent\n",
"File \u001b[0;32m~/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages/agentops/client.py:39\u001b[0m\n\u001b[1;32m 34\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mllm_tracker\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m LlmTracker\n\u001b[1;32m 35\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mtermcolor\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m colored\n\u001b[1;32m 38\u001b[0m \u001b[38;5;129m@singleton\u001b[39m\n\u001b[0;32m---> 39\u001b[0m \u001b[38;5;28;01mclass\u001b[39;00m \u001b[38;5;21;01mClient\u001b[39;00m(metaclass\u001b[38;5;241m=\u001b[39mMetaClient):\n\u001b[1;32m 40\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m 41\u001b[0m \u001b[38;5;124;03m Client for AgentOps service.\u001b[39;00m\n\u001b[1;32m 42\u001b[0m \n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 65\u001b[0m \u001b[38;5;124;03m server\u001b[39;00m\n\u001b[1;32m 66\u001b[0m \u001b[38;5;124;03m \"\"\"\u001b[39;00m\n\u001b[1;32m 68\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21m__init__\u001b[39m(\n\u001b[1;32m 69\u001b[0m \u001b[38;5;28mself\u001b[39m,\n\u001b[1;32m 70\u001b[0m api_key: Optional[\u001b[38;5;28mstr\u001b[39m] \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mNone\u001b[39;00m,\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 80\u001b[0m skip_auto_end_session: Optional[\u001b[38;5;28mbool\u001b[39m] \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mFalse\u001b[39;00m,\n\u001b[1;32m 81\u001b[0m ):\n",
"File \u001b[0;32m~/Desktop/agentops/AgentOps-AI/agentops/env/lib/python3.8/site-packages/agentops/client.py:136\u001b[0m, in \u001b[0;36mClient\u001b[0;34m()\u001b[0m\n\u001b[1;32m 131\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mllm_tracker \u001b[38;5;241m=\u001b[39m LlmTracker(\u001b[38;5;28mself\u001b[39m)\n\u001b[1;32m 132\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mllm_tracker\u001b[38;5;241m.\u001b[39moverride_api()\n\u001b[1;32m 134\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21m_check_for_partner_frameworks\u001b[39m(\n\u001b[1;32m 135\u001b[0m \u001b[38;5;28mself\u001b[39m, instrument_llm_calls, auto_start_session\n\u001b[0;32m--> 136\u001b[0m ) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m \u001b[38;5;28;43mtuple\u001b[39;49m\u001b[43m[\u001b[49m\u001b[38;5;28;43mbool\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mbool\u001b[39;49m\u001b[43m]\u001b[49m:\n\u001b[1;32m 137\u001b[0m partner_frameworks \u001b[38;5;241m=\u001b[39m get_partner_frameworks()\n\u001b[1;32m 138\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m framework \u001b[38;5;129;01min\u001b[39;00m partner_frameworks\u001b[38;5;241m.\u001b[39mkeys():\n",
"\u001b[0;31mTypeError\u001b[0m: 'type' object is not subscriptable"
]
}
],
"outputs": [],
"source": [
"import multion\n",
"from multion.client import MultiOn\n",
Expand Down
22 changes: 0 additions & 22 deletions examples/multion_test.py

This file was deleted.

0 comments on commit 4e0e9c1

Please sign in to comment.