awesome-llm-apps/advanced_ai_agents/single_agent_apps/Windows-Use/main.py
Jeomon d76add06af Windows-Use
This is selected project from agno agent hackathon
Thanks!

@Shubhamsaboo
2025-06-21 23:13:16 +05:30

13 lines
No EOL
513 B
Python

# main.py
from langchain_google_genai import ChatGoogleGenerativeAI
from windows_use.agent import Agent
from dotenv import load_dotenv
load_dotenv()
llm=ChatGoogleGenerativeAI(model='gemini-2.0-flash')
instructions=['We have Claude Desktop, Perplexity and ChatGPT App installed on the desktop so if you need any help, just ask your AI friends.']
agent = Agent(instructions=instructions,llm=llm,use_vision=True)
query=input("Enter your query: ")
agent_result=agent.invoke(query=query)
print(agent_result.content)