Skip to content

redinside-dev/a2a-protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a2a-protocol

Lightweight TypeScript protocol for agent-to-agent request/response and broadcast.

Setup

  1. npm install
  2. npm start

Usage

import { A2AProtocol } from "./src/protocol";
import { MessageType } from "./src/types";

const protocol = new A2AProtocol();
protocol.on(MessageType.REQUEST, (msg) => ({ ok: true, echo: msg.payload }));
protocol.listen(7002);

Example

Run npm start to execute example/two-agents.ts. Expected output includes:

  • agent-B received: hello

About

AI agent utility: a2a-protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors