Bootstrap Plugin
The Bootstrap Plugin provides essential baseline functionality for your agent, including conversation management, room control, and core evaluation capabilities.
Installation
-
Install the package:
Terminal window Terminal window Terminal window -
Import and add to your agent:
import { createBootstrapPlugin } from "@eliza/plugin-bootstrap";const agent = new AgentBuilder().withPlugin(createBootstrapPlugin()).build();
Available Features
Actions
Action | Description | Example Usage |
---|---|---|
continue | Continue the current conversation flow | Continue our previous discussion |
followRoom | Begin following a room for updates | Follow room trading-signals |
unfollowRoom | Stop following a room | Unfollow room general-chat |
ignore | Ignore specific messages or patterns | Ignore messages from @spambot |
muteRoom | Mute notifications from a room | Mute room announcements |
unmuteRoom | Restore notifications from a room | Unmute room important-alerts |
Usage Examples
// Initialize plugin with default configurationconst bootstrapPlugin = createBootstrapPlugin();
// Add to agentconst agent = new AgentBuilder() .withPlugin(bootstrapPlugin) .build();
Configuration Options
The bootstrap plugin accepts optional configuration parameters:
interface BootstrapConfig { enableBoredom?: boolean; // Enable/disable boredom management timeFormat?: string; // Preferred time format factChecking?: boolean; // Enable/disable fact checking}
Best Practices
- βοΈ Initialize the bootstrap plugin first before other plugins
- βοΈ Configure fact checking for sensitive operations
- βοΈ Use room management features to organize conversations
- βοΈ Implement proper error handling for actions
Common Issues and Troubleshooting
- Room Not Found: Verify room identifiers before follow/unfollow operations
- Action Timeout: Check network connectivity and retry the action
- Evaluation Errors: Ensure proper context is provided for fact/goal evaluation
- Provider Unavailability: Verify plugin initialization and configuration
The bootstrap plugin is essential for basic agent functionality. Itβs recommended to include it in all agent configurations.