Set up a complete agent event system in 5 minutes using Toon Agent Bridge.
Create a file agents.json:
{
"version": "1.0.0",
"name": "Developer Event API",
"baseUrl": "http://localhost:3000",
"actions": [
{
"id": "registerAgent",
"name": "Register Agent",
"endpoint": "/agents",
"method": "POST",
"parameters": [
{
"name": "name",
"type": "string",
"required": true
}
]
},
{
"id": "getAgents",
"name": "Get All Agents",
"endpoint": "/agents",
"method": "GET"
}
]
}
npm install @programsmagic/toon-backend-node
npx toon-bridge --schema ./agents.json --port 3000
pip install toon-backend-python
toon-bridge --schema ./agents.json --port 8000
import { AgentVisualizer } from '@programsmagic/toon-frontend';
import '@programsmagic/toon-frontend/styles';
function App() {
return (
<AgentVisualizer
url="http://localhost:3000/events"
protocol="sse"
autoConnect={true}
/>
);
}
Add workflow definitions to your agents.json:
{
"flows": [
{
"id": "registrationFlow",
"name": "Agent Registration",
"steps": [
{
"actionId": "registerAgent",
"onSuccess": ["validateAgent"]
}
]
}
]
}
Then visualize flows:
<AgentVisualizer
url="http://localhost:3000/events"
showFlowDiagram={true}
flows={flows}
/>
/.well-known/agents.json for discoverability