Skip to content

Commit 8bf9aaf

Browse files
authored
Update docs sample code (#158)
1 parent 552c464 commit 8bf9aaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/usage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Here are a few examples of how to use SWE-ReX.
1414
```python
1515
import asyncio
1616
from swerex.deployment.local import LocalDeployment
17-
from swerex.runtime.abstract import CreateSessionRequest, BashAction, Command
17+
from swerex.runtime.abstract import CreateBashSessionRequest, BashAction, Command
1818

1919
deployment = LocalDeployment()
2020

@@ -27,7 +27,7 @@ async def run_some_stuff(deployment):
2727
print(await runtime.execute(Command(command=["echo", "Hello, world!"])))
2828

2929
# Create a bash session
30-
await runtime.create_session(CreateSessionRequest())
30+
await runtime.create_session(CreateBashSessionRequest())
3131

3232
# Run a command in the session
3333
# The difference to the one-off commands is that environment state persists!
@@ -81,4 +81,4 @@ So what's going on here? There's multiple steps:
8181

8282
## Running with modal
8383

84-
...
84+
...

0 commit comments

Comments
 (0)