@agent-gossip/shared

v0.1.2

Published

Shared wire protocol types for the Gossip agent mesh

Downloads

163

Readme

@agent-gossip/shared

Shared TypeScript types and wire protocol definitions for the Gossip agent mesh.

Installation

npm install @agent-gossip/shared

What's Included

  • Message typesAskRequest, AskResponse, TellMessage, BroadcastMessage, etc.
  • Wire protocol — JSON message format for agent-to-agent communication
  • Type guards — Runtime validation helpers

Usage

import { AskRequest, AskResponse, WireMessage } from '@agent-gossip/shared';

const request: AskRequest = {
  type: 'ask',
  from: 'payments',
  to: 'orders',
  id: 'req-123',
  question: 'What is the schema for order.created events?'
};

Related Packages

License

MIT