@agentwire/client
Overview
Client package overview
@agentwire/client
The Agent Wire 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.
AbstractAgent
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 AWP.
- Configuration - Setup with agent ID, messages, and state
- Core Methods - Run, abort, and clone functionality
- Protected Methods - Extensible hooks for custom implementations
- Properties - State and message tracking
AbstractAgent Reference
Base class for creating custom agent connections
HttpAgent
Concrete implementation for HTTP-based agent connectivity:
- Configuration - URL and header setup
- Methods - HTTP-specific execution and cancellation
- Protected Methods - Customizable HTTP request handling
- Properties - Connection management
HttpAgent Reference
Ready-to-use HTTP implementation for agent connectivity, using a highly efficient event encoding format