Skip to content

Commit a9763dc

Browse files
docs: Clarify and enhance run_demo_loop utility documentation for beginners (#1330)
1 parent ab66578 commit a9763dc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/repl.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# REPL utility
22

3-
The SDK provides `run_demo_loop` for quick interactive testing.
3+
The SDK provides `run_demo_loop` for quick, interactive testing of an agent's behavior directly in your terminal.
4+
45

56
```python
67
import asyncio
@@ -14,6 +15,6 @@ if __name__ == "__main__":
1415
asyncio.run(main())
1516
```
1617

17-
`run_demo_loop` prompts for user input in a loop, keeping the conversation
18-
history between turns. By default it streams model output as it is produced.
19-
Type `quit` or `exit` (or press `Ctrl-D`) to leave the loop.
18+
`run_demo_loop` prompts for user input in a loop, keeping the conversation history between turns. By default, it streams model output as it is produced. When you run the example above, run_demo_loop starts an interactive chat session. It continuously asks for your input, remembers the entire conversation history between turns (so your agent knows what's been discussed) and automatically streams the agent's responses to you in real-time as they are generated.
19+
20+
To end this chat session, simply type `quit` or `exit` (and press Enter) or use the `Ctrl-D` keyboard shortcut.

0 commit comments

Comments
 (0)