You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: implement AI plugin calling interface with dedicated endpoints
This commit implements the AI plugin calling logic that enables the main
project to communicate with AI plugins using the existing unified plugin
architecture. AI plugins are treated like other plugins but identified
by categories: ["ai"].
Key implementations:
- Added CallAI and GetAICapabilities RPC methods in server.proto
- Implemented AI plugin calling logic in remote_server.go using existing Query interface
- AI plugins use standard map[string]string parameters: method, model, prompt, config
- Response follows DataResult.Pairs format: content, meta, success, error
- HTTP endpoints: POST /api/v1/ai/generate, GET /api/v1/ai/capabilities/{plugin_name}
AI plugin developers need to:
1. Configure categories: ["ai"] in extension.yaml
2. Implement Query method to handle "ai.generate" and "ai.capabilities"
3. Return standard DataResult format
The implementation maintains full compatibility with existing plugin
architecture while providing AI-specific communication standards.
0 commit comments