# 3. Core AI Processing Layer

**A. Task Scheduler**\
The task scheduler is responsible for:

* Parsing the user’s objective into structured parameters
* Initializing a task queue
* Allocating system resources for the task
* Routing the request to an appropriate **Agent Instance**

**B. Agent Instance**\
This unit executes the intelligence layer of Spidex.

**Intent Matching:**

* The system uses an intent recognition mechanism to evaluate which Spidex Agent aligns with the user’s request.
* If no suitable agent is found, the request is returned with feedback to the user.
* If a match is found, the selected Agent is activated.

**Agent Invocation & Tool Execution:**

* The selected agent uses domain-specific tools (trading analytics, token data scanning, portfolio tools, etc.) to complete the task.
* Actions are performed based on Cardano’s DeFi infrastructure, ensuring chain-specific relevance.
* Once the task is complete, the result is processed into a clear, human-readable response and delivered back to the interface.
