@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
13 lines • 418 B
JavaScript
/**
* Set by the A2A provider at boot, read by the server middleware per request. A module singleton
* because the server middleware is instantiated by the framework from a lazy import, with no way
* to hand it constructor arguments.
*/
let current = null;
export function setA2aHandler(handler) {
current = handler;
}
export function getA2aHandler() {
return current;
}
//# sourceMappingURL=runtime.js.map