[Enhancement]: External Agent Feature Proposal #8366
Replies: 4 comments 4 replies
-
@danny-avila I’m happy to implement this feature and raise a PR if there’s alignment. |
Beta Was this translation helpful? Give feedback.
-
![]() here's the latest update and how it looks like. |
Beta Was this translation helpful? Give feedback.
-
Hi @openbiocure, thanks for your work on this! Just checking in to see if there are any updates. I’d be happy to help out or collaborate if that would be useful 🙂 |
Beta Was this translation helpful? Give feedback.
-
@openbiocure having external access to Agents as well as using agents externally is planned and part of this broader effort:
Moving to GitHub Discussions isn't meant to kill momentum. Some of our best and most highly requested features have come from discussions. This isn't "archiving" as GitHub Issues are reserved for tasks currently in scope or with full technical details ready for implementation. Discussions are for brainstorming and refining ideas before they become actionable issues. Your initiative to build your own solution is great though and would be welcome as part of our effort. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
External Agent Feature Proposal
Overview
This proposal introduces an External Agent feature to LibreChat's Agent Builder, allowing users to configure agents that delegate their processing to external services via HTTP endpoints. This feature enhances LibreChat's flexibility by enabling integration with custom AI services, specialized processing pipelines, and third-party agent frameworks.
Problem Statement
Currently, LibreChat agents are limited to using built-in LLM providers and local processing capabilities. Users who want to:
Must either modify the LibreChat codebase or work around these limitations. The External Agent feature provides a clean, configurable solution for these use cases.
Proposed Solution
Core Concept
An External Agent is a special type of agent that, instead of using LibreChat's built-in LLM processing, forwards requests to an external HTTP endpoint and returns the response. This allows seamless integration with any external service that can handle chat-like interactions.
Key Features
Technical Implementation
Database Schema Changes
Add two new fields to the Agent schema:
API Validation
Update validation schemas to include external agent fields:
Frontend Changes
Agent Builder UI Updates
Authentication UI Components
Configuration Integration
Add configuration option to control external agent capabilities:
Request Processing
When an external agent is selected:
Authentication Implementation
Encryption/Decryption
Use LibreChat's existing encryption utilities:
Request Authentication
User Experience
Agent Builder Interface
Chat Interface
Configuration Options
Admin-Level Controls
User Permissions
Security Considerations
Authentication Security
Request Security
Data Protection
Network Security
Migration Strategy
Testing Strategy
Documentation Updates
Benefits
Risks and Mitigation
Future Enhancements
Beta Was this translation helpful? Give feedback.
All reactions