import asyncio
import os
from seeact.agent import SeeActAgent
os.environ["OPENAI_API_KEY"] = "api_key"
async def run_agent():
agent = SeeActAgent(model="gpt-4o",default_task="Make a new doc in google docs",browser_app="")
await agent.start()
while not agent.complete_flag:
prediction_dict = await agent.predict()
await agent.execute(prediction_dict)
await agent.stop()
asyncio.run(run_agent())
Here's my script:-