Agent / foldkit-agent-a2a

foldkit-agent-a2a

Serves a foldkit-agent runtime as an A2A agent.

Use it when another agent should discover and call the same capabilities your Foldkit application already exposes. This package derives an A2A Agent Card from the protocol-neutral contract and turns A2A tasks into invocations of the bound AgentRuntime.

Foldkit application
       |
       v
AssistantAgent              protocol-neutral contract
       |
       | AgentBuilder.bind(...)
       v
AgentRuntime                live Model + dispatch + policy
       |
       v
foldkit-agent-a2a           adapter
       |
       +---- Agent Card
       |
       +---- tasks / message/send
       v
other agent

A2A describes the contract; it does not redefine it. Availability, authorization, input validation, cancellation, and completion remain in foldkit-agent.

Install

bash
pnpm add foldkit-agent foldkit-agent-a2a

foldkit, effect, and foldkit-agent are peer dependencies.