Closed4
AI Agent

pip install browser-use
playwright install

main.py
from langchain_openai import AzureChatOpenAI
from browser_use import Agent
import asyncio
async def main():
agent = Agent(
task="https://xxxx.comへアクセスしてブラウザのテストを実行して",
llm=AzureChatOpenAI(
openai_api_version="2024-10-21",
azure_endpoint="エンドポイントの場所",
azure_deployment="デプロイ名",
model="モデル名",
validate_base_url=False,
api_key="APIキー",
),
)
result = await agent.run()
print(result)
asyncio.run(main())
このスクラップは2025/01/26にクローズされました