ISC-CodeConnect employs a sophisticated multi-agent system, each specialized for specific aspects of Salesforce development assistance. This document provides a comprehensive overview of all agents and their interactions.
These agents manage the overall system workflow and coordination.
- Primary Role: Query decomposition and stage orchestration
- Responsibilities:
- Break complex queries into executable stages
- Manage stage execution loop
- Coordinate inter-agent communication
- Handle workflow exceptions
- Input: User queries, chat history
- Output: Stage definitions, execution plans
- Primary Role: Query analysis and agent selection
- Responsibilities:
- Analyze query intent and code type
- Route to appropriate specialized agents
- Handle classification edge cases
- Maintain routing decision logs
- Input: Stage queries from Supervisor
- Output: Agent selection decisions
These agents prepare and execute knowledge retrieval operations.
- Primary Role: Retrieval context preparation
- Responsibilities:
- Analyze query requirements
- Prepare optimal search queries
- Context enhancement and refinement
- Query transformation for vector search
- Input: Routed queries
- Output: Enhanced retrieval contexts
- Primary Role: Vector database retrieval
- Responsibilities:
- Execute parallel context queries
- Retrieve relevant code chunks
- Score and rank results
- Filter and deduplicate content
- Input: Search contexts from Context Analyzer
- Output: Ranked relevant code chunks
- Primary Role: Detailed analysis and planning
- Responsibilities:
- Perform comprehensive query research
- Ground facts and validate context
- Create detailed execution roadmaps
- Reduce hallucination through verification
- Input: Stage query, chat history, retrieved context
- Output: Detailed research reports and roadmaps
These agents handle specific Salesforce development tasks.
Specialized for Apex code operations:
- Apex Creation Agent: New class/trigger generation
- Apex Modification Agent: Existing code updates
- Apex Explanation Agent: Code analysis and documentation
Specialized for Lightning Web Component operations:
- LWC Creation Agent: New component generation
- LWC Modification Agent: Component updates
- LWC Explanation Agent: Component analysis
Multi-step generation workflows for complex tasks.
-
Test Planner Agent
- Plans comprehensive test strategies
- Analyzes code coverage requirements
- Defines test scenarios and cases
-
Setup Generator Agent
- Creates test data setup code
- Handles test environment configuration
- Manages test data relationships
-
Stub Generator Agent
- Generates mocking and stubbing code
- Handles external service mocks
- Creates test doubles and fakes
-
Test Method Generator Agent
- Generates test methods in batches
- Implements test assertions
- Handles test method organization
-
Apex Test Generator Agent
- Combines all generation steps
- Provides complete test class
- Validates test completeness
-
LWC HTML Generator Agent
- Creates component HTML templates
- Implements responsive design patterns
- Handles accessibility requirements
-
LWC JS Generator Agent
- Develops JavaScript controller logic
- Implements event handling
- Manages component lifecycle
-
LWC Apex Controller Agent
- Creates backend Apex controllers
- Implements data access patterns
- Handles security and permissions
-
LWC Generator Agent
- Summarizes complete generation
- Validates component integration
- Provides usage instructions
- Primary Role: Multi-turn conversation enhancement
- Responsibilities:
- Analyze chat history for context
- Prepare enhanced follow-up queries
- Maintain conversation continuity
- Handle clarification requests
- Primary Role: Fallback query processing
- Responsibilities:
- Handle unclassified queries
- Perform multi-collection retrieval
- Provide general Salesforce assistance
- Error recovery and graceful degradation
- Primary Role: Basic interaction management
- Responsibilities:
- Handle greetings and confirmations
- Manage session initialization
- Process simple acknowledgments
- Route to appropriate specialized agents
- Primary Role: Error management and user experience
- Responsibilities:
- Provide user-friendly error messages
- Log error details for debugging
- Suggest resolution steps
- Maintain system stability
- Primary Role: Conversation organization
- Responsibilities:
- Generate contextual chat titles
- Analyze query content for titles
- Maintain title consistency
- Support conversation management
- Supervisor ↔ Router: Direct query routing
- Router ↔ Specialized Agents: Task assignment
- Context Analyzer ↔ Retriever: Context-aware retrieval
- Parallel Retrieval: Multiple context queries
- Pipeline Processing: Sequential agent execution
- Background Processing: Title generation, logging
- Session Memory: Shared across all agents in conversation
- Context Memory: Retrieved content available to downstream agents
- Persistent Memory: Historical context for follow-up processing
- Response Time: Average processing duration
- Success Rate: Successful task completion percentage
- Error Rate: Failed operations percentage
- Context Utilization: Effectiveness of retrieved context
- End-to-End Latency: Complete workflow duration
- Parallel Efficiency: Concurrent processing effectiveness
- Memory Usage: Session and persistent memory consumption
- Throughput: Queries processed per unit time
Each agent should have a clearly defined, focused responsibility to ensure maintainability and scalability.
Implement robust error handling with graceful fallback to support agents when primary agents fail.
Optimize context usage and memory consumption to maintain system performance at scale.
Use clear, specific prompts tailored to each agent's domain expertise and expected outputs.
- Supervisor Agent Details - Query decomposition and stage orchestration
- Router Agent Implementation - Query analysis and agent selection
- Follow-up Handler Agent - Multi-turn conversation enhancement
- Query Analysis Agent - Query intent analysis and classification
- Research Agent - Detailed analysis and planning
- Test Generation Pipeline - 5-stage Apex test generation workflow
- LWC Generation Pipeline - 4-stage Lightning Web Component generation
- Specialized Agents Deep Dive - Code analysis, error handling, and system support agents
- Vector Database Setup - Milvus configuration and collection management
- Milvus Connection Manager - Connection pooling and health monitoring
- Retriever Factory - Vector database abstraction and specialized retrievers