@gizmo-ai/user-updates-plugin
v0.1.0
Published
User-facing progress/final update plugin for Gizmo runtime
Readme
@gizmo-ai/user-updates-plugin
User-facing progress/final/error update plugin for Gizmo runtime.
This plugin adds:
user_updatesstate sliceuser_updatetool (registered automatically)
Usage
import { createRuntime } from "@gizmo-ai/runtime";
import { agentPlugin } from "@gizmo-ai/agent-plugin";
import { userUpdates } from "@gizmo-ai/user-updates-plugin";
const runtime = createRuntime({
plugins: [
agentPlugin({ model, tools: [] }),
userUpdates({ maxUpdates: 200, toolName: "user_update" }),
],
});The model can call:
user_update({ kind: "progress" | "final" | "error", message: string })
Each call appends an entry to state.user_updates.updates.
