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

Add event compaction to the Python SDK

Ouverte
#665 1 commentaire 1 réaction 0 personnes assignées Voir sur GitHub
enhancement SDK
Langage dominant
Python
Étoiles
15.9k
Forks
1.4k
Merge moyen
1 j 17 h
PR mergées (30 j)
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`.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.