> For the complete documentation index, see [llms.txt](https://hxz-1.gitbook.io/redelegator-finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hxz-1.gitbook.io/redelegator-finance/the-agents/orchestrator-and-reasoning.md).

# Orchestrator & Reasoning

The Orchestrator is the entry point. It receives the user's root grant, reasons over the intent with **Venice AI**, and redelegates a narrowed budget to the Dex Aggregator.

<figure><img src="/files/WcM6y02E7dXNObn09Jtd" alt=""><figcaption></figcaption></figure>

* **Reasoning** — `POST /api/venice/reasoning` sends the intent to Venice (`qwen3-235b-a22b-instruct-2507`) with a strict JSON schema and a 25 s timeout
* **Output** — a zod-validated `Strategy`: asset, total budget, allocations, split ratios, spend caps; a deterministic fallback covers model downtime
* **Identity** — a plain EOA upgraded to a MetaMask `Stateless7702` smart account (EIP-7702), so it can sign and redeem delegations
* **Authority** — receives the EIP-7715 root grant and redelegates `total + fee` onward

> The Orchestrator never executes a swap itself — it plans, scopes, and hands a narrower budget to the next agent.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://hxz-1.gitbook.io/redelegator-finance/the-agents/orchestrator-and-reasoning.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.
