# oracle-university-labs/ou-generativeai-pro architecture

> Architecture diagram of the GitHub repository oracle-university-labs/ou-generativeai-pro, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/oracle-university-labs/ou-generativeai-pro
- Repository: https://github.com/oracle-university-labs/ou-generativeai-pro

## Overview

This repository is a collection of generative-AI teaching demos, not one integrated application. Its main user journey is to try model interaction, then explore prompts, tools, agent execution, and integrations through separate runnable examples. The code branches into LangChain foundations and agents, OpenAI Responses/Agents SDK lessons, OCI agent variants, and MCP tool-server/client demos, including an OCI usage example. The README is only a title, so the map reflects the tree and sampled source; unsampled lessons are included as capability nodes where their paths are known, without inferred runtime links.

Main entry points: [`agentic-ai-foundations/OpenAI/08_customer_support.py`](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/08_customer_support.py) (Customer Support System), [`agentic-ai-foundations/OpenAI/03_web_search.py`](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/03_web_search.py) (Web Search), [`agentic-ai-foundations/OCI/oci_first_agent_simple.py`](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OCI/oci_first_agent_simple.py) (OCI Simple Agent), [`agentic-ai-foundations/OCI/oci_first_agent.py`](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OCI/oci_first_agent.py) (OCI Manual Agent Loop)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["LangChain Foundations"]
  node_langchain_blocks["Core Building Blocks"]
  node_langchain_agent["LangChain Math Agent<br/>[first_agent.py]"]
end

subgraph group_openai["OpenAI Agent Lessons"]
  node_responses_intro["Responses Intro"]
  node_stateful_chat["Stateful Conversation"]
  node_web_search["Web Search<br/>[03_web_search.py]"]
  node_openai_agent["First Agent<br/>[04_first_agent.py]"]
  node_function_tools["Function Tools"]
  node_handoffs["Multi-Agent Handoffs"]
  node_guardrails["Agent Guardrails<br/>[07_guardrails.py]"]
  node_support_system["Customer Support System"]
  node_orders["Order Tools"]
end

subgraph group_oci["OCI Agent Demos"]
  node_oci_simple["OCI Simple Agent"]
  node_oci_manual["OCI Manual Agent Loop<br/>[oci_first_agent.py]"]
  node_oci_sdk["OCI Agents SDK"]
end

subgraph group_mcp["MCP Integrations"]
  node_mcp_client["MCP Math Agent"]
  node_math_server["Math MCP Server<br/>[mcp_math_server.py]"]
  node_oci_auth["OCI Auth Diagnostic"]
  node_oci_usage_agent["OCI Usage Agent"]
end

node_learner(("Learner"))
node_openai_service{{"OpenAI API"}}
node_oci_service{{"OCI Generative AI"}}
node_usage_mcp_service{{"OCI Usage MCP"}}

node_learner -->|"explores"| node_langchain_blocks
node_learner -->|"runs"| node_langchain_agent
node_learner -->|"tries"| node_responses_intro
node_learner -.->|"tries"| node_stateful_chat
node_learner -->|"asks"| node_web_search
node_web_search -->|"requests search"| node_openai_service
node_learner -->|"runs"| node_openai_agent
node_learner -.->|"tries"| node_function_tools
node_learner -.->|"tries"| node_handoffs
node_learner -.->|"tries"| node_guardrails
node_learner -->|"submits query"| node_support_system
node_support_system -->|"uses tools"| node_orders
node_support_system -->|"runs agents"| node_openai_service
node_learner -->|"runs"| node_oci_simple
node_oci_simple -->|"calls API"| node_oci_service
node_learner -->|"runs"| node_oci_manual
node_oci_manual -->|"calls API"| node_oci_service
node_learner -->|"runs"| node_oci_sdk
node_oci_sdk -->|"connects provider"| node_oci_service
node_learner -->|"runs"| node_mcp_client
node_mcp_client -->|"launches server"| node_math_server
node_learner -->|"checks access"| node_oci_auth
node_oci_auth -->|"tests identity and usage"| node_oci_service
node_learner -->|"asks usage question"| node_oci_usage_agent
node_oci_usage_agent -->|"queries usage"| node_usage_mcp_service

click node_langchain_blocks "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/LangChain/core_building_blocks.py"
click node_langchain_agent "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/LangChain/first_agent.py"
click node_responses_intro "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/01_hello_responses.py"
click node_stateful_chat "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/02_stateful_conversation.py"
click node_web_search "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/03_web_search.py"
click node_openai_agent "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/04_first_agent.py"
click node_function_tools "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/05_function_tools.py"
click node_handoffs "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/06_multi_agent_handoffs.py"
click node_guardrails "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/07_guardrails.py"
click node_support_system "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/08_customer_support.py"
click node_orders "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/08_customer_support.py"
click node_oci_simple "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OCI/oci_first_agent_simple.py"
click node_oci_manual "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OCI/oci_first_agent.py"
click node_oci_sdk "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OCI/oci_first_agent_sdk.py"
click node_mcp_client "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/MCP/first_agent_with_mcp.py"
click node_math_server "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/MCP/mcp_math_server.py"
click node_oci_auth "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/Real%20World%20MCP/00_check_oci_auth.py"
click node_oci_usage_agent "https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/Real%20World%20MCP/02_oci_usage_mcp_agent.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_langchain_blocks,node_langchain_agent toneBlue
class node_responses_intro,node_stateful_chat,node_web_search,node_openai_agent,node_function_tools,node_handoffs,node_guardrails,node_support_system,node_orders toneAmber
class node_oci_simple,node_oci_manual,node_oci_sdk,node_openai_service toneMint
class node_mcp_client,node_math_server,node_oci_auth,node_oci_usage_agent toneRose
class node_learner,node_oci_service,node_usage_mcp_service toneIndigo
```

## Components

### LangChain Foundations

- [Core Building Blocks](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/LangChain/core_building_blocks.py): `agentic-ai-foundations/LangChain/core_building_blocks.py`
- [LangChain Math Agent](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/LangChain/first_agent.py): `agentic-ai-foundations/LangChain/first_agent.py`

### OpenAI Agent Lessons

- [Responses Intro](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/01_hello_responses.py): `agentic-ai-foundations/OpenAI/01_hello_responses.py`
- [Stateful Conversation](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/02_stateful_conversation.py): `agentic-ai-foundations/OpenAI/02_stateful_conversation.py`
- [Web Search](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/03_web_search.py): `agentic-ai-foundations/OpenAI/03_web_search.py`
- [First Agent](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/04_first_agent.py): `agentic-ai-foundations/OpenAI/04_first_agent.py`
- [Function Tools](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/05_function_tools.py): `agentic-ai-foundations/OpenAI/05_function_tools.py`
- [Multi-Agent Handoffs](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/06_multi_agent_handoffs.py): `agentic-ai-foundations/OpenAI/06_multi_agent_handoffs.py`
- [Agent Guardrails](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/07_guardrails.py): `agentic-ai-foundations/OpenAI/07_guardrails.py`
- [Customer Support System](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/08_customer_support.py): `agentic-ai-foundations/OpenAI/08_customer_support.py`
- [Order Tools](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OpenAI/08_customer_support.py): `agentic-ai-foundations/OpenAI/08_customer_support.py`

### OCI Agent Demos

- [OCI Simple Agent](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OCI/oci_first_agent_simple.py): `agentic-ai-foundations/OCI/oci_first_agent_simple.py`
- [OCI Manual Agent Loop](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OCI/oci_first_agent.py): `agentic-ai-foundations/OCI/oci_first_agent.py`
- [OCI Agents SDK](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/OCI/oci_first_agent_sdk.py): `agentic-ai-foundations/OCI/oci_first_agent_sdk.py`

### MCP Integrations

- [MCP Math Agent](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/MCP/first_agent_with_mcp.py): `agentic-ai-foundations/MCP/first_agent_with_mcp.py`
- [Math MCP Server](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/MCP/mcp_math_server.py): `agentic-ai-foundations/MCP/mcp_math_server.py`
- [OCI Auth Diagnostic](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/Real%20World%20MCP/00_check_oci_auth.py): `agentic-ai-foundations/Real World MCP/00_check_oci_auth.py`
- [OCI Usage Agent](https://github.com/oracle-university-labs/ou-generativeai-pro/blob/main/agentic-ai-foundations/Real%20World%20MCP/02_oci_usage_mcp_agent.py): `agentic-ai-foundations/Real World MCP/02_oci_usage_mcp_agent.py`

### Other components

- **Learner**
- **OpenAI API**
- **OCI Generative AI**
- **OCI Usage MCP**

## Connections

- Learner → Core Building Blocks: explores (evidence: `agentic-ai-foundations/LangChain/core_building_blocks.py`)
- Learner → LangChain Math Agent: runs (evidence: `agentic-ai-foundations/LangChain/first_agent.py`)
- Learner → Responses Intro: tries (evidence: `agentic-ai-foundations/OpenAI/01_hello_responses.py`)
- Learner → Stateful Conversation: tries
- Learner → Web Search: asks (evidence: `agentic-ai-foundations/OpenAI/03_web_search.py`)
- Web Search → OpenAI API: requests search (evidence: `agentic-ai-foundations/OpenAI/03_web_search.py`)
- Learner → First Agent: runs (evidence: `agentic-ai-foundations/OpenAI/04_first_agent.py`)
- Learner → Function Tools: tries
- Learner → Multi-Agent Handoffs: tries
- Learner → Agent Guardrails: tries
- Learner → Customer Support System: submits query (evidence: `agentic-ai-foundations/OpenAI/08_customer_support.py`)
- Customer Support System → Order Tools: uses tools (evidence: `agentic-ai-foundations/OpenAI/08_customer_support.py`)
- Customer Support System → OpenAI API: runs agents (evidence: `agentic-ai-foundations/OpenAI/08_customer_support.py`)
- Learner → OCI Simple Agent: runs (evidence: `agentic-ai-foundations/OCI/oci_first_agent_simple.py`)
- OCI Simple Agent → OCI Generative AI: calls API (evidence: `agentic-ai-foundations/OCI/oci_first_agent_simple.py`)
- Learner → OCI Manual Agent Loop: runs (evidence: `agentic-ai-foundations/OCI/oci_first_agent.py`)
- OCI Manual Agent Loop → OCI Generative AI: calls API (evidence: `agentic-ai-foundations/OCI/oci_first_agent.py`)
- Learner → OCI Agents SDK: runs (evidence: `agentic-ai-foundations/OCI/oci_first_agent_sdk.py`)
- OCI Agents SDK → OCI Generative AI: connects provider (evidence: `agentic-ai-foundations/OCI/oci_first_agent_sdk.py`)
- Learner → MCP Math Agent: runs (evidence: `agentic-ai-foundations/MCP/first_agent_with_mcp.py`)
- MCP Math Agent → Math MCP Server: launches server (evidence: `agentic-ai-foundations/MCP/first_agent_with_mcp.py`)
- Learner → OCI Auth Diagnostic: checks access (evidence: `agentic-ai-foundations/Real World MCP/00_check_oci_auth.py`)
- OCI Auth Diagnostic → OCI Generative AI: tests identity and usage (evidence: `agentic-ai-foundations/Real World MCP/00_check_oci_auth.py`)
- Learner → OCI Usage Agent: asks usage question (evidence: `agentic-ai-foundations/Real World MCP/02_oci_usage_mcp_agent.py`)
- OCI Usage Agent → OCI Usage MCP: queries usage (evidence: `agentic-ai-foundations/Real World MCP/02_oci_usage_mcp_agent.py`)
