chat: serve glean chat from the platform Chat API

オープン
#168 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
api, cli

調査の方向性

Start with internal/client/stream.go and compare the platform-first fallback used by search and agents; check the api-client-go Chat methods named in the issue. Trace how glean chat, glean agent-help, and --dry-run are wired. Done means chat streams from /api/chat by default, GLEAN_LEGACY_APIS=1 uses the classic API, and the dry run shows the platform request shape.

索引モデルが issue の本文から書いたものです。

説明

enhancement

glean chat still calls the classic POST /rest/api/v1/chat through a hand-rolled NDJSON stream (internal/client/stream.go). The platform Chat API is GA, and api-client-go v0.17.3 (on main since v0.18.0) models it: Glean.Chat.Create, Glean.Chat.CreateStream and Glean.Chat.Update.

Proposal

  • Serve glean chat from POST /api/chat, streaming through Glean.Chat.CreateStream, with the same platform-first fallback that search and agents use.
  • Remove the hand-rolled stream client once the classic path is only the fallback.
  • Consider a way to continue a conversation, since the platform response carries a chat ID and PATCH /api/chats/{chat_id} exists.

Done when

  • glean agent-help shows chat with api: platform.
  • glean chat "..." streams from /api/chat by default, and GLEAN_LEGACY_APIS=1 still uses the classic API.
  • --dry-run prints the platform request shape.
主要言語
Go
スター
65
フォーク
8
平均マージ
5日 7時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

gleanwork/glean-cli のほかの issue

gleanwork/glean-cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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