@g9tm/aiassistant-contracts
Types of the G9 AI assistant's wire contracts, generated from its JSON Schemas. Types only: nothing runs, nothing is bundled.
eventsV1: a run's event log (run.started,stage,tool,text.delta,message,card,waiting,result,run.finishedand the rest), the same for streaming, long polling and a synchronous answer.blocksV1: display blocks (table, chart, KPI, compare, timeline and the word-only blocks) with their data handles.protocolV1: the model's reply protocol (say, call, plan, ask, load, draw, blocks).manifestV1: a product's capability manifest (the app, its capabilities, tools with the hash of their input shape, skills and custom blocks).exportV1: one line of the neutral export, for moving an existing assistant's data into the stores.
import type { eventsV1 } from "@g9tm/aiassistant-contracts";
function onEvent(e: eventsV1.RunEvent): void {
if (e.type === "run.finished") console.log("done at", e.at, "after", e.seq, "events");
}
Part of the G9 AI assistant library. Documentation: see the guides that ship with the library.