anthropics / anthropics/claude-agent-sdk-python

Streaming support in `TextBlock`

オープン
#164 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
8.1k
フォーク
1.3k
平均マージ
2日 31分
マージ済み PR(30日)
1

説明

While the SDK supports streaming for various message blocks (e.g., tool usage/result, system message, result message, text message etc.), `TextBlock` content is only delivered once it's fully available. This delays rendering for long messages, even if TTFT is low. Supporting partial streaming of `TextBlock` content would let applications render text incrementally, improving user experience a lot.

In current streaming guide, we receive entire block at once:

https://github.com/anthropics/claude-code-sdk-python/blob/3010aaf092186a24dae240d78f0ee7d2e0d5d62a/examples/streaming_mode_ipython.py#L26

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。