showcase/shell-docs/src/content/ag-ui/sdk/js/client/overview.mdx
The Agent User Interaction Protocol Client SDK provides agent connectivity options for AI systems. This package builds on the core types and events to deliver flexible connection methods to agent implementations.
npm install @ag-ui/client
AbstractAgent is the base agent class for implementing custom agent
connectivity. Extending this class and implementing run() lets you bridge your
own service or agent implementation to AG-UI.
<Card title="AbstractAgent Reference" icon="cube" href="/sdk/js/client/abstract-agent" color="#3B82F6" iconType="solid"
Base class for creating custom agent connections </Card>
Concrete implementation for HTTP-based agent connectivity:
<Card title="HttpAgent Reference" icon="cube" href="/sdk/js/client/http-agent" color="#3B82F6" iconType="solid"
Ready-to-use HTTP implementation for agent connectivity, using a highly efficient event encoding format </Card>
Transform and intercept event streams flowing through agents with a flexible middleware system:
<Card title="Middleware Reference" icon="layer-group" href="/sdk/js/client/middleware" color="#3B82F6" iconType="solid"
Powerful event stream transformation and filtering for AG-UI agents </Card>
Event-driven subscriber system for handling agent lifecycle events and state mutations during agent execution:
<Card title="AgentSubscriber Reference" icon="bolt" href="/sdk/js/client/subscriber" color="#3B82F6" iconType="solid"
Comprehensive event system for reactive agent interaction and middleware-style functionality </Card>