@rebyteai/agent-ui
v0.8.0
Published
Optional React chat UI for Rebyte Agents
Readme
@rebyteai/agent-ui
Install the versioned package (no repository clone required):
pnpm add @rebyteai/agent-uiOptional React chat components for native Agents API Sessions.
import { AgentChat } from '@rebyteai/agent-ui'
import '@rebyteai/agent-ui/styles.css'
import { createAgentSessionTransport } from '@rebyteai/agent-react'
const transport = createAgentSessionTransport({ url: '/api/sessions' })
// Inside your application:
<AgentChat transport={transport} initialSessionId={savedSessionId} />Use AgentChatView with useAgentSession when your application owns state and
Session-ID persistence. The UI renders text and tools in Item output order, upload
progress, Session Artifact downloads, cancellation and a native event inspector.
Pending functions display a normal waiting status and retain the Stop control.
Use chat.requiredActions and chat.submitToolResult() with AgentChatView to
connect your application's handler. The UI does not execute handlers automatically.
See the Node React example for the complete server and browser setup. The organization key stays on the application server.
