Skip to main content

Module chat

Module chat 

Source
Expand description

Chat frontend: spawns a shim subprocess, sends user messages, displays responses.

This is a simple TTY application that demonstrates the shim protocol. Under the hood it forks a shim subprocess, communicates via socketpair, and presents a readline-style prompt.

Enums§

SpecialCommand
Recognized special commands typed at the you> prompt.

Functions§

default_cmd
Returns the default shell command used to launch each agent type.
parse_special
Try to parse a line of user input as a special command. Returns None if the input is a regular message.
run