UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

13 lines • 742 B
import type { HttpContext } from '@adonisjs/core/http'; import type { NextFn } from '@adonisjs/core/types/http'; /** * Server middleware that answers A2A requests before the router runs — so before the bodyparser, * the session and CSRF. That is deliberate: A2A is stateless and authenticated by the personal * agent's signed JWT, PACT requires authenticating BEFORE the body is read (a malformed body without * a token is a 401, not a parse error), and its bodies are JSON whatever `Content-Type` they carry. * Everything that is not under the A2A prefix passes straight through. */ export default class A2aServerMiddleware { handle(ctx: HttpContext, next: NextFn): Promise<any>; } //# sourceMappingURL=server_middleware.d.ts.map