useAgUi
React hook that connects an AG-UI protocol agent endpoint to reachat. Returns the props needed by <Chat> plus session helpers, and streams responses via SSE (text/event-stream).
Imports
import { useAgUi } from 'reachat';
import type {
AgUiEvent,
AgUiEventType,
AgUiMessage,
AgUiTool,
AgUiContext,
AgUiToolCallInfo,
AgUiRunAgentInput,
UseAgUiOptions,
UseAgUiReturn
} from 'reachat';
The AG-UI protocol types are bundled with
[Description truncada. Veja o README completo no GitHub.]