Autobot::Plugins::Plugin
Abstract base class for Autobot plugins.
Plugins extend the agent's capabilities by registering tools, providing skills, or hooking into lifecycle events.
Lifecycle:
initialize— set up internal statesetup(context)— register tools, configure settingsstart— begin background work (fibers, timers)stop— clean up resources
Example:
class MyPlugin < Autobot::Plugins::Plugin
def name : String
"my_plugin"
end
def description : String
"Does something useful"
end
def version : String
"0.1.0"
end
def setup(context : PluginContext) : Nil
context.register_tool(MyTool.new)
end
end
Instance methods
required_executable
External CLI binary required by this plugin (e.g. "sqlite3", "gh"). Returns nil if no external binary is needed.
setup(context : PluginContext) : Nil
Called during setup to register tools and configure the plugin. The default implementation is a no-op.