ag-ui-protocol / ag-ui-protocol/ag-ui

Add event compaction to the Python SDK

Open
#665 1 comment 1 reaction 0 assignees View on GitHub
enhancement SDK
Dominant language
Python
Stars
15.9k
Forks
1.4k
Avg merge
1d 17h
Merged PRs (30d)
163

Description

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`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.