Define a lightweight plugin and connector contract
Is your feature request related to a problem? Please describe.
LightAgent shows great potential as an AI assistant framework, but its extensibility could be significantly enhanced by allowing developers to create custom plugins or integrations. Currently, users are limited to predefined workflows and tools, which restricts adaptation to niche use cases (e.g., research pipelines, proprietary tools, or domain-specific APIs).
Proposed Solution
Implement a plugin architecture that enables:
- Custom Hook Integration: Allow plugins to trigger actions during specific stages of LightAgent’s workflow (e.g., pre-processing inputs, post-processing outputs).
- API Adapter Support: Enable users to connect LightAgent to external services (Slack, Jupyter, research databases) via standardized interfaces.
- Plugin Marketplace: A repository for sharing community-built plugins (optional long-term goal).
Example Use Cases
- Integrate with academic tools (e.g., arXiv API, Overleaf, or Zotero for researchers).
- Connect to internal company APIs for enterprise workflows.
- Add custom tooling for data science (e.g., PyTorch/TensorFlow model inference hooks).
Suggested Approach
- Define a plugin interface using abstract base classes (ABCs) or decorators.
- Provide template repositories/boilerplate for common integration types.
- Add documentation with examples (e.g., "Build a PDF Summarizer Plugin in 10 Minutes").
Additional Context
This would align LightAgent with extensible AI frameworks like LangChain or AutoGPT while maintaining its lightweight core. Community contributions could accelerate adoption across domains.
Should this be prioritized? Would the maintainers accept PRs for this feature?
Thank you for your suggestion!
This proposal for a plugin architecture is strongly aligned with LightAgent's evolution direction. We prioritize extensibility design and have already included similar capabilities in our roadmap.
The project now has a few extension surfaces that can support this direction without a heavy plugin system: runtime tools, MCP tool registration, Skills, trace events, and v0.7.5 guardrails.\n\nFor the next step, I would avoid a broad marketplace-style plugin architecture and start with a minimal plugin/connector contract:\n\n- no default network calls;\n- no required third-party dependencies in the core package;\n- explicit lifecycle hooks only where they map to existing extension points (input_guardrails, tool_guardrails, output_guardrails, trace export, tool registration, memory adapter);\n- template docs for building a connector.\n\nThis remains useful, but the scope should be narrowed before implementation so it does not compromise LightAgent’s lightweight core.
Scope update: the broad marketplace-style request is being narrowed to a lightweight connector contract. Existing Tools, Skills, MCP, Hooks, Guardrails, tracing, and MemoryProtocol already provide the runtime extension surfaces.
Remaining acceptance criteria are:
- a minimal connector configuration and lifecycle shape;
- optional dependencies only and no default network calls;
- compatibility with the existing extension points rather than a parallel plugin runtime;
- one template or example plus fake-client tests.
A built-in marketplace is out of scope.