# anderst026/ollama-lm-studio-local-llm-agent-ko architecture

> Architecture diagram of the GitHub repository anderst026/ollama-lm-studio-local-llm-agent-ko, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anderst026/ollama-lm-studio-local-llm-agent-ko
- Repository: https://github.com/anderst026/ollama-lm-studio-local-llm-agent-ko

## Overview

The checked-in runtime is a small Python library for offline inspection of Proxy Auto-Configuration (PAC) files; the README’s Go/agent claims are not supported by the file tree or sampled implementation. Its workflow accepts PAC text, extracts the required entry point and recognized helpers without evaluating JavaScript, then returns a structured view. The parser’s brace-aware scanner and lexical skipping are useful internal layers. Relationships below are limited to calls visible in the core.py excerpts; other files and any broader capabilities were not inspected.

Main entry points: [`src/pac_file_parser/core.py`](https://github.com/Anderst026/ollama-lm-studio-local-llm-agent-ko/blob/master/src/pac_file_parser/core.py) (Parse PAC)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Inspector or caller"))
node_pac_text["PAC text"]
node_parse["Parse PAC<br/>[core.py]"]
node_extractor["Function extractor<br/>[core.py]"]
node_function_reader["Function reader<br/>[core.py]"]
node_lexical_skips["Lexical skipping<br/>[core.py]"]
node_pac_view["Parsed PAC view<br/>[core.py]"]

node_caller -->|"supplies"| node_pac_text
node_pac_text -->|"parsed by"| node_parse
node_parse -->|"calls"| node_extractor
node_extractor -->|"reads functions"| node_function_reader
node_extractor -->|"skips syntax"| node_lexical_skips
node_parse -->|"returns"| node_pac_view
node_caller -.->|"inspects"| node_pac_view

click node_parse "https://github.com/Anderst026/ollama-lm-studio-local-llm-agent-ko/blob/master/src/pac_file_parser/core.py"
click node_extractor "https://github.com/Anderst026/ollama-lm-studio-local-llm-agent-ko/blob/master/src/pac_file_parser/core.py"
click node_function_reader "https://github.com/Anderst026/ollama-lm-studio-local-llm-agent-ko/blob/master/src/pac_file_parser/core.py"
click node_lexical_skips "https://github.com/Anderst026/ollama-lm-studio-local-llm-agent-ko/blob/master/src/pac_file_parser/core.py"
click node_pac_view "https://github.com/Anderst026/ollama-lm-studio-local-llm-agent-ko/blob/master/src/pac_file_parser/core.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_caller,node_pac_text toneIndigo
class node_parse,node_extractor,node_function_reader,node_lexical_skips toneTeal
class node_pac_view toneBlue
```

## Components

### Other components

- **Inspector or caller**
- **PAC text**
- [Parse PAC](https://github.com/Anderst026/ollama-lm-studio-local-llm-agent-ko/blob/master/src/pac_file_parser/core.py): `src/pac_file_parser/core.py`
- [Function extractor](https://github.com/Anderst026/ollama-lm-studio-local-llm-agent-ko/blob/master/src/pac_file_parser/core.py): `src/pac_file_parser/core.py`
- [Function reader](https://github.com/Anderst026/ollama-lm-studio-local-llm-agent-ko/blob/master/src/pac_file_parser/core.py): `src/pac_file_parser/core.py`
- [Lexical skipping](https://github.com/Anderst026/ollama-lm-studio-local-llm-agent-ko/blob/master/src/pac_file_parser/core.py): `src/pac_file_parser/core.py`
- [Parsed PAC view](https://github.com/Anderst026/ollama-lm-studio-local-llm-agent-ko/blob/master/src/pac_file_parser/core.py): `src/pac_file_parser/core.py`

## Connections

- Inspector or caller → PAC text: supplies
- PAC text → Parse PAC: parsed by (evidence: `src/pac_file_parser/core.py`)
- Parse PAC → Function extractor: calls (evidence: `src/pac_file_parser/core.py`)
- Function extractor → Function reader: reads functions (evidence: `src/pac_file_parser/core.py`)
- Function extractor → Lexical skipping: skips syntax (evidence: `src/pac_file_parser/core.py`)
- Parse PAC → Parsed PAC view: returns (evidence: `src/pac_file_parser/core.py`)
- Inspector or caller → Parsed PAC view: inspects
