UNPKG

agentfootprint

Version:

The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.

36 lines • 1.62 kB
"use strict"; /** * agentfootprint/ag-ui — the AG-UI protocol, spoken by any agentfootprint run. * * AG-UI is the open protocol AG-UI frontends (CopilotKit, the AG-UI Dojo, any * `@ag-ui/client` app) use to drive an agent: one request in, a stream of * typed events out. This door is the adapter over agentfootprint's own event * stream: `agUi()` is the protocol adapter a host serves runs in * (`streamHandler` on `agentfootprint/hosting`); `agUiSerializer` translates * one run's served events into AG-UI events, and `agUiSse` frames them with * the official `@ag-ui/encoder` — an optional peer, loaded only when a framing * is built. * * @example * ```ts * import { agUi } from 'agentfootprint/ag-ui'; * import { streamHandler } from 'agentfootprint/hosting'; * ``` */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); __exportStar(require("../ag-ui/index.js"), exports); //# sourceMappingURL=ag-ui.js.map