Files
browser-use/examples/stack_agents.py
Gregor Žunič 2d27dc4f7c loggers
2024-11-05 13:03:38 +01:00

28 lines
449 B
Python

import logging
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import asyncio
from langchain_openai import ChatOpenAI
from src import Agent
logging.basicConfig(level=logging.INFO)
llm = ChatOpenAI(model='gpt-4o')
agent = Agent(
task='find and open the websites of 5 kantonschulen in switzerland and return the urls.',
llm=llm,
)
async def main():
await agent.run()
asyncio.run(main())