Skip to content

nanoseil/a2a-server-edge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A2A Server for Edge Runtime

This project provides an A2A (Application to Application) server designed for edge runtime environments. It leverages the @a2a-js/sdk to facilitate communication between applications in a decentralized manner.

Currently only Cloudflare Workers is supported.

Usage

Install the package via npm:

npm install @nanoseil/a2a-server-edge @a2a-js/sdk

Then, you can import and use the server in your edge runtime environment:

import { createServer } from '@nanoseil/a2a-server-edge';
import { DefaultRequestHandler, InMemoryTaskStore, type AgentCard } from '@a2a-js/sdk';

const agentCard: AgentCard = { ... }
const taskStore = new InMemoryTaskStore();

const agentExecutor = new YourAgentExecutor();

const requestHandler = new DefaultRequestHandler(
    agentCard,
    taskStore,
    agentExecutor
);

const server = createServer(requestHandler);

export default server;

About

Agent2Agent protocol server for Edge environments

Resources

Stars

Watchers

Forks

Packages

No packages published