agui-event-contract

Community

Guarantee consistent AG-UI streaming events.

Authorzxc1a1a1
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It ensures the frontend can reliably parse, aggregate, and render Gateway-emitted AG-UI/SSE streaming events without contract drift, broken ordering, or malformed payloads.

Core Features & Use Cases

  • Defines the AG-UI/SSE event contract between Frontend and Gateway, including required fields, naming rules, and event sequencing for Run lifecycle, text streaming, tool calls, and UI state updates.
  • Supports multi-agent and group conversations by standardizing how messages are attributed and aggregated via stable identifiers like runId/messageId/toolCallId.
  • Establishes robust SSE wire format and parsing requirements to prevent issues caused by sticky packets, split/partial chunks, malformed JSON, and flush/termination mistakes.
  • Enforces safety and error-handling rules such as stable error codes and strict redaction to avoid leaking sensitive information.

Quick Start

Use the agui-event-contract skill to validate or implement the Gateway-to-Frontend SSE event stream so that every event block conforms to the defined AG-UI schema, ordering, and aggregation rules for runId/messageId/toolCallId.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: agui-event-contract
Download link: https://github.com/zxc1a1a1/Multi_Agent-AgentHub/archive/main.zip#agui-event-contract

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.