Agent system endpoints provide direct access to the MainOrchestrator status and operations. These endpoints allow you to monitor the health and status of the agentic system components that power the FAITH-AGENTIC-KG-RAG system.
System Architecture
The agent system is built around the MainOrchestrator that coordinates three primary pipelines:
Pipeline 1: Data Ingestion - UnifiedIngestionPipeline for document processing
Pipeline 2: Retrieval - MultiKGRetrievalPipeline for multi-KG search
Pipeline 3: Prediction - KnowledgeGroundingPipeline for answer generation
GET /api/v1/agents/health
Check the health of agent system components including the MainOrchestrator and all pipelines.
Request
cURL Example
curl -X GET "https://your-api.com/api/v1/agents/health"
Response
Success Response (200 OK)
{
"status":"healthy",
"service":"agent_system",
"components":{
"langgraph_workflow":"available",
"main_orchestrator":"available",
"pipelines":["data_ingestion","query_processing"]
},
"timestamp":"2024-01-15T14:30:00Z"
}
Response Fields
Field
Type
Description
status
string
Overall agent system status: "healthy", "degraded", or "down"
service
string
Service identifier: "agent_system"
components
object
Status of individual agent components
components.langgraph_workflow
string
LangGraph workflow availability status
components.main_orchestrator
string
MainOrchestrator availability status
components.pipelines
array
List of available pipelines
GET /api/v1/agents/status
Get detailed status of agent system components including MainOrchestrator initialization status and pipeline availability.
Request
cURL Example
curl -X GET "https://your-api.com/api/v1/agents/status"
Direct agent query endpoint. This is a convenience endpoint that routes to the main query endpoint. For full functionality, use POST /api/v1/query.
Request
cURL Example
curl -X POST https://your-api.com/api/v1/agents/query \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"query": "What are the symptoms of diabetes?",
"user_id": "user_123",
"kg_hint": "KG_Universal"
}'
Note
This endpoint is a placeholder implementation. For production use, prefer the main query endpoint at POST /api/v1/query which provides full functionality with automatic pipeline routing.
Agent Components
The agent system consists of several key components:
MainOrchestrator
The central coordination hub that manages all pipeline operations. Located atapp/agents/main_orchestrator.py.
Manages pipeline lifecycle
Handles error recovery and fallbacks
Integrates with memory system
Coordinates between ingestion, retrieval, and prediction pipelines
UnifiedIngestionPipeline
Processes documents (PDF, CSV, URL, text) and builds knowledge graphs. Located atapp/agents/unified_ingestion_pipeline.py.
Entity and relation extraction using LLM
Knowledge graph construction
Embedding generation for vector search
MultiKGRetrievalPipeline
Handles multi-KG federated search with domain detection. Located atapp/agents/retrieval_pipeline.py.
Domain detection and KG routing
Vector and structural retrieval
Result fusion and ranking
KnowledgeGroundingPipeline
Generates answers with context grounding and validation. Located atapp/agents/prediction_pipeline.py.