MultiOn 통합
MultiOn 통합 (MultiOn)
자율적인 브라우저 에이전트를 만드는 MultiOn과 AgentOps를 연결해서, 브라우저 에이전트의 동작을 간편하게 모니터링하는 방법을 알려주는 문서예요. 두 플랫폼이 협력해서 모니터링을 단순화해 줘요.
출처: 문서
본문
MultiOn은 자율 에이전트(autonomous agents)를 만들기 위한 플랫폼이에요. AgentOps와 MultiOn은 자율 브라우저 에이전트의 모니터링을 단순화하기 위해 협력했어요.
MultiOn 에이전트에 AgentOps 추가하기
1. MultiOn 설치하기
pip install -U multion
poetry add multion
2. API 키 생성하기
- AgentOps API key 만들기
- MultiOn API key 만들기
3. AgentOps 키와 함께 MultiOn 클라이언트 만들기
어떤
openai,cohere,crew등의 모델을 호출하기 전에agentops.init을 먼저 호출해 주세요.
import multion
from multion.client import MultiOn
# MultiOn API 키와 AgentOps API 키 둘 다로 MultiOn 초기화
multion = MultiOn(
api_key=<INSERT YOUR MULTION API KEY HERE>,
agentops_api_key=<INSERT YOUR AGENTOPS API KEY HERE>
)
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)
API 키는 .env 변수로 설정해 두면 편하게 쓸 수 있어요.
4. 에이전트 실행하기
프로그램을 실행하고 app.agentops.ai/drilldown에 접속해서 MultiOn 에이전트를 관찰해 보세요! 🕵️
실행을 마치면 AgentOps가 콘솔에 대시보드의 세션으로 바로 연결되는 클릭 가능한 URL을 출력해 줘요.
전체 예제 (Full Examples)
여러 가지 예제 노트북을 여기에서 볼 수 있어요:
- MultiOn만 사용한 샘플 웹 브라우저 에이전트 (Sample web browser agent using only MultiOn)
- MultiOn 에이전트와 다른 LLM 호출 결합하기 (Combining a MultiOn agent with other LLMs calls)
- 브라우즈 이벤트의 단계별 추적 (Step-by-step tracking of browse events)
- retrieve API를 사용해 웹 페이지에서 데이터 수집하기 (Collecting data from a web page using the retrieve API)