CopilotKit

Overview

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.

cargo add ag-ui-client

Agent Trait

Agent is the trait to implement for custom agent connectivity. Implementing run() lets you bridge your own service or agent implementation to AG-UI.

Agent Trait Reference

Trait for creating custom agent connections

HttpAgent

Agent implementation for HTTP-based agent connectivity:

HttpAgent Reference

Ready-to-use HTTP implementation for agent connectivity, using a highly efficient event encoding format

AgentSubscriber

Event-driven subscriber system for handling agent lifecycle events and state mutations during agent execution:

AgentSubscriber Reference

Comprehensive event system for reactive agent interaction and middleware-style functionality