# google-developers-group-iit-mandi/meta-x architecture

> Architecture diagram of the GitHub repository google-developers-group-iit-mandi/meta-x, 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/google-developers-group-iit-mandi/meta-x
- Repository: https://github.com/google-developers-group-iit-mandi/meta-x

## Overview

This is an OpenEnv data-cleaning benchmark, with a secondary dataset studio for arbitrary CSVs. The main path is an agent submitting structured actions through the API to an episode engine, which applies actions and returns rewards and feedback based on fixed tasks and deterministic grading. The studio profiles and transforms uploaded data, exports prepared artifacts, and can evaluate baseline models. Edges are limited to README statements and SOURCE INDEX references; the dynamic-task and reporting implementations were not sampled, so their connections are shown only where documented or marked unverified.

Main entry points: [`environment/env.py`](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/env.py) (Episode Engine), [`app.py`](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/app.py) (OpenEnv API), [`baseline/inference.py`](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/baseline/inference.py) (Baseline Runner), [`environment/data_prep.py`](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/data_prep.py) (Dataset Preparation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_benchmark["Benchmark Runtime"]
  node_api["OpenEnv API<br/>[app.py]"]
  node_episode["Episode Engine<br/>[env.py]"]
  node_models["Action Models<br/>[models.py]"]
  node_tasks["Fixed Tasks<br/>[tasks.py]"]
  node_graders["Deterministic Graders<br/>[graders.py]"]
  node_rewards["Reward Shaping<br/>[reward.py]"]
  node_dynamic["Dynamic Task Builder"]
end

subgraph group_studio["Dataset Studio"]
  node_eda["EDA and Features<br/>[eda_agent.py]"]
  node_prep["Dataset Preparation<br/>[data_prep.py]"]
  node_evaluation["Model Evaluation<br/>[evaluation.py]"]
  node_reports["Report Artifacts<br/>[reporting.py]"]
end

subgraph group_agents["Agents and Interfaces"]
  node_baseline["Baseline Runner<br/>[inference.py]"]
  node_submission["Submission Client<br/>[inference.py]"]
  node_studio_ui["Studio UI<br/>[streamlit_app.py]"]
end

node_agent(("Benchmark Agent"))
node_llm(("LLM Provider"))

node_agent -->|"submits actions"| node_api
node_api -->|"routes episodes"| node_episode
node_api -->|"runs baseline"| node_baseline
node_submission -->|"calls endpoints"| node_api
node_baseline -->|"runs episodes"| node_episode
node_episode -->|"uses models"| node_models
node_episode -->|"resolves tasks"| node_tasks
node_episode -->|"grades actions"| node_graders
node_episode -->|"calculates rewards"| node_rewards
node_tasks -->|"defines tasks"| node_models
node_baseline -->|"selects tasks"| node_tasks
node_baseline -->|"scores episodes"| node_graders
node_api -.->|"creates sessions"| node_dynamic
node_studio_ui -->|"prepares datasets"| node_prep
node_studio_ui -->|"evaluates datasets"| node_evaluation
node_prep -->|"runs EDA"| node_eda
node_prep -->|"writes artifacts"| node_reports
node_evaluation -->|"loads prepared data"| node_prep
node_evaluation -->|"writes reports"| node_reports
node_eda -.->|"requests plans"| node_llm

click node_api "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/app.py"
click node_episode "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/env.py"
click node_models "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/models.py"
click node_tasks "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/tasks.py"
click node_graders "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/graders.py"
click node_rewards "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/reward.py"
click node_dynamic "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/dynamic_task_generator.py"
click node_baseline "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/baseline/inference.py"
click node_submission "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/inference.py"
click node_studio_ui "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/streamlit_app.py"
click node_eda "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/eda_agent.py"
click node_prep "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/data_prep.py"
click node_evaluation "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/evaluation.py"
click node_reports "https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/reporting.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_api,node_episode,node_models,node_tasks,node_graders,node_rewards,node_dynamic toneBlue
class node_eda,node_prep,node_evaluation,node_reports toneAmber
class node_baseline,node_submission,node_studio_ui toneMint
class node_agent,node_llm toneIndigo
```

## Components

### Benchmark Runtime

- [OpenEnv API](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/app.py): `app.py`
- [Episode Engine](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/env.py): `environment/env.py`
- [Action Models](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/models.py): `environment/models.py`
- [Fixed Tasks](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/tasks.py): `environment/tasks.py`
- [Deterministic Graders](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/graders.py): `environment/graders.py`
- [Reward Shaping](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/reward.py): `environment/reward.py`
- [Dynamic Task Builder](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/dynamic_task_generator.py): `environment/dynamic_task_generator.py`

### Dataset Studio

- [EDA and Features](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/eda_agent.py): `environment/eda_agent.py`
- [Dataset Preparation](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/data_prep.py): `environment/data_prep.py`
- [Model Evaluation](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/evaluation.py): `environment/evaluation.py`
- [Report Artifacts](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/environment/reporting.py): `environment/reporting.py`

### Agents and Interfaces

- [Baseline Runner](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/baseline/inference.py): `baseline/inference.py`
- [Submission Client](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/inference.py): `inference.py`
- [Studio UI](https://github.com/google-developers-group-iit-mandi/meta-x/blob/main/streamlit_app.py): `streamlit_app.py`

### Other components

- **Benchmark Agent**
- **LLM Provider**

## Connections

- Benchmark Agent → OpenEnv API: submits actions (evidence: `README.md`)
- OpenEnv API → Episode Engine: routes episodes (evidence: `README.md`)
- OpenEnv API → Baseline Runner: runs baseline (evidence: `app.py`)
- Submission Client → OpenEnv API: calls endpoints (evidence: `inference.py`)
- Baseline Runner → Episode Engine: runs episodes (evidence: `baseline/inference.py`)
- Episode Engine → Action Models: uses models (evidence: `environment/env.py`)
- Episode Engine → Fixed Tasks: resolves tasks (evidence: `environment/env.py`)
- Episode Engine → Deterministic Graders: grades actions (evidence: `environment/env.py`)
- Episode Engine → Reward Shaping: calculates rewards (evidence: `environment/env.py`)
- Fixed Tasks → Action Models: defines tasks (evidence: `environment/tasks.py`)
- Baseline Runner → Fixed Tasks: selects tasks (evidence: `baseline/inference.py`)
- Baseline Runner → Deterministic Graders: scores episodes (evidence: `baseline/inference.py`)
- OpenEnv API → Dynamic Task Builder: creates sessions
- Studio UI → Dataset Preparation: prepares datasets (evidence: `streamlit_app.py`)
- Studio UI → Model Evaluation: evaluates datasets (evidence: `streamlit_app.py`)
- Dataset Preparation → EDA and Features: runs EDA (evidence: `environment/data_prep.py`)
- Dataset Preparation → Report Artifacts: writes artifacts (evidence: `environment/data_prep.py`)
- Model Evaluation → Dataset Preparation: loads prepared data (evidence: `environment/evaluation.py`)
- Model Evaluation → Report Artifacts: writes reports (evidence: `environment/evaluation.py`)
- EDA and Features → LLM Provider: requests plans
