ag-ui-protocol / ag-ui-protocol/ag-ui
Add event compaction to the Python SDK
- 主要言語
- Python
- スター
- 15.9k
- フォーク
- 1.4k
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 163
説明
This is a pure feature request.
Our current design transparently stores each run to a database as it gets processed by a Python server. At present, we have a homegrown, limited version of event compaction, based on the draft serialization spec. The client then has a way to request state and message snapshot events from the backend for a given thread ID over a standard agi-ui endpoint.
In the short term, we will probably implement an internal direct port of https://github.com/ag-ui-protocol/ag-ui/blob/09edea51dd6b728173dcdeb88c05f779d76e754f/sdks/typescript/packages/client/src/compact/compact.ts to python, but in the longer term, it seems like it might be useful to others to have access to an upstream-maintained implementation of `compactEvents`.
コントリビューションガイド
評価
この issue はまだ評価されていません。