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

Clarify tool event behavior of fronted and backend

Offen
#381 6 Kommentare 4 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
documentation
Vorherrschende Sprache
Python
Sterne
15.9k
Forks
1.4k
Ø Merge
1 T. 17 Std.
Gemergte PRs (30 T.)
163

Beschreibung

The current AG-UI tool calling protocol mixes two distinct modes:

1. The tool call is actually executed by the backend/remote side, and events are synchronized to the frontend for display purposes only.
2. The tool call is executed by the frontend/client side, with results returned to the backend/remote side — similar to Human-in-the-Loop (HITL).

However, the current protocol specification does not clearly distinguish between these two modes. How should developers differentiate between them? The documentation should be improved to clarify this.

Additionally, for function calls, parameters should support the `dict` type for greater clarity and precision. Relying solely on `string` types introduces unnecessary serialization/deserialization overhead.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.