jsonfirst-autogen
v1.0.0
Published
JSONFIRST intent layer for AutoGen — structured JSON intent governance for multi-agent AutoGen pipelines
Downloads
88
Maintainers
Readme
jsonfirst-autogen
AutoGen agents loop indefinitely on ambiguous user input.
JSONFIRST adds a structured intent layer that routes messages to the right agent deterministically.
Intent → Route → Agent.
JSONFIRST helps build reliable AI agents by converting natural language into structured JSON intent.
User message
↓
JSONFIRST (JDON: action + object + domain)
↓
Route to correct AutoGen agent
↓
Deterministic executionQuick Example
const { routeMessage } = require('jsonfirst-autogen');
const { jdon, routeTo } = await routeMessage(
"generate a monthly sales report",
process.env.JSONFIRST_API_KEY,
{
generate: 'report_agent',
send: 'email_agent',
book: 'calendar_agent'
}
);
console.log(routeTo); // → "report_agent"
console.log(jdon.jdons[0].action.normalized); // → "generate"Installation
npm install jsonfirst-autogenGet your API key at jsonfirst.com → Dashboard → API Console.
API
const { parseIntent, routeMessage } = require('jsonfirst-autogen');| Function | Description |
|---|---|
| parseIntent(text, apiKey, opts) | Returns structured JDON |
| routeMessage(text, apiKey, routingMap) | Returns { jdon, routeTo } based on action |
Links
License
MIT © JSONFIRST
