yoi/crates/tui/README.md
2026-04-11 03:07:56 +09:00

11 lines
632 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# tui
Pod と対話するためのターミナル UI クライアント。Unix ソケット経由で Pod に接続し、チャット形式でユーザー入力の送信・アシスタント応答の表示・ツール実行の監視を行う。
## 公開型
- `App` — アプリケーション状態(メッセージ履歴、入力バッファ、スクロール位置)
- `Message` / `MessageKind` — 表示メッセージUser, Assistant, Tool, Error, Status
- `PodClient` — Pod との Unix ソケット通信クライアント(`connect()`, `send()`, `next_event()`
- `draw()` — ratatui によるUI描画関数