# Architecture Overview

Toggle is built on a modular architecture composed of five independent layers. Each layer performs a specific function, and all layers communicate through a secure internal protocol. This separation of responsibilities keeps the system scalable, reliable and resilient even as workloads grow.

Toggle’s architecture is designed to understand context in real time, preserve continuity across sessions, reason through complex work, and deliver intelligence directly inside the tools you already use.

#### Architectural layers

• Context Engine\
• Memory Layer\
• Reasoning Core\
• Orchestration Interface\
• Interaction Layer

Each layer is explained in detail on its own page.


---

# 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://toggle.gitbook.io/togglex/oldgitbook-below/architecture-overview.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.
