@runbit/plugin
v0.1.1
Published
The plugin contract. Every provider, store, tracer, and devtool is a plugin.
Readme
@runbit/plugin
The plugin contract. Every provider, store, tracer, and devtool is a plugin.
npm install @runbit/pluginimport { definePlugin } from "@runbit/plugin";
const myProvider = definePlugin({
name: "my-provider",
setup(registrar) {
registrar.model(someChatModel); // register a model
registrar.tool(someTool); // register a tool
registrar.on((event) => { ... }); // subscribe to events
},
});
app.use(myProvider);Registrar is how a plugin adds models, tools, and event listeners to a runtime.
Part of Runbit — the AI Runtime. Everything executes through one small, event-driven runtime; agents, workflows, RAG, and observability are packages on top.
- Umbrella:
@runbit/runtime - License: MIT
