From d618a79aa8de63263ea1985895037e7f47a6e66e Mon Sep 17 00:00:00 2001 From: Alex Reibman Date: Fri, 26 Jul 2024 17:05:18 -0700 Subject: [PATCH] 317 add multion to docs (#319) * docs for multion * removed the "star us" banners copied everywhere * working example --- docs/mint.json | 3 +- docs/v1/examples.mdx | 9 ++-- docs/v1/examples/fastapi.mdx | 3 -- docs/v1/integrations/autogen.mdx | 1 - docs/v1/integrations/cohere.mdx | 1 - docs/v1/integrations/crewai.mdx | 1 - docs/v1/integrations/litellm.mdx | 2 - docs/v1/integrations/multion.mdx | 79 ++++++++++++++++++++++++++++++++ docs/v1/quickstart.mdx | 9 +--- 9 files changed, 88 insertions(+), 20 deletions(-) create mode 100644 docs/v1/integrations/multion.mdx diff --git a/docs/mint.json b/docs/mint.json index 7a7b5333..097821c2 100644 --- a/docs/mint.json +++ b/docs/mint.json @@ -93,7 +93,8 @@ "v1/integrations/autogen", "v1/integrations/langchain", "v1/integrations/cohere", - "v1/integrations/litellm" + "v1/integrations/litellm", + "v1/integrations/multion" ] }, { diff --git a/docs/v1/examples.mdx b/docs/v1/examples.mdx index 9560e569..8d1775f1 100644 --- a/docs/v1/examples.mdx +++ b/docs/v1/examples.mdx @@ -7,7 +7,7 @@ mode: "wide" ## Explore our example code to see AgentOps in action! - + Jupyter Notebook with sample code that you can run! Start here! @@ -19,12 +19,15 @@ mode: "wide" Jupyter Notebook with a simple multi-agent design - + Jupyter Notebook with a sample LangChain integration - + Create a REST server that performs and observes agent tasks + + Create an autonomous browser agent capable of navigating the web and extracting information + ## Video Guides diff --git a/docs/v1/examples/fastapi.mdx b/docs/v1/examples/fastapi.mdx index 5a3a4b14..ccde119d 100644 --- a/docs/v1/examples/fastapi.mdx +++ b/docs/v1/examples/fastapi.mdx @@ -25,9 +25,6 @@ mode: "wide" poetry add agentops ``` - - [Give us a star](https://github.com/AgentOps-AI/agentops) on GitHub while you're at it (you may be our 2,000th 😊) - diff --git a/docs/v1/integrations/autogen.mdx b/docs/v1/integrations/autogen.mdx index 4e39cc1f..d6b3da21 100644 --- a/docs/v1/integrations/autogen.mdx +++ b/docs/v1/integrations/autogen.mdx @@ -22,7 +22,6 @@ Autogen has comprehensive [documentation](https://microsoft.github.io/autogen/do poetry add agentops ``` - [Give us a star](https://github.com/AgentOps-AI/agentops) on GitHub while you're at it (you may be our 2,000th 😊) diff --git a/docs/v1/integrations/cohere.mdx b/docs/v1/integrations/cohere.mdx index 35ae2ca0..f80cad05 100644 --- a/docs/v1/integrations/cohere.mdx +++ b/docs/v1/integrations/cohere.mdx @@ -25,7 +25,6 @@ This is a living integration. Should you need any added functionality message us poetry add agentops ``` - [Give us a star](https://github.com/AgentOps-AI/agentops) on GitHub while you're at it (you may be our 2,000th 😊) diff --git a/docs/v1/integrations/crewai.mdx b/docs/v1/integrations/crewai.mdx index 07f7c3ac..120ab7a4 100644 --- a/docs/v1/integrations/crewai.mdx +++ b/docs/v1/integrations/crewai.mdx @@ -27,7 +27,6 @@ Crew has comprehensive [documentation](https://docs.crewai.com) available as wel poetry add agentops ``` - [Give us a star](https://github.com/AgentOps-AI/agentops) on GitHub while you're at it (you may be our 2,000th 😊) diff --git a/docs/v1/integrations/litellm.mdx b/docs/v1/integrations/litellm.mdx index 8ce75369..e82916c5 100644 --- a/docs/v1/integrations/litellm.mdx +++ b/docs/v1/integrations/litellm.mdx @@ -17,8 +17,6 @@ Call 100+ LLMs using the same Input/Output Format LiteLLM also supports many [providers](https://docs.litellm.ai/docs/providers) -[Give us a star](https://github.com/AgentOps-AI/agentops) on GitHub while you're at it (you may be our 2,000th 😊) - ## Using AgentOps with LiteLLM ### Requires litellm>=1.3.1 diff --git a/docs/v1/integrations/multion.mdx b/docs/v1/integrations/multion.mdx new file mode 100644 index 00000000..5a3646cb --- /dev/null +++ b/docs/v1/integrations/multion.mdx @@ -0,0 +1,79 @@ +--- +title: MultiOn +description: "AgentOps provides first class support for MultiOn agents" +--- + +import CodeTooltip from '/snippets/add-code-tooltip.mdx' +import EnvTooltip from '/snippets/add-env-tooltip.mdx' + +AgentOps and [MultiOn](https://www.multion.ai) have collaborated to simplify the monitoring of autonomous browser agents. + +You can view several example notebooks [here](https://github.com/AgentOps-AI/agentops/tree/main/examples/multion): +* [Sample web browser agent using only MultiOn](https://github.com/AgentOps-AI/agentops/blob/main/examples/multion/Autonomous_web_browsing.ipynb) +* [Combining a MultiOn agent with other LLMs calls](https://github.com/AgentOps-AI/agentops/blob/main/examples/multion/Autonomous_web_browsing.ipynb) +* [Step-by-step tracking of browse events](https://github.com/AgentOps-AI/agentops/blob/main/examples/multion/Step_by_step_web_browsing.ipynb) +* [Collecting data from a web page using the retrieve API](https://github.com/AgentOps-AI/agentops/blob/main/examples/multion/Webpage_data_retrieval.ipynb) + +## Adding AgentOps to MultiOn agents + + + + + ```bash pip + pip install -U multion + ``` + ```bash poetry + poetry add multion + ``` + + + + * Create an [AgentOps API key](https://app.agentops.ai/settings/projects) + * Create a [MultiOn API key](https://app.multion.ai/api-keys) + + + + + + ```python python + import multion + from multion.client import MultiOn + + # Initialize MultiOn with both a MultiOn API key and an AgentOps API key + multion = MultiOn( + api_key=, + agentops_api_key= + ) + + browse_response = multion.browse( + cmd="what three things do i get with agentops", + url="https://www.agentops.ai/", + max_steps=4, + include_screenshot=True + ) + + print(browse_response.message) + ``` + + + + + + + Execute your program and visit [app.agentops.ai/drilldown](https://app.agentops.ai/drilldown) to observe your MultiOn Agent! 🕵️ + + After your run, AgentOps prints a clickable url to console linking directly to your session in the Dashboard + +
{/* Intentionally blank div for newline */} + + + + + + + + + + + + diff --git a/docs/v1/quickstart.mdx b/docs/v1/quickstart.mdx index 9f8cf575..889b5dbd 100644 --- a/docs/v1/quickstart.mdx +++ b/docs/v1/quickstart.mdx @@ -19,6 +19,7 @@ import EnvTooltip from '/snippets/add-env-tooltip.mdx' + Create an AgentOps [API key here](https://app.agentops.ai/settings/projects) ```python python import agentops @@ -27,14 +28,6 @@ import EnvTooltip from '/snippets/add-env-tooltip.mdx' - - - ```python .env - AGENTOPS_API_KEY= - ``` - - Read more about [environment variables](/v1/usage/environment-variables) - Execute your program and visit [app.agentops.ai/drilldown](https://app.agentops.ai/drilldown) to observe your Agent! 🕵️