# infosys/infosys-agentic-foundry architecture

> Architecture diagram of the GitHub repository infosys/infosys-agentic-foundry, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/infosys/infosys-agentic-foundry
- Repository: https://github.com/infosys/infosys-agentic-foundry

## Overview

Infosys Agentic Foundry is an enterprise platform for designing, governing, and running AI agents. A user configures agents, tools, knowledge, or workflows in the studio, then submits a chat or workflow request; backend orchestration gathers context, invokes reasoning and tools, and returns results. Separate platform capabilities include evaluation, feedback learning, access control, and model-provider routing. The workflow and product branches reflect README documentation and the repository tree; sampled excerpts are partial, so uncertain internal call wiring is not shown.

Main entry points: [`Infosys-Agentic-Foundry-Backend/src/api/app_container.py`](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/api/app_container.py) (Platform API), [`Infosys-Agentic-Foundry-Backend/src/inference/centralized_agent_inference.py`](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/inference/centralized_agent_inference.py) (Agent Orchestration), [`Infosys-Agentic-Foundry-Frontend/src/App.js`](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Frontend/src/App.js) (Foundry Studio), [`Infosys-Agentic-Foundry-Frontend/src/components/AskAssistant/AskAssistant.jsx`](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Frontend/src/components/AskAssistant/AskAssistant.jsx) (Chat Experience)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Experience &amp; Design"]
  node_studio["Foundry Studio<br/>[App.js]"]
  node_chat["Chat Experience<br/>[AskAssistant.jsx]"]
  node_workflow_builder["Workflow Builder"]
end

subgraph group_management["Platform Management"]
  node_api["Platform API<br/>[app_container.py]"]
  node_auth["Authentication &amp; RBAC<br/>[auth_service.py]"]
  node_agent_config["Agent Configuration<br/>[agent_endpoints.py]"]
end

subgraph group_runtime["Agent Runtime"]
  node_templates["Agent Templates"]
  node_orchestration["Agent Orchestration"]
  node_workflow_runtime["Workflow Execution"]
  node_reasoning["Inference Engines"]
  node_tool_execution["Tool Execution"]
  node_model_service["Model Services<br/>[model_service.py]"]
  node_llm_gateway["LiteLLM Gateway<br/>[server.py]"]
end

subgraph group_data["Context &amp; Data"]
  node_context["Knowledge &amp; Memory<br/>[knowledgebase.py]"]
  node_knowledge_service["Knowledge Base Service<br/>[main.py]"]
  node_vector_store[("Vector Store")]
  node_database[("Platform Data")]
  node_file_storage["Cloud File Storage<br/>[base.py]"]
end

subgraph group_operations["Evaluation &amp; Operations"]
  node_evaluation["Evaluation Framework"]
  node_feedback["Feedback Learning"]
  node_worker["Kafka Agent Worker"]
  node_kafka["Kafka<br/>[kafka_handler.py]"]
end

node_user(("Platform User"))
node_model_providers(("LLM Providers"))
node_cloud_storage(("Cloud Storage Services"))

node_user -->|"designs agents"| node_studio
node_user -->|"submits requests"| node_chat
node_studio -->|"configures platform"| node_api
node_chat -->|"sends chat"| node_api
node_workflow_builder -->|"manages workflows"| node_api
node_api -->|"checks access"| node_auth
node_api -->|"manages agents"| node_agent_config
node_agent_config -->|"selects template"| node_templates
node_api -->|"dispatches inference"| node_orchestration
node_api -->|"dispatches workflow"| node_workflow_runtime
node_workflow_runtime -->|"runs agents"| node_orchestration
node_orchestration -->|"queries context"| node_context
node_orchestration -->|"invokes reasoning"| node_reasoning
node_orchestration -->|"executes tools"| node_tool_execution
node_reasoning -->|"requests completion"| node_model_service
node_model_service -.->|"routes model call"| node_llm_gateway
node_llm_gateway -.->|"calls providers"| node_model_providers
node_knowledge_service -->|"stores embeddings"| node_vector_store
node_context -->|"retrieves knowledge"| node_vector_store
node_api -->|"manages knowledge"| node_knowledge_service
node_api -->|"persists platform data"| node_database
node_api -->|"stores uploads"| node_file_storage
node_file_storage -.->|"reads and writes"| node_cloud_storage
node_api -->|"runs evaluations"| node_evaluation
node_api -->|"records feedback"| node_feedback
node_feedback -->|"stores learning data"| node_database
node_api -->|"publishes work"| node_kafka
node_kafka -->|"delivers messages"| node_worker
node_worker -->|"runs agent jobs"| node_orchestration

click node_studio "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Frontend/src/App.js"
click node_chat "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Frontend/src/components/AskAssistant/AskAssistant.jsx"
click node_workflow_builder "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Frontend/src/components/Workflow/WorkflowBuilder.jsx"
click node_api "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/api/app_container.py"
click node_auth "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/auth/auth_service.py"
click node_agent_config "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/api/agent_endpoints.py"
click node_templates "https://github.com/infosys/infosys-agentic-foundry/tree/main/Infosys-Agentic-Foundry-Backend/src/agent_templates"
click node_orchestration "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/inference/centralized_agent_inference.py"
click node_workflow_runtime "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/inference/workflow_inference.py"
click node_reasoning "https://github.com/infosys/infosys-agentic-foundry/tree/main/Infosys-Agentic-Foundry-Backend/src/inference"
click node_tool_execution "https://github.com/infosys/infosys-agentic-foundry/tree/main/Infosys-Agentic-Foundry-Backend/src/tools"
click node_model_service "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/models/model_service.py"
click node_llm_gateway "https://github.com/infosys/infosys-agentic-foundry/blob/main/IAF-Litellm-Server/server.py"
click node_context "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/utils/knowledgebase.py"
click node_knowledge_service "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/knowledgebase_server/main.py"
click node_vector_store "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/utils/postgres_vector_store_jsonb.py"
click node_database "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/database/database_manager.py"
click node_file_storage "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/storage/base.py"
click node_evaluation "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/api/evaluation_endpoints.py"
click node_feedback "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/api/feedback_learning_endpoints.py"
click node_worker "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/agent_worker/kafka_agent_worker.py"
click node_kafka "https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/database/kafka_handler.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_studio,node_chat,node_workflow_builder,node_user toneBlue
class node_api,node_auth,node_agent_config,node_cloud_storage toneAmber
class node_templates,node_orchestration,node_workflow_runtime,node_reasoning,node_tool_execution,node_model_service,node_llm_gateway toneMint
class node_context,node_knowledge_service,node_vector_store,node_database,node_file_storage toneRose
class node_evaluation,node_feedback,node_worker,node_kafka,node_model_providers toneIndigo
```

## Components

### Experience & Design

- [Foundry Studio](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Frontend/src/App.js): `Infosys-Agentic-Foundry-Frontend/src/App.js`
- [Chat Experience](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Frontend/src/components/AskAssistant/AskAssistant.jsx): `Infosys-Agentic-Foundry-Frontend/src/components/AskAssistant/AskAssistant.jsx`
- [Workflow Builder](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Frontend/src/components/Workflow/WorkflowBuilder.jsx): `Infosys-Agentic-Foundry-Frontend/src/components/Workflow/WorkflowBuilder.jsx`

### Platform Management

- [Platform API](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/api/app_container.py): `Infosys-Agentic-Foundry-Backend/src/api/app_container.py`
- [Authentication & RBAC](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/auth/auth_service.py): `Infosys-Agentic-Foundry-Backend/src/auth/auth_service.py`
- [Agent Configuration](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/api/agent_endpoints.py): `Infosys-Agentic-Foundry-Backend/src/api/agent_endpoints.py`

### Agent Runtime

- [Agent Templates](https://github.com/infosys/infosys-agentic-foundry/tree/main/Infosys-Agentic-Foundry-Backend/src/agent_templates): `Infosys-Agentic-Foundry-Backend/src/agent_templates`
- [Agent Orchestration](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/inference/centralized_agent_inference.py): `Infosys-Agentic-Foundry-Backend/src/inference/centralized_agent_inference.py`
- [Workflow Execution](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/inference/workflow_inference.py): `Infosys-Agentic-Foundry-Backend/src/inference/workflow_inference.py`
- [Inference Engines](https://github.com/infosys/infosys-agentic-foundry/tree/main/Infosys-Agentic-Foundry-Backend/src/inference): `Infosys-Agentic-Foundry-Backend/src/inference`
- [Tool Execution](https://github.com/infosys/infosys-agentic-foundry/tree/main/Infosys-Agentic-Foundry-Backend/src/tools): `Infosys-Agentic-Foundry-Backend/src/tools`
- [Model Services](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/models/model_service.py): `Infosys-Agentic-Foundry-Backend/src/models/model_service.py`
- [LiteLLM Gateway](https://github.com/infosys/infosys-agentic-foundry/blob/main/IAF-Litellm-Server/server.py): `IAF-Litellm-Server/server.py`

### Context & Data

- [Knowledge & Memory](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/utils/knowledgebase.py): `Infosys-Agentic-Foundry-Backend/src/utils/knowledgebase.py`
- [Knowledge Base Service](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/knowledgebase_server/main.py): `Infosys-Agentic-Foundry-Backend/knowledgebase_server/main.py`
- [Vector Store](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/utils/postgres_vector_store_jsonb.py): `Infosys-Agentic-Foundry-Backend/src/utils/postgres_vector_store_jsonb.py`
- [Platform Data](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/database/database_manager.py): `Infosys-Agentic-Foundry-Backend/src/database/database_manager.py`
- [Cloud File Storage](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/storage/base.py): `Infosys-Agentic-Foundry-Backend/src/storage/base.py`

### Evaluation & Operations

- [Evaluation Framework](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/api/evaluation_endpoints.py): `Infosys-Agentic-Foundry-Backend/src/api/evaluation_endpoints.py`
- [Feedback Learning](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/api/feedback_learning_endpoints.py): `Infosys-Agentic-Foundry-Backend/src/api/feedback_learning_endpoints.py`
- [Kafka Agent Worker](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/agent_worker/kafka_agent_worker.py): `Infosys-Agentic-Foundry-Backend/agent_worker/kafka_agent_worker.py`
- [Kafka](https://github.com/infosys/infosys-agentic-foundry/blob/main/Infosys-Agentic-Foundry-Backend/src/database/kafka_handler.py): `Infosys-Agentic-Foundry-Backend/src/database/kafka_handler.py`

### Other components

- **Platform User**
- **LLM Providers**
- **Cloud Storage Services**

## Connections

- Platform User → Foundry Studio: designs agents
- Platform User → Chat Experience: submits requests
- Foundry Studio → Platform API: configures platform
- Chat Experience → Platform API: sends chat
- Workflow Builder → Platform API: manages workflows
- Platform API → Authentication & RBAC: checks access
- Platform API → Agent Configuration: manages agents
- Agent Configuration → Agent Templates: selects template
- Platform API → Agent Orchestration: dispatches inference
- Platform API → Workflow Execution: dispatches workflow
- Workflow Execution → Agent Orchestration: runs agents
- Agent Orchestration → Knowledge & Memory: queries context
- Agent Orchestration → Inference Engines: invokes reasoning
- Agent Orchestration → Tool Execution: executes tools
- Inference Engines → Model Services: requests completion
- Model Services → LiteLLM Gateway: routes model call
- LiteLLM Gateway → LLM Providers: calls providers
- Knowledge Base Service → Vector Store: stores embeddings
- Knowledge & Memory → Vector Store: retrieves knowledge
- Platform API → Knowledge Base Service: manages knowledge
- Platform API → Platform Data: persists platform data
- Platform API → Cloud File Storage: stores uploads
- Cloud File Storage → Cloud Storage Services: reads and writes
- Platform API → Evaluation Framework: runs evaluations
- Platform API → Feedback Learning: records feedback
- Feedback Learning → Platform Data: stores learning data
- Platform API → Kafka: publishes work
- Kafka → Kafka Agent Worker: delivers messages
- Kafka Agent Worker → Agent Orchestration: runs agent jobs
