Skip to content

Commit 6f086e4

Browse files
Jeomonclaude
andcommitted
docs: update README imports to use top-level windows_use package
Replace `from windows_use.agent import ...` with `from windows_use import ...` across all examples now that __init__.py exposes the public API. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 58acfae commit 6f086e4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Pick any supported LLM provider and run a task:
5959

6060
```python
6161
from windows_use.providers.anthropic import ChatAnthropic
62-
from windows_use.agent import Agent, Browser
62+
from windows_use import Agent, Browser
6363

6464
llm = ChatAnthropic(model="claude-sonnet-4-5")
6565
agent = Agent(llm=llm, browser=Browser.EDGE)
@@ -70,7 +70,7 @@ agent.invoke(task="Open Notepad and write a short poem about Windows")
7070

7171
```python
7272
from windows_use.providers.openai import ChatOpenAI
73-
from windows_use.agent import Agent, Browser
73+
from windows_use import Agent, Browser
7474

7575
llm = ChatOpenAI(model="gpt-4o")
7676
agent = Agent(llm=llm, browser=Browser.CHROME)
@@ -81,7 +81,7 @@ agent.invoke(task="Search for the weather in New York on Google")
8181

8282
```python
8383
from windows_use.providers.google import ChatGoogle
84-
from windows_use.agent import Agent, Browser
84+
from windows_use import Agent, Browser
8585

8686
llm = ChatGoogle(model="gemini-2.5-flash")
8787
agent = Agent(llm=llm, browser=Browser.EDGE)
@@ -92,7 +92,7 @@ agent.invoke(task=input("Enter a task: "))
9292

9393
```python
9494
from windows_use.providers.ollama import ChatOllama
95-
from windows_use.agent import Agent, Browser
95+
from windows_use import Agent, Browser
9696

9797
llm = ChatOllama(model="qwen3-vl:235b-cloud")
9898
agent = Agent(llm=llm, use_vision=False)
@@ -104,7 +104,7 @@ agent.invoke(task=input("Enter a task: "))
104104
```python
105105
import asyncio
106106
from windows_use.providers.anthropic import ChatAnthropic
107-
from windows_use.agent import Agent
107+
from windows_use import Agent
108108

109109
async def main():
110110
llm = ChatAnthropic(model="claude-sonnet-4-5")
@@ -219,7 +219,7 @@ The agent has access to these tools automatically — no configuration needed.
219219
Observe every step the agent takes with the event system:
220220

221221
```python
222-
from windows_use.agent import Agent, AgentEvent, EventType, BaseEventSubscriber
222+
from windows_use import Agent, AgentEvent, EventType, BaseEventSubscriber
223223

224224
class MySubscriber(BaseEventSubscriber):
225225
def invoke(self, event: AgentEvent):

0 commit comments

Comments
 (0)