# sankalpp472-eng/pulse-icc-project architecture

> Architecture diagram of the GitHub repository sankalpp472-eng/pulse-icc-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sankalpp472-eng/pulse-icc-project
- Repository: https://github.com/sankalpp472-eng/pulse-icc-project

## Overview

This repository implements a tau-bench airline customer-service agent, with local and MCP tool backends and both plain-loop and LangGraph execution. A task runner loads scenarios, starts a simulated or human customer, and records the agent’s tool calls and results. The airline tools cover flight search, booking, reservation changes, and related support actions. The tree also contains Knative-oriented MCP service utilities and a workload spreadsheet generator; the README is empty, so the graph’s relationships rely on the supplied source excerpts and index.

Main entry points: [`agent/tools.py`](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/tools.py) (Tool backends), [`agent/agent.py`](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/agent.py) (ReAct agent), [`agent/langgraph_agent.py`](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/langgraph_agent.py) (LangGraph agent), [`agent/tau_airline/__init__.py`](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/tau_airline/__init__.py) (Airline data and tasks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Agent execution"]
  node_runner["Task runner<br/>[run_tasks.py]"]
  node_plain_agent["ReAct agent<br/>[agent.py]"]
  node_graph_agent["LangGraph agent<br/>[langgraph_agent.py]"]
end

subgraph group_conversation["Conversation and models"]
  node_llm["LLM client<br/>[llm.py]"]
  node_prompts["Agent prompts<br/>[prompts.py]"]
  node_customer["Customer simulator<br/>[user.py]"]
end

subgraph group_airline["Airline domain"]
  node_airline_data[("Airline data and tasks<br/>[__init__.py]")]
  node_tool_contract["Tool contract<br/>[tool.py]"]
  node_flight_search["Flight search"]
  node_booking["Booking"]
  node_reservation_support["Reservation support"]
  node_airport_tools["Airport lookup"]
  node_other_airline_tools["Other airline tools"]
end

subgraph group_tooling["Tool services"]
  node_tool_backends["Tool backends<br/>[tools.py]"]
  node_mcp_server["MCP tool server<br/>[mcp_server.py]"]
end

subgraph group_workloads["Workload data"]
  node_workload_builder["Workload spreadsheet"]
end

node_operator(("Task operator"))
node_llm_service{{"LLM provider"}}
node_mcp_transport{{"MCP clients"}}

node_operator -->|"selects tasks"| node_runner
node_runner -->|"loads tasks"| node_airline_data
node_runner -->|"runs episode"| node_plain_agent
node_runner -->|"runs episode"| node_graph_agent
node_plain_agent -->|"requests completion"| node_llm
node_graph_agent -->|"configures model"| node_llm
node_plain_agent -->|"uses prompt"| node_prompts
node_graph_agent -->|"uses prompt"| node_prompts
node_plain_agent -->|"exchanges messages"| node_customer
node_graph_agent -->|"exchanges messages"| node_customer
node_plain_agent -->|"dispatches calls"| node_tool_backends
node_graph_agent -->|"dispatches calls"| node_tool_backends
node_llm -->|"sends requests"| node_llm_service
node_tool_backends -->|"loads data"| node_airline_data
node_tool_backends -->|"dispatches calls"| node_flight_search
node_tool_backends -->|"dispatches calls"| node_booking
node_tool_backends -->|"dispatches calls"| node_reservation_support
node_tool_backends -->|"dispatches calls"| node_airport_tools
node_tool_backends -->|"dispatches calls"| node_other_airline_tools
node_flight_search -->|"implements"| node_tool_contract
node_booking -->|"implements"| node_tool_contract
node_reservation_support -->|"implements"| node_tool_contract
node_airport_tools -->|"implements"| node_tool_contract
node_other_airline_tools -->|"implements"| node_tool_contract
node_flight_search -.->|"reads flight data"| node_airline_data
node_booking -.->|"updates reservations"| node_airline_data
node_mcp_server -->|"loads tool registry"| node_airline_data
node_tool_backends -->|"calls over HTTP"| node_mcp_transport
node_workload_builder -.->|"generates workloads"| node_operator

click node_runner "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/run_tasks.py"
click node_plain_agent "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/agent.py"
click node_graph_agent "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/langgraph_agent.py"
click node_llm "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/llm.py"
click node_prompts "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/prompts.py"
click node_customer "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/user.py"
click node_tool_backends "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/tools.py"
click node_mcp_server "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/mcp_server.py"
click node_airline_data "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/tau_airline/__init__.py"
click node_tool_contract "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/tau_airline/tool.py"
click node_flight_search "https://github.com/sankalpp472-eng/pulse-icc-project/tree/main/agent/tau_airline/tools"
click node_booking "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/tau_airline/tools/book_reservation.py"
click node_reservation_support "https://github.com/sankalpp472-eng/pulse-icc-project/tree/main/agent/tau_airline/tools"
click node_airport_tools "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/tau_airline/tools/list_all_airports.py"
click node_other_airline_tools "https://github.com/sankalpp472-eng/pulse-icc-project/tree/main/agent/tau_airline/tools"
click node_workload_builder "https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/workloads/build_workloads_xlsx.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_runner,node_plain_agent,node_graph_agent,node_mcp_transport toneBlue
class node_llm,node_prompts,node_customer toneAmber
class node_airline_data,node_tool_contract,node_flight_search,node_booking,node_reservation_support,node_airport_tools,node_other_airline_tools toneMint
class node_tool_backends,node_mcp_server,node_operator toneRose
class node_workload_builder,node_llm_service toneIndigo
```

## Components

### Agent execution

- [Task runner](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/run_tasks.py): `agent/run_tasks.py`
- [ReAct agent](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/agent.py): `agent/agent.py`
- [LangGraph agent](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/langgraph_agent.py): `agent/langgraph_agent.py`

### Conversation and models

- [LLM client](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/llm.py): `agent/llm.py`
- [Agent prompts](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/prompts.py): `agent/prompts.py`
- [Customer simulator](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/user.py): `agent/user.py`

### Airline domain

- [Airline data and tasks](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/tau_airline/__init__.py): `agent/tau_airline/__init__.py`
- [Tool contract](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/tau_airline/tool.py): `agent/tau_airline/tool.py`
- [Flight search](https://github.com/sankalpp472-eng/pulse-icc-project/tree/main/agent/tau_airline/tools): `agent/tau_airline/tools`
- [Booking](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/tau_airline/tools/book_reservation.py): `agent/tau_airline/tools/book_reservation.py`
- [Reservation support](https://github.com/sankalpp472-eng/pulse-icc-project/tree/main/agent/tau_airline/tools): `agent/tau_airline/tools`
- [Airport lookup](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/tau_airline/tools/list_all_airports.py): `agent/tau_airline/tools/list_all_airports.py`
- [Other airline tools](https://github.com/sankalpp472-eng/pulse-icc-project/tree/main/agent/tau_airline/tools): `agent/tau_airline/tools`

### Tool services

- [Tool backends](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/tools.py): `agent/tools.py`
- [MCP tool server](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/agent/mcp_server.py): `agent/mcp_server.py`

### Workload data

- [Workload spreadsheet](https://github.com/sankalpp472-eng/pulse-icc-project/blob/main/workloads/build_workloads_xlsx.py): `workloads/build_workloads_xlsx.py`

### Other components

- **Task operator**
- **LLM provider**
- **MCP clients**

## Connections

- Task operator → Task runner: selects tasks (evidence: `agent/run_tasks.py`)
- Task runner → Airline data and tasks: loads tasks (evidence: `agent/run_tasks.py`)
- Task runner → ReAct agent: runs episode (evidence: `agent/run_tasks.py`)
- Task runner → LangGraph agent: runs episode (evidence: `agent/run_tasks.py`)
- ReAct agent → LLM client: requests completion (evidence: `agent/agent.py`)
- LangGraph agent → LLM client: configures model (evidence: `agent/langgraph_agent.py`)
- ReAct agent → Agent prompts: uses prompt (evidence: `agent/agent.py`)
- LangGraph agent → Agent prompts: uses prompt (evidence: `agent/langgraph_agent.py`)
- ReAct agent → Customer simulator: exchanges messages (evidence: `agent/agent.py`)
- LangGraph agent → Customer simulator: exchanges messages (evidence: `agent/langgraph_agent.py`)
- ReAct agent → Tool backends: dispatches calls (evidence: `agent/agent.py`)
- LangGraph agent → Tool backends: dispatches calls (evidence: `agent/langgraph_agent.py`)
- LLM client → LLM provider: sends requests (evidence: `agent/llm.py`)
- Tool backends → Airline data and tasks: loads data (evidence: `agent/tools.py`)
- Tool backends → Flight search: dispatches calls (evidence: `agent/tools.py`)
- Tool backends → Booking: dispatches calls (evidence: `agent/tools.py`)
- Tool backends → Reservation support: dispatches calls (evidence: `agent/tools.py`)
- Tool backends → Airport lookup: dispatches calls (evidence: `agent/tools.py`)
- Tool backends → Other airline tools: dispatches calls (evidence: `agent/tools.py`)
- Flight search → Tool contract: implements (evidence: `agent/tau_airline/tools/search_direct_flight.py`)
- Booking → Tool contract: implements (evidence: `agent/tau_airline/tools/book_reservation.py`)
- Reservation support → Tool contract: implements (evidence: `agent/tau_airline/tools/__init__.py`)
- Airport lookup → Tool contract: implements (evidence: `agent/tau_airline/tools/list_all_airports.py`)
- Other airline tools → Tool contract: implements (evidence: `agent/tau_airline/tools/__init__.py`)
- Flight search → Airline data and tasks: reads flight data (evidence: `agent/tau_airline/__init__.py`)
- Booking → Airline data and tasks: updates reservations
- MCP tool server → Airline data and tasks: loads tool registry (evidence: `agent/mcp_server.py`)
- Tool backends → MCP clients: calls over HTTP (evidence: `agent/tools.py`)
- Workload spreadsheet → Task operator: generates workloads
