Skip to main content

Multion Toolkit

This notebook walks you through connecting LangChain to the MultiOn Client in your browser

To use this toolkit, you will need to add MultiOn Extension to your browser as explained in the MultiOn for Chrome.

pip install --upgrade multion > /dev/null

MultiOn Setup

Login to establish connection with your extension.

# Authorize connection to your Browser extention
import multion
multion.login()

Use Multion Toolkit within an Agent

from langchain.agents.agent_toolkits import create_multion_agent
from langchain.tools.multion.tool import MultionClientTool
from langchain.agents.agent_types import AgentType
from langchain.chat_models import ChatOpenAI

API Reference:

agent_executor = create_multion_agent(
llm=ChatOpenAI(temperature=0),
tool=MultionClientTool(),
agent_type=AgentType.OPENAI_FUNCTIONS,
verbose=True
)
agent.run("show me the weather today")
agent.run(
"Tweet about Elon Musk"
)