DZap AI is structured so that reasoning stays flexible while execution stays disciplined. Five layers, clear contracts between them.Documentation Index
Fetch the complete documentation index at: https://docs.dzap.io/llms.txt
Use this file to discover all available pages before exploring further.
The five layers
Protocol layer
Deterministic capabilities. No LLM dependency. Stable, typed, boring — and that’s the point. Responsibilities:- Quote retrieval
- Bridge routing
- Balance and position reads
- Transaction construction
- Transaction simulation
- Gas estimation
- Execution primitives
Tool layer
Turns protocol methods into AI-usable functions. Each tool exposes:- A clear name
- Structured input + output schemas
- Human-readable description
- Execution constraints
- Permission metadata
- Safety notes when relevant
Reasoning / agent layer
Where intent handling lives:- Understanding user goals
- Breaking tasks into steps
- Selecting tools
- Carrying context across steps
- Coordinating specialist agents
- Deciding when to ask for confirmation
Runtime layer
The space between a plan and a real action.- Wallet session state
- Permissions and approval tiers
- Auth boundaries
- Execution policies
- Scheduler-safe context
- Auditability + controls
Interface layer
The same system surfaced through different interfaces:- MCP server
- CLI
- App UI
- Internal copilots
- Plugin / IDE integrations
Execution flow
Public-facing message
For external integrators, the framing is:- DZap handles DeFi primitives.
- DZap AI exposes them as tooling for agents and apps.
- MCP and client integrations provide the developer entry point.
- Runtime + safety policies make execution safer and more predictable.
See also
Safety & Execution
Execution classes and pre-execution checks.
ZapBot — How it works
The default agent’s loop, in detail.