# Architecture

### System Overview

AgentNeo follows a modular architecture designed for flexibility and extensibility:

<figure><img src="/files/J2WtQ2f4MXSiSnX9Cstw" alt=""><figcaption><p>AgentNeo's System Architecture</p></figcaption></figure>

### Key Components

#### 1. Tracer Module

* Decorators for instrumentation
* Event collection
* Metric computation
* Data buffering

#### 2. Storage Layer

* SQLite database
* JSON log files
* Data persistence
* Query interface

#### 3. Dashboard Service

* Web interface
* Real-time updates
* Data visualization
* Analysis tools

#### 4. Evaluation

* Metric computation
* Performance analysis

### Data Flow

1. **Instrumentation**

   ```python
   @tracer.trace_llm()
   def your_function():
       pass
   ```
2. **Trace Collection**
   * Capture function calls
   * Record timestamps
   * Collect metrics
3. **Data Processing**
   * Compute metrics
   * Generate summaries
   * Update storage
4. **Visualization**
   * Display in dashboard


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://agentneo.raga.ai/features/architecture.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
