# vinodjk76/travel-planner-agent architecture

> Architecture diagram of the GitHub repository vinodjk76/travel-planner-agent, 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/vinodjk76/travel-planner-agent
- Repository: https://github.com/vinodjk76/travel-planner-agent

## Overview

Travel Planner Agent is a small CLI application that accepts trip preferences, runs a CrewAI-based planner, and prints a personalized itinerary. The README describes three agents and destination research, day-by-day planning, and budget breakdowns. The CLI-to-crew call is visible in the excerpt; the agent implementation was not sampled, so links from the crew to those documented capabilities are unverified.

Main entry points: [`src/agent.py`](https://github.com/vinodjk76/travel-planner-agent/blob/master/src/agent.py) (Crew orchestration), [`main.py`](https://github.com/vinodjk76/travel-planner-agent/blob/master/main.py) (CLI and output), [`config/agents.yaml`](https://github.com/vinodjk76/travel-planner-agent/blob/master/config/agents.yaml) (Agent definitions), [`config/tasks.yaml`](https://github.com/vinodjk76/travel-planner-agent/blob/master/config/tasks.yaml) (Planning tasks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User entry"]
  node_cli["CLI and output<br/>[main.py]"]
end

subgraph group_planning["Trip planning"]
  node_crew["Crew orchestration<br/>[agent.py]"]
  node_agent_config["Agent definitions<br/>[agents.yaml]"]
  node_task_config["Planning tasks<br/>[tasks.yaml]"]
  node_metadata["Planner metadata<br/>[metadata.yaml]"]
  node_research["Destination research<br/>[tasks.yaml]"]
  node_itinerary["Day-by-day itinerary<br/>[tasks.yaml]"]
  node_budget["Budget breakdown<br/>[tasks.yaml]"]
end

node_traveler(("Traveler"))
node_llm["GPT-4o-mini"]

node_traveler -->|"provides trip inputs"| node_cli
node_cli -->|"starts planning"| node_crew
node_crew -.->|"uses definitions"| node_agent_config
node_crew -.->|"uses tasks"| node_task_config
node_crew -.->|"uses metadata"| node_metadata
node_crew -.->|"supports research"| node_research
node_crew -.->|"produces itinerary"| node_itinerary
node_crew -.->|"breaks down budget"| node_budget
node_crew -.->|"uses model"| node_llm
node_crew -->|"returns result"| node_cli

click node_cli "https://github.com/vinodjk76/travel-planner-agent/blob/master/main.py"
click node_crew "https://github.com/vinodjk76/travel-planner-agent/blob/master/src/agent.py"
click node_agent_config "https://github.com/vinodjk76/travel-planner-agent/blob/master/config/agents.yaml"
click node_task_config "https://github.com/vinodjk76/travel-planner-agent/blob/master/config/tasks.yaml"
click node_metadata "https://github.com/vinodjk76/travel-planner-agent/blob/master/config/metadata.yaml"
click node_research "https://github.com/vinodjk76/travel-planner-agent/blob/master/config/tasks.yaml"
click node_itinerary "https://github.com/vinodjk76/travel-planner-agent/blob/master/config/tasks.yaml"
click node_budget "https://github.com/vinodjk76/travel-planner-agent/blob/master/config/tasks.yaml"

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_cli toneBlue
class node_crew,node_agent_config,node_task_config,node_metadata,node_research,node_itinerary,node_budget toneAmber
class node_traveler,node_llm toneIndigo
```

## Components

### User entry

- [CLI and output](https://github.com/vinodjk76/travel-planner-agent/blob/master/main.py): `main.py`

### Trip planning

- [Crew orchestration](https://github.com/vinodjk76/travel-planner-agent/blob/master/src/agent.py): `src/agent.py`
- [Agent definitions](https://github.com/vinodjk76/travel-planner-agent/blob/master/config/agents.yaml): `config/agents.yaml`
- [Planning tasks](https://github.com/vinodjk76/travel-planner-agent/blob/master/config/tasks.yaml): `config/tasks.yaml`
- [Planner metadata](https://github.com/vinodjk76/travel-planner-agent/blob/master/config/metadata.yaml): `config/metadata.yaml`
- [Destination research](https://github.com/vinodjk76/travel-planner-agent/blob/master/config/tasks.yaml): `config/tasks.yaml`
- [Day-by-day itinerary](https://github.com/vinodjk76/travel-planner-agent/blob/master/config/tasks.yaml): `config/tasks.yaml`
- [Budget breakdown](https://github.com/vinodjk76/travel-planner-agent/blob/master/config/tasks.yaml): `config/tasks.yaml`

### Other components

- **Traveler**
- **GPT-4o-mini**

## Connections

- Traveler → CLI and output: provides trip inputs (evidence: `README.md`)
- CLI and output → Crew orchestration: starts planning (evidence: `main.py`)
- Crew orchestration → Agent definitions: uses definitions
- Crew orchestration → Planning tasks: uses tasks
- Crew orchestration → Planner metadata: uses metadata
- Crew orchestration → Destination research: supports research (evidence: `README.md`)
- Crew orchestration → Day-by-day itinerary: produces itinerary (evidence: `README.md`)
- Crew orchestration → Budget breakdown: breaks down budget (evidence: `README.md`)
- Crew orchestration → GPT-4o-mini: uses model (evidence: `README.md`)
- Crew orchestration → CLI and output: returns result (evidence: `main.py`)
