DocsUseful Plugins
Useful Plugins
Built-inPre-built plugins from connectonion.useful_plugins
What is a Plugin?
A plugin is a reusable list of event handlers. Use plugins=[...] to add pre-packaged functionality to any agent.
main.py
Learn how to build custom plugins in the Plugin System documentation.
ReAct Pattern
re_actImplements Reason + Act pattern with planning before action and reflection after tool execution
Events used:
after_user_input (plan)after_tools (reflect)
Usage
from connectonion.useful_plugins import re_act
agent = Agent("assistant", tools=[search], plugins=[re_act])Code Evaluation
evalSafe code evaluation and execution in a sandboxed environment
Events used:
after_tools
Usage
from connectonion.useful_plugins import eval
agent = Agent("assistant", tools=[generate_code], plugins=[eval])Image Result Formatter
image_result_formatterAutomatically formats base64 images in tool results for vision models (GPT-4o, etc.)
Events used:
after_each_tool
Usage
from connectonion.useful_plugins import image_result_formatter
agent = Agent("assistant", tools=[screenshot], plugins=[image_result_formatter])Gmail Plugin
gmail_pluginPre-configured event handlers for Gmail integration workflows
Events used:
after_user_inputafter_tools
Usage
from connectonion.useful_plugins import gmail_plugin
agent = Agent("email_assistant", plugins=[gmail_plugin])Calendar Plugin
calendar_pluginPre-configured event handlers for calendar management workflows
Events used:
after_user_inputafter_tools
Usage
from connectonion.useful_plugins import calendar_plugin
agent = Agent("scheduler", plugins=[calendar_plugin])Shell Approval
shell_approvalRequires user confirmation before executing shell commands for safety
Events used:
before_each_tool
Usage
from connectonion.useful_plugins import shell_approval
agent = Agent("devops", tools=[run_command], plugins=[shell_approval])Combining Plugins
Plugins can be combined for powerful agent behaviors:
main.py
