Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Streaming chat

Build a multi-turn terminal chat with incremental text output.

Complete the repository setup. Interactive mode:

npm install
npm start -- --workspace /path/to/repository

Enter /exit or submit an empty prompt to close the session.

Scripted mode accepts each turn as a separate argument:

npm start -- --workspace /path/to/repository \
  "Summarize this repository." \
  "Which module should I read first?"

The sample keeps one SDK session open, enables partial messages, and sends the next user message only after the previous turn completes.