Skip to content

TypeScript/Node.js SDK implementing Google's Agent2Agent (A2A) protocol for seamless agent communication. Features modular client/server packages, comprehensive validation, telemetry, examples, and modern development practices in a well-documented monorepo.

License

Notifications You must be signed in to change notification settings

Dexwox-Innovations-Org/a2a-node-sdk

A2A Node SDK

A TypeScript SDK for implementing the Agent-to-Agent (A2A) communication protocol, enabling seamless communication between AI agents.

This SDK provides a complete implementation of the A2A protocol specification, allowing developers to build, connect, and deploy intelligent agents. Developed by Dexwox Innovations Pvt Ltd to offer a robust TypeScript solution for agent-based systems.

Packages

Unified package that includes all Google A2A protocol components:

  • Complete implementation of Google's A2A protocol in a single package
  • Documentation and examples
  • Simplified imports and usage

Google A2A protocol server implementation with:

  • HTTP/WebSocket interfaces compliant with Google's A2A specification
  • Task management for A2A agents
  • Request handling for agent communication
  • Middleware support

Client library for interacting with Google A2A protocol agents:

  • Type-safe API client for Google's A2A protocol
  • Circuit breaker pattern
  • Error handling
  • Message streaming

Shared types and utilities for Google's A2A protocol:

  • Google A2A protocol definitions and interfaces
  • Validation decorators for protocol compliance
  • Common utilities for working with A2A messages
  • Error classes for protocol-specific error handling

Getting Started

Prerequisites

  • Node.js 18+
  • pnpm 8+

Installation

For Development

git clone https://github.com/Dexwox-Innovations-Org/a2a-node-sdk.git
cd a2a-node-sdk
pnpm install

For Usage in Projects

# Install the unified package (recommended)
npm install @dexwox-labs/a2a-node

# Or install individual packages if needed
npm install @dexwox-labs/a2a-core
npm install @dexwox-labs/a2a-client
npm install @dexwox-labs/a2a-server

Development

# Run all tests
pnpm test

# Start dev servers
pnpm dev

Examples

Check out the examples directory for working code samples:

  • Basic Client: Simple client implementation showing how to connect to an A2A server
  • Basic Server: Simple server implementation demonstrating how to create and host an agent
  • Weather Agent: Example agent implementation that processes weather-related queries
  • Full Stack: Complete example with client, server, and agent integration

Architecture

graph TD
    A[Client] -->|HTTP/WS| B[Server]
    B --> C[Task Manager]
    C --> D[Agent Executor]
    D --> E[External Services]
Loading

Documentation

Contributing

Please read CONTRIBUTING.md for development guidelines.

License

Apache 2.0

Community

Legal

A2A protocol is a specification for agent communication. This implementation is provided by Dexwox Innovations Pvt Ltd. Google and A2A are trademarks of Google LLC.

Features

  • Complete Protocol Implementation: Full implementation of Google's A2A protocol specification
  • TypeScript Support: Built with TypeScript for type safety and better developer experience
  • Modular Architecture: Use the full package or individual components as needed
  • Extensible: Easily extend with custom middleware and handlers
  • Well-Documented: Comprehensive documentation and examples
  • Production-Ready: Designed for reliability and performance in production environments

Compatibility

This SDK is compatible with the following versions of Google's A2A protocol:

  • A2A Protocol v1.0 (current stable version)

We strive to maintain compatibility with the latest protocol specifications as they evolve.

Roadmap

  • Enhanced WebSocket support for real-time agent communication
  • Additional middleware for common use cases
  • Performance optimizations for large-scale deployments
  • Integration with popular AI frameworks

Related Resources

About

TypeScript/Node.js SDK implementing Google's Agent2Agent (A2A) protocol for seamless agent communication. Features modular client/server packages, comprehensive validation, telemetry, examples, and modern development practices in a well-documented monorepo.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published